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
|
|
|
|
2016-09-29 15:28:32 +02:00
|
|
|
import org.gcube.portlets.user.workspace.client.interfaces.GXTCategorySmartFolder;
|
2013-02-06 15:40:17 +01:00
|
|
|
import org.gcube.portlets.user.workspace.client.model.FileDetailsModel;
|
|
|
|
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;
|
2013-02-06 15:40:17 +01:00
|
|
|
import org.gcube.portlets.user.workspace.client.model.FolderModel;
|
|
|
|
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;
|
2016-11-29 15:16:47 +01:00
|
|
|
import org.gcube.portlets.user.workspace.shared.AllowAccess;
|
2014-07-14 15:59:32 +02:00
|
|
|
import org.gcube.portlets.user.workspace.shared.ExtendedWorkspaceACL;
|
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;
|
2015-03-06 16:12:21 +01:00
|
|
|
import org.gcube.portlets.user.workspace.shared.ReportAssignmentACL;
|
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;
|
2014-02-11 12:53:10 +01:00
|
|
|
import org.gcube.portlets.user.workspace.shared.WorkspaceACL;
|
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.AsyncCallback;
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The Interface GWTWorkspaceServiceAsync.
|
|
|
|
*
|
|
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
|
|
* Jul 14, 2015
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
public interface GWTWorkspaceServiceAsync {
|
2016-05-13 11:14:42 +02:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the user workspace size.
|
|
|
|
*
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the user workspace size
|
|
|
|
*/
|
2014-10-28 17:12:40 +01:00
|
|
|
void getUserWorkspaceSize(AsyncCallback<String> callback);
|
2016-05-13 11:14:42 +02:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the root for tree.
|
|
|
|
*
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the root for tree
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void getRootForTree(AsyncCallback<FolderModel> callback);
|
2016-05-13 11:14:42 +02:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the root for tree.
|
|
|
|
*
|
|
|
|
* @param scopeId the scope id
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the root for tree
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void getRootForTree(String scopeId, AsyncCallback<FolderModel> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the folder children.
|
|
|
|
*
|
|
|
|
* @param folder the folder
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the folder children
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void getFolderChildren(FolderModel folder, AsyncCallback<List<FileModel>> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the folder children for file grid.
|
|
|
|
*
|
|
|
|
* @param folder the folder
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the folder children for file grid
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void getFolderChildrenForFileGrid(FileModel folder, AsyncCallback<List<FileGridModel>> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Move item.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @param destinationId the destination id
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void moveItem(String itemId, String destinationId, AsyncCallback<Boolean> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Removes the item.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void removeItem(String itemId, AsyncCallback<Boolean> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Rename item.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @param newName the new name
|
|
|
|
* @param oldName the old name
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2013-03-25 11:14:26 +01:00
|
|
|
void renameItem(String itemId, String newName, String oldName, AsyncCallback<Boolean> callback);
|
2016-05-13 11:14:42 +02:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Creates the folder.
|
|
|
|
*
|
|
|
|
* @param nameFolder the name folder
|
|
|
|
* @param description the description
|
|
|
|
* @param parent the parent
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void createFolder(String nameFolder, String description, FileModel parent, AsyncCallback<FolderModel> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the details file.
|
|
|
|
*
|
|
|
|
* @param item the item
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the details file
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void getDetailsFile(FileModel item, AsyncCallback<FileDetailsModel> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void getChildrenSubTreeToRootByIdentifier(String itemIdentifier, AsyncCallback<ArrayList<SubTree>> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the items by search name.
|
|
|
|
*
|
|
|
|
* @param text the text
|
2016-09-15 16:42:20 +02:00
|
|
|
* @param folderId the folder id
|
2015-07-14 18:11:11 +02:00
|
|
|
* @param callback the callback
|
|
|
|
* @return the items by search name
|
|
|
|
*/
|
2015-10-12 15:30:59 +02:00
|
|
|
void getItemsBySearchName(String text, String folderId, AsyncCallback<List<FileGridModel>> callback);
|
2013-02-06 15:40:17 +01:00
|
|
|
|
2016-09-29 15:28:32 +02:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the smart folder results by category.
|
|
|
|
*
|
|
|
|
* @param category the category
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the smart folder results by category
|
|
|
|
*/
|
2016-09-29 15:28:32 +02:00
|
|
|
void getSmartFolderResultsByCategory(GXTCategorySmartFolder category, AsyncCallback<List<FileGridModel>> callback);
|
2013-02-06 15:40:17 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Creates the smart folder.
|
|
|
|
*
|
|
|
|
* @param name the name
|
|
|
|
* @param description the description
|
|
|
|
* @param query the query
|
2016-09-15 16:42:20 +02:00
|
|
|
* @param parentId the parent id
|
2015-07-14 18:11:11 +02:00
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2015-10-12 15:30:59 +02:00
|
|
|
void createSmartFolder(String name, String description, String query, String parentId, AsyncCallback<SmartFolderModel> callback);
|
2013-02-06 15:40:17 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the smart folder results by id.
|
|
|
|
*
|
|
|
|
* @param folderId the folder id
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the smart folder results by id
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void getSmartFolderResultsById(String folderId, AsyncCallback<List<FileGridModel>> callback);
|
2016-05-13 11:14:42 +02:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the all smart folders.
|
|
|
|
*
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the all smart folders
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void getAllSmartFolders(AsyncCallback<List<SmartFolderModel>> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void getImageById(String identifier, boolean isInteralImage, boolean fullDetails, AsyncCallback<GWTWorkspaceItem> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void getUrlById(String identifier, boolean isInternalUrl, boolean fullDetails, AsyncCallback<GWTWorkspaceItem> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Creates the external url.
|
|
|
|
*
|
|
|
|
* @param parentFileModel the parent file model
|
|
|
|
* @param name the name
|
|
|
|
* @param description the description
|
|
|
|
* @param url the url
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void createExternalUrl(FileModel parentFileModel, String name, String description, String url, AsyncCallback<FileModel> callback);
|
2016-05-13 11:14:42 +02:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Sets the value in session.
|
|
|
|
*
|
|
|
|
* @param name the name
|
|
|
|
* @param value the value
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void setValueInSession(String name, String value, AsyncCallback<Void> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Removes the smart folder.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @param name the name
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void removeSmartFolder(String itemId, String name, AsyncCallback<Boolean> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the all scope.
|
|
|
|
*
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the all scope
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void getAllScope(AsyncCallback<List<ScopeModel>> callback);
|
2016-05-13 11:14:42 +02:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the all contacts.
|
|
|
|
*
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the all contacts
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void getAllContacts(AsyncCallback<List<InfoContactModel>> callback);
|
|
|
|
|
2016-06-22 18:41:51 +02:00
|
|
|
// void sendTo(List<InfoContactModel> listContacts, List<FileModel> listAttachments, String subject, String text, AsyncCallback<Boolean> callback);
|
2016-05-13 11:14:42 +02:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
2015-10-05 18:33:14 +02:00
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
void sendToById(List<String> listContactsId, List<String> listAttachmentsId, String subject, String text, AsyncCallback<Boolean> callback);
|
2013-02-06 15:40:17 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Copy item.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @param destinationFolderId the destination folder id
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void copyItem(String itemId, String destinationFolderId, AsyncCallback<Boolean> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the url web dav.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the url web dav
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void getUrlWebDav(String itemId, AsyncCallback<String> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the time series by id.
|
|
|
|
*
|
|
|
|
* @param identifier the identifier
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the time series by id
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void getTimeSeriesById(String identifier,
|
|
|
|
AsyncCallback<GWTWorkspaceItem> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2013-02-12 16:02:00 +01:00
|
|
|
void shareFolder(FileModel folder, List<InfoContactModel> listContacts,
|
2014-02-11 16:41:56 +01:00
|
|
|
boolean isNewFolder, WorkspaceACL acl,
|
|
|
|
AsyncCallback<Boolean> callback);
|
2013-02-06 15:40:17 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void getListUserSharedByFolderSharedId(String itemId,
|
|
|
|
AsyncCallback<List<InfoContactModel>> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Un shared folder by folder shared id.
|
|
|
|
*
|
|
|
|
* @param folderSharedId the folder shared id
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2013-02-06 15:40:17 +01:00
|
|
|
void unSharedFolderByFolderSharedId(String folderSharedId,
|
|
|
|
AsyncCallback<Boolean> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2013-02-13 18:39:33 +01:00
|
|
|
void getListParentsByItemIdentifier(String itemIdentifier,
|
2013-09-12 12:27:18 +02:00
|
|
|
boolean includeItemAsParent, AsyncCallback<List<FileModel>> callback);
|
2013-02-14 15:06:34 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the URL from application profile.
|
|
|
|
*
|
|
|
|
* @param oid the oid
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the URL from application profile
|
|
|
|
*/
|
2013-02-20 14:28:25 +01:00
|
|
|
void getURLFromApplicationProfile(String oid, AsyncCallback<String> callback);
|
2016-05-13 11:14:42 +02:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the owner by item id.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the owner by item id
|
|
|
|
*/
|
2013-02-25 19:03:53 +01:00
|
|
|
void getOwnerByItemId(String itemId,
|
|
|
|
AsyncCallback<InfoContactModel> callback);
|
2013-02-06 15:40:17 +01:00
|
|
|
|
2016-11-29 15:16:47 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Access to folder link.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
|
|
|
void accessToFolderLink(String itemId,
|
|
|
|
AsyncCallback<AllowAccess> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Item exists in workpace folder.
|
|
|
|
*
|
|
|
|
* @param parentId the parent id
|
|
|
|
* @param itemName the item name
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2013-03-25 11:14:26 +01:00
|
|
|
void itemExistsInWorkpaceFolder(String parentId, String itemName,
|
|
|
|
AsyncCallback<String> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the item creation date by id.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @param asyncCallback the async callback
|
|
|
|
* @return the item creation date by id
|
|
|
|
*/
|
2013-03-25 12:35:05 +01:00
|
|
|
void getItemCreationDateById(String itemId,
|
|
|
|
AsyncCallback<Date> asyncCallback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Load size by item id.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @param asyncCallback the async callback
|
|
|
|
*/
|
2013-03-25 12:35:05 +01:00
|
|
|
void loadSizeByItemId(String itemId, AsyncCallback<Long> asyncCallback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Load last modification date by id.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2013-03-26 12:35:58 +01:00
|
|
|
void loadLastModificationDateById(String itemId,
|
|
|
|
AsyncCallback<Date> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the parent by item id.
|
|
|
|
*
|
|
|
|
* @param identifier the identifier
|
|
|
|
* @param asyncCallback the async callback
|
|
|
|
* @return the parent by item id
|
|
|
|
*/
|
2013-03-27 17:30:37 +01:00
|
|
|
void getParentByItemId(String identifier,
|
|
|
|
AsyncCallback<FileModel> asyncCallback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the accounting readers.
|
|
|
|
*
|
|
|
|
* @param identifier the identifier
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the accounting readers
|
|
|
|
*/
|
2013-05-23 19:03:43 +02:00
|
|
|
void getAccountingReaders(String identifier,
|
|
|
|
AsyncCallback<List<GxtAccountingField>> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the accounting history.
|
|
|
|
*
|
|
|
|
* @param identifier the identifier
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the accounting history
|
|
|
|
*/
|
2013-05-23 19:03:43 +02:00
|
|
|
void getAccountingHistory(String identifier,
|
|
|
|
AsyncCallback<List<GxtAccountingField>> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the item for file grid.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the item for file grid
|
|
|
|
*/
|
2013-06-06 18:04:06 +02:00
|
|
|
void getItemForFileGrid(String itemId, AsyncCallback<FileGridModel> callback);
|
2016-05-13 11:14:42 +02:00
|
|
|
|
2015-10-05 18:33:14 +02:00
|
|
|
/**
|
2016-09-15 16:42:20 +02:00
|
|
|
* Gets the item for file tree.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @param asyncCallback the async callback
|
|
|
|
* @return the item for file tree
|
2015-10-05 18:33:14 +02:00
|
|
|
*/
|
|
|
|
void getItemForFileTree(String itemId,AsyncCallback<FileModel> asyncCallback);
|
2013-06-06 18:04:06 +02:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2013-06-14 15:04:43 +02:00
|
|
|
void getFolderChildrenForFileGridById(String folderId,
|
|
|
|
AsyncCallback<List<FileGridModel>> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the short url.
|
|
|
|
*
|
|
|
|
* @param longUrl the long url
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the short url
|
|
|
|
*/
|
2013-06-28 18:42:10 +02:00
|
|
|
void getShortUrl(String longUrl, AsyncCallback<String> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the public link for folder item id.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @param shortenUrl the shorten url
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the public link for folder item id
|
|
|
|
*/
|
2013-07-08 17:42:08 +02:00
|
|
|
void getPublicLinkForFolderItemId(String itemId, boolean shortenUrl,
|
2015-07-03 12:18:27 +02:00
|
|
|
AsyncCallback<PublicLink> callback);
|
2013-07-08 17:42:08 +02:00
|
|
|
|
2013-09-02 12:43:57 +02:00
|
|
|
/**
|
2015-07-14 18:11:11 +02:00
|
|
|
* Checks if is session expired.
|
|
|
|
*
|
|
|
|
* @param callback the callback
|
2013-09-02 12:43:57 +02:00
|
|
|
*/
|
|
|
|
void isSessionExpired(AsyncCallback<Boolean> callback);
|
|
|
|
|
2016-09-15 16:42:20 +02:00
|
|
|
/**
|
|
|
|
* Delete list items for ids.
|
|
|
|
*
|
|
|
|
* @param ids the ids
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2015-10-29 15:36:27 +01:00
|
|
|
void deleteListItemsForIds(List<String> ids,
|
|
|
|
AsyncCallback<List<GarbageItem>> callback);
|
2013-02-06 15:40:17 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Copy items.
|
|
|
|
*
|
|
|
|
* @param idsItem the ids item
|
|
|
|
* @param destinationFolderId the destination folder id
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2014-01-23 17:20:38 +01:00
|
|
|
void copyItems(List<String> idsItem, String destinationFolderId,
|
|
|
|
AsyncCallback<Boolean> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Move items.
|
|
|
|
*
|
|
|
|
* @param ids the ids
|
|
|
|
* @param destinationId the destination id
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2014-01-24 16:01:15 +01:00
|
|
|
void moveItems(List<String> ids, String destinationId,
|
|
|
|
AsyncCallback<Boolean> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the AC ls.
|
|
|
|
*
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the AC ls
|
|
|
|
*/
|
2014-02-11 12:53:10 +01:00
|
|
|
void getACLs(AsyncCallback<List<WorkspaceACL>> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Sets the ac ls.
|
|
|
|
*
|
|
|
|
* @param folderId the folder id
|
|
|
|
* @param listLogins the list logins
|
|
|
|
* @param aclType the acl type
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2014-02-11 12:53:10 +01:00
|
|
|
void setACLs(String folderId, List<String> listLogins, String aclType,
|
|
|
|
AsyncCallback<Void> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the my login.
|
2016-09-29 15:28:32 +02:00
|
|
|
*
|
|
|
|
* @param currentPortletUrl the current portlet url
|
2015-07-14 18:11:11 +02:00
|
|
|
* @param callback the callback
|
|
|
|
* @return the my login
|
|
|
|
*/
|
2016-09-16 11:12:03 +02:00
|
|
|
void getMyLogin(String currentPortletUrl, AsyncCallback<UserBean> callback);
|
2014-02-12 12:49:07 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Update acl for vr eby group name.
|
|
|
|
*
|
|
|
|
* @param folderId the folder id
|
|
|
|
* @param aclType the acl type
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2014-03-18 11:13:34 +01:00
|
|
|
void updateACLForVREbyGroupName(String folderId, String aclType,
|
2014-02-14 15:28:35 +01:00
|
|
|
AsyncCallback<Void> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the user acl for folder id.
|
|
|
|
*
|
|
|
|
* @param folderId the folder id
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the user acl for folder id
|
|
|
|
*/
|
2014-02-18 14:40:19 +01:00
|
|
|
void getUserACLForFolderId(String folderId,
|
2014-07-14 15:59:32 +02:00
|
|
|
AsyncCallback<List<ExtendedWorkspaceACL>> callback);
|
2014-02-17 15:56:42 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the trash content.
|
|
|
|
*
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the trash content
|
|
|
|
*/
|
2014-02-17 15:56:42 +01:00
|
|
|
void getTrashContent(AsyncCallback<List<FileTrashedModel>> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Update trash content.
|
|
|
|
*
|
|
|
|
* @param operation the operation
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2014-05-13 11:10:54 +02:00
|
|
|
void updateTrashContent(WorkspaceTrashOperation operation,
|
|
|
|
AsyncCallback<TrashContent> callback);
|
2014-02-17 19:20:30 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* 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,
|
2014-02-18 14:40:19 +01:00
|
|
|
AsyncCallback<String> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the users manager to shared folder.
|
|
|
|
*
|
|
|
|
* @param folderId the folder id
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the users manager to shared folder
|
|
|
|
*/
|
2014-03-17 14:43:06 +01:00
|
|
|
void getUsersManagerToSharedFolder(String folderId,
|
|
|
|
AsyncCallback<List<InfoContactModel>> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Execute operation on trash.
|
|
|
|
*
|
|
|
|
* @param listTrashItemIds the list trash item ids
|
|
|
|
* @param operation the operation
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2014-05-13 11:10:54 +02:00
|
|
|
void executeOperationOnTrash(List<String> listTrashItemIds,
|
|
|
|
WorkspaceTrashOperation operation,
|
2014-05-13 11:26:57 +02:00
|
|
|
AsyncCallback<TrashOperationContent> callback);
|
2016-05-13 11:14:42 +02:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Adds the administrators by folder id.
|
|
|
|
*
|
|
|
|
* @param folderId the folder id
|
|
|
|
* @param listLogins the list logins
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2014-07-08 18:41:53 +02:00
|
|
|
void addAdministratorsByFolderId(String folderId, List<String> listLogins,
|
|
|
|
AsyncCallback<Boolean> callback);
|
2014-05-13 11:10:54 +02:00
|
|
|
|
2014-07-11 15:56:35 +02:00
|
|
|
/**
|
2015-07-14 18:11:11 +02:00
|
|
|
* Gets the administrators by folder id.
|
|
|
|
*
|
|
|
|
* @param identifier the identifier
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the administrators by folder id
|
2014-07-11 15:56:35 +02:00
|
|
|
*/
|
|
|
|
void getAdministratorsByFolderId(String identifier, AsyncCallback<List<InfoContactModel>> callback);
|
2016-05-13 11:14:42 +02:00
|
|
|
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the ACL by shared folder id.
|
|
|
|
*
|
|
|
|
* @param identifier the identifier
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the ACL by shared folder id
|
|
|
|
*/
|
2014-09-24 12:55:32 +02:00
|
|
|
void getACLBySharedFolderId(String identifier, AsyncCallback<WorkspaceACL> callback);
|
2014-07-11 15:56:35 +02:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the user workspace total items.
|
|
|
|
*
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the user workspace total items
|
|
|
|
*/
|
2014-10-31 17:27:52 +01:00
|
|
|
void getUserWorkspaceTotalItems(AsyncCallback<Long> callback);
|
2014-10-28 17:12:40 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the user workspace quote.
|
|
|
|
*
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the user workspace quote
|
|
|
|
*/
|
2014-10-31 17:27:52 +01:00
|
|
|
void getUserWorkspaceQuote(AsyncCallback<WorkspaceUserQuote> callback);
|
2014-10-28 17:12:40 +01:00
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the item description by id.
|
|
|
|
*
|
|
|
|
* @param identifier the identifier
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the item description by id
|
|
|
|
*/
|
2014-11-04 18:20:06 +01:00
|
|
|
void getItemDescriptionById(String identifier,
|
|
|
|
AsyncCallback<String> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Validate acl to user.
|
|
|
|
*
|
|
|
|
* @param folderId the folder id
|
|
|
|
* @param listLogins the list logins
|
|
|
|
* @param aclType the acl type
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2015-03-06 16:12:21 +01:00
|
|
|
void validateACLToUser(String folderId, List<String> listLogins,
|
|
|
|
String aclType, AsyncCallback<ReportAssignmentACL> callback);
|
|
|
|
|
2015-06-12 12:24:01 +02:00
|
|
|
/**
|
2015-07-14 18:11:11 +02:00
|
|
|
* Load gcube item properties.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @param asyncCallback the async callback
|
2015-06-12 12:24:01 +02:00
|
|
|
*/
|
|
|
|
void loadGcubeItemProperties(String itemId,
|
|
|
|
AsyncCallback<Map<String, String>> asyncCallback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Gets the HTML gcube item properties.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the HTML gcube item properties
|
|
|
|
*/
|
2015-06-12 12:24:01 +02:00
|
|
|
void getHTMLGcubeItemProperties(String itemId,
|
|
|
|
AsyncCallback<String> callback);
|
|
|
|
|
2015-07-14 18:11:11 +02:00
|
|
|
/**
|
|
|
|
* Sets the gcube item properties.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @param properties the properties
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
2015-06-12 12:24:01 +02:00
|
|
|
void setGcubeItemProperties(String itemId, Map<String, String> properties,
|
|
|
|
AsyncCallback<Void> callback);
|
|
|
|
|
2016-09-15 16:42:20 +02:00
|
|
|
/**
|
|
|
|
* Gets the my first name.
|
|
|
|
*
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the my first name
|
|
|
|
*/
|
2016-08-29 15:39:13 +02:00
|
|
|
void getMyFirstName(AsyncCallback<String> callback);
|
|
|
|
|
2016-09-14 12:17:14 +02:00
|
|
|
/**
|
2016-09-15 16:42:20 +02:00
|
|
|
* 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
|
2016-09-14 12:17:14 +02:00
|
|
|
*/
|
2016-09-15 16:42:20 +02:00
|
|
|
void markFolderAsPublicForFolderItemId(
|
2016-09-16 11:12:03 +02:00
|
|
|
String itemId, boolean setPublic, AsyncCallback<PublicLink> callback);
|
2016-09-14 12:17:14 +02:00
|
|
|
|
2016-09-29 15:28:32 +02:00
|
|
|
/**
|
|
|
|
* Gets the servlet context path.
|
|
|
|
*
|
|
|
|
* @param protocol the protocol
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the servlet context path
|
|
|
|
*/
|
2016-09-21 18:10:14 +02:00
|
|
|
void getServletContextPath(String protocol, AsyncCallback<String> callback);
|
|
|
|
|
2017-02-20 14:57:07 +01:00
|
|
|
void getVersionHistory(
|
|
|
|
String fileIdentifier, AsyncCallback<List<FileModel>> callback);
|
|
|
|
|
|
|
|
void performOperationOnVersionedFile(
|
|
|
|
FileModel currentVersion, FileModel olderVersion,
|
|
|
|
WorkspaceVersioningOperation operation,
|
|
|
|
AsyncCallback<List<FileModel>> callback);
|
|
|
|
|
2013-02-06 15:40:17 +01:00
|
|
|
}
|