package org.gcube.portlets.user.workspace.client.rpc; import java.util.ArrayList; 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 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, 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, AsyncCallback> callback); void readFromApplicationProfile(String name, String value, AsyncCallback callback); // void getListParentsByItemIdentifier(String itemIdentifier,AsyncCallback> callback); // void getChildrenListsByParentsIdentifier(String itemIdentifier,AsyncCallback>> callback); // public void getUsers(AsyncCallback> callback); // // void getPortalUsers(AsyncCallback> callback); // // public void importDocumentAlternatives(List alternativesOIDs, String destinationFolderId, AsyncCallback callback); // // public void importDocumentParts(List partsOIDs, String destinationFolderId, AsyncCallback callback); // // public void loadSelectionState(AsyncCallback callback); // // public void saveSelectionState(WorkspaceSelectionState selectionState, AsyncCallback callback); // // public void sendRequest(String itemId, List addressees, AsyncCallback callback); // // public void setItemDescription(String itemId, String newDescription, AsyncCallback callback); }