org.gcube.common.homelibrary.jcr.workspace.folder.items
Class JCRGCubeItem
java.lang.Object
org.gcube.common.homelibrary.jcr.workspace.JCRWorkspaceItem
org.gcube.common.homelibrary.jcr.workspace.folder.items.JCRGCubeItem
- All Implemented Interfaces:
- org.gcube.common.homelibrary.home.workspace.folder.FolderItem, org.gcube.common.homelibrary.home.workspace.folder.items.GCubeItem, org.gcube.common.homelibrary.home.workspace.WorkspaceItem
public class JCRGCubeItem
- extends JCRWorkspaceItem
- implements org.gcube.common.homelibrary.home.workspace.folder.items.GCubeItem
| Fields inherited from class org.gcube.common.homelibrary.jcr.workspace.JCRWorkspaceItem |
ACCOUNTING, CREATED, creationDate, deep, DESCRIPTION, identifier, LAST_ACTION, LAST_MODIFIED, LAST_MODIFIED_BY, logger, NT_ACCOUNTING, NT_READERS, NT_WORKSPACE_FILE, NT_WORKSPACE_IMAGE, NT_WORKSPACE_PDF_FILE, OWNER, PORTAL_LOGIN, READERS, remotePath, TITLE, USERS, workspace |
| Methods inherited from class org.gcube.common.homelibrary.jcr.workspace.JCRWorkspaceItem |
addAccountingEntry, cloneItem, getAccounting, getCapabilities, getCreationTime, getDescription, getId, getIdSharedFolder, getLastAction, getLastModificationTime, getName, getOwner, getParent, getParent, getPath, getPath, getProperties, getReaders, getReadersNode, getRemotePath, getUsers, internalDescription, internalRename, isMarkedAsRead, isRoot, isRoot, isShared, markAsRead, remove, rename, save, setDescription, setOwnerNode, setOwnerToCurrentUser, setRemotePath, setShare, setShareHistory, setUnshare, setUnshareHistory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.gcube.common.homelibrary.home.workspace.WorkspaceItem |
cloneItem, getAccounting, getCapabilities, getCreationTime, getDescription, getId, getIdSharedFolder, getLastAction, getLastModificationTime, getName, getOwner, getParent, getPath, getProperties, getReaders, getRemotePath, isMarkedAsRead, isRoot, isShared, markAsRead, remove, rename, setDescription, setRemotePath |
JCRGCubeItem
public JCRGCubeItem(JCRWorkspace workspace,
javax.jcr.Node node,
String name,
String description,
List<String> scopes,
String creator,
String itemType,
Map<String,String> properties)
throws javax.jcr.RepositoryException,
org.gcube.common.homelibrary.home.workspace.exceptions.ItemNotFoundException
- Throws:
javax.jcr.RepositoryException
org.gcube.common.homelibrary.home.workspace.exceptions.ItemNotFoundException
JCRGCubeItem
public JCRGCubeItem(JCRWorkspace workspace,
javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
getType
public org.gcube.common.homelibrary.home.workspace.WorkspaceItemType getType()
- Specified by:
getType in interface org.gcube.common.homelibrary.home.workspace.WorkspaceItem
getChildren
public List<? extends org.gcube.common.homelibrary.home.workspace.WorkspaceItem> getChildren()
throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getChildren in interface org.gcube.common.homelibrary.home.workspace.WorkspaceItem
- Throws:
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
getScopes
public List<String> getScopes()
- Specified by:
getScopes in interface org.gcube.common.homelibrary.home.workspace.folder.items.GCubeItem
getItemType
public String getItemType()
- Specified by:
getItemType in interface org.gcube.common.homelibrary.home.workspace.folder.items.GCubeItem
getCreator
public String getCreator()
- Specified by:
getCreator in interface org.gcube.common.homelibrary.home.workspace.folder.items.GCubeItem
getItemProperties
public Map<String,String> getItemProperties()
- Specified by:
getItemProperties in interface org.gcube.common.homelibrary.home.workspace.folder.items.GCubeItem
getFolderItemType
public org.gcube.common.homelibrary.home.workspace.folder.FolderItemType getFolderItemType()
- Specified by:
getFolderItemType in interface org.gcube.common.homelibrary.home.workspace.folder.FolderItem
getLength
public long getLength()
throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getLength in interface org.gcube.common.homelibrary.home.workspace.folder.FolderItem
- Throws:
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
getMimeType
public String getMimeType()
throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getMimeType in interface org.gcube.common.homelibrary.home.workspace.folder.FolderItem
- Throws:
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
move
public void move(org.gcube.common.homelibrary.home.workspace.WorkspaceFolder destination)
throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException,
org.gcube.common.homelibrary.home.workspace.exceptions.WrongDestinationException,
org.gcube.common.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
org.gcube.common.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
- Specified by:
move in interface org.gcube.common.homelibrary.home.workspace.WorkspaceItem- Overrides:
move in class JCRWorkspaceItem
- Throws:
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.common.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.common.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
internalCopy
public javax.jcr.Node internalCopy(javax.jcr.Node nodeFolder,
String newName)
throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException,
org.gcube.common.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.common.homelibrary.home.workspace.exceptions.WrongDestinationException,
javax.jcr.RepositoryException
- Overrides:
internalCopy in class JCRWorkspaceItem
- Throws:
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.common.homelibrary.home.workspace.exceptions.WrongDestinationException
javax.jcr.RepositoryException
internalMove
public void internalMove(javax.jcr.Node destinationFolderNode)
throws org.gcube.common.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
org.gcube.common.homelibrary.home.exceptions.InternalErrorException,
javax.jcr.RepositoryException
- Overrides:
internalMove in class JCRWorkspaceItem
- Throws:
org.gcube.common.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
javax.jcr.RepositoryException
getWorkflowId
public String getWorkflowId()
throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getWorkflowId in interface org.gcube.common.homelibrary.home.workspace.folder.FolderItem
- Throws:
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
setWorkflowId
public void setWorkflowId(String id)
throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
- Specified by:
setWorkflowId in interface org.gcube.common.homelibrary.home.workspace.folder.FolderItem
- Throws:
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
getWorkflowStatus
public String getWorkflowStatus()
throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getWorkflowStatus in interface org.gcube.common.homelibrary.home.workspace.folder.FolderItem
- Throws:
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
setWorkflowStatus
public void setWorkflowStatus(String status)
throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
- Specified by:
setWorkflowStatus in interface org.gcube.common.homelibrary.home.workspace.folder.FolderItem
- Throws:
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
getWorkflowData
public String getWorkflowData()
throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getWorkflowData in interface org.gcube.common.homelibrary.home.workspace.folder.FolderItem
- Throws:
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
setWorkflowData
public void setWorkflowData(String data)
throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
- Specified by:
setWorkflowData in interface org.gcube.common.homelibrary.home.workspace.folder.FolderItem
- Throws:
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
removeChild
public void removeChild(org.gcube.common.homelibrary.home.workspace.WorkspaceItem child)
throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException,
org.gcube.common.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
- Specified by:
removeChild in interface org.gcube.common.homelibrary.home.workspace.WorkspaceItem
- Throws:
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
Copyright © 2013. All Rights Reserved.