git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@98616 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
10f24eaeae
commit
3705ac2866
|
@ -610,20 +610,19 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
||||||
if(sourceItemIsShared)
|
if(sourceItemIsShared)
|
||||||
sourceSharedId = sourceItem.getIdSharedFolder(); //GET SHARED ID BEFORE OF MOVE
|
sourceSharedId = sourceItem.getIdSharedFolder(); //GET SHARED ID BEFORE OF MOVE
|
||||||
|
|
||||||
|
workspaceLogger.trace("moveItem item: "+itemId+" sourceItem name "+sourceItem.getName() + " shared: "+sourceItemIsShared+ " destination: "+destinationId);
|
||||||
//System.out.println("moveItem item: "+itemId+" sourceItem name "+sourceItem.getName() + " shared: "+sourceItemIsShared+ " destination: "+destinationId);
|
|
||||||
|
|
||||||
workspace.moveItem(itemId, destinationId); //move item
|
WorkspaceItem destinationItem = workspace.moveItem(itemId, destinationId); //move item
|
||||||
|
|
||||||
WorkspaceItem folderDestinationItem = workspace.getItem(destinationId); //retrieve folder destination
|
WorkspaceItem folderDestinationItem = workspace.getItem(destinationId); //retrieve folder destination
|
||||||
|
|
||||||
//System.out.println("sourceItem.isShared() "+sourceItemIsShared );
|
workspaceLogger.trace("sourceItem.isShared() "+sourceItemIsShared );
|
||||||
//System.out.println("folderDestinationItem item: "+destinationId+" folderDestinationItem name "+folderDestinationItem.getName() + " folderDestinationItem shared: "+folderDestinationItem.isShared());
|
workspaceLogger.trace("folderDestinationItem item: "+destinationId+" folderDestinationItem name "+folderDestinationItem.getName() + " folderDestinationItem shared: "+folderDestinationItem.isShared());
|
||||||
|
|
||||||
if(folderDestinationItem!=null){
|
if(folderDestinationItem!=null){
|
||||||
|
|
||||||
try{
|
try{
|
||||||
checkNotifyAddItemToShare(sourceItem, sourceSharedId, folderDestinationItem);
|
checkNotifyAddItemToShare(destinationItem, sourceSharedId, folderDestinationItem);
|
||||||
|
|
||||||
checkNotifyMoveItemFromShare(sourceItemIsShared, sourceItem, sourceSharedId, folderDestinationItem);
|
checkNotifyMoveItemFromShare(sourceItemIsShared, sourceItem, sourceSharedId, folderDestinationItem);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue