From ce4af92151dfe837bd9c7f92510eec5c926018fa Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Fri, 22 Feb 2019 10:44:50 +0000 Subject: [PATCH] ref 13226:StorageHub - Update workspace-sharing-widget to SH https://support.d4science.org/issues/13226 Updated to StorageHub git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@177221 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/rpc/GWTWorkspaceService.java | 676 +++++++-------- .../client/rpc/GWTWorkspaceServiceAsync.java | 770 +++++++++--------- 2 files changed, 723 insertions(+), 723 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/rpc/GWTWorkspaceService.java b/src/main/java/org/gcube/portlets/user/workspace/client/rpc/GWTWorkspaceService.java index a11447e..1824860 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/client/rpc/GWTWorkspaceService.java +++ b/src/main/java/org/gcube/portlets/user/workspace/client/rpc/GWTWorkspaceService.java @@ -13,21 +13,16 @@ import org.gcube.portlets.user.workspace.client.model.FileTrashedModel; import org.gcube.portlets.user.workspace.client.model.FileVersionModel; import org.gcube.portlets.user.workspace.client.model.FolderModel; import org.gcube.portlets.user.workspace.client.model.GcubeVRE; -import org.gcube.portlets.user.workspace.client.model.InfoContactModel; import org.gcube.portlets.user.workspace.client.model.ScopeModel; import org.gcube.portlets.user.workspace.client.model.SmartFolderModel; import org.gcube.portlets.user.workspace.client.model.SubTree; import org.gcube.portlets.user.workspace.client.workspace.GWTWorkspaceItem; -import org.gcube.portlets.user.workspace.shared.AllowAccess; -import org.gcube.portlets.user.workspace.shared.ExtendedWorkspaceACL; import org.gcube.portlets.user.workspace.shared.GarbageItem; import org.gcube.portlets.user.workspace.shared.PublicLink; -import org.gcube.portlets.user.workspace.shared.ReportAssignmentACL; import org.gcube.portlets.user.workspace.shared.SessionExpiredException; import org.gcube.portlets.user.workspace.shared.TrashContent; import org.gcube.portlets.user.workspace.shared.TrashOperationContent; import org.gcube.portlets.user.workspace.shared.UserBean; -import org.gcube.portlets.user.workspace.shared.WorkspaceACL; import org.gcube.portlets.user.workspace.shared.WorkspaceOperationResult; import org.gcube.portlets.user.workspace.shared.WorkspaceTrashOperation; import org.gcube.portlets.user.workspace.shared.WorkspaceUserQuote; @@ -37,35 +32,40 @@ import org.gcube.portlets.user.workspace.shared.accounting.GxtAccountingField; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; - /** * The Interface GWTWorkspaceService. * - * @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it + * @author Francesco Mangiacrapa francesco.mangiacrapaATisti.cnr.it */ @RemoteServiceRelativePath("WorkspaceService") -public interface GWTWorkspaceService extends RemoteService{ +public interface GWTWorkspaceService extends RemoteService { /** * Gets the link for send to switch board. * - * @param itemId the item id + * @param itemId + * the item id * @return the link for send to switch board - * @throws Exception the exception + * @throws Exception + * the exception */ - String getLinkForSendToSwitchBoard(String itemId) throws Exception ; + String getLinkForSendToSwitchBoard(String itemId) throws Exception; + /** * Gets the servlet context path. * - * @param protocol the protocol + * @param protocol + * the protocol * @return the servlet context path */ String getServletContextPath(String protocol); + /** * Gets the user workspace size. * * @return the user workspace size - * @throws Exception the exception + * @throws Exception + * the exception */ String getUserWorkspaceSize() throws Exception; @@ -73,104 +73,119 @@ public interface GWTWorkspaceService extends RemoteService{ * Gets the root for tree. * * @return the root for tree - * @throws Exception the exception + * @throws Exception + * the exception */ public FolderModel getRootForTree() throws Exception; - /** - * Gets the root for tree. - * - * @return the root for tree - * @throws Exception the exception - */ - //public FolderModel getRootForTree(String scopeId) throws Exception; - /** * Gets the all scope. * * @return the all scope - * @throws Exception the exception + * @throws Exception + * the exception */ public List getAllScope() throws Exception; /** * Gets the folder children. * - * @param folder the folder + * @param folder + * the folder * @return the folder children - * @throws Exception the exception - * @throws SessionExpiredException the session expired exception + * @throws Exception + * the exception + * @throws SessionExpiredException + * the session expired exception */ public List getFolderChildren(FolderModel folder) throws Exception, SessionExpiredException; /** * Gets the folder children for file grid. * - * @param folder the folder + * @param folder + * the folder * @return the folder children for file grid - * @throws Exception the exception - * @throws SessionExpiredException the session expired exception + * @throws Exception + * the exception + * @throws SessionExpiredException + * the session expired exception */ public List getFolderChildrenForFileGrid(FileModel folder) throws Exception, SessionExpiredException; /** * Gets the details file. * - * @param item the item + * @param item + * the item * @return the details file - * @throws Exception the exception + * @throws Exception + * the exception */ public FileDetailsModel getDetailsFile(FileModel item) throws Exception; /** * Creates the folder. * - * @param nameFolder the name folder - * @param description the description - * @param parent the parent + * @param nameFolder + * the name folder + * @param description + * the description + * @param parent + * the parent * @return the folder model - * @throws Exception the exception + * @throws Exception + * the exception */ public FolderModel createFolder(String nameFolder, String description, FileModel parent) throws Exception; /** * Gets the children sub tree to root by identifier. * - * @param itemIdentifier the item identifier + * @param itemIdentifier + * the item identifier * @return the children sub tree to root by identifier - * @throws Exception the exception + * @throws Exception + * the exception */ public ArrayList getChildrenSubTreeToRootByIdentifier(String itemIdentifier) throws Exception; /** * Gets the smart folder results by category. * - * @param category the category + * @param category + * the category * @return the smart folder results by category - * @throws Exception the exception + * @throws Exception + * the exception */ - List getSmartFolderResultsByCategory( - GXTCategorySmartFolder category) throws Exception; + List getSmartFolderResultsByCategory(GXTCategorySmartFolder category) throws Exception; /** * Creates the smart folder. * - * @param name the name - * @param description the description - * @param query the query - * @param parentId the parent id + * @param name + * the name + * @param description + * the description + * @param query + * the query + * @param parentId + * the parent id * @return the smart folder model - * @throws Exception the exception + * @throws Exception + * the exception */ - SmartFolderModel createSmartFolder(String name, String description, - String query, String parentId) throws Exception; + SmartFolderModel createSmartFolder(String name, String description, String query, String parentId) throws Exception; /** * Gets the smart folder results by id. * - * @param folderId the folder id + * @param folderId + * the folder id * @return the smart folder results by id - * @throws Exception the exception + * @throws Exception + * the exception */ public List getSmartFolderResultsById(String folderId) throws Exception; @@ -178,133 +193,198 @@ public interface GWTWorkspaceService extends RemoteService{ * Gets the all smart folders. * * @return the all smart folders - * @throws Exception the exception + * @throws Exception + * the exception */ public List getAllSmartFolders() throws Exception; /** * Gets the image by id. * - * @param identifier the identifier - * @param isInteralImage the is interal image - * @param fullDetails the full details + * @param identifier + * the identifier + * @param isInteralImage + * the is interal image + * @param fullDetails + * the full details * @return the image by id - * @throws Exception the exception + * @throws Exception + * the exception */ - public GWTWorkspaceItem getImageById(String identifier, boolean isInteralImage, boolean fullDetails) throws Exception; + public GWTWorkspaceItem getImageById(String identifier, boolean isInteralImage, boolean fullDetails) + throws Exception; /** * Gets the url by id. * - * @param identifier the identifier - * @param isInternalUrl the is internal url - * @param fullDetails the full details + * @param identifier + * the identifier + * @param isInternalUrl + * the is internal url + * @param fullDetails + * the full details * @return the url by id - * @throws Exception the exception + * @throws Exception + * the exception */ public GWTWorkspaceItem getUrlById(String identifier, boolean isInternalUrl, boolean fullDetails) throws Exception; - /** * Creates the external url. * - * @param parentId the parent id - * @param name the name - * @param description the description - * @param url the url + * @param parentId + * the parent id + * @param name + * the name + * @param description + * the description + * @param url + * the url * @return the file model - * @throws Exception the exception + * @throws Exception + * the exception */ public FileModel createExternalUrl(String parentId, String name, String description, String url) throws Exception; /** * Sets the value in session. * - * @param name the name - * @param value the value - * @throws Exception the exception + * @param name + * the name + * @param value + * the value + * @throws Exception + * the exception */ public void setValueInSession(String name, String value) throws Exception; /** * Gets the items by search name. * - * @param text the text - * @param folderId the folder id + * @param text + * the text + * @param folderId + * the folder id * @return the items by search name - * @throws Exception the exception + * @throws Exception + * the exception */ List getItemsBySearchName(String text, String folderId) throws Exception; /** * Delete item. * - * @param itemId the item id + * @param itemId + * the item id * @return the boolean - * @throws Exception the exception + * @throws Exception + * the exception */ public Boolean deleteItem(String itemId) throws Exception; /** * Rename item. * - * @param itemId the item id - * @param newName the new name - * @param oldName the old name + * @param itemId + * the item id + * @param newName + * the new name + * @param oldName + * the old name * @return the boolean - * @throws Exception the exception + * @throws Exception + * the exception */ public Boolean renameItem(String itemId, String newName, String oldName) throws Exception; /** * Removes the smart folder. * - * @param itemId the item id - * @param name the name + * @param itemId + * the item id + * @param name + * the name * @return the boolean - * @throws Exception the exception + * @throws Exception + * the exception */ public Boolean removeSmartFolder(String itemId, String name) throws Exception; - /** - * Gets the all contacts. - * - * @return the all contacts - * @throws Exception the exception - */ - public List getAllContacts() throws Exception; - /** * Gets the url web dav. * - * @param itemId the item id + * @param itemId + * the item id * @return the url web dav - * @throws Exception the exception + * @throws Exception + * the exception */ public String getUrlWebDav(String itemId) throws Exception; /** * Send to by id. * - * @param listContactsId the list contacts id - * @param listAttachmentsId the list attachments id - * @param subject the subject - * @param text the text + * @param listContactsId + * the list contacts id + * @param listAttachmentsId + * the list attachments id + * @param subject + * the subject + * @param text + * the text * @return true, if successful - * @throws Exception the exception + * @throws Exception + * the exception */ - public boolean sendToById(List listContactsId, List listAttachmentsId, String subject, String text) throws Exception; + public boolean sendToById(List listContactsId, List listAttachmentsId, String subject, String text) + throws Exception; /** * Gets the time series by id. * - * @param identifier the identifier + * @param identifier + * the identifier * @return the time series by id - * @throws Exception the exception + * @throws Exception + * the exception */ public GWTWorkspaceItem getTimeSeriesById(String identifier) throws Exception; /** +<<<<<<< .mine +||||||| .r176880 + * Share folder. + * + * @param folder the folder + * @param listContacts the list contacts + * @param isNewFolder the is new folder + * @param acl the acl + * @return true, if successful + * @throws Exception the exception + */ + boolean shareFolder(FileModel folder, List listContacts, + boolean isNewFolder, WorkspaceACL acl) throws Exception; + + /** + * Gets the list user shared by folder shared id. + * + * @param itemId the item id + * @return the list user shared by folder shared id + * @throws Exception the exception + */ + public List getListUserSharedByFolderSharedId(String itemId) throws Exception; + + /** + * Un shared folder by folder shared id. + * + * @param folderSharedId the folder shared id + * @return true, if successful + * @throws Exception the exception + */ + public boolean unSharedFolderByFolderSharedId(String folderSharedId) throws Exception; + + /** +======= * Share folder. * * @param folder the folder @@ -336,307 +416,254 @@ public interface GWTWorkspaceService extends RemoteService{ public boolean unSharedFolderByFolderSharedId(String folderSharedId) throws Exception; /** +>>>>>>> .r177215 * Gets the list parents by item identifier. * - * @param itemIdentifier the item identifier - * @param includeItemAsParent the include item as parent + * @param itemIdentifier + * the item identifier + * @param includeItemAsParent + * the include item as parent * @return the list parents by item identifier - * @throws Exception the exception + * @throws Exception + * the exception */ - public List getListParentsByItemIdentifier(String itemIdentifier, boolean includeItemAsParent) throws Exception; + public List getListParentsByItemIdentifier(String itemIdentifier, boolean includeItemAsParent) + throws Exception; /** * Gets the URL from application profile. * - * @param oid the oid + * @param oid + * the oid * @return the URL from application profile - * @throws Exception the exception + * @throws Exception + * the exception */ public String getURLFromApplicationProfile(String oid) throws Exception; - /** - * Gets the owner by item id. - * - * @param itemId the item id - * @return the owner by item id - * @throws Exception the exception - */ - public InfoContactModel getOwnerByItemId(String itemId) throws Exception; - /** * Item exists in workpace folder. * - * @param parentId the parent id - * @param itemName the item name + * @param parentId + * the parent id + * @param itemName + * the item name * @return the string - * @throws Exception the exception + * @throws Exception + * the exception */ public String itemExistsInWorkpaceFolder(String parentId, String itemName) throws Exception; /** * Gets the item creation date by id. * - * @param itemId the item id + * @param itemId + * the item id * @return the item creation date by id - * @throws Exception the exception + * @throws Exception + * the exception */ public Date getItemCreationDateById(String itemId) throws Exception; /** * Load size by item id. * - * @param itemId the item id + * @param itemId + * the item id * @return the long - * @throws Exception the exception + * @throws Exception + * the exception */ public Long loadSizeByItemId(String itemId) throws Exception; /** * Load last modification date by id. * - * @param itemId the item id + * @param itemId + * the item id * @return the date - * @throws Exception the exception + * @throws Exception + * the exception */ public Date loadLastModificationDateById(String itemId) throws Exception; /** * Gets the parent by item id. * - * @param identifier the identifier + * @param identifier + * the identifier * @return the parent by item id - * @throws Exception the exception + * @throws Exception + * the exception */ public FileModel getParentByItemId(String identifier) throws Exception; /** * Gets the accounting readers. * - * @param identifier the identifier + * @param identifier + * the identifier * @return the accounting readers - * @throws Exception the exception + * @throws Exception + * the exception */ - public List getAccountingReaders(String identifier) - throws Exception; + public List getAccountingReaders(String identifier) throws Exception; /** * Gets the accounting history. * - * @param identifier the identifier + * @param identifier + * the identifier * @return the accounting history - * @throws Exception the exception + * @throws Exception + * the exception */ public List getAccountingHistory(String identifier) throws Exception; /** * Gets the item for file grid. * - * @param itemId the item id + * @param itemId + * the item id * @return the item for file grid - * @throws Exception the exception + * @throws Exception + * the exception */ public FileGridModel getItemForFileGrid(String itemId) throws Exception; /** * Gets the folder children for file grid by id. * - * @param folderId the folder id + * @param folderId + * the folder id * @return the folder children for file grid by id - * @throws Exception the exception - * @throws SessionExpiredException the session expired exception + * @throws Exception + * the exception + * @throws SessionExpiredException + * the session expired exception */ List getFolderChildrenForFileGridById(String folderId) throws Exception, SessionExpiredException; /** * Gets the short url. * - * @param longUrl the long url + * @param longUrl + * the long url * @return the short url - * @throws Exception the exception + * @throws Exception + * the exception */ String getShortUrl(String longUrl) throws Exception; - /** * Gets the public link for file item id. * - * @param itemId the item id - * @param shortenUrl the shorten url + * @param itemId + * the item id + * @param shortenUrl + * the shorten url * @return the public link for file item id - * @throws Exception the exception + * @throws Exception + * the exception */ - PublicLink getPublicLinkForFileItemId(String itemId, boolean shortenUrl) - throws Exception; + PublicLink getPublicLinkForFileItemId(String itemId, boolean shortenUrl) throws Exception; /** * Checks if is session expired. * * @return true, if is session expired - * @throws Exception the exception + * @throws Exception + * the exception */ boolean isSessionExpired() throws Exception; - - - /** * Delete list items for ids. * - * @param ids the ids + * @param ids + * the ids * @return the list - * @throws Exception the exception + * @throws Exception + * the exception */ List deleteListItemsForIds(List ids) throws Exception; /** * Copy items. * - * @param idsItem the ids item - * @param destinationFolderId the destination folder id + * @param idsItem + * the ids item + * @param destinationFolderId + * the destination folder id * @return true, if successful - * @throws Exception the exception + * @throws Exception + * the exception */ - WorkspaceOperationResult copyItems(List idsItem, String destinationFolderId) - throws Exception; - + WorkspaceOperationResult copyItems(List idsItem, String destinationFolderId) throws Exception; /** * Move items. * - * @param ids the ids - * @param destinationId the destination id + * @param ids + * the ids + * @param destinationId + * the destination id * @return the workpace operation result - * @throws Exception the exception + * @throws Exception + * the exception */ WorkspaceOperationResult moveItems(List ids, String destinationId) throws Exception; - /** - * Gets the AC ls. - * - * @return the AC ls - * @throws Exception the exception - */ - List getACLs() throws Exception; - - /** - * Sets the ac ls. - * - * @param folderId the folder id - * @param listLogins the list logins - * @param aclType the acl type - * @throws Exception the exception - */ - void setACLs(String folderId, List listLogins, String aclType) - throws Exception; - /** * Gets the my login. * - * @param currentPortletUrl the current portlet url + * @param currentPortletUrl + * the current portlet url * @return the my login */ UserBean getMyLogin(String currentPortletUrl); - /** - * Update acl for vr eby group name. - * - * @param folderId the folder id - * @param aclType the acl type - * @throws Exception the exception - */ - void updateACLForVREbyGroupName(String folderId, String aclType) throws Exception; - - /** - * Gets the user acl for folder id. - * - * @param folderId the folder id - * @return the user acl for folder id - * @throws Exception the exception - */ - List getUserACLForFolderId(String folderId) throws Exception; - /** * Gets the trash content. * * @return the trash content - * @throws Exception the exception + * @throws Exception + * the exception */ List getTrashContent() throws Exception; - - /** - * Gets the AC ls description for workspace item by id. - * - * @param workspaceItemId the workspace item id - * @return the AC ls description for workspace item by id - * @throws Exception the exception - */ - String getACLsDescriptionForWorkspaceItemById(String workspaceItemId) throws Exception; - - /** - * Gets the users manager to shared folder. - * - * @param folderId the folder id - * @return the users manager to shared folder - * @throws Exception the exception - */ - List getUsersManagerToSharedFolder(String folderId) - throws Exception; - /** * Update trash content. * - * @param operation the operation + * @param operation + * the operation * @return the trash content - * @throws Exception the exception + * @throws Exception + * the exception */ TrashContent updateTrashContent(WorkspaceTrashOperation operation) throws Exception; /** * Execute operation on trash. * - * @param listTrashItemIds the list trash item ids - * @param operation the operation + * @param listTrashItemIds + * the list trash item ids + * @param operation + * the operation * @return the trash operation content - * @throws Exception the exception + * @throws Exception + * the exception */ - TrashOperationContent executeOperationOnTrash(List listTrashItemIds, - WorkspaceTrashOperation operation) throws Exception; - - /** - * Adds the administrators by folder id. - * - * @param folderId the folder id - * @param listContactIds the list contact ids - * @return true, if successful - * @throws Exception the exception - */ - boolean addAdministratorsByFolderId(String folderId, - List listContactIds) throws Exception; - - /** - * Gets the administrators by folder id. - * - * @param identifier the identifier - * @return the administrators by folder id - * @throws Exception the exception - */ - List getAdministratorsByFolderId(String identifier) throws Exception; - - /** - * Gets the ACL by shared folder id. - * - * @param identifier the identifier - * @return the ACL by shared folder id - * @throws Exception the exception - */ - WorkspaceACL getACLBySharedFolderId(String identifier) throws Exception; + TrashOperationContent executeOperationOnTrash(List listTrashItemIds, WorkspaceTrashOperation operation) + throws Exception; + /** * Gets the user workspace total items. * * @return the user workspace total items - * @throws Exception the exception + * @throws Exception + * the exception */ long getUserWorkspaceTotalItems() throws Exception; @@ -644,64 +671,64 @@ public interface GWTWorkspaceService extends RemoteService{ * Gets the user workspace quote. * * @return the user workspace quote - * @throws Exception the exception + * @throws Exception + * the exception */ WorkspaceUserQuote getUserWorkspaceQuote() throws Exception; /** * Gets the item description by id. * - * @param identifier the identifier + * @param identifier + * the identifier * @return the item description by id - * @throws Exception the exception + * @throws Exception + * the exception */ String getItemDescriptionById(String identifier) throws Exception; - /** - * Validate acl to user. - * - * @param folderId the folder id - * @param listLogins the list logins - * @param aclType the acl type - * @return the report assignment acl - * @throws Exception the exception - */ - ReportAssignmentACL validateACLToUser(String folderId, - List listLogins, String aclType) throws Exception; - /** * Load gcube item properties. * - * @param itemId the item id + * @param itemId + * the item id * @return the map - * @throws Exception the exception + * @throws Exception + * the exception */ Map loadGcubeItemProperties(String itemId) throws Exception; /** * Gets the HTML gcube item properties. * - * @param itemId the item id + * @param itemId + * the item id * @return the HTML gcube item properties - * @throws Exception the exception + * @throws Exception + * the exception */ String getHTMLGcubeItemProperties(String itemId) throws Exception; /** * Sets the gcube item properties. * - * @param itemId the item id - * @param properties the properties - * @throws Exception the exception + * @param itemId + * the item id + * @param properties + * the properties + * @throws Exception + * the exception */ void setGcubeItemProperties(String itemId, Map properties) throws Exception; /** * Gets the item for file tree. * - * @param itemId the item id + * @param itemId + * the item id * @return the item for file tree - * @throws Exception the exception + * @throws Exception + * the exception */ FileModel getItemForFileTree(String itemId) throws Exception; @@ -715,94 +742,91 @@ public interface GWTWorkspaceService extends RemoteService{ /** * Mark folder as public for folder item id. * - * @param itemId the item id - * @param b the b + * @param itemId + * the item id + * @param b + * the b * @return the public link - * @throws SessionExpiredException the session expired exception - * @throws Exception the exception + * @throws SessionExpiredException + * the session expired exception + * @throws Exception + * the exception */ PublicLink markFolderAsPublicForFolderItemId(String itemId, boolean b) throws SessionExpiredException, Exception; - - /** - * Access to folder link. - * - * @param itemId the item id - * @return the allow access - * @throws SessionExpiredException the session expired exception - * @throws Exception the exception - */ - AllowAccess accessToFolderLink(String itemId) throws SessionExpiredException, Exception; - - /** * Perform operation on versioned file. * - * @param fileId the file id - * @param olderVersionIDs the older version i ds - * @param operation the operation + * @param fileId + * the file id + * @param olderVersionIDs + * the older version i ds + * @param operation + * the operation * @return the list - * @throws Exception the exception + * @throws Exception + * the exception */ - List performOperationOnVersionedFile( - String fileId, List olderVersionIDs, - WorkspaceVersioningOperation operation) throws Exception; - + List performOperationOnVersionedFile(String fileId, List olderVersionIDs, + WorkspaceVersioningOperation operation) throws Exception; /** * Gets the version history. * - * @param fileIdentifier the file identifier + * @param fileIdentifier + * the file identifier * @return the version history - * @throws Exception the exception + * @throws Exception + * the exception */ List getVersionHistory(String fileIdentifier) throws Exception; - /** * Gets the images for folder. * - * @param folderId the folder id - * @param currentImageId the current image id + * @param folderId + * the folder id + * @param currentImageId + * the current image id * @return the images for folder - * @throws Exception the exception + * @throws Exception + * the exception */ List getImagesForFolder(String folderId, String currentImageId) throws Exception; - /** * Gets the list of vr es for logged user. * * @return the list of vr es for logged user - * @throws Exception the exception + * @throws Exception + * the exception */ - List getListOfVREsForLoggedUser() - throws Exception; - + List getListOfVREsForLoggedUser() throws Exception; /** * Checks if is item under sync. * - * @param itemId the item id + * @param itemId + * the item id * @return the boolean - * @throws Exception the exception + * @throws Exception + * the exception */ - Boolean isItemUnderSync(String itemId) - throws Exception; - + Boolean isItemUnderSync(String itemId) throws Exception; /** * Gets the public link for file item id to version. * - * @param itemId the item id - * @param version the version - * @param shortenUrl the shorten url + * @param itemId + * the item id + * @param version + * the version + * @param shortenUrl + * the shorten url * @return the public link for file item id to version * @throws Exception + * Error */ - PublicLink getPublicLinkForFileItemIdToVersion( - String itemId, String version, boolean shortenUrl) throws Exception; - - + PublicLink getPublicLinkForFileItemIdToVersion(String itemId, String version, boolean shortenUrl) throws Exception; } diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/rpc/GWTWorkspaceServiceAsync.java b/src/main/java/org/gcube/portlets/user/workspace/client/rpc/GWTWorkspaceServiceAsync.java index a8ba1cb..09d9432 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/client/rpc/GWTWorkspaceServiceAsync.java +++ b/src/main/java/org/gcube/portlets/user/workspace/client/rpc/GWTWorkspaceServiceAsync.java @@ -16,20 +16,15 @@ import org.gcube.portlets.user.workspace.client.model.FileTrashedModel; import org.gcube.portlets.user.workspace.client.model.FileVersionModel; import org.gcube.portlets.user.workspace.client.model.FolderModel; import org.gcube.portlets.user.workspace.client.model.GcubeVRE; -import org.gcube.portlets.user.workspace.client.model.InfoContactModel; import org.gcube.portlets.user.workspace.client.model.ScopeModel; import org.gcube.portlets.user.workspace.client.model.SmartFolderModel; import org.gcube.portlets.user.workspace.client.model.SubTree; import org.gcube.portlets.user.workspace.client.workspace.GWTWorkspaceItem; -import org.gcube.portlets.user.workspace.shared.AllowAccess; -import org.gcube.portlets.user.workspace.shared.ExtendedWorkspaceACL; import org.gcube.portlets.user.workspace.shared.GarbageItem; import org.gcube.portlets.user.workspace.shared.PublicLink; -import org.gcube.portlets.user.workspace.shared.ReportAssignmentACL; import org.gcube.portlets.user.workspace.shared.TrashContent; import org.gcube.portlets.user.workspace.shared.TrashOperationContent; import org.gcube.portlets.user.workspace.shared.UserBean; -import org.gcube.portlets.user.workspace.shared.WorkspaceACL; import org.gcube.portlets.user.workspace.shared.WorkspaceOperationResult; import org.gcube.portlets.user.workspace.shared.WorkspaceTrashOperation; import org.gcube.portlets.user.workspace.shared.WorkspaceUserQuote; @@ -38,91 +33,94 @@ import org.gcube.portlets.user.workspace.shared.accounting.GxtAccountingField; import com.google.gwt.user.client.rpc.AsyncCallback; - /** * The Interface GWTWorkspaceServiceAsync. * - * @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it + * @author Francesco Mangiacrapa francesco.mangiacrapaATisti.cnr.it */ public interface GWTWorkspaceServiceAsync { /** * Gets the user workspace size. * - * @param callback the callback - * @return the user workspace size + * @param callback + * the callback */ void getUserWorkspaceSize(AsyncCallback callback); /** * Gets the root for tree. * - * @param callback the callback - * @return the root for tree + * @param callback + * the callback */ void getRootForTree(AsyncCallback callback); - /** - * Gets the root for tree. - * - * @param folder the folder - * @param callback the callback - * @return the root for tree - */ - //void getRootForTree(String scopeId, AsyncCallback callback); - /** * Gets the folder children. * - * @param folder the folder - * @param callback the callback - * @return the folder children + * @param folder + * the folder + * @param callback + * the callback */ void getFolderChildren(FolderModel folder, AsyncCallback> callback); /** * Gets the folder children for file grid. * - * @param folder the folder - * @param callback the callback - * @return the folder children for file grid + * @param folder + * the folder + * @param callback + * the callback */ void getFolderChildrenForFileGrid(FileModel folder, AsyncCallback> callback); - /** * Delete item. * - * @param itemId the item id - * @param callback the callback + * @param itemId + * the item id + * @param callback + * the callback */ void deleteItem(String itemId, AsyncCallback callback); /** * Rename item. * - * @param itemId the item id - * @param newName the new name - * @param oldName the old name - * @param callback the callback + * @param itemId + * the item id + * @param newName + * the new name + * @param oldName + * the old name + * @param callback + * the callback */ void renameItem(String itemId, String newName, String oldName, AsyncCallback callback); /** * Creates the folder. * - * @param nameFolder the name folder - * @param description the description - * @param parent the parent - * @param callback the callback + * @param nameFolder + * the name folder + * @param description + * the description + * @param parent + * the parent + * @param callback + * the callback */ void createFolder(String nameFolder, String description, FileModel parent, AsyncCallback callback); /** * Gets the details file. * - * @param item the item - * @param callback the callback + * @param item + * the item + * @param callback + * the callback * @return the details file */ void getDetailsFile(FileModel item, AsyncCallback callback); @@ -130,161 +128,223 @@ public interface GWTWorkspaceServiceAsync { /** * Gets the children sub tree to root by identifier. * - * @param itemIdentifier the item identifier - * @param callback the callback - * @return the children sub tree to root by identifier + * @param itemIdentifier + * the item identifier + * @param callback + * the callback */ void getChildrenSubTreeToRootByIdentifier(String itemIdentifier, AsyncCallback> callback); /** * Gets the items by search name. * - * @param text the text - * @param folderId the folder id - * @param callback the callback - * @return the items by search name + * @param text + * the text + * @param folderId + * the folder id + * @param callback + * the callback */ void getItemsBySearchName(String text, String folderId, AsyncCallback> callback); - /** * Gets the smart folder results by category. * - * @param category the category - * @param callback the callback - * @return the smart folder results by category + * @param category + * the category + * @param callback + * the callback */ void getSmartFolderResultsByCategory(GXTCategorySmartFolder category, AsyncCallback> callback); /** * Creates the smart folder. * - * @param name the name - * @param description the description - * @param query the query - * @param parentId the parent id - * @param callback the callback + * @param name + * the name + * @param description + * the description + * @param query + * the query + * @param parentId + * the parent id + * @param callback + * the callback */ - void createSmartFolder(String name, String description, String query, String parentId, AsyncCallback callback); + void createSmartFolder(String name, String description, String query, String parentId, + AsyncCallback callback); /** * Gets the smart folder results by id. * - * @param folderId the folder id - * @param callback the callback - * @return the smart folder results by id + * @param folderId + * the folder id + * @param callback + * the callback */ void getSmartFolderResultsById(String folderId, AsyncCallback> callback); /** * Gets the all smart folders. * - * @param callback the callback - * @return the all smart folders + * @param callback + * the callback */ void getAllSmartFolders(AsyncCallback> callback); /** * Gets the image by id. * - * @param identifier the identifier - * @param isInteralImage the is interal image - * @param fullDetails the full details - * @param callback the callback - * @return the image by id + * @param identifier + * the identifier + * @param isInteralImage + * the is interal image + * @param fullDetails + * the full details + * @param callback + * the callback */ - void getImageById(String identifier, boolean isInteralImage, boolean fullDetails, AsyncCallback callback); + void getImageById(String identifier, boolean isInteralImage, boolean fullDetails, + AsyncCallback callback); /** * Gets the url by id. * - * @param identifier the identifier - * @param isInternalUrl the is internal url - * @param fullDetails the full details - * @param callback the callback - * @return the url by id + * @param identifier + * the identifier + * @param isInternalUrl + * the is internal url + * @param fullDetails + * the full details + * @param callback + * the callback */ - void getUrlById(String identifier, boolean isInternalUrl, boolean fullDetails, AsyncCallback callback); + void getUrlById(String identifier, boolean isInternalUrl, boolean fullDetails, + AsyncCallback callback); /** * Creates the external url. * - * @param parentId the parent id - * @param name the name - * @param description the description - * @param url the url - * @param callback the callback + * @param parentId + * the parent id + * @param name + * the name + * @param description + * the description + * @param url + * the url + * @param callback + * the callback */ - void createExternalUrl( - String parentId, String name, String description, String url, - AsyncCallback callback); + void createExternalUrl(String parentId, String name, String description, String url, + AsyncCallback callback); /** * Sets the value in session. * - * @param name the name - * @param value the value - * @param callback the callback + * @param name + * the name + * @param value + * the value + * @param callback + * the callback */ void setValueInSession(String name, String value, AsyncCallback callback); /** * Removes the smart folder. * - * @param itemId the item id - * @param name the name - * @param callback the callback + * @param itemId + * the item id + * @param name + * the name + * @param callback + * the callback */ void removeSmartFolder(String itemId, String name, AsyncCallback callback); /** * Gets the all scope. * - * @param callback the callback - * @return the all scope + * @param callback + * the callback */ void getAllScope(AsyncCallback> callback); - /** - * Gets the all contacts. - * - * @param callback the callback - * @return the all contacts - */ - void getAllContacts(AsyncCallback> callback); - - /** * Send to by id. * - * @param listContactsId the list contacts id - * @param listAttachmentsId the list attachments id - * @param subject the subject - * @param text the text - * @param callback the callback + * @param listContactsId + * the list contacts id + * @param listAttachmentsId + * the list attachments id + * @param subject + * the subject + * @param text + * the text + * @param callback + * the callback */ - void sendToById(List listContactsId, List listAttachmentsId, String subject, String text, AsyncCallback callback); - + void sendToById(List listContactsId, List listAttachmentsId, String subject, String text, + AsyncCallback callback); /** * Gets the url web dav. * - * @param itemId the item id - * @param callback the callback - * @return the url web dav + * @param itemId + * the item id + * @param callback + * the callback */ void getUrlWebDav(String itemId, AsyncCallback callback); /** * Gets the time series by id. * - * @param identifier the identifier - * @param callback the callback - * @return the time series by id + * @param identifier + * the identifier + * @param callback + * the callback */ - void getTimeSeriesById(String identifier, - AsyncCallback callback); + void getTimeSeriesById(String identifier, AsyncCallback callback); +<<<<<<< .mine + /** +||||||| .r176880 + /** + * Share folder. + * + * @param folder the folder + * @param listContacts the list contacts + * @param isNewFolder the is new folder + * @param acl the acl + * @param callback the callback + */ + void shareFolder(FileModel folder, List listContacts, + boolean isNewFolder, WorkspaceACL acl, + AsyncCallback callback); + + /** + * Gets the list user shared by folder shared id. + * + * @param itemId the item id + * @param callback the callback + * @return the list user shared by folder shared id + */ + void getListUserSharedByFolderSharedId(String itemId, + AsyncCallback> callback); + + /** + * Un shared folder by folder shared id. + * + * @param folderSharedId the folder shared id + * @param callback the callback + */ + void unSharedFolderByFolderSharedId(String folderSharedId, + AsyncCallback callback); + + /** +======= void shareFolder( FileModel folder, List listContacts, boolean isNewFolder, WorkspaceACL acl, AsyncCallback callback); @@ -309,491 +369,407 @@ public interface GWTWorkspaceServiceAsync { AsyncCallback callback); /** +>>>>>>> .r177215 * Gets the list parents by item identifier. * - * @param itemIdentifier the item identifier - * @param includeItemAsParent the include item as parent - * @param callback the callback - * @return the list parents by item identifier + * @param itemIdentifier + * the item identifier + * @param includeItemAsParent + * the include item as parent + * @param callback + * the callback */ - void getListParentsByItemIdentifier(String itemIdentifier, - boolean includeItemAsParent, AsyncCallback> callback); + void getListParentsByItemIdentifier(String itemIdentifier, boolean includeItemAsParent, + AsyncCallback> callback); /** * Gets the URL from application profile. * - * @param oid the oid - * @param callback the callback - * @return the URL from application profile + * @param oid + * the oid + * @param callback + * the callback */ void getURLFromApplicationProfile(String oid, AsyncCallback callback); - /** - * Gets the owner by item id. - * - * @param itemId the item id - * @param callback the callback - * @return the owner by item id - */ - void getOwnerByItemId(String itemId, - AsyncCallback callback); - - - /** - * Access to folder link. - * - * @param itemId the item id - * @param callback the callback - */ - void accessToFolderLink(String itemId, - AsyncCallback callback); - /** * Item exists in workpace folder. * - * @param parentId the parent id - * @param itemName the item name - * @param callback the callback + * @param parentId + * the parent id + * @param itemName + * the item name + * @param callback + * the callback */ - void itemExistsInWorkpaceFolder(String parentId, String itemName, - AsyncCallback callback); + void itemExistsInWorkpaceFolder(String parentId, String itemName, AsyncCallback callback); /** * Gets the item creation date by id. * - * @param itemId the item id - * @param asyncCallback the async callback - * @return the item creation date by id + * @param itemId + * the item id + * @param asyncCallback + * the async callback */ - void getItemCreationDateById(String itemId, - AsyncCallback asyncCallback); + void getItemCreationDateById(String itemId, AsyncCallback asyncCallback); /** * Load size by item id. * - * @param itemId the item id - * @param asyncCallback the async callback + * @param itemId + * the item id + * @param asyncCallback + * the async callback */ void loadSizeByItemId(String itemId, AsyncCallback asyncCallback); /** * Load last modification date by id. * - * @param itemId the item id - * @param callback the callback + * @param itemId + * the item id + * @param callback + * the callback */ - void loadLastModificationDateById(String itemId, - AsyncCallback callback); + void loadLastModificationDateById(String itemId, AsyncCallback callback); /** * Gets the parent by item id. * - * @param identifier the identifier - * @param asyncCallback the async callback - * @return the parent by item id + * @param identifier + * the identifier + * @param asyncCallback + * the async callback */ - void getParentByItemId(String identifier, - AsyncCallback asyncCallback); + void getParentByItemId(String identifier, AsyncCallback asyncCallback); /** * Gets the accounting readers. * - * @param identifier the identifier - * @param callback the callback - * @return the accounting readers + * @param identifier + * the identifier + * @param callback + * the callback */ - void getAccountingReaders(String identifier, - AsyncCallback> callback); + void getAccountingReaders(String identifier, AsyncCallback> callback); /** * Gets the accounting history. * - * @param identifier the identifier - * @param callback the callback - * @return the accounting history + * @param identifier + * the identifier + * @param callback + * the callback */ - void getAccountingHistory(String identifier, - AsyncCallback> callback); + void getAccountingHistory(String identifier, AsyncCallback> callback); /** * Gets the item for file grid. * - * @param itemId the item id - * @param callback the callback - * @return the item for file grid + * @param itemId + * the item id + * @param callback + * the callback */ void getItemForFileGrid(String itemId, AsyncCallback callback); /** * Gets the item for file tree. * - * @param itemId the item id - * @param asyncCallback the async callback - * @return the item for file tree + * @param itemId + * the item id + * @param asyncCallback + * the async callback */ - void getItemForFileTree(String itemId,AsyncCallback asyncCallback); + void getItemForFileTree(String itemId, AsyncCallback asyncCallback); /** * Gets the folder children for file grid by id. * - * @param folderId the folder id - * @param callback the callback - * @return the folder children for file grid by id + * @param folderId + * the folder id + * @param callback + * the callback */ - void getFolderChildrenForFileGridById(String folderId, - AsyncCallback> callback); + void getFolderChildrenForFileGridById(String folderId, AsyncCallback> callback); /** * Gets the short url. * - * @param longUrl the long url - * @param callback the callback - * @return the short url + * @param longUrl + * the long url + * @param callback + * the callback */ void getShortUrl(String longUrl, AsyncCallback callback); - /** * Gets the public link for file item id. * - * @param itemId the item id - * @param shortenUrl the shorten url - * @param callback the callback - * @return the public link for file item id + * @param itemId + * the item id + * @param shortenUrl + * the shorten url + * @param callback + * the callback */ - void getPublicLinkForFileItemId(String itemId, boolean shortenUrl, - AsyncCallback callback); - - + void getPublicLinkForFileItemId(String itemId, boolean shortenUrl, AsyncCallback callback); /** * Gets the public link for file item id to version. * - * @param itemId the item id - * @param version the version - * @param shortenUrl the shorten url - * @param callback the callback - * @return the public link for file item id to version + * @param itemId + * the item id + * @param version + * the version + * @param shortenUrl + * the shorten url + * @param callback + * the callback */ void getPublicLinkForFileItemIdToVersion(String itemId, String version, boolean shortenUrl, AsyncCallback callback); - /** * Checks if is session expired. * - * @param callback the callback + * @param callback + * the callback */ void isSessionExpired(AsyncCallback callback); /** * Delete list items for ids. * - * @param ids the ids - * @param callback the callback + * @param ids + * the ids + * @param callback + * the callback */ - void deleteListItemsForIds(List ids, - AsyncCallback> callback); + void deleteListItemsForIds(List ids, AsyncCallback> callback); /** * Copy items. * - * @param idsItem the ids item - * @param destinationFolderId the destination folder id - * @param callback the callback + * @param idsItem + * the ids item + * @param destinationFolderId + * the destination folder id + * @param callback + * the callback */ - void copyItems( - List idsItem, String destinationFolderId, - AsyncCallback callback); + void copyItems(List idsItem, String destinationFolderId, AsyncCallback callback); /** * Move items. * - * @param ids the ids - * @param destinationId the destination id - * @param callback the callback + * @param ids + * the ids + * @param destinationId + * the destination id + * @param callback + * the callback */ - void moveItems( - List ids, String destinationId, - AsyncCallback callback); - - /** - * Gets the AC ls. - * - * @param callback the callback - * @return the AC ls - */ - void getACLs(AsyncCallback> callback); - - /** - * Sets the ac ls. - * - * @param folderId the folder id - * @param listLogins the list logins - * @param aclType the acl type - * @param callback the callback - */ - void setACLs(String folderId, List listLogins, String aclType, - AsyncCallback callback); + void moveItems(List ids, String destinationId, AsyncCallback callback); + /** * Gets the my login. * - * @param currentPortletUrl the current portlet url - * @param callback the callback - * @return the my login + * @param currentPortletUrl + * the current portlet url + * @param callback + * the callback */ void getMyLogin(String currentPortletUrl, AsyncCallback callback); - /** - * Update acl for vr eby group name. - * - * @param folderId the folder id - * @param aclType the acl type - * @param callback the callback - */ - void updateACLForVREbyGroupName(String folderId, String aclType, - AsyncCallback callback); - - /** - * Gets the user acl for folder id. - * - * @param folderId the folder id - * @param callback the callback - * @return the user acl for folder id - */ - void getUserACLForFolderId(String folderId, - AsyncCallback> callback); - + /** * Gets the trash content. * - * @param callback the callback - * @return the trash content + * @param callback + * the callback */ void getTrashContent(AsyncCallback> callback); /** * Update trash content. * - * @param operation the operation - * @param callback the callback + * @param operation + * the operation + * @param callback + * the callback */ - void updateTrashContent(WorkspaceTrashOperation operation, - AsyncCallback callback); - - /** - * Gets the AC ls description for workspace item by id. - * - * @param workspaceItemId the workspace item id - * @param callback the callback - * @return the AC ls description for workspace item by id - */ - void getACLsDescriptionForWorkspaceItemById(String workspaceItemId, - AsyncCallback callback); - - /** - * Gets the users manager to shared folder. - * - * @param folderId the folder id - * @param callback the callback - * @return the users manager to shared folder - */ - void getUsersManagerToSharedFolder(String folderId, - AsyncCallback> callback); + void updateTrashContent(WorkspaceTrashOperation operation, AsyncCallback callback); /** * Execute operation on trash. * - * @param listTrashItemIds the list trash item ids - * @param operation the operation - * @param callback the callback + * @param listTrashItemIds + * the list trash item ids + * @param operation + * the operation + * @param callback + * the callback */ - void executeOperationOnTrash(List listTrashItemIds, - WorkspaceTrashOperation operation, + void executeOperationOnTrash(List listTrashItemIds, WorkspaceTrashOperation operation, AsyncCallback callback); - /** - * Adds the administrators by folder id. - * - * @param folderId the folder id - * @param listLogins the list logins - * @param callback the callback - */ - void addAdministratorsByFolderId(String folderId, List listLogins, - AsyncCallback callback); - - /** - * Gets the administrators by folder id. - * - * @param identifier the identifier - * @param callback the callback - * @return the administrators by folder id - */ - void getAdministratorsByFolderId(String identifier, AsyncCallback> callback); - - - /** - * Gets the ACL by shared folder id. - * - * @param identifier the identifier - * @param callback the callback - * @return the ACL by shared folder id - */ - void getACLBySharedFolderId(String identifier, AsyncCallback callback); - + /** * Gets the user workspace total items. * - * @param callback the callback - * @return the user workspace total items + * @param callback + * the callback */ void getUserWorkspaceTotalItems(AsyncCallback callback); /** * Gets the user workspace quote. * - * @param callback the callback - * @return the user workspace quote + * @param callback + * the callback */ void getUserWorkspaceQuote(AsyncCallback callback); /** * Gets the item description by id. * - * @param identifier the identifier - * @param callback the callback - * @return the item description by id + * @param identifier + * the identifier + * @param callback + * the callback */ - void getItemDescriptionById(String identifier, - AsyncCallback callback); - - /** - * Validate acl to user. - * - * @param folderId the folder id - * @param listLogins the list logins - * @param aclType the acl type - * @param callback the callback - */ - void validateACLToUser(String folderId, List listLogins, - String aclType, AsyncCallback callback); + void getItemDescriptionById(String identifier, AsyncCallback callback); + /** * Load gcube item properties. * - * @param itemId the item id - * @param asyncCallback the async callback + * @param itemId + * the item id + * @param asyncCallback + * the async callback */ - void loadGcubeItemProperties(String itemId, - AsyncCallback> asyncCallback); + void loadGcubeItemProperties(String itemId, AsyncCallback> asyncCallback); /** * Gets the HTML gcube item properties. * - * @param itemId the item id - * @param callback the callback - * @return the HTML gcube item properties + * @param itemId + * the item id + * @param callback + * the callback */ - void getHTMLGcubeItemProperties(String itemId, - AsyncCallback callback); + void getHTMLGcubeItemProperties(String itemId, AsyncCallback callback); /** * Sets the gcube item properties. * - * @param itemId the item id - * @param properties the properties - * @param callback the callback + * @param itemId + * the item id + * @param properties + * the properties + * @param callback + * the callback */ - void setGcubeItemProperties(String itemId, Map properties, - AsyncCallback callback); + void setGcubeItemProperties(String itemId, Map properties, AsyncCallback callback); /** * Gets the my first name. * - * @param callback the callback - * @return the my first name + * @param callback + * the callback */ void getMyFirstName(AsyncCallback callback); /** - * Mark folder as public for folder item id. - * return the PublicLink in case of setPublic is true, null otherwise - * @param itemId the item id - * @param setPublic the set public - * @param callback the callback + * Mark folder as public for folder item id. return the PublicLink in case + * of setPublic is true, null otherwise + * + * @param itemId + * the item id + * @param setPublic + * the set public + * @param callback + * the callback */ - void markFolderAsPublicForFolderItemId( - String itemId, boolean setPublic, AsyncCallback callback); + void markFolderAsPublicForFolderItemId(String itemId, boolean setPublic, AsyncCallback callback); /** * Gets the servlet context path. * - * @param protocol the protocol - * @param callback the callback - * @return the servlet context path + * @param protocol + * the protocol + * @param callback + * the callback */ void getServletContextPath(String protocol, AsyncCallback callback); - /** * Gets the version history. * - * @param fileIdentifier the file identifier - * @param callback the callback - * @return the version history + * @param fileIdentifier + * the file identifier + * @param callback + * the callback */ - void getVersionHistory( - String fileIdentifier, AsyncCallback> callback); + void getVersionHistory(String fileIdentifier, AsyncCallback> callback); /** * Perform operation on versioned file. * - * @param fileId the file id - * @param olderVersionIds the older version ids - * @param operation the operation - * @param callback the callback + * @param fileId + * the file id + * @param olderVersionIds + * the older version ids + * @param operation + * the operation + * @param callback + * the callback */ - void performOperationOnVersionedFile( - String fileId, List olderVersionIds, - WorkspaceVersioningOperation operation, - AsyncCallback> callback); + void performOperationOnVersionedFile(String fileId, List olderVersionIds, + WorkspaceVersioningOperation operation, AsyncCallback> callback); /** * Gets the images for folder. * - * @param folderId the folder id - * @param currentImageId the current image id - * @param asyncCallback the async callback - * @return the images for folder + * @param folderId + * the folder id + * @param currentImageId + * the current image id + * @param asyncCallback + * the async callback */ - void getImagesForFolder( - String folderId, String currentImageId, AsyncCallback> asyncCallback); - + void getImagesForFolder(String folderId, String currentImageId, + AsyncCallback> asyncCallback); /** * Gets the list of vr es for logged user. * - * @param callback the callback - * @return the list of vr es for logged user + * @param callback + * the callback */ void getListOfVREsForLoggedUser(AsyncCallback> callback); - /** * Checks if is item under sync. * - * @param itemId the item id - * @param callback the callback + * @param itemId + * the item id + * @param callback + * the callback */ void isItemUnderSync(String itemId, AsyncCallback callback); /** * Gets the link for send to switch board. * - * @param itemId the item id - * @param callback the callback - * @return the link for send to switch board + * @param itemId + * the item id + * @param callback + * the callback */ void getLinkForSendToSwitchBoard(String itemId, AsyncCallback callback);