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;
|
|
|
|
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.RemoteService;
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
|
|
|
|
|
|
|
@RemoteServiceRelativePath("WorkspaceService")
|
|
|
|
public interface GWTWorkspaceService extends RemoteService{
|
|
|
|
|
|
|
|
/** SendToRequest **/
|
|
|
|
|
|
|
|
public FolderModel getRootForTree() throws Exception;
|
|
|
|
|
|
|
|
public FolderModel getRootForTree(String scopeId) throws Exception;
|
|
|
|
|
|
|
|
public List<ScopeModel> getAllScope() throws Exception;
|
|
|
|
|
|
|
|
public List<FileModel> getFolderChildren(FolderModel folder) throws Exception;
|
|
|
|
|
|
|
|
public List<FileGridModel> getFolderChildrenForFileGrid(FileModel folder) throws Exception;
|
|
|
|
|
|
|
|
public FileDetailsModel getDetailsFile(FileModel item) throws Exception;
|
|
|
|
|
|
|
|
public FolderModel createFolder(String nameFolder, String description, FileModel parent) throws Exception;
|
|
|
|
|
|
|
|
public ArrayList<SubTree> getChildrenSubTreeToRootByIdentifier(String itemIdentifier) throws Exception;
|
|
|
|
|
|
|
|
public List<FileGridModel> getSmartFolderResultsByCategory(String category) throws Exception;
|
|
|
|
|
|
|
|
public SmartFolderModel createSmartFolder(String name, String description, String query) throws Exception;
|
|
|
|
|
|
|
|
public List<FileGridModel> getSmartFolderResultsById(String folderId) throws Exception;
|
|
|
|
|
|
|
|
public List<SmartFolderModel> getAllSmartFolders() throws Exception;
|
|
|
|
|
|
|
|
public GWTWorkspaceItem getImageById(String identifier, boolean isInteralImage, boolean fullDetails) throws Exception;
|
|
|
|
|
|
|
|
public GWTWorkspaceItem getUrlById(String identifier, boolean isInternalUrl, boolean fullDetails) throws Exception;
|
|
|
|
|
|
|
|
public FileModel createExternalUrl(FileModel parentFileModel, String name, String description, String url) throws Exception;
|
|
|
|
|
|
|
|
public void setValueInSession(String name, String value) throws Exception;
|
|
|
|
|
|
|
|
public List<FileGridModel> getItemsBySearchName(String text) throws Exception;
|
|
|
|
|
|
|
|
public Boolean moveItem(String itemId, String destinationId) throws Exception;
|
|
|
|
|
|
|
|
public Boolean removeItem(String itemId) throws Exception;
|
|
|
|
|
2013-03-25 11:14:26 +01:00
|
|
|
public Boolean renameItem(String itemId, String newName, String oldName) throws Exception;
|
2013-02-06 15:40:17 +01:00
|
|
|
|
|
|
|
public Boolean removeSmartFolder(String itemId, String name) throws Exception;
|
|
|
|
|
|
|
|
public List<InfoContactModel> getAllContacts() throws Exception;
|
|
|
|
|
|
|
|
public String getUrlWebDav(String itemId) throws Exception;
|
|
|
|
|
|
|
|
// public boolean sendTo(List<InfoContactModel> listContacts, List<FileModel> listAttachments, String subject, String text) throws Exception;
|
|
|
|
|
|
|
|
public boolean sentToByMessageModel(MessageModel message) throws Exception;
|
|
|
|
|
|
|
|
public boolean sendToById(List<String> listContactsId, List<String> listAttachmentsId, String subject, String text) throws Exception;
|
|
|
|
|
|
|
|
public List<MessageModel> getAllMessagesReceived() throws Exception;
|
|
|
|
|
|
|
|
public List<MessageModel> getNewMessagesReceived() throws Exception;
|
|
|
|
|
|
|
|
public List<MessageModel> getAllMessagesSent() throws Exception;
|
|
|
|
|
|
|
|
public List<MessageModel> searchInSentMessagesByText(String text) throws Exception;
|
|
|
|
|
|
|
|
public List<MessageModel> searchInReceivedMessagesByText(String text) throws Exception;
|
|
|
|
|
|
|
|
public MessageModel getMessageById(String messageIdentifier, String messageType) throws Exception;
|
|
|
|
|
|
|
|
public boolean saveAttachments(String messageIdentifier, String messageType) throws Exception;
|
|
|
|
|
|
|
|
public boolean saveAttach(String attachId) throws Exception;
|
|
|
|
|
|
|
|
public boolean markMessage(String messageIdentifier, String messageType, boolean boolMark, String markType) throws Exception;
|
|
|
|
|
|
|
|
public boolean deleteMessage(String messageIdentifier, String messageType) throws Exception;
|
|
|
|
|
|
|
|
public boolean copyItem(String itemId, String destinationFolderId) throws Exception;
|
|
|
|
|
|
|
|
public List<BulkCreatorModel> getListFolderBulkCreator() throws Exception;
|
|
|
|
|
|
|
|
public boolean deleteBulk(String bulkId) throws Exception;
|
|
|
|
|
|
|
|
public GWTWorkspaceItem getTimeSeriesById(String identifier) throws Exception;
|
|
|
|
|
2013-02-12 16:02:00 +01:00
|
|
|
boolean shareFolder(FileModel folder, List<InfoContactModel> listContacts,
|
|
|
|
boolean isNewFolder) throws Exception;
|
2013-02-06 15:40:17 +01:00
|
|
|
|
|
|
|
public List<InfoContactModel> getListUserSharedByFolderSharedId(String itemId) throws Exception;
|
|
|
|
|
|
|
|
public boolean unSharedFolderByFolderSharedId(String folderSharedId) throws Exception;
|
|
|
|
|
2013-02-13 18:39:33 +01:00
|
|
|
public List<FileModel> getListParentsByItemIdentifier(String itemIdentifier) throws Exception;
|
2013-02-14 15:06:34 +01:00
|
|
|
|
2013-02-20 14:28:25 +01:00
|
|
|
public String getURLFromApplicationProfile(String oid) throws Exception;
|
2013-02-25 19:03:53 +01:00
|
|
|
|
|
|
|
public InfoContactModel getOwnerByItemId(String itemId) throws Exception;
|
2013-02-06 15:40:17 +01: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
|
|
|
|
2013-03-25 11:14:26 +01:00
|
|
|
List<InfoContactModel> getListUserSharedBySharedItem(String sharedItemId)
|
|
|
|
throws Exception;
|
2013-02-06 15:40:17 +01:00
|
|
|
|
2013-03-25 12:35:05 +01:00
|
|
|
Date getItemCreationDateById(String itemId) throws Exception;
|
|
|
|
|
|
|
|
Long loadSizeByItemId(String itemId) throws Exception;
|
|
|
|
|
2013-02-06 15:40:17 +01:00
|
|
|
}
|