4055: Workspace Uploder enhancement: work with multiple-instances of DnD Workspace Uploader in the DOM

Task-Url: https://support.d4science.org/issues/4055

Added check on isErasable

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-uploader@128722 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-05-20 07:49:29 +00:00
parent 140b7d7863
commit 9a277a0d79
2 changed files with 4 additions and 1 deletions

View File

@ -85,7 +85,7 @@ public class WorkspaceUploaderServiceImpl extends RemoteServiceServlet implement
public void run() {
try {
logger.trace("Uploader: "+uploader.getClientUploadKey() +"is erasable?");
logger.trace("Uploader: "+uploader.getClientUploadKey() +", is erasable?");
WsUtil.eraseWorkspaceUploaderInSession(httpSession, uploader);
}
catch (Exception e) {

View File

@ -229,6 +229,9 @@ public class WorkspaceUploaderItem implements Serializable{
*/
public Boolean isErasable() {
if(erasable==null)
return false;
return erasable;
}