public interface CommentableCompositeMetadata extends CompositeMetadata
CompositeMetadata
.CompositeMetadata.MetadataType
Modifier and Type | Method and Description |
---|---|
void |
addComment(String metadataName,
String text,
String author,
Date date)
Add a metadata comment.
|
void |
deleteComment(String metadataName,
int index)
Delete a metadata comment.
|
void |
editComment(String metadataName,
int index,
String text,
String author,
Date date)
Edit the text of a metadata comment.
|
List<MetadataComment> |
getComments(String metadataName)
Retrieves the comments of a metadata
|
boolean |
hasComment(String metadataName,
int index)
Indicates if a metadata has a comment
|
boolean |
hasComments(String metadataName)
Indicates if a metadata has any comments
|
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
List<MetadataComment> getComments(String metadataName)
metadataName
- The metadata nameMetadataComment
boolean hasComments(String metadataName)
metadataName
- The metadata nameboolean hasComment(String metadataName, int index)
metadataName
- The metadata nameindex
- The comment indexvoid addComment(String metadataName, String text, String author, Date date)
metadataName
- The metadata nametext
- The text of the commentauthor
- The comment authordate
- The date of the comment (null to use the current date)void editComment(String metadataName, int index, String text, String author, Date date)
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)void deleteComment(String metadataName, int index)
metadataName
- The metadata nameindex
- The comment index