Interface Resource
- All Superinterfaces:
AmetysObject
,DublinCoreAwareAmetysObject
- All Known Subinterfaces:
CommentableResource
,ModifiableResource
- All Known Implementing Classes:
CMISResource
,JCRResource
Common interface for a resource file of a resources explorer node.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the creation date.Returns the last contributor of this resource.Returns the data stream.String[]
Returns the keywords of this resource, as a String array.Returns the keywords of this resource, as a comme-separated String.Retrieves the login of the last contributor.Returns the last modification date.long
Returns the length of the data stream.Returns the data mime-type.Returns the path of this resource in its hierarchy (which is a subset of the whole repository).Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
Methods inherited from interface org.ametys.plugins.repository.dublincore.DublinCoreAwareAmetysObject
getDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCType
-
Method Details
-
getInputStream
Returns the data stream.- Returns:
- the data stream.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getCreationDate
Retrieves the creation date.- Returns:
- the creation date.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getLastModified
Returns the last modification date.- Returns:
- the last modification date.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getLength
Returns the length of the data stream.- Returns:
- the length of the data stream.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getCreator
Returns the last contributor of this resource.- Returns:
- the last contributor of this resource.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getLastContributor
Retrieves the login of the last contributor.- Returns:
- the login of the last contributor.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getKeywords
Returns the keywords of this resource, as a String array.- Returns:
- the keywords of this resource.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getKeywordsAsString
Returns the keywords of this resource, as a comme-separated String.- Returns:
- the keywords of this resource.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getMimeType
Returns the data mime-type.- Returns:
- the data mime-type.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getResourcePath
Returns the path of this resource in its hierarchy (which is a subset of the whole repository).- Returns:
- the path of this resource in its hierarchy.
- Throws:
AmetysRepositoryException
- if an error occurs.
-