git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@181797 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
af5fb13d9e
commit
1f7736f7d2
|
@ -52,9 +52,9 @@ import org.gcube.portlets.user.workspace.client.event.GetFolderLinkEvent;
|
||||||
import org.gcube.portlets.user.workspace.client.event.GetFolderLinkEventHandler;
|
import org.gcube.portlets.user.workspace.client.event.GetFolderLinkEventHandler;
|
||||||
import org.gcube.portlets.user.workspace.client.event.GetInfoEvent;
|
import org.gcube.portlets.user.workspace.client.event.GetInfoEvent;
|
||||||
import org.gcube.portlets.user.workspace.client.event.GetInfoEventHandler;
|
import org.gcube.portlets.user.workspace.client.event.GetInfoEventHandler;
|
||||||
import org.gcube.portlets.user.workspace.client.event.GetPublicLinkEvent;
|
|
||||||
import org.gcube.portlets.user.workspace.client.event.GetPublicLinkEventHandler;
|
import org.gcube.portlets.user.workspace.client.event.GetPublicLinkEventHandler;
|
||||||
import org.gcube.portlets.user.workspace.client.event.GetShareLinkEvent;
|
import org.gcube.portlets.user.workspace.client.event.GetShareLinkEvent;
|
||||||
|
import org.gcube.portlets.user.workspace.client.event.GetShareableLink;
|
||||||
import org.gcube.portlets.user.workspace.client.event.GetSharedLinkEventHandler;
|
import org.gcube.portlets.user.workspace.client.event.GetSharedLinkEventHandler;
|
||||||
import org.gcube.portlets.user.workspace.client.event.ImagePreviewEvent;
|
import org.gcube.portlets.user.workspace.client.event.ImagePreviewEvent;
|
||||||
import org.gcube.portlets.user.workspace.client.event.ImagePreviewEventHandler;
|
import org.gcube.portlets.user.workspace.client.event.ImagePreviewEventHandler;
|
||||||
|
@ -916,18 +916,12 @@ public class AppControllerExplorer implements EventHandler, TreeAppControllerInt
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
eventBus.addHandler(GetPublicLinkEvent.TYPE, new GetPublicLinkEventHandler() {
|
eventBus.addHandler(GetShareableLink.TYPE, new GetPublicLinkEventHandler() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onGetPublicLink(GetPublicLinkEvent getPublicLinkEvent) {
|
public void onGetPublicLink(GetShareableLink getPublicLinkEvent) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
if (getPublicLinkEvent.getSourceFile() != null) {
|
if (getPublicLinkEvent.getSourceFile() != null) {
|
||||||
// DialogGetLink dialog = new DialogGetLink("Copy to clipboard Public Link: Ctrl+C",
|
|
||||||
// getPublicLinkEvent.getSourceFile(), getPublicLinkEvent.getVersion(), Link_Type.PUBLIC_LINK,
|
|
||||||
// false);
|
|
||||||
// dialog.show();
|
|
||||||
|
|
||||||
|
|
||||||
new DialogShareableLink(getPublicLinkEvent.getSourceFile(), getPublicLinkEvent.getVersion());
|
new DialogShareableLink(getPublicLinkEvent.getSourceFile(), getPublicLinkEvent.getVersion());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -89,9 +89,9 @@ public class ConstantsExplorer {
|
||||||
public static final String MESSAGE_REFRESH_FOLDER = "Refresh Folder";
|
public static final String MESSAGE_REFRESH_FOLDER = "Refresh Folder";
|
||||||
public static final String MESSAGE_GET_INFO = "Get Info";
|
public static final String MESSAGE_GET_INFO = "Get Info";
|
||||||
public static final String FILE_VERSIONS = "Versions";
|
public static final String FILE_VERSIONS = "Versions";
|
||||||
public static final String MESSAGE_PUBLIC_LINK = "Get Public Link";
|
public static final String MESSAGE_SHAREABLE_LINK = "Get Shareable Link";
|
||||||
public static final String MESSAGE_FOLDER_LINK = "Get Public Link";
|
// public static final String MESSAGE_FOLDER_LINK = "Get Public Link";
|
||||||
public static final String MESSAGE_FOLDER_LINK_REMOVE = "Remove Public Link";
|
// public static final String MESSAGE_FOLDER_LINK_REMOVE = "Remove Public Link";
|
||||||
public static final String LISTATTACHMENTSNAMES = "Attachments Names";
|
public static final String LISTATTACHMENTSNAMES = "Attachments Names";
|
||||||
public static final String LISTCONTACTSTOSTRING = "ListContactToString";
|
public static final String LISTCONTACTSTOSTRING = "ListContactToString";
|
||||||
public static final String STATUS = "Status";
|
public static final String STATUS = "Status";
|
||||||
|
|
|
@ -28,13 +28,13 @@ public enum WorkspaceOperation {
|
||||||
GET_INFO("GTI", "GTI"), // GET INFO
|
GET_INFO("GTI", "GTI"), // GET INFO
|
||||||
HISTORY("HST", "HST"), // HISTORY
|
HISTORY("HST", "HST"), // HISTORY
|
||||||
ACCREAD("ACR", "ACR"), // ACCOUNTING READ
|
ACCREAD("ACR", "ACR"), // ACCOUNTING READ
|
||||||
SHARE_LINK("SLK", "SLK"), // SHARE URL LINK
|
//SHARE_LINK("SLK", "SLK"), // SHARE URL LINK
|
||||||
PUBLIC_LINK("PLK", "PLK"), // PUBLIC LINK
|
PUBLIC_LINK("PLK", "PLK"), // PUBLIC LINK
|
||||||
// ADD_ADMINISTRATOR("AAD", "AAD"), // ADD_ADMINISTRATOR
|
// ADD_ADMINISTRATOR("AAD", "AAD"), // ADD_ADMINISTRATOR
|
||||||
VRE_CHANGE_PERIMISSIONS("CHP", "CHP"),
|
VRE_CHANGE_PERIMISSIONS("CHP", "CHP"),
|
||||||
EDIT_PERMISSIONS("EDP", "EDP"), // EDIT PERMISSIONS
|
EDIT_PERMISSIONS("EDP", "EDP"), // EDIT PERMISSIONS
|
||||||
FOLDER_LINK("FRL", "FRL"), // FOLDER LINK
|
//FOLDER_LINK("FRL", "FRL"), // FOLDER LINK
|
||||||
FOLDER_LINK_REMOVE("FPR", "FPR"),
|
//FOLDER_LINK_REMOVE("FPR", "FPR"),
|
||||||
VERSIONING("VRN", "VRN"), // VERSIONING
|
VERSIONING("VRN", "VRN"), // VERSIONING
|
||||||
EXECUTE_DM_TASK("EDT", "EDT"), //EXECUTE DM TASK
|
EXECUTE_DM_TASK("EDT", "EDT"), //EXECUTE DM TASK
|
||||||
SEND_TO_SWITCHBOARD("SDSB", "SDSB"), //SEND_TO_SWITCHBOARD
|
SEND_TO_SWITCHBOARD("SDSB", "SDSB"), //SEND_TO_SWITCHBOARD
|
||||||
|
|
|
@ -9,5 +9,5 @@ import com.google.gwt.event.shared.EventHandler;
|
||||||
*/
|
*/
|
||||||
public interface GetPublicLinkEventHandler extends EventHandler {
|
public interface GetPublicLinkEventHandler extends EventHandler {
|
||||||
|
|
||||||
void onGetPublicLink(GetPublicLinkEvent getPublicLinkEvent);
|
void onGetPublicLink(GetShareableLink getPublicLinkEvent);
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,12 +6,13 @@ import com.google.gwt.event.shared.GwtEvent;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Class GetPublicLinkEvent.
|
* The Class GetShareableLink.
|
||||||
*
|
*
|
||||||
* @author Francesco Mangiacrapa francesco.mangiacrapa{@literal @}isti.cnr.it
|
* @author Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it)
|
||||||
* Jan 8, 2019
|
*
|
||||||
|
* Sep 20, 2019
|
||||||
*/
|
*/
|
||||||
public class GetPublicLinkEvent extends GwtEvent<GetPublicLinkEventHandler> {
|
public class GetShareableLink extends GwtEvent<GetPublicLinkEventHandler> {
|
||||||
public static Type<GetPublicLinkEventHandler> TYPE = new Type<GetPublicLinkEventHandler>();
|
public static Type<GetPublicLinkEventHandler> TYPE = new Type<GetPublicLinkEventHandler>();
|
||||||
|
|
||||||
private FileModel targetFile = null;
|
private FileModel targetFile = null;
|
||||||
|
@ -23,7 +24,7 @@ public class GetPublicLinkEvent extends GwtEvent<GetPublicLinkEventHandler> {
|
||||||
* @param target the target
|
* @param target the target
|
||||||
* @param version the version
|
* @param version the version
|
||||||
*/
|
*/
|
||||||
public GetPublicLinkEvent(FileModel target, String version) {
|
public GetShareableLink(FileModel target, String version) {
|
||||||
this.targetFile = target;
|
this.targetFile = target;
|
||||||
this.version = version;
|
this.version = version;
|
||||||
}
|
}
|
|
@ -23,10 +23,8 @@ import org.gcube.portlets.user.workspace.client.event.ExecuteDataMinerTaskEvent;
|
||||||
import org.gcube.portlets.user.workspace.client.event.FileDownloadEvent;
|
import org.gcube.portlets.user.workspace.client.event.FileDownloadEvent;
|
||||||
import org.gcube.portlets.user.workspace.client.event.FileDownloadEvent.DownloadType;
|
import org.gcube.portlets.user.workspace.client.event.FileDownloadEvent.DownloadType;
|
||||||
import org.gcube.portlets.user.workspace.client.event.FileUploadEvent;
|
import org.gcube.portlets.user.workspace.client.event.FileUploadEvent;
|
||||||
import org.gcube.portlets.user.workspace.client.event.GetFolderLinkEvent;
|
|
||||||
import org.gcube.portlets.user.workspace.client.event.GetInfoEvent;
|
import org.gcube.portlets.user.workspace.client.event.GetInfoEvent;
|
||||||
import org.gcube.portlets.user.workspace.client.event.GetPublicLinkEvent;
|
import org.gcube.portlets.user.workspace.client.event.GetShareableLink;
|
||||||
import org.gcube.portlets.user.workspace.client.event.GetShareLinkEvent;
|
|
||||||
import org.gcube.portlets.user.workspace.client.event.ImagePreviewEvent;
|
import org.gcube.portlets.user.workspace.client.event.ImagePreviewEvent;
|
||||||
import org.gcube.portlets.user.workspace.client.event.MoveItemsEvent;
|
import org.gcube.portlets.user.workspace.client.event.MoveItemsEvent;
|
||||||
import org.gcube.portlets.user.workspace.client.event.OpenUrlEvent;
|
import org.gcube.portlets.user.workspace.client.event.OpenUrlEvent;
|
||||||
|
@ -169,39 +167,41 @@ public class ContextMenuTree {
|
||||||
contextMenu.add(mnFileVersioning);
|
contextMenu.add(mnFileVersioning);
|
||||||
|
|
||||||
|
|
||||||
//SHARE LINK
|
// //SHARE LINK
|
||||||
MenuItem mnGetLink = new MenuItem();
|
// MenuItem mnGetLink = new MenuItem();
|
||||||
mnGetLink.setId(WorkspaceOperation.SHARE_LINK.getId());
|
// mnGetLink.setId(WorkspaceOperation.SHARE_LINK.getId());
|
||||||
mnGetLink.setText(ConstantsExplorer.MESSAGE_SHARE_LINK);
|
// mnGetLink.setText(ConstantsExplorer.MESSAGE_SHARE_LINK);
|
||||||
mnGetLink.setIcon(Resources.getIconShareLink());
|
// mnGetLink.setIcon(Resources.getIconShareLink());
|
||||||
|
//
|
||||||
mnGetLink.addSelectionListener(new SelectionListener<MenuEvent>() {
|
// mnGetLink.addSelectionListener(new SelectionListener<MenuEvent>() {
|
||||||
public void componentSelected(MenuEvent ce) {
|
// public void componentSelected(MenuEvent ce) {
|
||||||
|
//
|
||||||
for (FileModel sel : listSelectedItems) {
|
// for (FileModel sel : listSelectedItems) {
|
||||||
eventBus.fireEvent(new GetShareLinkEvent(sel));
|
// eventBus.fireEvent(new GetShareLinkEvent(sel));
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
//
|
||||||
contextMenu.add(mnGetLink);
|
// contextMenu.add(mnGetLink);
|
||||||
|
|
||||||
//PUBLIC LINK
|
//PUBLIC LINK
|
||||||
MenuItem mnPublicLink = new MenuItem();
|
MenuItem mnPublicLink = new MenuItem();
|
||||||
mnPublicLink.setId(WorkspaceOperation.PUBLIC_LINK.getId());
|
mnPublicLink.setId(WorkspaceOperation.PUBLIC_LINK.getId());
|
||||||
mnPublicLink.setText(ConstantsExplorer.MESSAGE_PUBLIC_LINK);
|
mnPublicLink.setText(ConstantsExplorer.MESSAGE_SHAREABLE_LINK);
|
||||||
mnPublicLink.setIcon(Resources.getIconPublicLink());
|
mnPublicLink.setIcon(Resources.getIconShareLink());
|
||||||
|
|
||||||
mnPublicLink.addSelectionListener(new SelectionListener<MenuEvent>() {
|
mnPublicLink.addSelectionListener(new SelectionListener<MenuEvent>() {
|
||||||
public void componentSelected(MenuEvent ce) {
|
public void componentSelected(MenuEvent ce) {
|
||||||
|
|
||||||
for (FileModel sel : listSelectedItems) {
|
for (FileModel sel : listSelectedItems) {
|
||||||
//see Task #17552
|
//see Task #17552
|
||||||
if(sel.isDirectory()) {
|
// if(sel.isDirectory()) {
|
||||||
eventBus.fireEvent(new GetFolderLinkEvent(sel, true));
|
// eventBus.fireEvent(new GetFolderLinkEvent(sel, true));
|
||||||
}else {
|
// }else {
|
||||||
eventBus.fireEvent(new GetPublicLinkEvent(sel, null));
|
// eventBus.fireEvent(new GetShareableLink(sel, null));
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
|
AppControllerExplorer.getEventBus().fireEvent(new GetShareableLink(sel, null));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -209,43 +209,43 @@ public class ContextMenuTree {
|
||||||
contextMenu.add(mnPublicLink);
|
contextMenu.add(mnPublicLink);
|
||||||
|
|
||||||
|
|
||||||
//FOLDER LINK
|
// //FOLDER LINK
|
||||||
MenuItem mnFolderLink = new MenuItem();
|
// MenuItem mnFolderLink = new MenuItem();
|
||||||
mnFolderLink.setId(WorkspaceOperation.FOLDER_LINK.getId());
|
// mnFolderLink.setId(WorkspaceOperation.FOLDER_LINK.getId());
|
||||||
mnFolderLink.setText(ConstantsExplorer.MESSAGE_FOLDER_LINK);
|
// mnFolderLink.setText(ConstantsExplorer.MESSAGE_FOLDER_LINK);
|
||||||
mnFolderLink.setIcon(Resources.getIconFolderPublic());
|
// mnFolderLink.setIcon(Resources.getIconFolderPublic());
|
||||||
|
//
|
||||||
mnFolderLink.addSelectionListener(new SelectionListener<MenuEvent>() {
|
// mnFolderLink.addSelectionListener(new SelectionListener<MenuEvent>() {
|
||||||
public void componentSelected(MenuEvent ce) {
|
// public void componentSelected(MenuEvent ce) {
|
||||||
|
//
|
||||||
for (FileModel sel : listSelectedItems) {
|
// for (FileModel sel : listSelectedItems) {
|
||||||
if(sel.isDirectory())
|
// if(sel.isDirectory())
|
||||||
eventBus.fireEvent(new GetFolderLinkEvent(sel, true));
|
// eventBus.fireEvent(new GetFolderLinkEvent(sel, true));
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
//
|
||||||
//see Task #17552
|
// //see Task #17552
|
||||||
contextMenu.add(mnFolderLink);
|
// contextMenu.add(mnFolderLink);
|
||||||
|
|
||||||
|
|
||||||
//FOLDER LINK REMOVE
|
//FOLDER LINK REMOVE
|
||||||
MenuItem mnFolderLinkRemove = new MenuItem();
|
// MenuItem mnFolderLinkRemove = new MenuItem();
|
||||||
mnFolderLinkRemove.setId(WorkspaceOperation.FOLDER_LINK_REMOVE.getId());
|
// mnFolderLinkRemove.setId(WorkspaceOperation.FOLDER_LINK_REMOVE.getId());
|
||||||
mnFolderLinkRemove.setText(ConstantsExplorer.MESSAGE_FOLDER_LINK_REMOVE);
|
// mnFolderLinkRemove.setText(ConstantsExplorer.MESSAGE_FOLDER_LINK_REMOVE);
|
||||||
mnFolderLinkRemove.setIcon(Resources.getIconFolderPublicRemove());
|
// mnFolderLinkRemove.setIcon(Resources.getIconFolderPublicRemove());
|
||||||
|
//
|
||||||
|
// mnFolderLinkRemove.addSelectionListener(new SelectionListener<MenuEvent>() {
|
||||||
|
// public void componentSelected(MenuEvent ce) {
|
||||||
|
//
|
||||||
|
// for (FileModel sel : listSelectedItems) {
|
||||||
|
// if(sel.isDirectory())
|
||||||
|
// eventBus.fireEvent(new GetFolderLinkEvent(sel, false));
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
|
||||||
mnFolderLinkRemove.addSelectionListener(new SelectionListener<MenuEvent>() {
|
// contextMenu.add(mnFolderLinkRemove);
|
||||||
public void componentSelected(MenuEvent ce) {
|
|
||||||
|
|
||||||
for (FileModel sel : listSelectedItems) {
|
|
||||||
if(sel.isDirectory())
|
|
||||||
eventBus.fireEvent(new GetFolderLinkEvent(sel, false));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
contextMenu.add(mnFolderLinkRemove);
|
|
||||||
|
|
||||||
MenuItem mnHistory = new MenuItem();
|
MenuItem mnHistory = new MenuItem();
|
||||||
mnHistory.setIcon(Resources.getIconHistory());
|
mnHistory.setIcon(Resources.getIconHistory());
|
||||||
|
@ -864,6 +864,7 @@ public class ContextMenuTree {
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.RENAME.getId()).setVisible(true);
|
contextMenu.getItemByItemId(WorkspaceOperation.RENAME.getId()).setVisible(true);
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.REMOVE.getId()).setVisible(true);
|
contextMenu.getItemByItemId(WorkspaceOperation.REMOVE.getId()).setVisible(true);
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.HISTORY.getId()).setVisible(true);
|
contextMenu.getItemByItemId(WorkspaceOperation.HISTORY.getId()).setVisible(true);
|
||||||
|
contextMenu.getItemByItemId(WorkspaceOperation.PUBLIC_LINK.getId()).setVisible(false);
|
||||||
|
|
||||||
|
|
||||||
//SELECTED ITEM IS A FOLDER
|
//SELECTED ITEM IS A FOLDER
|
||||||
|
@ -875,12 +876,13 @@ public class ContextMenuTree {
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.SHARE.getId()).setVisible(true);
|
contextMenu.getItemByItemId(WorkspaceOperation.SHARE.getId()).setVisible(true);
|
||||||
//contextMenu.getItemByItemId(WorkspaceOperation.SHOW.getId()).setVisible(false);
|
//contextMenu.getItemByItemId(WorkspaceOperation.SHOW.getId()).setVisible(false);
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.REFRESH_FOLDER.getId()).setVisible(true);
|
contextMenu.getItemByItemId(WorkspaceOperation.REFRESH_FOLDER.getId()).setVisible(true);
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.FOLDER_LINK.getId()).setVisible(true); //create folder link, set folder as public
|
//contextMenu.getItemByItemId(WorkspaceOperation.FOLDER_LINK.getId()).setVisible(true); //create folder link, set folder as public
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.EXECUTE_DM_TASK.getId()).setVisible(true);
|
contextMenu.getItemByItemId(WorkspaceOperation.EXECUTE_DM_TASK.getId()).setVisible(true);
|
||||||
|
contextMenu.getItemByItemId(WorkspaceOperation.PUBLIC_LINK.getId()).setVisible(true);
|
||||||
|
|
||||||
if(selectedItem.isShared()){//IS SHARED
|
if(selectedItem.isShared()){//IS SHARED
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.INSERT_SHARED_FOLDER.getId()).setVisible(false);
|
contextMenu.getItemByItemId(WorkspaceOperation.INSERT_SHARED_FOLDER.getId()).setVisible(false);
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.SHARE_LINK.getId()).setVisible(true);
|
//contextMenu.getItemByItemId(WorkspaceOperation.SHARE_LINK.getId()).setVisible(true);
|
||||||
if(selectedItem.isShareable()){ //IS SHARABLE
|
if(selectedItem.isShareable()){ //IS SHARABLE
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.UNSHARE.getId()).setVisible(true);
|
contextMenu.getItemByItemId(WorkspaceOperation.UNSHARE.getId()).setVisible(true);
|
||||||
}else { //IS SUBFOLDER
|
}else { //IS SUBFOLDER
|
||||||
|
@ -888,6 +890,7 @@ public class ContextMenuTree {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(selectedItem.isRoot()){ //IS ROOT
|
if(selectedItem.isRoot()){ //IS ROOT
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.SHARE.getId()).setVisible(false);
|
contextMenu.getItemByItemId(WorkspaceOperation.SHARE.getId()).setVisible(false);
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.INSERT_SHARED_FOLDER.getId()).setVisible(true);
|
contextMenu.getItemByItemId(WorkspaceOperation.INSERT_SHARED_FOLDER.getId()).setVisible(true);
|
||||||
|
@ -896,12 +899,14 @@ public class ContextMenuTree {
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.REMOVE.getId()).setVisible(false);
|
contextMenu.getItemByItemId(WorkspaceOperation.REMOVE.getId()).setVisible(false);
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.MOVE.getId()).setVisible(false);
|
contextMenu.getItemByItemId(WorkspaceOperation.MOVE.getId()).setVisible(false);
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.DOWNLOAD.getId()).setVisible(false);
|
contextMenu.getItemByItemId(WorkspaceOperation.DOWNLOAD.getId()).setVisible(false);
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.FOLDER_LINK.getId()).setVisible(false);
|
contextMenu.getItemByItemId(WorkspaceOperation.PUBLIC_LINK.getId()).setVisible(false);
|
||||||
|
//contextMenu.getItemByItemId(WorkspaceOperation.FOLDER_LINK.getId()).setVisible(false);
|
||||||
showExecuteOperations(false);
|
showExecuteOperations(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(selectedItem.isPublic())
|
if(selectedItem.isPublic()) {
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.FOLDER_LINK_REMOVE.getId()).setVisible(true);
|
//contextMenu.getItemByItemId(WorkspaceOperation.FOLDER_LINK_REMOVE.getId()).setVisible(true);
|
||||||
|
}
|
||||||
|
|
||||||
GWT.log("HideSharing = " + hideSharing);
|
GWT.log("HideSharing = " + hideSharing);
|
||||||
//not supported in tree Reports
|
//not supported in tree Reports
|
||||||
|
@ -984,7 +989,7 @@ public class ContextMenuTree {
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.RENAME.getId()).setVisible(false);
|
contextMenu.getItemByItemId(WorkspaceOperation.RENAME.getId()).setVisible(false);
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.REMOVE.getId()).setVisible(false);
|
contextMenu.getItemByItemId(WorkspaceOperation.REMOVE.getId()).setVisible(false);
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.MOVE.getId()).setVisible(false);
|
contextMenu.getItemByItemId(WorkspaceOperation.MOVE.getId()).setVisible(false);
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.FOLDER_LINK.getId()).setVisible(false);
|
contextMenu.getItemByItemId(WorkspaceOperation.PUBLIC_LINK.getId()).setVisible(false);
|
||||||
showExecuteOperations(false);
|
showExecuteOperations(false);
|
||||||
|
|
||||||
//ADDED 14/03/2014
|
//ADDED 14/03/2014
|
||||||
|
@ -995,7 +1000,7 @@ public class ContextMenuTree {
|
||||||
showExecuteOperations(false);
|
showExecuteOperations(false);
|
||||||
showWriteOperations(false);
|
showWriteOperations(false);
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.DOWNLOAD.getId()).setVisible(false);
|
contextMenu.getItemByItemId(WorkspaceOperation.DOWNLOAD.getId()).setVisible(false);
|
||||||
contextMenu.getItemByItemId(WorkspaceOperation.FOLDER_LINK.getId()).setVisible(false);
|
contextMenu.getItemByItemId(WorkspaceOperation.PUBLIC_LINK.getId()).setVisible(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,7 +193,7 @@ public class DialogShareableLink extends Composite {
|
||||||
alertFolderPublicLink.setVisible(true);
|
alertFolderPublicLink.setVisible(true);
|
||||||
//cgRemovePublicLink.setVisible(true);
|
//cgRemovePublicLink.setVisible(true);
|
||||||
filedEnableDisableSharing.setVisible(true);
|
filedEnableDisableSharing.setVisible(true);
|
||||||
labelLinkSharing.setText("Anyone with the Public Link can access to the content");
|
labelLinkSharing.setText("Anyone with the Public Link can view");
|
||||||
cgPublicLink.setVisible(true);
|
cgPublicLink.setVisible(true);
|
||||||
acessToFolderLink(item, true);
|
acessToFolderLink(item, true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
visible="false">
|
visible="false">
|
||||||
<b:Icon type="ROTATE_RIGHT" spin="true" />
|
<b:Icon type="ROTATE_RIGHT" spin="true" />
|
||||||
</b:Alert>
|
</b:Alert>
|
||||||
|
|
||||||
<b:Row ui:field="fieldPrivateSharing"
|
<b:Row ui:field="fieldPrivateSharing"
|
||||||
addStyleNames="{style.margin-bottom-20}">
|
addStyleNames="{style.margin-bottom-20}">
|
||||||
<b:Column size="2">
|
<b:Column size="2">
|
||||||
|
@ -46,7 +47,13 @@
|
||||||
<citem:SwitchButton
|
<citem:SwitchButton
|
||||||
ui:field="switchButtonPrivate" addStyleNames="{style.not-active}"></citem:SwitchButton>
|
ui:field="switchButtonPrivate" addStyleNames="{style.not-active}"></citem:SwitchButton>
|
||||||
</b:Column>
|
</b:Column>
|
||||||
|
<b:Row>
|
||||||
|
<b:Column size="4" addStyleNames="{style.padding-left-30}">
|
||||||
|
<g:Label ui:field="labelLinkPrivateSharing">(Only the) Members belonging to the share can view</g:Label>
|
||||||
|
</b:Column>
|
||||||
</b:Row>
|
</b:Row>
|
||||||
|
</b:Row>
|
||||||
|
|
||||||
<b:Fieldset ui:field="fieldSetPrivate">
|
<b:Fieldset ui:field="fieldSetPrivate">
|
||||||
<g:HTMLPanel>
|
<g:HTMLPanel>
|
||||||
<!-- <b:Legend>sharing....</b:Legend> -->
|
<!-- <b:Legend>sharing....</b:Legend> -->
|
||||||
|
@ -54,7 +61,7 @@
|
||||||
|
|
||||||
<b:Well>
|
<b:Well>
|
||||||
By sharing the following Private Link
|
By sharing the following Private Link
|
||||||
with
|
to folder with
|
||||||
your
|
your
|
||||||
coworkers,
|
coworkers,
|
||||||
you will
|
you will
|
||||||
|
@ -94,8 +101,7 @@
|
||||||
<b:Well ui:field="alertFolderPublicLink" visible="false">By sharing
|
<b:Well ui:field="alertFolderPublicLink" visible="false">By sharing
|
||||||
the following Public
|
the following Public
|
||||||
Link
|
Link
|
||||||
to folder with
|
to folder, you will
|
||||||
your coworkers, you will
|
|
||||||
enact anyone
|
enact anyone
|
||||||
with the
|
with the
|
||||||
link to
|
link to
|
||||||
|
|
Loading…
Reference in New Issue