public interface Resource extends DublinCoreAwareAmetysObject
Modifier and Type | Method and Description |
---|---|
Date |
getCreationDate()
Retrieves the creation date.
|
UserIdentity |
getCreator()
Returns the last contributor of this resource.
|
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 |
getResourcePath()
Returns the path of this resource in its hierarchy (which is a subset of the whole repository).
|
getDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCType
equals, getId, getName, getParent, getParentPath, getPath, hashCode
InputStream getInputStream() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.Date getCreationDate() throws UnknownMetadataException, AmetysRepositoryException
UnknownMetadataException
- if this property does not exist.AmetysRepositoryException
- if an error occurs.Date getLastModified() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.long getLength() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.UserIdentity getCreator() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.UserIdentity getLastContributor() throws UnknownMetadataException, AmetysRepositoryException
UnknownMetadataException
- if this property does not exist.AmetysRepositoryException
- if an error occurs.String[] getKeywords() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.String getKeywordsAsString() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.String getMimeType() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.String getResourcePath() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.