package org.gcube.portlets.user.workspace.client.rpc; import java.util.ArrayList; import java.util.Date; 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; 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; import org.gcube.portlets.user.workspace.shared.WorkspaceACL; import org.gcube.portlets.user.workspace.shared.accounting.GxtAccountingField; import com.google.gwt.user.client.rpc.AsyncCallback; public interface GWTWorkspaceServiceAsync { void getRootForTree(AsyncCallback callback); void getRootForTree(String scopeId, AsyncCallback callback); void getFolderChildren(FolderModel folder, AsyncCallback> callback); void getFolderChildrenForFileGrid(FileModel folder, AsyncCallback> callback); void moveItem(String itemId, String destinationId, AsyncCallback callback); void removeItem(String itemId, AsyncCallback callback); void renameItem(String itemId, String newName, String oldName, AsyncCallback callback); void createFolder(String nameFolder, String description, FileModel parent, AsyncCallback callback); void getDetailsFile(FileModel item, AsyncCallback callback); void getChildrenSubTreeToRootByIdentifier(String itemIdentifier, AsyncCallback> callback); void getItemsBySearchName(String text, AsyncCallback> callback); void getSmartFolderResultsByCategory(String category, AsyncCallback> callback); void createSmartFolder(String name, String description, String query, AsyncCallback callback); void getSmartFolderResultsById(String folderId, AsyncCallback> callback); void getAllSmartFolders(AsyncCallback> callback); void getImageById(String identifier, boolean isInteralImage, boolean fullDetails, AsyncCallback callback); void getUrlById(String identifier, boolean isInternalUrl, boolean fullDetails, AsyncCallback callback); void createExternalUrl(FileModel parentFileModel, String name, String description, String url, AsyncCallback callback); void setValueInSession(String name, String value, AsyncCallback callback); void removeSmartFolder(String itemId, String name, AsyncCallback callback); void getAllScope(AsyncCallback> callback); void getAllContacts(AsyncCallback> callback); // void sendTo(List listContacts, List listAttachments, String subject, String text, AsyncCallback callback); void sendToById(List listContactsId, List listAttachmentsId, String subject, String text, AsyncCallback callback); void getAllMessagesReceived(AsyncCallback> callback); void getAllMessagesSent(AsyncCallback> callback); void getMessageById(String messageIdentifier, String messageType, AsyncCallback asyncCallback); void sentToByMessageModel(MessageModel message, AsyncCallback callback); void saveAttachments(String messageIdentifier, String messageType, AsyncCallback callback); void saveAttach(String attachId, AsyncCallback callback); void markMessage(String messageIdentifier, String messageType, boolean boolMark, String markType, AsyncCallback callback); void deleteMessage(String messageIdentifier, String messageType, AsyncCallback callback); void getNewMessagesReceived(AsyncCallback> callback); void copyItem(String itemId, String destinationFolderId, AsyncCallback callback); void getListFolderBulkCreator(AsyncCallback> callback); void deleteBulk(String bulkId, AsyncCallback callback); void getUrlWebDav(String itemId, AsyncCallback callback); void searchInSentMessagesByText(String text, AsyncCallback> callback); void searchInReceivedMessagesByText(String text, AsyncCallback> callback); void getTimeSeriesById(String identifier, AsyncCallback callback); void shareFolder(FileModel folder, List listContacts, boolean isNewFolder, AsyncCallback callback); void getListUserSharedByFolderSharedId(String itemId, AsyncCallback> callback); void unSharedFolderByFolderSharedId(String folderSharedId, AsyncCallback callback); void getListParentsByItemIdentifier(String itemIdentifier, boolean includeItemAsParent, AsyncCallback> callback); void getURLFromApplicationProfile(String oid, AsyncCallback callback); void getOwnerByItemId(String itemId, AsyncCallback callback); void itemExistsInWorkpaceFolder(String parentId, String itemName, AsyncCallback callback); void getListUserSharedBySharedItem(String sharedItemId, AsyncCallback> callback); void getItemCreationDateById(String itemId, AsyncCallback asyncCallback); void loadSizeByItemId(String itemId, AsyncCallback asyncCallback); void loadLastModificationDateById(String itemId, AsyncCallback callback); void getParentByItemId(String identifier, AsyncCallback asyncCallback); void getAccountingReaders(String identifier, AsyncCallback> callback); void getAccountingHistory(String identifier, AsyncCallback> callback); void getItemForFileGrid(String itemId, AsyncCallback callback); void getFolderChildrenForFileGridById(String folderId, AsyncCallback> callback); void getShortUrl(String longUrl, AsyncCallback callback); void getPublicLinkForFolderItemId(String itemId, boolean shortenUrl, AsyncCallback callback); /** * */ void isSessionExpired(AsyncCallback callback); void deleteListItemsForIds(List ids, AsyncCallback callback); void copyItems(List idsItem, String destinationFolderId, AsyncCallback callback); void moveItems(List ids, String destinationId, AsyncCallback callback); void getACLs(AsyncCallback> callback); void setACLs(String folderId, List listLogins, String aclType, AsyncCallback callback); }