public class CMISResource extends Object implements Resource
Resource, backed by a server CMIS.| Modifier and Type | Field and Description |
|---|---|
private Document |
_cmisDocument |
private AmetysObject |
_parent |
private CMISRootResourcesCollection |
_root |
| Constructor and Description |
|---|
CMISResource(Document document,
CMISRootResourcesCollection root,
AmetysObject parent)
Creates a
CMISResource |
| Modifier and Type | Method and Description |
|---|---|
Document |
getCmisDocument()
Retrieves the
Folder |
CMISRootResourcesCollection |
getCmisRoot()
Retrieves the
CMISRootResourcesCollection |
Date |
getCreationDate()
Retrieves the creation date.
|
UserIdentity |
getCreator()
Returns the last contributor of this resource.
|
String |
getDCContributor()
Get the Dublin Core contributor.
|
String |
getDCCoverage()
Get the Dublin Core coverage.
|
String |
getDCCreator()
Get the Dublin Core creator.
|
Date |
getDCDate()
Get the Dublin Core date.
|
String |
getDCDescription()
Get the Dublin Core description.
|
String |
getDCFormat()
Get the Dublin Core format.
|
String |
getDCIdentifier()
Get the Dublin Core identifier.
|
String |
getDCLanguage()
Get the Dublin Core language.
|
String |
getDCPublisher()
Get the Dublin Core publisher.
|
String |
getDCRelation()
Get the Dublin Core relation.
|
String |
getDCRights()
Get the Dublin Core rights.
|
String |
getDCSource()
Get the Dublin Core source.
|
String[] |
getDCSubject()
Get the Dublin Core subject.
|
String |
getDCTitle()
Get the Dublin Core title.
|
String |
getDCType()
Get the Dublin Core type.
|
String |
getId()
Retrieves the unique identifier of this AmetysObject.
It must be unique in the whole repository and must never be null. It must conform to the URI syntax: <protocol>://<protocol-specific-part> |
InputStream |
getInputStream()
Returns the data stream.
|
String[] |
getKeywords()
Returns the keywords of this resource, as a String array.
|
String |
getKeywordsAsString()
Returns the keywords of this resource, as a comme-separated String.
|
UserIdentity |
getLastContributor()
Retrieves the login of the last contributor.
|
Date |
getLastModified()
Returns the last modification date.
|
long |
getLength()
Returns the length of the data stream.
|
String |
getMimeType()
Returns the data mime-type.
|
String |
getName()
Retrieves the name of the current object.
|
AmetysObject |
getParent()
Returns the parent object in the Ametys hierarchy.
|
String |
getParentPath()
Returns the path of the parent object in the Ametys hierarchy.
|
String |
getPath()
Retrieves the path of the current object.
|
String |
getResourcePath()
Returns the path of this resource in its hierarchy (which is a subset of the whole repository).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCodeprivate final Document _cmisDocument
private final CMISRootResourcesCollection _root
private AmetysObject _parent
public CMISResource(Document document, CMISRootResourcesCollection root, AmetysObject parent)
CMISResourcedocument - The CMIS documentroot - The root of the virtual treeparent - the parent AmetysObject if knownpublic CMISRootResourcesCollection getCmisRoot()
CMISRootResourcesCollectionCMISRootResourcesCollectionpublic Document getCmisDocument()
FolderFolderpublic String getId() throws AmetysRepositoryException
AmetysObject<protocol>://<protocol-specific-part>getId in interface AmetysObjectAmetysRepositoryException - if an error occurs.public String getName()
AmetysObjectgetName in interface AmetysObjectpublic AmetysObject getParent() throws AmetysRepositoryException
AmetysObjectgetParent in interface AmetysObjectnull if current object
is the root.AmetysRepositoryException - if an error occurs.public String getParentPath() throws AmetysRepositoryException
AmetysObjectgetParentPath in interface AmetysObjectAmetysRepositoryException - if an error occurs.public String getPath() throws AmetysRepositoryException
AmetysObjectgetPath in interface AmetysObjectAmetysRepositoryException - if an error occurs.public UserIdentity getCreator()
ResourcegetCreator in interface Resourcepublic InputStream getInputStream() throws AmetysRepositoryException
ResourcegetInputStream in interface ResourceAmetysRepositoryException - if an error occurs.public Date getLastModified()
ResourcegetLastModified in interface Resourcepublic long getLength()
Resourcepublic String getMimeType() throws AmetysRepositoryException
ResourcegetMimeType in interface ResourceAmetysRepositoryException - if an error occurs.public String[] getKeywords() throws AmetysRepositoryException
ResourcegetKeywords in interface ResourceAmetysRepositoryException - if an error occurs.public String getKeywordsAsString() throws AmetysRepositoryException
ResourcegetKeywordsAsString in interface ResourceAmetysRepositoryException - if an error occurs.public String getResourcePath() throws AmetysRepositoryException
ResourcegetResourcePath in interface ResourceAmetysRepositoryException - if an error occurs.public String getDCTitle() throws AmetysRepositoryException
DublinCoreAwareAmetysObjectgetDCTitle in interface DublinCoreAwareAmetysObjectAmetysRepositoryException - if an error occurs.public String getDCCreator() throws AmetysRepositoryException
DublinCoreAwareAmetysObjectgetDCCreator in interface DublinCoreAwareAmetysObjectAmetysRepositoryException - if an error occurs.public String[] getDCSubject() throws AmetysRepositoryException
DublinCoreAwareAmetysObjectgetDCSubject in interface DublinCoreAwareAmetysObjectAmetysRepositoryException - if an error occurs.public String getDCDescription() throws AmetysRepositoryException
DublinCoreAwareAmetysObjectgetDCDescription in interface DublinCoreAwareAmetysObjectAmetysRepositoryException - if an error occurs.public String getDCPublisher() throws AmetysRepositoryException
DublinCoreAwareAmetysObjectgetDCPublisher in interface DublinCoreAwareAmetysObjectAmetysRepositoryException - if an error occurs.public String getDCContributor() throws AmetysRepositoryException
DublinCoreAwareAmetysObjectgetDCContributor in interface DublinCoreAwareAmetysObjectAmetysRepositoryException - if an error occurs.public Date getDCDate() throws AmetysRepositoryException
DublinCoreAwareAmetysObjectgetDCDate in interface DublinCoreAwareAmetysObjectAmetysRepositoryException - if an error occurs.public String getDCType() throws AmetysRepositoryException
DublinCoreAwareAmetysObjectgetDCType in interface DublinCoreAwareAmetysObjectAmetysRepositoryException - if an error occurs.public String getDCFormat() throws AmetysRepositoryException
DublinCoreAwareAmetysObjectgetDCFormat in interface DublinCoreAwareAmetysObjectAmetysRepositoryException - if an error occurs.public String getDCIdentifier() throws AmetysRepositoryException
DublinCoreAwareAmetysObjectgetDCIdentifier in interface DublinCoreAwareAmetysObjectAmetysRepositoryException - if an error occurs.public String getDCSource() throws AmetysRepositoryException
DublinCoreAwareAmetysObjectgetDCSource in interface DublinCoreAwareAmetysObjectAmetysRepositoryException - if an error occurs.public String getDCLanguage() throws AmetysRepositoryException
DublinCoreAwareAmetysObjectgetDCLanguage in interface DublinCoreAwareAmetysObjectAmetysRepositoryException - if an error occurs.public String getDCRelation() throws AmetysRepositoryException
DublinCoreAwareAmetysObjectgetDCRelation in interface DublinCoreAwareAmetysObjectAmetysRepositoryException - if an error occurs.public String getDCCoverage() throws AmetysRepositoryException
DublinCoreAwareAmetysObjectgetDCCoverage in interface DublinCoreAwareAmetysObjectAmetysRepositoryException - if an error occurs.public String getDCRights() throws AmetysRepositoryException
DublinCoreAwareAmetysObjectgetDCRights in interface DublinCoreAwareAmetysObjectAmetysRepositoryException - if an error occurs.public Date getCreationDate() throws UnknownMetadataException, AmetysRepositoryException
ResourcegetCreationDate in interface ResourceUnknownMetadataException - if this property does not exist.AmetysRepositoryException - if an error occurs.public UserIdentity getLastContributor() throws UnknownMetadataException, AmetysRepositoryException
ResourcegetLastContributor in interface ResourceUnknownMetadataException - if this property does not exist.AmetysRepositoryException - if an error occurs.