2013-02-06 15:40:17 +01:00
|
|
|
package org.gcube.portlets.user.workspace.client.rpc;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
2013-03-25 12:35:05 +01:00
|
|
|
import java.util.Date;
|
2013-02-06 15:40:17 +01:00
|
|
|
import java.util.List;
|
2015-06-12 12:24:01 +02:00
|
|
|
import java.util.Map;
|
2013-02-06 15:40:17 +01:00
|
|
|
|
|
|
|
import org.gcube.portlets.user.workspace.client.model.FileGridModel;
|
|
|
|
import org.gcube.portlets.user.workspace.client.model.FileModel;
|
2014-02-17 15:56:42 +01:00
|
|
|
import org.gcube.portlets.user.workspace.client.model.FileTrashedModel;
|
2017-02-20 18:03:49 +01:00
|
|
|
import org.gcube.portlets.user.workspace.client.model.FileVersionModel;
|
2013-02-06 15:40:17 +01:00
|
|
|
import org.gcube.portlets.user.workspace.client.model.FolderModel;
|
2017-09-27 18:38:30 +02:00
|
|
|
import org.gcube.portlets.user.workspace.client.model.GcubeVRE;
|
2013-02-06 15:40:17 +01:00
|
|
|
import org.gcube.portlets.user.workspace.client.model.SubTree;
|
|
|
|
import org.gcube.portlets.user.workspace.client.workspace.GWTWorkspaceItem;
|
2015-10-29 15:36:27 +01:00
|
|
|
import org.gcube.portlets.user.workspace.shared.GarbageItem;
|
2015-07-03 12:18:27 +02:00
|
|
|
import org.gcube.portlets.user.workspace.shared.PublicLink;
|
2013-09-04 15:30:17 +02:00
|
|
|
import org.gcube.portlets.user.workspace.shared.SessionExpiredException;
|
2014-05-13 11:10:54 +02:00
|
|
|
import org.gcube.portlets.user.workspace.shared.TrashContent;
|
2014-05-13 11:26:57 +02:00
|
|
|
import org.gcube.portlets.user.workspace.shared.TrashOperationContent;
|
2014-10-28 17:12:40 +01:00
|
|
|
import org.gcube.portlets.user.workspace.shared.UserBean;
|
2018-11-28 16:50:18 +01:00
|
|
|
import org.gcube.portlets.user.workspace.shared.WorkspaceOperationResult;
|
2014-02-17 19:20:30 +01:00
|
|
|
import org.gcube.portlets.user.workspace.shared.WorkspaceTrashOperation;
|
2014-10-31 17:27:52 +01:00
|
|
|
import org.gcube.portlets.user.workspace.shared.WorkspaceUserQuote;
|
2017-02-20 14:57:07 +01:00
|
|
|
import org.gcube.portlets.user.workspace.shared.WorkspaceVersioningOperation;
|
2013-05-23 19:03:43 +02:00
|
|
|
import org.gcube.portlets.user.workspace.shared.accounting.GxtAccountingField;
|
2013-02-06 15:40:17 +01:00
|
|
|
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteService;
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* The Interface GWTWorkspaceService.
|
|
|
|
*
|
2019-02-22 14:40:20 +01:00
|
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa{@literal @}isti.cnr.it
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
@RemoteServiceRelativePath("WorkspaceService")
|
2019-02-22 11:44:50 +01:00
|
|
|
public interface GWTWorkspaceService extends RemoteService {
|
2018-11-28 16:50:18 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the link for send to switch board.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param itemId
|
|
|
|
* the item id
|
2018-11-28 16:50:18 +01:00
|
|
|
* @return the link for send to switch board
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2018-11-28 16:50:18 +01:00
|
|
|
*/
|
2019-02-22 11:44:50 +01:00
|
|
|
String getLinkForSendToSwitchBoard(String itemId) throws Exception;
|
|
|
|
|
2016-09-29 15:28:32 +02:00
|
|
|
/**
|
|
|
|
* Gets the servlet context path.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param protocol
|
|
|
|
* the protocol
|
2016-09-29 15:28:32 +02:00
|
|
|
* @return the servlet context path
|
|
|
|
*/
|
2016-09-21 18:10:14 +02:00
|
|
|
String getServletContextPath(String protocol);
|
2019-02-22 11:44:50 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the user workspace size.
|
|
|
|
*
|
|
|
|
* @return the user workspace size
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2014-10-28 17:12:40 +01:00
|
|
|
String getUserWorkspaceSize() throws Exception;
|
2013-02-06 15:40:17 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the root for tree.
|
|
|
|
*
|
|
|
|
* @return the root for tree
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
public FolderModel getRootForTree() throws Exception;
|
2014-10-28 17:12:40 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the folder children.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param folder
|
|
|
|
* the folder
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the folder children
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
|
|
|
* @throws SessionExpiredException
|
|
|
|
* the session expired exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2013-09-04 15:30:17 +02:00
|
|
|
public List<FileModel> getFolderChildren(FolderModel folder) throws Exception, SessionExpiredException;
|
2014-10-28 17:12:40 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the folder children for file grid.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param folder
|
|
|
|
* the folder
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the folder children for file grid
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
|
|
|
* @throws SessionExpiredException
|
|
|
|
* the session expired exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2013-09-04 15:30:17 +02:00
|
|
|
public List<FileGridModel> getFolderChildrenForFileGrid(FileModel folder) throws Exception, SessionExpiredException;
|
2014-10-28 17:12:40 +01:00
|
|
|
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Creates the folder.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param nameFolder
|
|
|
|
* the name folder
|
|
|
|
* @param description
|
|
|
|
* the description
|
|
|
|
* @param parent
|
|
|
|
* the parent
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the folder model
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
public FolderModel createFolder(String nameFolder, String description, FileModel parent) throws Exception;
|
2014-10-28 17:12:40 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the children sub tree to root by identifier.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param itemIdentifier
|
|
|
|
* the item identifier
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the children sub tree to root by identifier
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
public ArrayList<SubTree> getChildrenSubTreeToRootByIdentifier(String itemIdentifier) throws Exception;
|
2014-10-28 17:12:40 +01:00
|
|
|
|
2019-09-13 16:48:26 +02:00
|
|
|
// /**
|
|
|
|
// * Gets the smart folder results by category.
|
|
|
|
// *
|
|
|
|
// * @param category
|
|
|
|
// * the category
|
|
|
|
// * @return the smart folder results by category
|
|
|
|
// * @throws Exception
|
|
|
|
// * the exception
|
|
|
|
// */
|
|
|
|
// List<FileGridModel> 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
|
|
|
|
// * @return the smart folder model
|
|
|
|
// * @throws Exception
|
|
|
|
// * the 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
|
|
|
|
// * @return the smart folder results by id
|
|
|
|
// * @throws Exception
|
|
|
|
// * the exception
|
|
|
|
// */
|
|
|
|
// public List<FileGridModel> getSmartFolderResultsById(String folderId) throws Exception;
|
|
|
|
|
|
|
|
// /**
|
|
|
|
// * Gets the all smart folders.
|
|
|
|
// *
|
|
|
|
// * @return the all smart folders
|
|
|
|
// * @throws Exception
|
|
|
|
// * the exception
|
|
|
|
// */
|
|
|
|
// public List<SmartFolderModel> getAllSmartFolders() throws Exception;
|
2014-10-28 17:12:40 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the image by id.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param identifier
|
|
|
|
* the identifier
|
|
|
|
* @param isInteralImage
|
|
|
|
* the is interal image
|
|
|
|
* @param fullDetails
|
|
|
|
* the full details
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the image by id
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2019-02-22 11:44:50 +01:00
|
|
|
public GWTWorkspaceItem getImageById(String identifier, boolean isInteralImage, boolean fullDetails)
|
|
|
|
throws Exception;
|
2014-10-28 17:12:40 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the url by id.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param identifier
|
|
|
|
* the identifier
|
|
|
|
* @param isInternalUrl
|
|
|
|
* the is internal url
|
|
|
|
* @param fullDetails
|
|
|
|
* the full details
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the url by id
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
public GWTWorkspaceItem getUrlById(String identifier, boolean isInternalUrl, boolean fullDetails) throws Exception;
|
2014-10-28 17:12:40 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Creates the external url.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param parentId
|
|
|
|
* the parent id
|
|
|
|
* @param name
|
|
|
|
* the name
|
|
|
|
* @param description
|
|
|
|
* the description
|
|
|
|
* @param url
|
|
|
|
* the url
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the file model
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2018-03-06 14:37:32 +01:00
|
|
|
public FileModel createExternalUrl(String parentId, String name, String description, String url) throws Exception;
|
2014-10-28 17:12:40 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Sets the value in session.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param name
|
|
|
|
* the name
|
|
|
|
* @param value
|
|
|
|
* the value
|
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
public void setValueInSession(String name, String value) throws Exception;
|
|
|
|
|
2015-10-29 15:36:27 +01:00
|
|
|
/**
|
|
|
|
* Gets the items by search name.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param text
|
|
|
|
* the text
|
|
|
|
* @param folderId
|
|
|
|
* the folder id
|
2015-10-29 15:36:27 +01:00
|
|
|
* @return the items by search name
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-10-29 15:36:27 +01:00
|
|
|
*/
|
2015-10-12 15:30:59 +02:00
|
|
|
List<FileGridModel> getItemsBySearchName(String text, String folderId) throws Exception;
|
2014-10-28 17:12:40 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
2018-09-14 15:42:36 +02:00
|
|
|
* Delete item.
|
2015-07-14 18:11:11 +02:00
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param itemId
|
|
|
|
* the item id
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the boolean
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2018-09-14 15:42:36 +02:00
|
|
|
public Boolean deleteItem(String itemId) throws Exception;
|
2014-10-28 17:12:40 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Rename item.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param itemId
|
|
|
|
* the item id
|
|
|
|
* @param newName
|
|
|
|
* the new name
|
|
|
|
* @param oldName
|
|
|
|
* the old name
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the boolean
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2013-03-25 11:14:26 +01:00
|
|
|
public Boolean renameItem(String itemId, String newName, String oldName) throws Exception;
|
2019-02-22 12:00:52 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
2014-10-28 17:12:40 +01:00
|
|
|
|
2019-02-22 11:44:50 +01:00
|
|
|
* Gets the list parents by item identifier.
|
|
|
|
*
|
|
|
|
* @param itemIdentifier
|
|
|
|
* the item identifier
|
|
|
|
* @param includeItemAsParent
|
|
|
|
* the include item as parent
|
|
|
|
* @return the list parents by item identifier
|
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
|
|
|
*/
|
|
|
|
public List<FileModel> getListParentsByItemIdentifier(String itemIdentifier, boolean includeItemAsParent)
|
|
|
|
throws Exception;
|
|
|
|
|
2014-10-28 17:12:40 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Item exists in workpace folder.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param parentId
|
|
|
|
* the parent id
|
|
|
|
* @param itemName
|
|
|
|
* the item name
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the string
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2013-03-25 11:14:26 +01:00
|
|
|
public String itemExistsInWorkpaceFolder(String parentId, String itemName) throws Exception;
|
2013-02-06 15:40:17 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the item creation date by id.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param itemId
|
|
|
|
* the item id
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the item creation date by id
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2013-06-06 18:04:06 +02:00
|
|
|
public Date getItemCreationDateById(String itemId) throws Exception;
|
2013-03-25 12:35:05 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Load size by item id.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param itemId
|
|
|
|
* the item id
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the long
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2013-06-06 18:04:06 +02:00
|
|
|
public Long loadSizeByItemId(String itemId) throws Exception;
|
2013-03-25 12:35:05 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Load last modification date by id.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param itemId
|
|
|
|
* the item id
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the date
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2013-06-06 18:04:06 +02:00
|
|
|
public Date loadLastModificationDateById(String itemId) throws Exception;
|
2013-03-26 12:35:58 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the parent by item id.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param identifier
|
|
|
|
* the identifier
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the parent by item id
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2013-06-06 18:04:06 +02:00
|
|
|
public FileModel getParentByItemId(String identifier) throws Exception;
|
2013-03-27 17:30:37 +01:00
|
|
|
|
2013-05-23 19:03:43 +02:00
|
|
|
/**
|
2015-07-14 18:11:11 +02:00
|
|
|
* Gets the accounting readers.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param identifier
|
|
|
|
* the identifier
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the accounting readers
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2013-05-23 19:03:43 +02:00
|
|
|
*/
|
2019-02-22 11:44:50 +01:00
|
|
|
public List<GxtAccountingField> getAccountingReaders(String identifier) throws Exception;
|
2013-05-23 19:03:43 +02:00
|
|
|
|
|
|
|
/**
|
2015-07-14 18:11:11 +02:00
|
|
|
* Gets the accounting history.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param identifier
|
|
|
|
* the identifier
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the accounting history
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2013-05-23 19:03:43 +02:00
|
|
|
*/
|
2013-06-06 18:04:06 +02:00
|
|
|
public List<GxtAccountingField> getAccountingHistory(String identifier) throws Exception;
|
|
|
|
|
|
|
|
/**
|
2015-07-14 18:11:11 +02:00
|
|
|
* Gets the item for file grid.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param itemId
|
|
|
|
* the item id
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the item for file grid
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2013-06-06 18:04:06 +02:00
|
|
|
*/
|
|
|
|
public FileGridModel getItemForFileGrid(String itemId) throws Exception;
|
2013-05-23 19:03:43 +02:00
|
|
|
|
2013-06-14 15:04:43 +02:00
|
|
|
/**
|
2015-07-14 18:11:11 +02:00
|
|
|
* Gets the folder children for file grid by id.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param folderId
|
|
|
|
* the folder id
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the folder children for file grid by id
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
|
|
|
* @throws SessionExpiredException
|
|
|
|
* the session expired exception
|
2013-06-14 15:04:43 +02:00
|
|
|
*/
|
2013-09-04 15:30:17 +02:00
|
|
|
List<FileGridModel> getFolderChildrenForFileGridById(String folderId) throws Exception, SessionExpiredException;
|
2014-10-28 17:12:40 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the short url.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param longUrl
|
|
|
|
* the long url
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the short url
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2013-06-28 18:42:10 +02:00
|
|
|
String getShortUrl(String longUrl) throws Exception;
|
2013-06-14 15:04:43 +02:00
|
|
|
|
2013-07-08 17:42:08 +02:00
|
|
|
/**
|
2018-11-28 16:50:18 +01:00
|
|
|
* Gets the public link for file item id.
|
2015-07-14 18:11:11 +02:00
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param itemId
|
|
|
|
* the item id
|
|
|
|
* @param shortenUrl
|
|
|
|
* the shorten url
|
2018-11-28 16:50:18 +01:00
|
|
|
* @return the public link for file item id
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2013-07-08 17:42:08 +02:00
|
|
|
*/
|
2019-02-22 11:44:50 +01:00
|
|
|
PublicLink getPublicLinkForFileItemId(String itemId, boolean shortenUrl) throws Exception;
|
2013-07-08 17:42:08 +02:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Checks if is session expired.
|
|
|
|
*
|
|
|
|
* @return true, if is session expired
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2013-09-02 12:43:57 +02:00
|
|
|
boolean isSessionExpired() throws Exception;
|
2014-10-28 17:12:40 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Delete list items for ids.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param ids
|
|
|
|
* the ids
|
2015-10-29 15:36:27 +01:00
|
|
|
* @return the list
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2015-10-29 15:36:27 +01:00
|
|
|
List<GarbageItem> deleteListItemsForIds(List<String> ids) throws Exception;
|
2013-09-02 12:43:57 +02:00
|
|
|
|
2014-01-23 17:20:38 +01:00
|
|
|
/**
|
2015-07-14 18:11:11 +02:00
|
|
|
* Copy items.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param idsItem
|
|
|
|
* the ids item
|
|
|
|
* @param destinationFolderId
|
|
|
|
* the destination folder id
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return true, if successful
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2014-01-23 17:20:38 +01:00
|
|
|
*/
|
2019-02-22 11:44:50 +01:00
|
|
|
WorkspaceOperationResult copyItems(List<String> idsItem, String destinationFolderId) throws Exception;
|
2018-11-28 16:50:18 +01:00
|
|
|
|
2014-01-24 16:01:15 +01:00
|
|
|
/**
|
2015-07-14 18:11:11 +02:00
|
|
|
* Move items.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param ids
|
|
|
|
* the ids
|
|
|
|
* @param destinationId
|
|
|
|
* the destination id
|
2018-11-28 16:50:18 +01:00
|
|
|
* @return the workpace operation result
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2014-01-24 16:01:15 +01:00
|
|
|
*/
|
2018-11-28 16:50:18 +01:00
|
|
|
WorkspaceOperationResult moveItems(List<String> ids, String destinationId) throws Exception;
|
2014-01-24 16:01:15 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the my login.
|
2016-09-29 15:28:32 +02:00
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param currentPortletUrl
|
|
|
|
* the current portlet url
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the my login
|
|
|
|
*/
|
2016-09-16 11:12:03 +02:00
|
|
|
UserBean getMyLogin(String currentPortletUrl);
|
2014-02-12 12:49:07 +01:00
|
|
|
|
2014-02-17 15:56:42 +01:00
|
|
|
/**
|
2015-07-14 18:11:11 +02:00
|
|
|
* Gets the trash content.
|
|
|
|
*
|
|
|
|
* @return the trash content
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2014-02-17 15:56:42 +01:00
|
|
|
*/
|
|
|
|
List<FileTrashedModel> getTrashContent() throws Exception;
|
|
|
|
|
2014-03-17 14:43:06 +01:00
|
|
|
/**
|
2015-07-14 18:11:11 +02:00
|
|
|
* Update trash content.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param operation
|
|
|
|
* the operation
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the trash content
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2014-03-17 14:43:06 +01:00
|
|
|
*/
|
2014-05-13 11:10:54 +02:00
|
|
|
TrashContent updateTrashContent(WorkspaceTrashOperation operation) throws Exception;
|
|
|
|
|
|
|
|
/**
|
2015-07-14 18:11:11 +02:00
|
|
|
* Execute operation on trash.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param listTrashItemIds
|
|
|
|
* the list trash item ids
|
|
|
|
* @param operation
|
|
|
|
* the operation
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the trash operation content
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2019-02-22 11:44:50 +01:00
|
|
|
TrashOperationContent executeOperationOnTrash(List<String> listTrashItemIds, WorkspaceTrashOperation operation)
|
|
|
|
throws Exception;
|
2014-09-24 12:55:32 +02:00
|
|
|
|
2019-02-22 11:44:50 +01:00
|
|
|
|
2014-10-31 17:27:52 +01:00
|
|
|
/**
|
2015-07-14 18:11:11 +02:00
|
|
|
* Gets the user workspace total items.
|
|
|
|
*
|
|
|
|
* @return the user workspace total items
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2014-10-31 17:27:52 +01:00
|
|
|
*/
|
|
|
|
long getUserWorkspaceTotalItems() throws Exception;
|
|
|
|
|
|
|
|
/**
|
2015-07-14 18:11:11 +02:00
|
|
|
* Gets the user workspace quote.
|
|
|
|
*
|
|
|
|
* @return the user workspace quote
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2014-10-31 17:27:52 +01:00
|
|
|
*/
|
|
|
|
WorkspaceUserQuote getUserWorkspaceQuote() throws Exception;
|
|
|
|
|
2014-11-04 18:20:06 +01:00
|
|
|
/**
|
2015-07-14 18:11:11 +02:00
|
|
|
* Gets the item description by id.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param identifier
|
|
|
|
* the identifier
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the item description by id
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2014-11-04 18:20:06 +01:00
|
|
|
*/
|
|
|
|
String getItemDescriptionById(String identifier) throws Exception;
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Load gcube item properties.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param itemId
|
|
|
|
* the item id
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the map
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-07-14 18:11:11 +02:00
|
|
|
*/
|
2015-06-12 12:24:01 +02:00
|
|
|
Map<String, String> loadGcubeItemProperties(String itemId) throws Exception;
|
|
|
|
|
|
|
|
/**
|
2015-07-14 18:11:11 +02:00
|
|
|
* Gets the HTML gcube item properties.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param itemId
|
|
|
|
* the item id
|
2015-07-14 18:11:11 +02:00
|
|
|
* @return the HTML gcube item properties
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-06-12 12:24:01 +02:00
|
|
|
*/
|
|
|
|
String getHTMLGcubeItemProperties(String itemId) throws Exception;
|
|
|
|
|
|
|
|
/**
|
2015-07-14 18:11:11 +02:00
|
|
|
* Sets the gcube item properties.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param itemId
|
|
|
|
* the item id
|
|
|
|
* @param properties
|
|
|
|
* the properties
|
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2015-06-12 12:24:01 +02:00
|
|
|
*/
|
|
|
|
void setGcubeItemProperties(String itemId, Map<String, String> properties) throws Exception;
|
|
|
|
|
2016-08-29 15:39:13 +02:00
|
|
|
/**
|
2016-09-29 15:28:32 +02:00
|
|
|
* Gets the my first name.
|
|
|
|
*
|
|
|
|
* @return the my first name
|
2016-08-29 15:39:13 +02:00
|
|
|
*/
|
|
|
|
String getMyFirstName();
|
2016-09-14 12:17:14 +02:00
|
|
|
|
2016-09-29 15:28:32 +02:00
|
|
|
/**
|
|
|
|
* Mark folder as public for folder item id.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param itemId
|
|
|
|
* the item id
|
|
|
|
* @param b
|
|
|
|
* the b
|
2016-09-29 15:28:32 +02:00
|
|
|
* @return the public link
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws SessionExpiredException
|
|
|
|
* the session expired exception
|
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2016-09-29 15:28:32 +02:00
|
|
|
*/
|
2016-09-15 16:42:20 +02:00
|
|
|
PublicLink markFolderAsPublicForFolderItemId(String itemId, boolean b) throws SessionExpiredException, Exception;
|
2016-11-29 15:16:47 +01:00
|
|
|
|
2017-02-20 14:57:07 +01:00
|
|
|
/**
|
2017-02-22 11:36:28 +01:00
|
|
|
* Perform operation on versioned file.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param fileId
|
|
|
|
* the file id
|
|
|
|
* @param olderVersionIDs
|
|
|
|
* the older version i ds
|
|
|
|
* @param operation
|
|
|
|
* the operation
|
2017-02-22 11:36:28 +01:00
|
|
|
* @return the list
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2017-02-20 14:57:07 +01:00
|
|
|
*/
|
2019-02-22 11:44:50 +01:00
|
|
|
List<FileVersionModel> performOperationOnVersionedFile(String fileId, List<String> olderVersionIDs,
|
|
|
|
WorkspaceVersioningOperation operation) throws Exception;
|
2017-02-22 11:36:28 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the version history.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param fileIdentifier
|
|
|
|
* the file identifier
|
2017-02-22 11:36:28 +01:00
|
|
|
* @return the version history
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2017-02-22 11:36:28 +01:00
|
|
|
*/
|
|
|
|
List<FileVersionModel> getVersionHistory(String fileIdentifier) throws Exception;
|
2017-05-24 12:01:16 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the images for folder.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param folderId
|
|
|
|
* the folder id
|
|
|
|
* @param currentImageId
|
|
|
|
* the current image id
|
2017-05-24 12:01:16 +02:00
|
|
|
* @return the images for folder
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2017-05-24 12:01:16 +02:00
|
|
|
*/
|
|
|
|
List<GWTWorkspaceItem> getImagesForFolder(String folderId, String currentImageId) throws Exception;
|
2017-09-27 18:38:30 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the list of vr es for logged user.
|
|
|
|
*
|
|
|
|
* @return the list of vr es for logged user
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2017-09-27 18:38:30 +02:00
|
|
|
*/
|
2019-02-22 11:44:50 +01:00
|
|
|
List<GcubeVRE> getListOfVREsForLoggedUser() throws Exception;
|
2019-01-09 11:47:58 +01:00
|
|
|
|
2018-03-28 18:35:12 +02:00
|
|
|
/**
|
2018-09-14 15:42:36 +02:00
|
|
|
* Checks if is item under sync.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param itemId
|
|
|
|
* the item id
|
2018-09-14 15:42:36 +02:00
|
|
|
* @return the boolean
|
2019-02-22 11:44:50 +01:00
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
2018-03-28 18:35:12 +02:00
|
|
|
*/
|
2019-02-22 11:44:50 +01:00
|
|
|
Boolean isItemUnderSync(String itemId) throws Exception;
|
2018-03-28 18:35:12 +02:00
|
|
|
|
2019-01-09 11:47:58 +01:00
|
|
|
/**
|
|
|
|
* Gets the public link for file item id to version.
|
|
|
|
*
|
2019-02-22 11:44:50 +01:00
|
|
|
* @param itemId
|
|
|
|
* the item id
|
|
|
|
* @param version
|
|
|
|
* the version
|
|
|
|
* @param shortenUrl
|
|
|
|
* the shorten url
|
2019-01-09 11:47:58 +01:00
|
|
|
* @return the public link for file item id to version
|
|
|
|
* @throws Exception
|
2019-02-22 11:44:50 +01:00
|
|
|
* Error
|
2019-01-09 11:47:58 +01:00
|
|
|
*/
|
2019-02-22 11:44:50 +01:00
|
|
|
PublicLink getPublicLinkForFileItemIdToVersion(String itemId, String version, boolean shortenUrl) throws Exception;
|
2017-09-29 17:58:12 +02:00
|
|
|
|
2019-07-29 15:27:34 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the item for file tree.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @return the item for file tree
|
|
|
|
* @throws Exception the exception
|
|
|
|
*/
|
|
|
|
FileModel getItemForFileTree(String itemId) throws Exception;
|
|
|
|
|
2013-02-06 15:40:17 +01:00
|
|
|
}
|