CommentableRepositoryData
instead@Deprecated public interface CommentableCompositeMetadata extends CompositeMetadata
CompositeMetadata
.CompositeMetadata.MetadataType
Modifier and Type | Method and 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 metadata
|
boolean |
hasComment(String metadataName,
int index)
Deprecated.
Indicates if a metadata has a comment
|
boolean |
hasComments(String metadataName)
Deprecated.
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