Class ODFContentTypeMetadataManager

    • Field Detail

      • ROLE

        public static final String ROLE
        The avalon role
    • 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 definition
        content - 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 definition
        content - 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.