public class GWTWorkspaceServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements GWTWorkspaceService
Modifier and Type | Field and Description |
---|---|
protected static String |
IDENTIFIER_IS_NULL |
static String |
LAST_OPEN_FOLDER_ATTRIBUTE |
protected static String |
RETRIEVING_ITEM_EITHER_ITEM_DOESN_T_EXIST |
static String |
SELECTION_STATE_ATTRIBUTE |
protected org.apache.log4j.Logger |
workspaceLogger |
Constructor and Description |
---|
GWTWorkspaceServiceImpl() |
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected static final String IDENTIFIER_IS_NULL
protected static final String RETRIEVING_ITEM_EITHER_ITEM_DOESN_T_EXIST
public static final String LAST_OPEN_FOLDER_ATTRIBUTE
public static final String SELECTION_STATE_ATTRIBUTE
protected org.apache.log4j.Logger workspaceLogger
protected GWTWorkspaceBuilder getGWTWorkspaceBuilder()
protected org.gcube.common.homelibrary.home.workspace.Workspace getWorkspace() throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException, org.gcube.common.homelibrary.home.exceptions.HomeNotFoundException, org.gcube.common.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.home.exceptions.HomeNotFoundException
org.gcube.common.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
protected NotificationsProducer getNotificationProducer()
protected ScopeUtilFilter getScopeUtilFilter()
protected boolean isTestMode()
protected UrlShortener getUrlShortener()
protected UriResolverReaderParameter getUriResolver()
protected PropertySpecialFolderReader getPropertySpecialFolderReader()
public FolderModel getRootForTree() throws Exception
getRootForTree
in interface GWTWorkspaceService
Exception
public FolderModel getRootForTree(String scopeId) throws Exception
getRootForTree
in interface GWTWorkspaceService
Exception
public List<FileGridModel> getItemsBySearchName(String text) throws Exception
getItemsBySearchName
in interface GWTWorkspaceService
Exception
public List<FileModel> getFolderChildren(FolderModel folder) throws Exception, SessionExpiredException
getFolderChildren
in interface GWTWorkspaceService
Exception
SessionExpiredException
public List<FileGridModel> getFolderChildrenForFileGrid(FileModel folder) throws Exception, SessionExpiredException
getFolderChildrenForFileGrid
in interface GWTWorkspaceService
Exception
SessionExpiredException
public List<FileGridModel> getFolderChildrenForFileGridById(String folderId) throws Exception, SessionExpiredException
getFolderChildrenForFileGridById
in interface GWTWorkspaceService
Exception
SessionExpiredException
public FileGridModel getItemForFileGrid(String itemId) throws Exception
getItemForFileGrid
in interface GWTWorkspaceService
Exception
public Boolean moveItem(String itemId, String destinationId) throws Exception
moveItem
in interface GWTWorkspaceService
Exception
public Boolean moveItems(List<String> ids, String destinationId) throws Exception
moveItems
in interface GWTWorkspaceService
Exception
public Boolean removeItem(String itemId) throws Exception
removeItem
in interface GWTWorkspaceService
Exception
public Boolean renameItem(String itemId, String newName, String previousName) throws Exception
renameItem
in interface GWTWorkspaceService
Exception
public FolderModel createFolder(String nameFolder, String description, FileModel parent) throws Exception
createFolder
in interface GWTWorkspaceService
Exception
public FileDetailsModel getDetailsFile(FileModel folder) throws Exception
getDetailsFile
in interface GWTWorkspaceService
Exception
public ArrayList<SubTree> getChildrenSubTreeToRootByIdentifier(String itemIdentifier) throws Exception
getChildrenSubTreeToRootByIdentifier
in interface GWTWorkspaceService
Exception
public List<FileGridModel> getSmartFolderResultsByCategory(String category) throws Exception
getSmartFolderResultsByCategory
in interface GWTWorkspaceService
Exception
public SmartFolderModel createSmartFolder(String name, String description, String query) throws Exception
createSmartFolder
in interface GWTWorkspaceService
Exception
public Boolean removeSmartFolder(String itemId, String name) throws Exception
removeSmartFolder
in interface GWTWorkspaceService
Exception
public List<SmartFolderModel> getAllSmartFolders() throws Exception
getAllSmartFolders
in interface GWTWorkspaceService
Exception
public List<FileGridModel> getSmartFolderResultsById(String folderId) throws Exception
getSmartFolderResultsById
in interface GWTWorkspaceService
Exception
public GWTWorkspaceItem getImageById(String identifier, boolean isInteralImage, boolean fullDetails) throws Exception
getImageById
in interface GWTWorkspaceService
Exception
public GWTWorkspaceItem getTimeSeriesById(String identifier) throws Exception
getTimeSeriesById
in interface GWTWorkspaceService
Exception
public GWTWorkspaceItem getUrlById(String identifier, boolean isInternalUrl, boolean fullDetails) throws Exception
getUrlById
in interface GWTWorkspaceService
Exception
public FileModel createExternalUrl(FileModel parentFileModel, String name, String description, String url) throws Exception
createExternalUrl
in interface GWTWorkspaceService
Exception
public String getURLFromApplicationProfile(String oid) throws Exception
getURLFromApplicationProfile
in interface GWTWorkspaceService
Exception
public void setValueInSession(String name, String value) throws Exception
setValueInSession
in interface GWTWorkspaceService
Exception
public List<ScopeModel> getAllScope() throws Exception
getAllScope
in interface GWTWorkspaceService
Exception
public List<InfoContactModel> getAllContacts() throws Exception
getAllContacts
in interface GWTWorkspaceService
Exception
public boolean sendToById(List<String> listContactsId, List<String> listAttachmentsId, String subject, String body) throws Exception
sendToById
in interface GWTWorkspaceService
Exception
public List<MessageModel> getAllMessagesSent() throws Exception
getAllMessagesSent
in interface GWTWorkspaceService
Exception
public List<MessageModel> getAllMessagesReceived() throws Exception
getAllMessagesReceived
in interface GWTWorkspaceService
Exception
public MessageModel getMessageById(String messageIdentifier, String messageType) throws Exception
getMessageById
in interface GWTWorkspaceService
Exception
public List<BulkCreatorModel> getListFolderBulkCreator() throws Exception
getListFolderBulkCreator
in interface GWTWorkspaceService
Exception
@Deprecated public boolean sentToByMessageModel(MessageModel message) throws Exception
sentToByMessageModel
in interface GWTWorkspaceService
Exception
@Deprecated public boolean saveAttachments(String messageIdentifier, String messageType) throws Exception
saveAttachments
in interface GWTWorkspaceService
Exception
@Deprecated public boolean saveAttach(String attachId) throws Exception
saveAttach
in interface GWTWorkspaceService
Exception
public boolean markMessage(String messageIdentifier, String messageType, boolean boolMark, String markType) throws Exception
markMessage
in interface GWTWorkspaceService
Exception
@Deprecated public boolean deleteMessage(String messageIdentifier, String messageType) throws Exception
deleteMessage
in interface GWTWorkspaceService
Exception
@Deprecated public List<MessageModel> getNewMessagesReceived() throws Exception
getNewMessagesReceived
in interface GWTWorkspaceService
Exception
@Deprecated public List<MessageModel> searchInSentMessagesByText(String text) throws Exception
searchInSentMessagesByText
in interface GWTWorkspaceService
Exception
@Deprecated public List<MessageModel> searchInReceivedMessagesByText(String text) throws Exception
searchInReceivedMessagesByText
in interface GWTWorkspaceService
Exception
public boolean copyItem(String itemId, String destinationFolderId) throws Exception
copyItem
in interface GWTWorkspaceService
Exception
public boolean copyItems(List<String> idsItem, String destinationFolderId) throws Exception
copyItems
in interface GWTWorkspaceService
Exception
public boolean deleteBulk(String bulkId) throws Exception
deleteBulk
in interface GWTWorkspaceService
Exception
public String getUrlWebDav(String itemId) throws Exception
getUrlWebDav
in interface GWTWorkspaceService
Exception
public boolean shareFolder(FileModel folder, List<InfoContactModel> listContacts, boolean isNewFolder, WorkspaceACL acl) throws Exception
shareFolder
in interface GWTWorkspaceService
Exception
public List<InfoContactModel> getListUserSharedByFolderSharedId(String folderSharedId) throws Exception
getListUserSharedByFolderSharedId
in interface GWTWorkspaceService
Exception
public List<InfoContactModel> getListUserSharedBySharedItem(String sharedItemId) throws Exception
getListUserSharedBySharedItem
in interface GWTWorkspaceService
Exception
public boolean unSharedFolderByFolderSharedId(String folderSharedId) throws Exception
unSharedFolderByFolderSharedId
in interface GWTWorkspaceService
Exception
public List<FileModel> getListParentsByItemIdentifier(String itemIdentifier, boolean includeItemAsParent) throws Exception
getListParentsByItemIdentifier
in interface GWTWorkspaceService
itemIdentifier
- includeItemAsParent
- - if parameter is true and item passed in input is a folder, the folder is included in path returned as last parentException
public InfoContactModel getOwnerByItemId(String itemId) throws Exception
getOwnerByItemId
in interface GWTWorkspaceService
Exception
public List<InfoContactModel> getUsersManagerToSharedFolder(String folderId) throws Exception
getUsersManagerToSharedFolder
in interface GWTWorkspaceService
Exception
public String itemExistsInWorkpaceFolder(String parentId, String itemName) throws Exception
itemExistsInWorkpaceFolder
in interface GWTWorkspaceService
Exception
public Date getItemCreationDateById(String itemId) throws Exception
getItemCreationDateById
in interface GWTWorkspaceService
Exception
public Long loadSizeByItemId(String itemId) throws Exception
loadSizeByItemId
in interface GWTWorkspaceService
Exception
public Date loadLastModificationDateById(String itemId) throws Exception
loadLastModificationDateById
in interface GWTWorkspaceService
Exception
public FileModel getParentByItemId(String identifier) throws Exception
getParentByItemId
in interface GWTWorkspaceService
Exception
public List<GxtAccountingField> getAccountingReaders(String identifier) throws Exception
getAccountingReaders
in interface GWTWorkspaceService
Exception
public List<GxtAccountingField> getAccountingHistory(String identifier) throws Exception
getAccountingHistory
in interface GWTWorkspaceService
Exception
public String getShortUrl(String longUrl) throws Exception
getShortUrl
in interface GWTWorkspaceService
Exception
public String getPublicLinkForFolderItemId(String itemId, boolean shortenUrl) throws Exception
getPublicLinkForFolderItemId
in interface GWTWorkspaceService
itemId
- shortenUrl
- Exception
public boolean isSessionExpired() throws Exception
isSessionExpired
in interface GWTWorkspaceService
Exception
public void deleteListItemsForIds(List<String> ids) throws Exception
deleteListItemsForIds
in interface GWTWorkspaceService
Exception
public void setACLs(String folderId, List<String> listLogins, String aclType) throws Exception
setACLs
in interface GWTWorkspaceService
folderId
- listUserIds
- aclType
- Exception
public List<WorkspaceACL> getACLs() throws Exception
getACLs
in interface GWTWorkspaceService
Exception
public UserBean getMyLogin()
getMyLogin
in interface GWTWorkspaceService
public void updateACLForVREbyGroupName(String folderId, String aclType) throws Exception
updateACLForVREbyGroupName
in interface GWTWorkspaceService
folderId
- listUserIds
- aclType
- Exception
public List<ExtendedWorkspaceACL> getUserACLForFolderId(String folderId) throws Exception
getUserACLForFolderId
in interface GWTWorkspaceService
Exception
public String getACLsDescriptionForSharedFolderId(String folderId) throws Exception
getACLsDescriptionForSharedFolderId
in interface GWTWorkspaceService
Exception
public List<FileTrashedModel> getTrashContent() throws Exception
getTrashContent
in interface GWTWorkspaceService
Exception
public TrashContent updateTrashContent(WorkspaceTrashOperation operation) throws Exception
updateTrashContent
in interface GWTWorkspaceService
Exception
public TrashOperationContent executeOperationOnTrash(List<String> listTrashItemIds, WorkspaceTrashOperation operation) throws Exception
executeOperationOnTrash
in interface GWTWorkspaceService
Exception
public boolean addAdministratorsByFolderId(String folderId, List<String> listContactLogins) throws Exception
addAdministratorsByFolderId
in interface GWTWorkspaceService
Exception
public List<InfoContactModel> getAdministratorsByFolderId(String folderId) throws Exception
getAdministratorsByFolderId
in interface GWTWorkspaceService
Exception
public String getItemDescriptionById(String identifier) throws Exception
getItemDescriptionById
in interface GWTWorkspaceService
Exception
public WorkspaceACL getACLBySharedFolderId(String identifier) throws Exception
getACLBySharedFolderId
in interface GWTWorkspaceService
Exception
public WorkspaceUserQuote getUserWorkspaceQuote() throws Exception
getUserWorkspaceQuote
in interface GWTWorkspaceService
Exception
public String getUserWorkspaceSize() throws Exception
getUserWorkspaceSize
in interface GWTWorkspaceService
Exception
public long getUserWorkspaceTotalItems() throws Exception
getUserWorkspaceTotalItems
in interface GWTWorkspaceService
Exception
Copyright © 2015. All Rights Reserved.