Interface CommentableResource
-
- All Superinterfaces:
AmetysObject
,DublinCoreAwareAmetysObject
,Resource
- All Known Subinterfaces:
ModifiableResource
- All Known Implementing Classes:
JCRResource
public interface CommentableResource extends Resource
Common interface for a commentable resource file of a resources explorer node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Thread
getComments(boolean createThread)
Get the thread holding the comments-
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
-
Methods inherited from interface org.ametys.plugins.explorer.resources.Resource
getCreationDate, getCreator, getInputStream, getKeywords, getKeywordsAsString, getLastContributor, getLastModified, getLength, getMimeType, getResourcePath
-
-
-
-
Method Detail
-
getComments
Thread getComments(boolean createThread) throws AmetysRepositoryException
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
-
-