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;
|
|
|
|
|
|
|
|
import org.gcube.portlets.user.workspace.client.model.BulkCreatorModel;
|
|
|
|
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.MessageModel;
|
|
|
|
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;
|
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-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;
|
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;
|
|
|
|
|
|
|
|
public interface GWTWorkspaceServiceAsync {
|
|
|
|
|
|
|
|
void getRootForTree(AsyncCallback<FolderModel> callback);
|
|
|
|
|
|
|
|
void getRootForTree(String scopeId, AsyncCallback<FolderModel> callback);
|
|
|
|
|
|
|
|
void getFolderChildren(FolderModel folder, AsyncCallback<List<FileModel>> callback);
|
|
|
|
|
|
|
|
void getFolderChildrenForFileGrid(FileModel folder, AsyncCallback<List<FileGridModel>> callback);
|
|
|
|
|
|
|
|
void moveItem(String itemId, String destinationId, AsyncCallback<Boolean> callback);
|
|
|
|
|
|
|
|
void removeItem(String itemId, AsyncCallback<Boolean> callback);
|
|
|
|
|
2013-03-25 11:14:26 +01:00
|
|
|
void renameItem(String itemId, String newName, String oldName, AsyncCallback<Boolean> callback);
|
2013-02-06 15:40:17 +01:00
|
|
|
|
|
|
|
void createFolder(String nameFolder, String description, FileModel parent, AsyncCallback<FolderModel> callback);
|
|
|
|
|
|
|
|
void getDetailsFile(FileModel item, AsyncCallback<FileDetailsModel> callback);
|
|
|
|
|
|
|
|
void getChildrenSubTreeToRootByIdentifier(String itemIdentifier, AsyncCallback<ArrayList<SubTree>> callback);
|
|
|
|
|
|
|
|
void getItemsBySearchName(String text, AsyncCallback<List<FileGridModel>> callback);
|
|
|
|
|
|
|
|
void getSmartFolderResultsByCategory(String category, AsyncCallback<List<FileGridModel>> callback);
|
|
|
|
|
|
|
|
void createSmartFolder(String name, String description, String query, AsyncCallback<SmartFolderModel> callback);
|
|
|
|
|
|
|
|
void getSmartFolderResultsById(String folderId, AsyncCallback<List<FileGridModel>> callback);
|
|
|
|
|
|
|
|
void getAllSmartFolders(AsyncCallback<List<SmartFolderModel>> callback);
|
|
|
|
|
|
|
|
void getImageById(String identifier, boolean isInteralImage, boolean fullDetails, AsyncCallback<GWTWorkspaceItem> callback);
|
|
|
|
|
|
|
|
void getUrlById(String identifier, boolean isInternalUrl, boolean fullDetails, AsyncCallback<GWTWorkspaceItem> callback);
|
|
|
|
|
|
|
|
void createExternalUrl(FileModel parentFileModel, String name, String description, String url, AsyncCallback<FileModel> callback);
|
|
|
|
|
|
|
|
void setValueInSession(String name, String value, AsyncCallback<Void> callback);
|
|
|
|
|
|
|
|
void removeSmartFolder(String itemId, String name, AsyncCallback<Boolean> callback);
|
|
|
|
|
|
|
|
void getAllScope(AsyncCallback<List<ScopeModel>> callback);
|
|
|
|
|
|
|
|
void getAllContacts(AsyncCallback<List<InfoContactModel>> callback);
|
|
|
|
|
|
|
|
// void sendTo(List<InfoContactModel> listContacts, List<FileModel> listAttachments, String subject, String text, AsyncCallback<Boolean> callback);
|
|
|
|
|
|
|
|
void sendToById(List<String> listContactsId, List<String> listAttachmentsId, String subject, String text, AsyncCallback<Boolean> callback);
|
|
|
|
|
|
|
|
void getAllMessagesReceived(AsyncCallback<List<MessageModel>> callback);
|
|
|
|
|
|
|
|
void getAllMessagesSent(AsyncCallback<List<MessageModel>> callback);
|
|
|
|
|
|
|
|
void getMessageById(String messageIdentifier, String messageType, AsyncCallback<MessageModel> asyncCallback);
|
|
|
|
|
|
|
|
void sentToByMessageModel(MessageModel message, AsyncCallback<Boolean> callback);
|
|
|
|
|
|
|
|
void saveAttachments(String messageIdentifier, String messageType,
|
|
|
|
AsyncCallback<Boolean> callback);
|
|
|
|
|
|
|
|
void saveAttach(String attachId, AsyncCallback<Boolean> callback);
|
|
|
|
|
|
|
|
void markMessage(String messageIdentifier, String messageType,
|
|
|
|
boolean boolMark, String markType, AsyncCallback<Boolean> callback);
|
|
|
|
|
|
|
|
void deleteMessage(String messageIdentifier, String messageType,
|
|
|
|
AsyncCallback<Boolean> callback);
|
|
|
|
|
|
|
|
void getNewMessagesReceived(AsyncCallback<List<MessageModel>> callback);
|
|
|
|
|
|
|
|
void copyItem(String itemId, String destinationFolderId, AsyncCallback<Boolean> callback);
|
|
|
|
|
|
|
|
void getListFolderBulkCreator(AsyncCallback<List<BulkCreatorModel>> callback);
|
|
|
|
|
|
|
|
void deleteBulk(String bulkId, AsyncCallback<Boolean> callback);
|
|
|
|
|
|
|
|
void getUrlWebDav(String itemId, AsyncCallback<String> callback);
|
|
|
|
|
|
|
|
void searchInSentMessagesByText(String text,
|
|
|
|
AsyncCallback<List<MessageModel>> callback);
|
|
|
|
|
|
|
|
void searchInReceivedMessagesByText(String text,
|
|
|
|
AsyncCallback<List<MessageModel>> callback);
|
|
|
|
|
|
|
|
void getTimeSeriesById(String identifier,
|
|
|
|
AsyncCallback<GWTWorkspaceItem> 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
|
|
|
|
|
|
|
void getListUserSharedByFolderSharedId(String itemId,
|
|
|
|
AsyncCallback<List<InfoContactModel>> callback);
|
|
|
|
|
|
|
|
void unSharedFolderByFolderSharedId(String folderSharedId,
|
|
|
|
AsyncCallback<Boolean> callback);
|
|
|
|
|
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
|
|
|
|
2013-02-20 14:28:25 +01:00
|
|
|
void getURLFromApplicationProfile(String oid, AsyncCallback<String> callback);
|
2013-02-13 18:39:33 +01:00
|
|
|
|
2013-02-25 19:03:53 +01:00
|
|
|
void getOwnerByItemId(String itemId,
|
|
|
|
AsyncCallback<InfoContactModel> callback);
|
2013-02-06 15:40:17 +01:00
|
|
|
|
2013-03-25 11:14:26 +01:00
|
|
|
void itemExistsInWorkpaceFolder(String parentId, String itemName,
|
|
|
|
AsyncCallback<String> callback);
|
|
|
|
|
|
|
|
void getListUserSharedBySharedItem(String sharedItemId,
|
|
|
|
AsyncCallback<List<InfoContactModel>> callback);
|
|
|
|
|
2013-03-25 12:35:05 +01:00
|
|
|
void getItemCreationDateById(String itemId,
|
|
|
|
AsyncCallback<Date> asyncCallback);
|
|
|
|
|
|
|
|
void loadSizeByItemId(String itemId, AsyncCallback<Long> asyncCallback);
|
|
|
|
|
2013-03-26 12:35:58 +01:00
|
|
|
void loadLastModificationDateById(String itemId,
|
|
|
|
AsyncCallback<Date> callback);
|
|
|
|
|
2013-03-27 17:30:37 +01:00
|
|
|
void getParentByItemId(String identifier,
|
|
|
|
AsyncCallback<FileModel> asyncCallback);
|
|
|
|
|
2013-05-23 19:03:43 +02:00
|
|
|
void getAccountingReaders(String identifier,
|
|
|
|
AsyncCallback<List<GxtAccountingField>> callback);
|
|
|
|
|
|
|
|
void getAccountingHistory(String identifier,
|
|
|
|
AsyncCallback<List<GxtAccountingField>> callback);
|
|
|
|
|
2013-06-06 18:04:06 +02:00
|
|
|
void getItemForFileGrid(String itemId, AsyncCallback<FileGridModel> callback);
|
|
|
|
|
2013-06-14 15:04:43 +02:00
|
|
|
void getFolderChildrenForFileGridById(String folderId,
|
|
|
|
AsyncCallback<List<FileGridModel>> callback);
|
|
|
|
|
2013-06-28 18:42:10 +02:00
|
|
|
void getShortUrl(String longUrl, AsyncCallback<String> callback);
|
|
|
|
|
2013-07-08 17:42:08 +02:00
|
|
|
void getPublicLinkForFolderItemId(String itemId, boolean shortenUrl,
|
|
|
|
AsyncCallback<String> callback);
|
|
|
|
|
2013-09-02 12:43:57 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void isSessionExpired(AsyncCallback<Boolean> callback);
|
|
|
|
|
2014-01-15 12:49:40 +01:00
|
|
|
void deleteListItemsForIds(List<String> ids, AsyncCallback<Void> callback);
|
2013-02-06 15:40:17 +01:00
|
|
|
|
2014-01-23 17:20:38 +01:00
|
|
|
void copyItems(List<String> idsItem, String destinationFolderId,
|
|
|
|
AsyncCallback<Boolean> callback);
|
|
|
|
|
2014-01-24 16:01:15 +01:00
|
|
|
void moveItems(List<String> ids, String destinationId,
|
|
|
|
AsyncCallback<Boolean> callback);
|
|
|
|
|
2014-02-11 12:53:10 +01:00
|
|
|
void getACLs(AsyncCallback<List<WorkspaceACL>> callback);
|
|
|
|
|
|
|
|
void setACLs(String folderId, List<String> listLogins, String aclType,
|
|
|
|
AsyncCallback<Void> callback);
|
|
|
|
|
2014-02-12 12:49:07 +01:00
|
|
|
void getMyLogin(AsyncCallback<String> 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);
|
|
|
|
|
2014-02-18 14:40:19 +01:00
|
|
|
void getUserACLForFolderId(String folderId,
|
2014-02-17 15:56:42 +01:00
|
|
|
AsyncCallback<List<WorkspaceACL>> callback);
|
|
|
|
|
|
|
|
void getTrashContent(AsyncCallback<List<FileTrashedModel>> callback);
|
|
|
|
|
2014-05-13 11:10:54 +02:00
|
|
|
void updateTrashContent(WorkspaceTrashOperation operation,
|
|
|
|
AsyncCallback<TrashContent> callback);
|
2014-02-17 19:20:30 +01:00
|
|
|
|
2014-02-19 16:11:28 +01:00
|
|
|
void getACLsDescriptionForSharedFolderId(String folderId,
|
2014-02-18 14:40:19 +01:00
|
|
|
AsyncCallback<String> callback);
|
|
|
|
|
2014-03-17 14:43:06 +01:00
|
|
|
void getUsersManagerToSharedFolder(String folderId,
|
|
|
|
AsyncCallback<List<InfoContactModel>> 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);
|
2014-05-13 11:10:54 +02:00
|
|
|
|
2013-02-06 15:40:17 +01:00
|
|
|
}
|