org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items.gcube
Class JCRImageDocument
java.lang.Object
org.gcube.portlets.user.homelibrary.jcr.workspace.JCRWorkspaceItem
org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items.JCRWorkspaceFolderItem
org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items.gcube.JCRDocument
org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items.gcube.JCRImageDocument
- All Implemented Interfaces:
- org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItem, org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File, org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.Document, org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.ImageDocument, org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.InfoObject, org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Image, org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem
public class JCRImageDocument
- extends JCRDocument
- implements org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.ImageDocument
| Fields inherited from class org.gcube.portlets.user.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, READERS, remotePath, TITLE, workspace |
|
Constructor Summary |
JCRImageDocument(JCRWorkspace workspace,
javax.jcr.Node node)
|
JCRImageDocument(JCRWorkspace workspace,
javax.jcr.Node node,
String name,
String description,
String oid,
String mimeType,
InputStream documentData,
Map<String,String> metadata,
Map<String,String> annotations,
String collectionName)
|
| Methods inherited from class org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items.gcube.JCRDocument |
getAlternatives, getAnnotation, getCollectionName, getData, getLength, getMetadata, getMimeType, getParts, getURI, saveContent, setAlternatives, setParts |
| Methods inherited from class org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items.JCRWorkspaceFolderItem |
copyRemoteContent, getChildren, getProperties, getType, getWorkflowData, getWorkflowId, getWorkflowStatus, removeChild, removeRemoteContent, save, setHardLink, setWorkflowData, setWorkflowId, setWorkflowStatus |
| Methods inherited from class org.gcube.portlets.user.homelibrary.jcr.workspace.JCRWorkspaceItem |
addAccountingEntry, cloneItem, getAccounting, getCapabilities, getCreationTime, getDescription, getId, getIdSharedFolder, getLastAction, getLastModificationTime, getName, getOwner, getParent, getParent, getPath, getPath, getReaders, getReadersNode, getRemotePath, internalCopy, internalDescription, internalMove, internalRename, isMarkedAsRead, isRoot, isRoot, isShared, markAsRead, move, remove, rename, 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.portlets.user.homelibrary.home.workspace.folder.items.gcube.Document |
getAlternatives, getAnnotation, getCollectionName, getData, getMetadata, getMimeType, getParts |
| Methods inherited from interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.InfoObject |
getURI |
| Methods inherited from interface org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItem |
getLength, getWorkflowData, getWorkflowId, getWorkflowStatus, setWorkflowData, setWorkflowId, setWorkflowStatus |
| Methods inherited from interface org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem |
cloneItem, getAccounting, getCapabilities, getChildren, getCreationTime, getDescription, getId, getIdSharedFolder, getLastAction, getLastModificationTime, getName, getOwner, getParent, getPath, getProperties, getReaders, getRemotePath, getType, isMarkedAsRead, isRoot, isShared, markAsRead, move, remove, removeChild, rename, setDescription, setRemotePath |
| Methods inherited from interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File |
getData, getLength, getMimeType, getName |
REMOTE_STORAGE_PATH
public static final String REMOTE_STORAGE_PATH
- See Also:
- Constant Field Values
nodeId
protected String nodeId
JCRImageDocument
public JCRImageDocument(JCRWorkspace workspace,
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
JCRImageDocument
public JCRImageDocument(JCRWorkspace workspace,
javax.jcr.Node node,
String name,
String description,
String oid,
String mimeType,
InputStream documentData,
Map<String,String> metadata,
Map<String,String> annotations,
String collectionName)
throws javax.jcr.RepositoryException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Throws:
javax.jcr.RepositoryException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getWidth
public int getWidth()
- Specified by:
getWidth in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Image
getHeight
public int getHeight()
- Specified by:
getHeight in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Image
getThumbnail
public InputStream getThumbnail()
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getThumbnail in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Image
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getThumbnailWidth
public int getThumbnailWidth()
- Specified by:
getThumbnailWidth in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Image
getThumbnailHeight
public int getThumbnailHeight()
- Specified by:
getThumbnailHeight in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Image
getThumbnailLength
public long getThumbnailLength()
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getThumbnailLength in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Image
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getFolderItemType
public org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItemType getFolderItemType()
- Specified by:
getFolderItemType in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItem- Overrides:
getFolderItemType in class JCRDocument
getPublicLink
public String getPublicLink()
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getPublicLink in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getHardLink
public void getHardLink(String linkName)
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getHardLink in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
updateInfo
public void updateInfo()
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
updateInfo in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
Copyright © 2013. All Rights Reserved.