Interface CommentableCompositeMetadata
- All Superinterfaces:
CompositeMetadata
- All Known Implementing Classes:
JCRCompositeMetadata
Deprecated.
Commentable
CompositeMetadata.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.metadata.CompositeMetadata
CompositeMetadata.MetadataType -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComment(String metadataName, String text, String author, Date date) Deprecated.Add a metadata comment.voiddeleteComment(String metadataName, int index) Deprecated.Delete a metadata comment.voideditComment(String metadataName, int index, String text, String author, Date date) Deprecated.Edit the text of a metadata comment.getComments(String metadataName) Deprecated.Retrieves the comments of a metadatabooleanhasComment(String metadataName, int index) Deprecated.Indicates if a metadata has a commentbooleanhasComments(String metadataName) Deprecated.Indicates if a metadata has any commentsMethods inherited from interface org.ametys.plugins.repository.metadata.CompositeMetadata
copyTo, getBinaryMetadata, getBoolean, getBoolean, getBooleanArray, getBooleanArray, getCompositeMetadata, getDate, getDate, getDateArray, getDateArray, getDouble, getDouble, getDoubleArray, getDoubleArray, getLocalizedString, getLocalizedString, getLong, getLong, getLongArray, getLongArray, getMetadataNames, getMultilingualString, getObjectCollection, getRichText, getString, getString, getStringArray, getStringArray, getType, getUser, getUser, getUserArray, getUserArray, hasMetadata, isMultiple
-
Method Details
-
getComments
Deprecated.Retrieves the comments of a metadata- Parameters:
metadataName- The metadata name- Returns:
- the list of
MetadataComment
-
hasComments
Deprecated.Indicates if a metadata has any comments- Parameters:
metadataName- The metadata name- Returns:
- true if at least one comment exists for this metadata
-
hasComment
Deprecated.Indicates if a metadata has a comment- Parameters:
metadataName- The metadata nameindex- The comment index- Returns:
- true if a comment at this index exists for this metadata
-
addComment
Deprecated.Add a metadata comment.- Parameters:
metadataName- The metadata nametext- The text of the commentauthor- The comment authordate- The date of the comment (null to use the current date)
-
editComment
Deprecated.Edit the text of a metadata comment.- Parameters:
metadataName- The metadata nameindex- The comment indextext- The new text for the commentauthor- The comment authordate- The date of the comment (null to use the current date)
-
deleteComment
Deprecated.Delete a metadata comment.- Parameters:
metadataName- The metadata nameindex- The comment index
-
ModelAwareDataHolderinstead