Interface CommentableResource
- All Superinterfaces:
AmetysObject
,DublinCoreAwareAmetysObject
,Resource
- All Known Subinterfaces:
ModifiableResource
- All Known Implementing Classes:
JCRResource
Common interface for a commentable resource file of a resources explorer node.
-
Method Summary
Modifier and TypeMethodDescriptiongetComments
(boolean createThread) Get the thread holding the commentsMethods 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
Methods inherited from interface org.ametys.plugins.explorer.resources.Resource
getCreationDate, getCreator, getInputStream, getKeywords, getKeywordsAsString, getLastContributor, getLastModified, getLength, getMimeType, getResourcePath
-
Method Details
-
getComments
Get the thread holding the comments- Parameters:
createThread
- True to force the creation of the thread if it does not exists.- Returns:
- the thread holding the comments or null if the tread does not exist
- Throws:
AmetysRepositoryException
- If an error occurred
-