org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items
Class JCRFile
java.lang.Object
org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items.JCRFile
- All Implemented Interfaces:
- org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File
- Direct Known Subclasses:
- JCRImage, JCRPDFFile
public class JCRFile
- extends Object
- implements org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MIME_TYPE
public static final String MIME_TYPE
- See Also:
- Constant Field Values
DATA
public static final String DATA
- See Also:
- Constant Field Values
SIZE
public static final String SIZE
- See Also:
- Constant Field Values
REMOTE_STORAGE_PATH
public static final String REMOTE_STORAGE_PATH
- See Also:
- Constant Field Values
nodeId
protected String nodeId
JCRFile
public JCRFile(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
JCRFile
public JCRFile(javax.jcr.Node node,
String mimeType,
InputStream data)
throws javax.jcr.RepositoryException,
org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
- Throws:
javax.jcr.RepositoryException
org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
JCRFile
public JCRFile(javax.jcr.Node node,
InputStream data)
throws javax.jcr.RepositoryException,
org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
- Throws:
javax.jcr.RepositoryException
org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
save
public void save(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
getName
public String getName()
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getName in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getMimeType
public String getMimeType()
- Specified by:
getMimeType in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File
getData
public InputStream getData()
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getData in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getLength
public long getLength()
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getLength 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.