org.gcube.portlets.user.homelibrary.jcr.workspace
Class JCRWorkspace
java.lang.Object
org.gcube.portlets.user.homelibrary.home.workspace.events.AbstractWorkspaceEventSource
org.gcube.portlets.user.homelibrary.jcr.workspace.JCRWorkspace
- All Implemented Interfaces:
- org.gcube.portlets.user.homelibrary.home.workspace.events.WorkspaceEventSource, org.gcube.portlets.user.homelibrary.home.workspace.Workspace
public class JCRWorkspace
- extends org.gcube.portlets.user.homelibrary.home.workspace.events.AbstractWorkspaceEventSource
- implements org.gcube.portlets.user.homelibrary.home.workspace.Workspace
| Fields inherited from class org.gcube.portlets.user.homelibrary.home.workspace.events.AbstractWorkspaceEventSource |
listeners |
|
Method Summary |
void |
changeDescription(String itemId,
String newDescription)
|
org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem |
cloneItem(String itemId,
String cloneName)
|
org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem |
copy(String itemId,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem |
copy(String itemId,
String newName,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.Annotation |
createAnnotation(String name,
String description,
String oid,
Map<String,String> data,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder |
createAquaMapsItem(String name,
String description,
String mapName,
String mapType,
String author,
int numberOfSpecies,
String boundingBox,
float psoThreshold,
int numberOfGeneratedImages,
InputStream metadata,
Map<String,InputStream> images,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.Document |
createDocument(String name,
String description,
String oid,
String mimeType,
InputStream documentData,
Map<String,String> metadata,
Map<String,String> annotations,
String collectionName,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.link.DocumentLink |
createDocumentLink(String name,
String description,
String oid,
Map<String,String> metadata,
Map<String,String> annotations,
String collectionName,
String mimeType,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalFile |
createExternalFile(String name,
String description,
String mimeType,
InputStream fileData,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalImage |
createExternalImage(String name,
String description,
String mimeType,
InputStream imageData,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalPDFFile |
createExternalPDFFile(String name,
String description,
String mimeType,
InputStream fileData,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalResourceLink |
createExternalResourceLink(String name,
String description,
String mimeType,
String resourceId,
String pluginName,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalUrl |
createExternalUrl(String name,
String description,
InputStream url,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalUrl |
createExternalUrl(String name,
String description,
String url,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder |
createFolder(String name,
String description,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.ImageDocument |
createImageDocument(String name,
String description,
String oid,
String mimeType,
InputStream imageData,
Map<String,String> metadata,
Map<String,String> annotations,
String collectionName,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.link.ImageDocumentLink |
createImageDocumentLink(String name,
String description,
String oid,
Map<String,String> metadata,
Map<String,String> annotations,
String collectionName,
String mimeType,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.Metadata |
createMetadata(String name,
String description,
String oid,
String schema,
String language,
String data,
String collectionName,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.PDFDocument |
createPDFDocument(String name,
String description,
String oid,
String mimeType,
InputStream data,
Map<String,String> metadata,
Map<String,String> annotations,
String collectionName,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.link.PDFDocumentLink |
createPDFDocumentLink(String name,
String description,
String oid,
Map<String,String> metadata,
Map<String,String> annotations,
String collectionName,
String mimeType,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Query |
createQuery(String name,
String description,
InputStream query,
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.QueryType queryType,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Query |
createQuery(String name,
String description,
String query,
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.QueryType queryType,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Report |
createReport(String name,
String description,
Calendar created,
Calendar lastEdit,
String author,
String lastEditBy,
String templateName,
int numberOfSections,
String status,
InputStream reportData,
String destinationfolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ReportTemplate |
createReportTemplate(String name,
String description,
Calendar created,
Calendar lastEdit,
String author,
String lastEditBy,
int numberOfSections,
String status,
InputStream templateData,
String destinationfolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceSharedFolder |
createSharedFolder(String name,
String description,
List<String> users,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceSmartFolder |
createSmartFolder(String name,
String description,
String query)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ts.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)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.UrlDocument |
createUrlDocument(String name,
String description,
String oid,
String mimeType,
InputStream documentData,
Map<String,String> metadata,
Map<String,String> annotations,
String collectionName,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.WorkflowReport |
createWorkflowReport(String name,
String description,
String workflowId,
String workflowStatus,
String workflowData,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.WorkflowTemplate |
createWorkflowTemplate(String name,
String description,
String workflowId,
String workflowStatus,
String workflowData,
String destinationFolderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder |
decomposeAquaMapsItem(String itemId,
String folderName,
String destinationWorkspaceId)
|
boolean |
exists(String itemId)
|
boolean |
exists(String name,
String folderId)
|
org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem |
find(String path)
|
org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem |
find(String name,
String folderId)
|
List<org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceSmartFolder> |
getAllSmartFolders()
|
org.gcube.portlets.user.homelibrary.home.workspace.acl.Capabilities |
getCapabilities(String itemId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderBulkCreatorManager |
getFolderBulkCreatorManager()
|
List<org.gcube.portlets.user.homelibrary.home.workspace.search.SearchItem> |
getFolderItems(org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItemType... types)
|
List<org.gcube.portlets.user.homelibrary.home.workspace.search.SearchItem> |
getFolderItems(org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItemType type)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItemType |
getFolderItemType(javax.jcr.Node node)
|
JCRFile |
getGCUBEDocumentContent(javax.jcr.Session session,
String oid,
ContentType contentType)
|
org.gcube.portlets.user.homelibrary.home.Home |
getHome()
|
org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem |
getItem(javax.jcr.Session session,
String itemId)
|
org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem |
getItem(String itemId)
|
org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderBulkCreator |
getNewFolderBulkCreator(String folderId)
|
org.gcube.portlets.user.homelibrary.home.User |
getOwner()
|
JCRAbstractWorkspaceFolder |
getParent(javax.jcr.Node node)
|
String |
getPathSeparator()
|
JCRRepository |
getRepository()
|
org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder |
getRoot()
|
org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder |
getRoot(org.gcube.common.core.scope.GCUBEScope scope)
|
org.gcube.common.core.scope.GCUBEScope |
getScope()
|
org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceSmartFolder |
getSmartFolder(String folderId)
|
String |
getUrlWebDav()
|
JCRWorkspaceItem |
getWorkspaceItem(javax.jcr.Node node)
|
org.gcube.portlets.user.homelibrary.home.workspace.sharing.WorkspaceMessageManager |
getWorkspaceMessageManager()
|
List<org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem> |
getWorkspaceTree(org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem item)
|
boolean |
isValidName(String name)
|
void |
moveItem(String itemId,
String destinationFolderId)
|
void |
remove(String itemName,
String folderId)
|
void |
removeChild(String childId,
String folderId)
|
void |
removeItem(String itemId)
|
void |
renameItem(String itemId,
String newName)
|
List<org.gcube.portlets.user.homelibrary.home.workspace.search.SearchFolderItem> |
searchByMimeType(String mimeType)
|
List<org.gcube.portlets.user.homelibrary.home.workspace.search.SearchItem> |
searchByName(String name)
|
JCRFile |
setGCUBEDocumentContent(javax.jcr.Session session,
String oid,
InputStream data,
String mimeType,
ContentType contentType)
|
org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceSharedFolder |
shareFolder(List<String> users,
String folderId)
|
| Methods inherited from class org.gcube.portlets.user.homelibrary.home.workspace.events.AbstractWorkspaceEventSource |
addWorkspaceListener, fireItemCreatedEvent, fireItemImportedEvent, fireItemRemovedEvent, fireItemRenamedEvent, fireItemSentEvent, fireWorkspaceEvent, removeWorkspaceListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.gcube.portlets.user.homelibrary.home.workspace.events.WorkspaceEventSource |
addWorkspaceListener, removeWorkspaceListener |
NT_WORKSPACE_FOLDER
public static final String NT_WORKSPACE_FOLDER
- See Also:
- Constant Field Values
NT_WORKSPACE_SHARED_FOLDER
public static final String NT_WORKSPACE_SHARED_FOLDER
- See Also:
- Constant Field Values
JCRWorkspace
public JCRWorkspace(org.gcube.portlets.user.homelibrary.home.Home home,
JCRRepository repository)
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
JCRWorkspace
public JCRWorkspace(JCRHome home)
getPathSeparator
public String getPathSeparator()
- Specified by:
getPathSeparator in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
getHome
public org.gcube.portlets.user.homelibrary.home.Home getHome()
- Specified by:
getHome in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
getRepository
public JCRRepository getRepository()
getOwner
public org.gcube.portlets.user.homelibrary.home.User getOwner()
- Specified by:
getOwner in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
getRoot
public org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder getRoot()
- Specified by:
getRoot in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
getRoot
public org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder getRoot(org.gcube.common.core.scope.GCUBEScope scope)
- Specified by:
getRoot in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
createFolder
public org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder createFolder(String name,
String description,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
createFolder in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
createExternalImage
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalImage createExternalImage(String name,
String description,
String mimeType,
InputStream imageData,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
- Specified by:
createExternalImage in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
createExternalFile
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalFile createExternalFile(String name,
String description,
String mimeType,
InputStream fileData,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
- Specified by:
createExternalFile in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
createExternalPDFFile
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalPDFFile createExternalPDFFile(String name,
String description,
String mimeType,
InputStream fileData,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
- Specified by:
createExternalPDFFile in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
createExternalUrl
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalUrl createExternalUrl(String name,
String description,
String url,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
- Specified by:
createExternalUrl in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
createExternalUrl
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalUrl createExternalUrl(String name,
String description,
InputStream url,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
createExternalUrl in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
createReportTemplate
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ReportTemplate createReportTemplate(String name,
String description,
Calendar created,
Calendar lastEdit,
String author,
String lastEditBy,
int numberOfSections,
String status,
InputStream templateData,
String destinationfolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
createReportTemplate in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
createReport
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.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 org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
createReport in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
createQuery
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Query createQuery(String name,
String description,
String query,
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.QueryType queryType,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
createQuery in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
createQuery
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Query createQuery(String name,
String description,
InputStream query,
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.QueryType queryType,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
createQuery in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
createAquaMapsItem
public org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder createAquaMapsItem(String name,
String description,
String mapName,
String mapType,
String author,
int numberOfSpecies,
String boundingBox,
float psoThreshold,
int numberOfGeneratedImages,
InputStream metadata,
Map<String,InputStream> images,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
createAquaMapsItem in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
createAnnotation
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.Annotation createAnnotation(String name,
String description,
String oid,
Map<String,String> data,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
createAnnotation in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
createMetadata
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.Metadata createMetadata(String name,
String description,
String oid,
String schema,
String language,
String data,
String collectionName,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
createMetadata in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
createDocument
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.Document createDocument(String name,
String description,
String oid,
String mimeType,
InputStream documentData,
Map<String,String> metadata,
Map<String,String> annotations,
String collectionName,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
createDocument in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
createImageDocument
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.ImageDocument createImageDocument(String name,
String description,
String oid,
String mimeType,
InputStream imageData,
Map<String,String> metadata,
Map<String,String> annotations,
String collectionName,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
createImageDocument in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
createPDFDocument
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.PDFDocument createPDFDocument(String name,
String description,
String oid,
String mimeType,
InputStream data,
Map<String,String> metadata,
Map<String,String> annotations,
String collectionName,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
createPDFDocument in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
createUrlDocument
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.UrlDocument createUrlDocument(String name,
String description,
String oid,
String mimeType,
InputStream documentData,
Map<String,String> metadata,
Map<String,String> annotations,
String collectionName,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
- Specified by:
createUrlDocument in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
createDocumentLink
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.link.DocumentLink createDocumentLink(String name,
String description,
String oid,
Map<String,String> metadata,
Map<String,String> annotations,
String collectionName,
String mimeType,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
- Specified by:
createDocumentLink in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
createImageDocumentLink
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.link.ImageDocumentLink createImageDocumentLink(String name,
String description,
String oid,
Map<String,String> metadata,
Map<String,String> annotations,
String collectionName,
String mimeType,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
- Specified by:
createImageDocumentLink in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
createPDFDocumentLink
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.link.PDFDocumentLink createPDFDocumentLink(String name,
String description,
String oid,
Map<String,String> metadata,
Map<String,String> annotations,
String collectionName,
String mimeType,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
- Specified by:
createPDFDocumentLink in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
createTimeSeries
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ts.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 org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
- Specified by:
createTimeSeries in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
createWorkflowReport
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.WorkflowReport createWorkflowReport(String name,
String description,
String workflowId,
String workflowStatus,
String workflowData,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
- Specified by:
createWorkflowReport in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
createWorkflowTemplate
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.WorkflowTemplate createWorkflowTemplate(String name,
String description,
String workflowId,
String workflowStatus,
String workflowData,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
- Specified by:
createWorkflowTemplate in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
createExternalResourceLink
public org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalResourceLink createExternalResourceLink(String name,
String description,
String mimeType,
String resourceId,
String pluginName,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
- Specified by:
createExternalResourceLink in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
removeItem
public void removeItem(String itemId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
- Specified by:
removeItem in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
moveItem
public void moveItem(String itemId,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
moveItem in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
renameItem
public void renameItem(String itemId,
String newName)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
- Specified by:
renameItem in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
changeDescription
public void changeDescription(String itemId,
String newDescription)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
changeDescription in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getItem
public org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem getItem(String itemId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
- Specified by:
getItem in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
getItem
public org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem getItem(javax.jcr.Session session,
String itemId)
throws javax.jcr.RepositoryException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Throws:
javax.jcr.RepositoryException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getCapabilities
public org.gcube.portlets.user.homelibrary.home.workspace.acl.Capabilities getCapabilities(String itemId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getCapabilities in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
removeChild
public void removeChild(String childId,
String folderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongParentTypeException
- Specified by:
removeChild in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongParentTypeException
remove
public void remove(String itemName,
String folderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongItemTypeException
- Specified by:
remove in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongItemTypeException
copy
public org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem copy(String itemId,
String newName,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
copy in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
copy
public org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem copy(String itemId,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
copy in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
cloneItem
public org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem cloneItem(String itemId,
String cloneName)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
cloneItem in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
exists
public boolean exists(String name,
String folderId)
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongItemTypeException
- Specified by:
exists in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongItemTypeException
exists
public boolean exists(String itemId)
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
exists in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
find
public org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem find(String name,
String folderId)
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongItemTypeException
- Specified by:
find in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongItemTypeException
find
public org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem find(String path)
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
find in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
isValidName
public boolean isValidName(String name)
- Specified by:
isValidName in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
getNewFolderBulkCreator
public org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderBulkCreator getNewFolderBulkCreator(String folderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongItemTypeException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getNewFolderBulkCreator in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongItemTypeException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getFolderBulkCreatorManager
public org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderBulkCreatorManager getFolderBulkCreatorManager()
- Specified by:
getFolderBulkCreatorManager in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
getWorkspaceMessageManager
public org.gcube.portlets.user.homelibrary.home.workspace.sharing.WorkspaceMessageManager getWorkspaceMessageManager()
- Specified by:
getWorkspaceMessageManager in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
decomposeAquaMapsItem
public org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder decomposeAquaMapsItem(String itemId,
String folderName,
String destinationWorkspaceId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongItemTypeException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
- Specified by:
decomposeAquaMapsItem in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongItemTypeException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
getWorkspaceItem
public JCRWorkspaceItem getWorkspaceItem(javax.jcr.Node node)
throws javax.jcr.RepositoryException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Throws:
javax.jcr.RepositoryException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getFolderItemType
public org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItemType getFolderItemType(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
getParent
public JCRAbstractWorkspaceFolder getParent(javax.jcr.Node node)
throws javax.jcr.RepositoryException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Throws:
javax.jcr.RepositoryException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getGCUBEDocumentContent
public JCRFile getGCUBEDocumentContent(javax.jcr.Session session,
String oid,
ContentType contentType)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
setGCUBEDocumentContent
public JCRFile setGCUBEDocumentContent(javax.jcr.Session session,
String oid,
InputStream data,
String mimeType,
ContentType contentType)
throws IOException,
javax.jcr.ItemExistsException,
javax.jcr.RepositoryException
- Throws:
IOException
javax.jcr.ItemExistsException
javax.jcr.RepositoryException
searchByName
public List<org.gcube.portlets.user.homelibrary.home.workspace.search.SearchItem> searchByName(String name)
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
searchByName in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getWorkspaceTree
public List<org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem> getWorkspaceTree(org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem item)
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getWorkspaceTree in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
createSmartFolder
public org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceSmartFolder createSmartFolder(String name,
String description,
String query)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
createSmartFolder in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getAllSmartFolders
public List<org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceSmartFolder> getAllSmartFolders()
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getAllSmartFolders in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getSmartFolder
public org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceSmartFolder getSmartFolder(String folderId)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getSmartFolder in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getFolderItems
public List<org.gcube.portlets.user.homelibrary.home.workspace.search.SearchItem> getFolderItems(org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItemType... types)
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getFolderItems in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getFolderItems
public List<org.gcube.portlets.user.homelibrary.home.workspace.search.SearchItem> getFolderItems(org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItemType type)
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getFolderItems in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
searchByMimeType
public List<org.gcube.portlets.user.homelibrary.home.workspace.search.SearchFolderItem> searchByMimeType(String mimeType)
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
searchByMimeType in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getScope
public org.gcube.common.core.scope.GCUBEScope getScope()
- Specified by:
getScope in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
getUrlWebDav
public String getUrlWebDav()
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getUrlWebDav in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
createSharedFolder
public org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceSharedFolder createSharedFolder(String name,
String description,
List<String> users,
String destinationFolderId)
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
createSharedFolder in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
shareFolder
public org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceSharedFolder shareFolder(List<String> users,
String folderId)
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- Specified by:
shareFolder in interface org.gcube.portlets.user.homelibrary.home.workspace.Workspace
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
Copyright © 2013. All Rights Reserved.