public class ODFContentTypeMetadataManager extends AbstractLogEnabled implements Component
Constructor and Description |
---|
ODFContentTypeMetadataManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(Content content,
MetadataDefinition metadataDef)
Determine whether a metadata can be read at this time.
|
boolean |
canWrite(Content content,
MetadataDefinition metadataDef)
Determine whether a metadata can be written at this time.
|
getLogger, setLogger
public ODFContentTypeMetadataManager()
public boolean canWrite(Content content, MetadataDefinition metadataDef) throws AmetysRepositoryException
metadataDef
- the metadata definitioncontent
- The content where metadata is to be written on. Can be null, on content creation.true
if the current user is allowed to write the metadata of this content.AmetysRepositoryException
- if an error occurs while accessing the content.public boolean canRead(Content content, MetadataDefinition metadataDef) throws AmetysRepositoryException
metadataDef
- the metadata definitioncontent
- The content where metadata is to be read on. Can be null, on content creation.true
if the current user is allowed to read the metadata of this content.AmetysRepositoryException
- if an error occurs while accessing the content.