Package org.ametys.odf.contenttype
Class ODFContentTypeMetadataManager
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.odf.contenttype.ODFContentTypeMetadataManager
-
- All Implemented Interfaces:
LogEnabled
,Component
- Direct Known Subclasses:
ODFPilotageContentTypeMetadataManager
public class ODFContentTypeMetadataManager extends AbstractLogEnabled implements Component
Manager for odf content type metadata
-
-
Constructor Summary
Constructors Constructor Description ODFContentTypeMetadataManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
ODFContentTypeMetadataManager
public ODFContentTypeMetadataManager()
-
-
Method Detail
-
canWrite
public boolean canWrite(Content content, MetadataDefinition metadataDef) throws AmetysRepositoryException
Determine whether a metadata can be written at this time.- Parameters:
metadataDef
- the metadata definitioncontent
- The content where metadata is to be written on. Can be null, on content creation.- Returns:
true
if the current user is allowed to write the metadata of this content.- Throws:
AmetysRepositoryException
- if an error occurs while accessing the content.
-
canRead
public boolean canRead(Content content, MetadataDefinition metadataDef) throws AmetysRepositoryException
Determine whether a metadata can be read at this time.- Parameters:
metadataDef
- the metadata definitioncontent
- The content where metadata is to be read on. Can be null, on content creation.- Returns:
true
if the current user is allowed to read the metadata of this content.- Throws:
AmetysRepositoryException
- if an error occurs while accessing the content.
-
-