public class JCRFile extends Object implements org.gcube.common.homelibrary.home.workspace.folder.items.File
| Modifier and Type | Field and Description |
|---|---|
static String |
DATA |
protected org.gcube.common.homelibary.model.items.ItemDelegate |
itemDelegate |
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,
InputStream is) |
JCRFile(JCRWorkspace workspace,
org.gcube.common.homelibary.model.items.ItemDelegate itemDelegate,
MetaInfo info) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getData() |
void |
getHardLink(String destPath) |
long |
getLength() |
String |
getMimeType() |
String |
getName() |
protected String |
getPortalLogin() |
String |
getPublicLink() |
protected GCUBEStorage |
getStorage() |
String |
getStorageId() |
void |
setLenght(long size) |
void |
setStorageID(String storageID) |
void |
updateInfo(JCRSession servlets,
MetaInfo info) |
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
protected org.gcube.common.homelibary.model.items.ItemDelegate itemDelegate
public JCRFile(JCRWorkspace workspace, org.gcube.common.homelibary.model.items.ItemDelegate itemDelegate)
public JCRFile(JCRWorkspace workspace, org.gcube.common.homelibary.model.items.ItemDelegate itemDelegate, MetaInfo info) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic JCRFile(JCRWorkspace workspace, org.gcube.common.homelibary.model.items.ItemDelegate itemDelegate, InputStream is) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException, IOException, org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionIOExceptionorg.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionpublic 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 void setLenght(long size)
public 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 String getStorageId() throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
getStorageId 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(JCRSession servlets, MetaInfo info) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionprotected String getPortalLogin()
protected GCUBEStorage getStorage()
public void setStorageID(String storageID)
Copyright © 2016. All Rights Reserved.