public class JCRFile extends Object implements org.gcube.common.homelibrary.home.workspace.folder.items.File
| Modifier and Type | Field and Description |
|---|---|
static String |
DATA |
static String |
MIME_TYPE |
static String |
REMOTE_STORAGE_PATH |
static String |
SIZE |
static String |
STORAGE_PATH |
| Constructor and Description |
|---|
JCRFile(JCRWorkspace workspace,
org.gcube.common.homelibary.model.items.ItemDelegate itemDelegate) |
JCRFile(JCRWorkspace workspace,
org.gcube.common.homelibary.model.items.ItemDelegate itemDelegate,
String mimeType,
File tmpFile) |
JCRFile(JCRWorkspace workspace,
org.gcube.common.homelibary.model.items.ItemDelegate itemDelegate,
String mimeType,
File tmpFile,
String remotePath) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getData() |
void |
getHardLink(String destPath) |
long |
getLength() |
String |
getMimeType() |
String |
getName() |
String |
getPublicLink() |
protected GCUBEStorage |
getStorage() |
void |
updateInfo(JCRServlets servlets,
File tmpFile) |
public static final String MIME_TYPE
public static final String DATA
public static final String SIZE
public static final String REMOTE_STORAGE_PATH
public static final String STORAGE_PATH
public JCRFile(JCRWorkspace workspace, org.gcube.common.homelibary.model.items.ItemDelegate itemDelegate) throws org.gcube.common.homelibrary.model.exceptions.RepositoryException
org.gcube.common.homelibrary.model.exceptions.RepositoryExceptionpublic JCRFile(JCRWorkspace workspace, org.gcube.common.homelibary.model.items.ItemDelegate itemDelegate, String mimeType, File tmpFile) throws org.gcube.common.homelibrary.model.exceptions.RepositoryException, org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
org.gcube.common.homelibrary.model.exceptions.RepositoryExceptionorg.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionpublic JCRFile(JCRWorkspace workspace, org.gcube.common.homelibary.model.items.ItemDelegate itemDelegate, String mimeType, File tmpFile, String remotePath) throws org.gcube.common.homelibrary.model.exceptions.RepositoryException, org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
org.gcube.common.homelibrary.model.exceptions.RepositoryExceptionorg.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionprotected GCUBEStorage getStorage()
public String getName() throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
getName in interface org.gcube.common.homelibrary.home.workspace.folder.items.Fileorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic String getMimeType()
getMimeType in interface org.gcube.common.homelibrary.home.workspace.folder.items.Filepublic InputStream getData() throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
getData in interface org.gcube.common.homelibrary.home.workspace.folder.items.Fileorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic long getLength()
throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
getLength in interface org.gcube.common.homelibrary.home.workspace.folder.items.Fileorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic String getPublicLink() throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
getPublicLink in interface org.gcube.common.homelibrary.home.workspace.folder.items.Fileorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic void getHardLink(String destPath) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
getHardLink in interface org.gcube.common.homelibrary.home.workspace.folder.items.Fileorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic void updateInfo(JCRServlets servlets, File tmpFile) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionCopyright © 2015. All Rights Reserved.