public interface Workspace extends WorkspaceEventSource
| Modifier and Type | Method and Description |
|---|---|
void |
addBookmark(String itemId,
String destinationFolderId)
Deprecated.
|
List<SearchItem> |
advancedSearch(String name,
SearchItemByOperator date,
SearchItemByOperator size)
Deprecated.
|
URL |
attachToConversation(UUID ConversationId,
String WorkspaceItemId)
Attach a workspaceItem to a conversation
|
void |
changeDescription(String itemId,
String newDescription)
Change an item description.
|
WorkspaceItem |
cloneItem(String itemId,
String cloneName)
Clone an item in the same folder.
|
WorkspaceItem |
copy(String itemId,
String destinationFolderId)
Copy an item from a folder to another folder.
|
WorkspaceItem |
copy(String itemId,
String newName,
String destinationFolderId)
Copy an item from a folder to another folder.
|
ExternalFile |
createExternalFile(String name,
String description,
String mimeType,
InputStream fileData,
String destinationFolderId)
Create a new External File into a folder.
|
ExternalFile |
createExternalFile(String name,
String description,
String mimeType,
InputStream fileData,
String destinationFolderId,
Map<String,String> properties)
Create a new External File with properties
|
ExternalImage |
createExternalImage(String name,
String description,
String mimeType,
InputStream imageData,
String destinationFolderId)
Create a new External Image into a folder.
|
ExternalImage |
createExternalImage(String name,
String description,
String mimeType,
InputStream imageData,
String destinationFolderId,
Map<String,String> properties)
Create a new External Image with properties
|
ExternalPDFFile |
createExternalPDFFile(String name,
String description,
String mimeType,
InputStream fileData,
String destinationFolderId)
Create a new External PDF File into a folder.
|
ExternalPDFFile |
createExternalPDFFile(String name,
String description,
String mimeType,
InputStream fileData,
String destinationFolderId,
Map<String,String> properties)
Create a new External PDF File with properties
|
ExternalUrl |
createExternalUrl(String name,
String description,
InputStream url,
String destinationfolderId)
Create a new External URL into a folder.
|
ExternalUrl |
createExternalUrl(String name,
String description,
String url,
String destinationFolderId)
Create a new External URL into a folder.
|
WorkspaceFolder |
createFolder(String name,
String description,
String destinationFolderId)
Create a new folder with specified name.
|
WorkspaceFolder |
createFolder(String name,
String description,
String destinationFolderId,
Map<String,String> properties)
Create a new folder with properties
|
WorkspaceItem |
createGcubeItem(String name,
String description,
List<String> scopes,
String creator,
String itemType,
Map<String,String> properties,
String destinationFolderId)
Create a GCubeItem
|
Query |
createQuery(String name,
String description,
InputStream query,
QueryType queryType,
String destinationfolderId)
Create a new query into a folder.
|
Query |
createQuery(String name,
String description,
String query,
QueryType queryType,
String destinationfolderId)
Create a new query into a folder.
|
Report |
createReport(String name,
String description,
Calendar created,
Calendar lastEdit,
String author,
String lastEditBy,
String templateName,
int numberOfSections,
String status,
InputStream reportData,
String destinationfolderId)
Create a new Report into a folder.
|
ReportTemplate |
createReportTemplate(String name,
String description,
Calendar created,
Calendar lastEdit,
String author,
String lastEditBy,
int numberOfSections,
String status,
InputStream templateData,
String destinationfolderId)
Create a new Report Template into a folder.
|
WorkspaceSharedFolder |
createSharedFolder(String name,
String description,
List<String> users,
String destinationFolderId)
Create a shared folder with a list of users
|
WorkspaceSharedFolder |
createSharedFolder(String name,
String description,
String groupId,
String destinationFolderId,
String displayName,
boolean isVREFolder)
Create a shared folder associated with a groupId
|
WorkspaceSmartFolder |
createSmartFolder(String name,
String description,
String query,
String folderId)
Create a smart folder
|
TimeSeries |
createTimeSeries(String name,
String description,
String timeseriesId,
String title,
String creator,
String timeseriesDescription,
String timeseriesCreationDate,
String publisher,
String sourceId,
String sourceName,
String rights,
long dimension,
List<String> headerLabels,
InputStream compressedCSV,
String destinationfolderId)
Create a new Time Series.
|
WorkspaceVREFolder |
createVREFolder(String scope,
String description,
String displayName,
ACLType privilege)
Create a VRE folder
|
WorkflowReport |
createWorkflowReport(String name,
String description,
String workflowId,
String workflowStatus,
String workflowData,
String destinationfolderId)
Creates a Workflow Report.
|
WorkspaceFolder |
decomposeAquaMapsItem(String itemId,
String folderName,
String destinationWorkspaceId)
Deprecated.
|
boolean |
deleteAllConversationAttachments(UUID ConversationId)
Delete all conversation attachments by conversation ID
|
boolean |
exists(String itemId)
Check if an item with the specified id exists.
|
boolean |
exists(String name,
String folderId)
Check if an item with the specified name exists in the specified folder.
|
WorkspaceItem |
find(String path)
Find an item using the specified path.
|
WorkspaceItem |
find(String name,
String folderId)
Get an item with the specified name in the specified folder.
|
List<WorkspaceSmartFolder> |
getAllSmartFolders()
Returns all user smart folders
|
WorkspaceFolder |
getApplicationArea()
Get Application Area
|
List<Object> |
getBookmarks(String bookmarkFolderId)
Deprecated.
|
WorkspaceCatalogue |
getCatalogue()
Get Catalogue
|
long |
getDiskUsage()
Get the disk usage of a worskpace
|
FolderBulkCreatorManager |
getFolderBulkCreatorManager()
Return this workspace folder bulk creator manager.
|
List<SearchItem> |
getFolderItems(org.gcube.common.homelibary.model.items.type.GenericItemType... types)
Get Folder Items
|
List<SearchItem> |
getFolderItems(org.gcube.common.homelibary.model.items.type.GenericItemType type)
Get items by type
|
GCubeGroup |
getGroup(String groupId)
Get group name by group id
|
Home |
getHome()
Returns the user home.
|
WorkspaceItem |
getItem(String itemId)
Return the item with the specified id.
|
WorkspaceItem |
getItemByPath(String path)
Return the item with the specified path.
|
WorkspaceFolder |
getMySpecialFolders()
Get MySpecialFolders
|
FolderBulkCreator |
getNewFolderBulkCreator(String folderId)
Create a new folderBulkCreator for the specified folder.
|
User |
getOwner()
Returns the workspace owner.
|
List<WorkspaceItem> |
getParentsById(String id)
Get a list of workspaceItem parents by id
|
String |
getPathSeparator()
Returns the item path separator.
|
List<WorkspaceItem> |
getPublicFolders()
Get public folders
|
WorkspaceFolder |
getRoot()
Returns the workspace root.
|
WorkspaceSmartFolder |
getSmartFolder(String folderId)
Get Smart Folder
|
int |
getTotalItems()
Get the total number of items in a workspace
|
WorkspaceTrashFolder |
getTrash()
Get Trash Folder
|
String |
getUrlWebDav()
Get WebDav url
|
WorkspaceSharedFolder |
getVREFolderByScope(String scope)
Get VRE Folder By Scope
|
WorkspaceMessageManager |
getWorkspaceMessageManager()
SendRequest manager.
|
List<WorkspaceItem> |
getWorkspaceTree(WorkspaceItem item)
Get the WorkspaceTree
|
boolean |
isGroup(String groupId)
Check if a user is a group
|
boolean |
isValidName(String name)
Check if the specified name is a valid name.
|
WorkspaceItem |
moveItem(String itemId,
String destinationFolderId)
Move a workspaceItem to a specified destination.
|
void |
remove(String itemName,
String folderId)
Remove an item from a folder.
|
void |
removeChild(String childId,
String folderId)
Remove an item from a folder.
|
void |
removeItem(String itemId)
Remove an item.
|
Map<String,String> |
removeItems(String... id)
Remove a list of items identified by ids
|
void |
renameItem(String itemId,
String newName)
Rename an item.
|
List<SearchFolderItem> |
searchByMimeType(String mimeType)
Search By MimeType
|
List<SearchItem> |
searchByName(String name,
String folderId)
Search by Name
|
List<WorkspaceItem> |
searchByProperties(List<String> properties)
Search By Properties
|
List<WorkspaceItem> |
searchByProperties(SearchQuery queryString)
Search items by properties
|
List<SearchFolderItem> |
searchFullText(String text)
Deprecated.
|
List<GCubeItem> |
searchGCubeItems(SearchQuery query)
Search GCubeItems
|
WorkspaceSharedFolder |
share(List<String> users,
String itemId)
Shared an exist
WorkspaceFolder with a list of users |
WorkspaceSharedFolder |
shareFolder(List<String> users,
String destinationFolderId)
Shared an exist
WorkspaceFolder with a list of users |
WorkspaceItem |
unshare(String itemId)
Unshare a shared item
|
void |
updateItem(String itemId,
InputStream fileData)
Update an item
|
addWorkspaceListener, removeWorkspaceListenerString getPathSeparator()
Home getHome()
User getOwner() throws InternalErrorException
InternalErrorException - if an internal error occurs.WorkspaceFolder getRoot()
InternalErrorExceptionList<WorkspaceItem> getParentsById(String id) throws InternalErrorException
id - the item idInternalErrorExceptionList<WorkspaceItem> getWorkspaceTree(WorkspaceItem item) throws InternalErrorException
item - InternalErrorException@Deprecated void addBookmark(String itemId, String destinationFolderId) throws ItemAlreadyExistException, InternalErrorException, WrongDestinationException, ItemNotFoundException, WorkspaceFolderNotFoundException
itemId - destinationFolderId - ItemAlreadyExistExceptionInternalErrorExceptionWrongDestinationExceptionItemNotFoundExceptionWorkspaceFolderNotFoundException@Deprecated List<Object> getBookmarks(String bookmarkFolderId) throws InternalErrorException
InternalErrorExceptionWorkspaceSmartFolder createSmartFolder(String name, String description, String query, String folderId) throws ItemAlreadyExistException, InternalErrorException
name - the smart folder namedescription - the smart folder descriptionquery - the term to searchfolderId - the folder where to search the queryItemAlreadyExistExceptionInternalErrorExceptionList<WorkspaceSmartFolder> getAllSmartFolders() throws InternalErrorException
InternalErrorExceptionWorkspaceSmartFolder getSmartFolder(String folderId) throws ItemNotFoundException, InternalErrorException
folderId - ItemNotFoundExceptionInternalErrorExceptionWorkspaceFolder createFolder(String name, String description, String destinationFolderId) throws InternalErrorException, InsufficientPrivilegesException, ItemAlreadyExistException, WrongDestinationException, ItemNotFoundException, WorkspaceFolderNotFoundException
name - the folder name.description - the folder description.destinationFolderId - the destination folder.InternalErrorException - if an internal error occurs.ItemNotFoundException - if the destination folder has not been found.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.ItemAlreadyExistException - if an item with the same exist in the destination folder.WrongDestinationException - if the destination item is not a folder.WorkspaceFolderNotFoundException - if the destination folder has not been found.WorkspaceFolder createFolder(String name, String description, String destinationFolderId, Map<String,String> properties) throws InternalErrorException, InsufficientPrivilegesException, ItemAlreadyExistException, WrongDestinationException, ItemNotFoundException, WorkspaceFolderNotFoundException
name - description - destinationFolderId - properties - InternalErrorExceptionInsufficientPrivilegesExceptionItemAlreadyExistExceptionWrongDestinationExceptionItemNotFoundExceptionWorkspaceFolderNotFoundExceptionExternalImage createExternalImage(String name, String description, String mimeType, InputStream imageData, String destinationFolderId) throws InsufficientPrivilegesException, WorkspaceFolderNotFoundException, InternalErrorException, ItemAlreadyExistException, WrongDestinationException
name - the external image name.description - the external image description.mimeType - the image mime type.imageData - the external image data.destinationFolderId - the destination folder.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.WorkspaceFolderNotFoundException - if the destination folder has not been found.InternalErrorException - if an internal error occurs.ItemAlreadyExistException - if a folder item with same name already exist.WrongDestinationException - if the destination type is not a folder.ExternalImage createExternalImage(String name, String description, String mimeType, InputStream imageData, String destinationFolderId, Map<String,String> properties) throws InsufficientPrivilegesException, WorkspaceFolderNotFoundException, InternalErrorException, ItemAlreadyExistException, WrongDestinationException
name - description - mimeType - imageData - destinationFolderId - properties - InsufficientPrivilegesExceptionWorkspaceFolderNotFoundExceptionInternalErrorExceptionItemAlreadyExistExceptionWrongDestinationExceptionExternalFile createExternalFile(String name, String description, String mimeType, InputStream fileData, String destinationFolderId) throws InsufficientPrivilegesException, WorkspaceFolderNotFoundException, InternalErrorException, ItemAlreadyExistException, WrongDestinationException
name - the external file name.description - the external file description.mimeType - the external file mime type.fileData - the external file content.destinationFolderId - the destination folder.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.WorkspaceFolderNotFoundException - if the destination folder has not been found.InternalErrorException - if an internal error occurs.ItemAlreadyExistException - if a folder item with same name already exist.WrongDestinationException - if the destination type is not a folder.ExternalFile createExternalFile(String name, String description, String mimeType, InputStream fileData, String destinationFolderId, Map<String,String> properties) throws InsufficientPrivilegesException, WorkspaceFolderNotFoundException, InternalErrorException, ItemAlreadyExistException, WrongDestinationException
name - description - mimeType - fileData - destinationFolderId - properties - InsufficientPrivilegesExceptionWorkspaceFolderNotFoundExceptionInternalErrorExceptionItemAlreadyExistExceptionWrongDestinationExceptionExternalPDFFile createExternalPDFFile(String name, String description, String mimeType, InputStream fileData, String destinationFolderId) throws InsufficientPrivilegesException, WorkspaceFolderNotFoundException, InternalErrorException, ItemAlreadyExistException, WrongDestinationException
name - the external PDF file name.description - the external PDF file description.mimeType - the external PDF file mime type.fileData - the external PDF file content.destinationFolderId - the destination folder.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.WorkspaceFolderNotFoundException - if the destination folder has not been found.InternalErrorException - if an internal error occurs.ItemAlreadyExistException - if a folder item with same name already exist.WrongDestinationException - if the destination type is not a folder.ExternalPDFFile createExternalPDFFile(String name, String description, String mimeType, InputStream fileData, String destinationFolderId, Map<String,String> properties) throws InsufficientPrivilegesException, WorkspaceFolderNotFoundException, InternalErrorException, ItemAlreadyExistException, WrongDestinationException
name - description - mimeType - fileData - destinationFolderId - properties - InsufficientPrivilegesExceptionWorkspaceFolderNotFoundExceptionInternalErrorExceptionItemAlreadyExistExceptionWrongDestinationExceptionExternalUrl createExternalUrl(String name, String description, String url, String destinationFolderId) throws InsufficientPrivilegesException, WorkspaceFolderNotFoundException, InternalErrorException, ItemAlreadyExistException, WrongDestinationException, IOException
name - the external URL name.description - the external URL description.url - the external URL value.destinationFolderId - the destination folder.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.WorkspaceFolderNotFoundException - if the destination folder has not been found.InternalErrorException - if an internal error occurs.ItemAlreadyExistException - if a folder item with same name already exist.WrongDestinationException - if the destination type is not a folder.IOExceptionExternalUrl createExternalUrl(String name, String description, InputStream url, String destinationfolderId) throws InsufficientPrivilegesException, InternalErrorException, ItemAlreadyExistException, WrongDestinationException, WorkspaceFolderNotFoundException, IOException
name - the external URL name.description - the external URL description.url - the external URL.destinationfolderId - the destination folder.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.WorkspaceFolderNotFoundException - if the destination folder has not been found.InternalErrorException - if an internal error occurs.ItemAlreadyExistException - if a folder item with same name already exist.WrongDestinationException - if the destination type is not a folder.IOExceptionReportTemplate createReportTemplate(String name, String description, Calendar created, Calendar lastEdit, String author, String lastEditBy, int numberOfSections, String status, InputStream templateData, String destinationfolderId) throws InsufficientPrivilegesException, InternalErrorException, ItemAlreadyExistException, WrongDestinationException, WorkspaceFolderNotFoundException
name - the template name.description - the template description.created - the template creation time.lastEdit - the last edit time.author - the template author.lastEditBy - the last template editor.numberOfSections - the number of sections.status - the template status.templateData - the template content.destinationfolderId - the destination folder.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.WorkspaceFolderNotFoundException - if the destination folder has not been found.InternalErrorException - if an internal error occurs.ItemAlreadyExistException - if a folder item with same name already exist.WrongDestinationException - if the destination type is not a folder.Report createReport(String name, String description, Calendar created, Calendar lastEdit, String author, String lastEditBy, String templateName, int numberOfSections, String status, InputStream reportData, String destinationfolderId) throws InsufficientPrivilegesException, InternalErrorException, ItemAlreadyExistException, WrongDestinationException, WorkspaceFolderNotFoundException
name - the report name.description - the report description.created - the report creation time.lastEdit - the last edit time.author - the report author.lastEditBy - the last report editor.templateName - the source template name.numberOfSections - the number of sections.status - the report status.reportData - the report content.destinationfolderId - the destination folder.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.WorkspaceFolderNotFoundException - if the destination folder has not been found.InternalErrorException - if an internal error occurs.ItemAlreadyExistException - if a folder item with same name already exist.WrongDestinationException - if the destination type is not a folder.Query createQuery(String name, String description, String query, QueryType queryType, String destinationfolderId) throws InsufficientPrivilegesException, InternalErrorException, ItemAlreadyExistException, WrongDestinationException, WorkspaceFolderNotFoundException
name - the query name.description - the query description.query - the query value.queryType - the query type.destinationfolderId - the destination folder.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.WorkspaceFolderNotFoundException - if the destination folder has not been found.InternalErrorException - if an internal error occurs.ItemAlreadyExistException - if a folder item with same name already exist.WrongDestinationException - if the destination type is not a folder.Query createQuery(String name, String description, InputStream query, QueryType queryType, String destinationfolderId) throws InsufficientPrivilegesException, InternalErrorException, ItemAlreadyExistException, WrongDestinationException, WorkspaceFolderNotFoundException
name - the query name.description - the query description.query - the query.queryType - the query type.destinationfolderId - the destinatin folder.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.WorkspaceFolderNotFoundException - if the destination folder has not been found.InternalErrorException - if an internal error occurs.ItemAlreadyExistException - if a folder item with same name already exist.WrongDestinationException - if the destination type is not a folder.TimeSeries createTimeSeries(String name, String description, String timeseriesId, String title, String creator, String timeseriesDescription, String timeseriesCreationDate, String publisher, String sourceId, String sourceName, String rights, long dimension, List<String> headerLabels, InputStream compressedCSV, String destinationfolderId) throws InsufficientPrivilegesException, InternalErrorException, ItemAlreadyExistException, WorkspaceFolderNotFoundException, WrongDestinationException
name - the item name.description - the item description.timeseriesId - the Time Series id.title - the Time Series title.creator - the Time Series creator.timeseriesDescription - the Time Series description.timeseriesCreationDate - the Time Series creation date.publisher - the Time Series publisher.sourceId - the Time Series source id.sourceName - the Time Series source name.rights - the Time Series rights.dimension - the Time Series dimension.headerLabels - the Time Series headers label.compressedCSV - the Time Series csv compressed representation (with labels and UTF-8 encoded).destinationfolderId - the time series destination folder.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.InternalErrorException - if an internal error occurs.ItemAlreadyExistException - if an item with the specified name already exists.WorkspaceFolderNotFoundException - if the destination folder has not been found.WrongDestinationException - if the destination type is not a folder.void removeItem(String itemId) throws ItemNotFoundException, InternalErrorException, InsufficientPrivilegesException
itemId - the item to remove.ItemNotFoundException - if the item has not been found.InternalErrorException - if an internal error occurs.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.WorkspaceItem moveItem(String itemId, String destinationFolderId) throws ItemNotFoundException, WrongDestinationException, InsufficientPrivilegesException, InternalErrorException, ItemAlreadyExistException, WorkspaceFolderNotFoundException
itemId - the item to move.destinationFolderId - the destination folder.ItemNotFoundException - if the specified item has not been found.WrongDestinationException - if the specified destination has not been found.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.InternalErrorException - if an internal error occurs.ItemAlreadyExistException - if the destination folder have a children with same name.WorkspaceFolderNotFoundException - if the destination folder is not found.void renameItem(String itemId, String newName) throws ItemNotFoundException, InternalErrorException, ItemAlreadyExistException, InsufficientPrivilegesException
itemId - the item id.newName - the new name.ItemNotFoundException - if the item has not been found.InternalErrorException - if an internal error occurs.ItemAlreadyExistException - if the user don't have sufficient privileges to perform this operation.InsufficientPrivilegesExceptionvoid changeDescription(String itemId, String newDescription) throws ItemNotFoundException, InternalErrorException
itemId - the item to update.newDescription - the new item description.ItemNotFoundException - if the item has not been found.InternalErrorException - if an internal error occurs.WorkspaceItem getItem(String itemId) throws ItemNotFoundException
itemId - the item id.ItemNotFoundException - if the item has not been found.InsufficientPrivilegesExceptionWorkspaceItem getItemByPath(String path) throws ItemNotFoundException
path - the item path.ItemNotFoundException - if the item has not been found.InsufficientPrivilegesExceptionvoid removeChild(String childId, String folderId) throws ItemNotFoundException, InternalErrorException, InsufficientPrivilegesException, WrongParentTypeException
childId - the item to remove.folderId - the folder.ItemNotFoundException - if the item has not been found.InternalErrorException - if an internal error occurs.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.WrongParentTypeException - if the specified folder is neither a workspace nor a folder.void remove(String itemName, String folderId) throws ItemNotFoundException, InternalErrorException, InsufficientPrivilegesException, WrongItemTypeException
itemName - the item name.folderId - the folder id.ItemNotFoundException - if the folder has not been found.InternalErrorException - if an internal error occurs.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.WrongItemTypeException - if the specified folder is neither a workspace nor a folder.WorkspaceItem copy(String itemId, String newName, String destinationFolderId) throws ItemNotFoundException, WrongDestinationException, InternalErrorException, ItemAlreadyExistException, InsufficientPrivilegesException, WorkspaceFolderNotFoundException
itemId - the item to copy.newName - the item new name.destinationFolderId - the destination folder id.ItemNotFoundException - if the item has not been found.WrongDestinationException - if the destination have a wrong type.ItemAlreadyExistException - if an item with same name already exist in the destination folder.InternalErrorException - if an internal error occurs.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.WorkspaceFolderNotFoundException - if the destination folder has not been found.WorkspaceItem copy(String itemId, String destinationFolderId) throws ItemNotFoundException, WrongDestinationException, InternalErrorException, ItemAlreadyExistException, InsufficientPrivilegesException, WorkspaceFolderNotFoundException
itemId - the item to copy.destinationFolderId - the destination folder id, can't be the same of the item (can't have the same name).ItemNotFoundException - if the item has not been found.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.ItemAlreadyExistException - if an item with same name already exist in the destination folder.InternalErrorException - if an internal error occurs.WrongDestinationException - if the destination have a wrong type.WorkspaceFolderNotFoundException - if the destination folder has not been found.WorkspaceItem cloneItem(String itemId, String cloneName) throws ItemNotFoundException, ItemAlreadyExistException, InsufficientPrivilegesException, InternalErrorException, WrongDestinationException, WorkspaceFolderNotFoundException
itemId - the item to clone.cloneName - the clone name.ItemNotFoundException - if the item has not been found.ItemAlreadyExistException - if an item with same name already exist in the destination folder.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.InternalErrorException - if an internal error occurs.WrongDestinationException - if the destination have a wrong type.WorkspaceFolderNotFoundException - if the destination folder has not been found.boolean exists(String name, String folderId) throws InternalErrorException, ItemNotFoundException, WrongItemTypeException
name - the name to check.folderId - the folder where to search the item.true if the item exists, false otherwise.InternalErrorException - if an error occurs.ItemNotFoundException - if the folder has not been found.WrongItemTypeException - if the folderId referrer to an item with type different from Workspace or folder.boolean exists(String itemId) throws InternalErrorException
itemId - the item id to check.true if the item exists, false otherwise.InternalErrorException - if an error occurs.WorkspaceItem find(String name, String folderId) throws InternalErrorException, ItemNotFoundException, WrongItemTypeException
name - the item name to find.folderId - the folder where to search the item.null otherwise.InternalErrorException - if an error occurs.ItemNotFoundException - if the folder has not been found.WrongItemTypeException - if the folderId referrer to an item with type different from Workspace or folder.WorkspaceItem find(String path) throws InternalErrorException
path - the item path.null otherwise.InternalErrorException - if an error occurs.ItemNotFoundExceptionList<SearchItem> searchByName(String name, String folderId) throws InternalErrorException
name - folderId - InternalErrorExceptionList<SearchFolderItem> searchByMimeType(String mimeType) throws InternalErrorException
mimeType - InternalErrorExceptionList<SearchItem> getFolderItems(org.gcube.common.homelibary.model.items.type.GenericItemType type) throws InternalErrorException
type - InternalErrorExceptionboolean isValidName(String name)
name - the name to check.true if the name is valid, false otherwise.FolderBulkCreator getNewFolderBulkCreator(String folderId) throws WorkspaceFolderNotFoundException, WrongItemTypeException, InternalErrorException
folderId - the target folder.WorkspaceFolderNotFoundException - if the target folder has not been found.WrongItemTypeException - if the specified target is not a folder.InternalErrorException - if an internal error occurs.FolderBulkCreatorManager getFolderBulkCreatorManager()
WorkspaceMessageManager getWorkspaceMessageManager()
@Deprecated WorkspaceFolder decomposeAquaMapsItem(String itemId, String folderName, String destinationWorkspaceId) throws WrongItemTypeException, WorkspaceFolderNotFoundException, WrongDestinationException, InternalErrorException, ItemAlreadyExistException, InsufficientPrivilegesException, ItemNotFoundException
itemId - the aquamaps item id.folderName - the destination folder name.destinationWorkspaceId - the destination workspace name.WrongItemTypeException - if the specified item is not a GPod item.WorkspaceFolderNotFoundException - if the specified workspace is not found.WrongDestinationException - if the specified target is not a workspace.InternalErrorException - if an internal error occurs.ItemAlreadyExistException - if a item with that name already exists into the specified workspace.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.ItemNotFoundException - if the aquamaps item has not found.List<SearchItem> getFolderItems(org.gcube.common.homelibary.model.items.type.GenericItemType... types) throws InternalErrorException
types - InternalErrorExceptionString getUrlWebDav() throws InternalErrorException
InternalErrorExceptionWorkspaceSharedFolder createSharedFolder(String name, String description, List<String> users, String destinationFolderId) throws InternalErrorException, InsufficientPrivilegesException, ItemAlreadyExistException, WrongDestinationException, ItemNotFoundException, WorkspaceFolderNotFoundException
name - description - users - A list of portal loginsdestinationFolderId - InternalErrorExceptionInsufficientPrivilegesExceptionItemAlreadyExistExceptionWrongDestinationExceptionItemNotFoundExceptionWorkspaceFolderNotFoundExceptionWorkspaceSharedFolder createSharedFolder(String name, String description, String groupId, String destinationFolderId, String displayName, boolean isVREFolder) throws InternalErrorException, InsufficientPrivilegesException, ItemAlreadyExistException, WrongDestinationException, ItemNotFoundException, WorkspaceFolderNotFoundException
name - the name of the folderdescription - groupId - an existing groupId to associate with the folderdestinationFolderId - displayName - a friendly name for the folderisVREFolder - a flag to indicate the folder is a VRE FolderInternalErrorExceptionInsufficientPrivilegesExceptionItemAlreadyExistExceptionWrongDestinationExceptionItemNotFoundExceptionWorkspaceFolderNotFoundExceptionWorkspaceSharedFolder shareFolder(List<String> users, String destinationFolderId) throws InternalErrorException, InsufficientPrivilegesException, ItemAlreadyExistException, WrongDestinationException, ItemNotFoundException, WorkspaceFolderNotFoundException
WorkspaceFolder with a list of usersusers - A list of portal logins.destinationFolderId - InternalErrorExceptionInsufficientPrivilegesExceptionItemAlreadyExistExceptionWrongDestinationExceptionItemNotFoundExceptionWorkspaceFolderNotFoundExceptionWorkspaceSharedFolder share(List<String> users, String itemId) throws InternalErrorException, InsufficientPrivilegesException, ItemAlreadyExistException, WrongDestinationException, ItemNotFoundException, WorkspaceFolderNotFoundException
WorkspaceFolder with a list of usersusers - A list of portal logins.itemId - InternalErrorExceptionInsufficientPrivilegesExceptionItemAlreadyExistExceptionWrongDestinationExceptionItemNotFoundExceptionWorkspaceFolderNotFoundExceptionvoid updateItem(String itemId, InputStream fileData) throws InsufficientPrivilegesException, WorkspaceFolderNotFoundException, InternalErrorException, ItemAlreadyExistException, WrongDestinationException, ItemNotFoundException
itemId - fileData - InsufficientPrivilegesExceptionWorkspaceFolderNotFoundExceptionInternalErrorExceptionItemAlreadyExistExceptionWrongDestinationExceptionItemNotFoundExceptionWorkspaceItem createGcubeItem(String name, String description, List<String> scopes, String creator, String itemType, Map<String,String> properties, String destinationFolderId) throws InsufficientPrivilegesException, WorkspaceFolderNotFoundException, InternalErrorException, ItemAlreadyExistException, WrongDestinationException, ItemNotFoundException
name - description - scopes - creator - itemType - destinationFolderId - InsufficientPrivilegesExceptionWorkspaceFolderNotFoundExceptionInternalErrorExceptionItemAlreadyExistExceptionWrongDestinationExceptionItemNotFoundExceptionWorkspaceItem unshare(String itemId) throws InternalErrorException, ItemNotFoundException
itemId - InternalErrorExceptionItemNotFoundExceptionWorkspaceTrashFolder getTrash() throws InternalErrorException, ItemNotFoundException
ItemNotFoundExceptionjavax.jcr.RepositoryExceptionInternalErrorExceptionWorkspaceFolder getMySpecialFolders() throws InternalErrorException, ItemNotFoundException
InternalErrorExceptionItemNotFoundException@Deprecated List<SearchItem> advancedSearch(String name, SearchItemByOperator date, SearchItemByOperator size) throws InternalErrorException
name - date - size - InternalErrorExceptionList<WorkspaceItem> searchByProperties(List<String> properties) throws InternalErrorException
properties - InternalErrorException@Deprecated List<SearchFolderItem> searchFullText(String text) throws InternalErrorException
text - InternalErrorExceptionWorkspaceSharedFolder getVREFolderByScope(String scope) throws ItemNotFoundException, InternalErrorException
scope - ItemNotFoundExceptionInternalErrorExceptionWorkflowReport createWorkflowReport(String name, String description, String workflowId, String workflowStatus, String workflowData, String destinationfolderId) throws InsufficientPrivilegesException, InternalErrorException, ItemAlreadyExistException, WorkspaceFolderNotFoundException, WrongDestinationException
name - the workflow Report name.description - the workflow Report description.workflowId - the workflow id.workflowStatus - the workflow status.workflowData - the workflow data.destinationfolderId - the Workflow Report destination folder.InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.InternalErrorException - if an internal error occurs.ItemAlreadyExistException - if an item with the specified name already exists.WorkspaceFolderNotFoundException - if the destination folder has not been found.WrongDestinationException - if the destination type is not a folder.long getDiskUsage()
throws InternalErrorException
InternalErrorExceptionint getTotalItems()
throws InternalErrorException
InternalErrorExceptionList<GCubeItem> searchGCubeItems(SearchQuery query) throws InternalErrorException
query - InternalErrorExceptionWorkspaceFolder getApplicationArea() throws InternalErrorException
InternalErrorExceptionMap<String,String> removeItems(String... id) throws ItemNotFoundException, InternalErrorException, InsufficientPrivilegesException
id - ItemNotFoundExceptionInternalErrorExceptionInsufficientPrivilegesExceptionWorkspaceVREFolder createVREFolder(String scope, String description, String displayName, ACLType privilege) throws InternalErrorException, InsufficientPrivilegesException, ItemAlreadyExistException, WrongDestinationException, ItemNotFoundException, WorkspaceFolderNotFoundException
scope - description - displayName - InternalErrorExceptionInsufficientPrivilegesExceptionItemAlreadyExistExceptionWrongDestinationExceptionItemNotFoundExceptionWorkspaceFolderNotFoundExceptionGCubeGroup getGroup(String groupId) throws InternalErrorException
groupId - InternalErrorExceptionboolean isGroup(String groupId) throws InternalErrorException
groupId - InternalErrorExceptionWorkspaceCatalogue getCatalogue() throws InternalErrorException
InternalErrorExceptionList<WorkspaceItem> searchByProperties(SearchQuery queryString) throws InternalErrorException
queryString - InternalErrorExceptionList<WorkspaceItem> getPublicFolders() throws InternalErrorException
InternalErrorExceptionURL attachToConversation(UUID ConversationId, String WorkspaceItemId) throws InternalErrorException, ItemNotFoundException, InsufficientPrivilegesException, ItemAlreadyExistException
ConversationId - the conversation IDWorkspaceItemId - the Workspace Item IDInternalErrorExceptionItemNotFoundExceptionItemAlreadyExistExceptionInsufficientPrivilegesExceptionboolean deleteAllConversationAttachments(UUID ConversationId) throws InternalErrorException, ItemNotFoundException
ConversationId - the conversation IDItemNotFoundExceptionInternalErrorExceptionCopyright © 2020. All Rights Reserved.