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
|
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 |
getChildren, getOwner, getType, getWorkflowData, getWorkflowId, getWorkflowStatus, removeChild, save, setWorkflowData, setWorkflowId, setWorkflowStatus |
| Methods inherited from class org.gcube.portlets.user.homelibrary.jcr.workspace.JCRWorkspaceItem |
cloneItem, getCapabilities, getCreationTime, getDescription, getId, getLastAction, getLastModificationTime, getName, getParent, getPath, getPath, getProperties, internalCopy, internalDescription, internalMove, internalRename, isRoot, isRoot, move, remove, rename, setDescription |
| 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, getCapabilities, getChildren, getCreationTime, getDescription, getId, getLastAction, getLastModificationTime, getName, getOwner, getParent, getPath, getProperties, getType, isRoot, move, remove, removeChild, rename, setDescription |
| Methods inherited from interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File |
getData, getLength, getMimeType, getName |
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
Copyright © 2012. All Rights Reserved.