Interface CommentableCompositeMetadata
-
- All Superinterfaces:
CompositeMetadata
- All Known Implementing Classes:
JCRCompositeMetadata
@Deprecated public interface CommentableCompositeMetadata extends CompositeMetadata
Deprecated.UseModelAwareDataHolder
insteadCommentableCompositeMetadata
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.metadata.CompositeMetadata
CompositeMetadata.MetadataType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
addComment(String metadataName, String text, String author, Date date)
Deprecated.Add a metadata comment.void
deleteComment(String metadataName, int index)
Deprecated.Delete a metadata comment.void
editComment(String metadataName, int index, String text, String author, Date date)
Deprecated.Edit the text of a metadata comment.List<MetadataComment>
getComments(String metadataName)
Deprecated.Retrieves the comments of a metadataboolean
hasComment(String metadataName, int index)
Deprecated.Indicates if a metadata has a commentboolean
hasComments(String metadataName)
Deprecated.Indicates if a metadata has any comments-
Methods 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 Detail
-
getComments
List<MetadataComment> getComments(String metadataName)
Deprecated.Retrieves the comments of a metadata- Parameters:
metadataName
- The metadata name- Returns:
- the list of
MetadataComment
-
hasComments
boolean hasComments(String metadataName)
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
boolean hasComment(String metadataName, int index)
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
void addComment(String metadataName, String text, String author, Date date)
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
void editComment(String metadataName, int index, String text, String author, Date date)
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
void deleteComment(String metadataName, int index)
Deprecated.Delete a metadata comment.- Parameters:
metadataName
- The metadata nameindex
- The comment index
-
-