com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class XmpRightsManagementPackage

  • All Implemented Interfaces:
    IXmlValue


    public final class XmpRightsManagementPackage
    extends XmpPackage

    Represents XMP Rights Management namespace.

    • Constructor Detail

      • XmpRightsManagementPackage

        public XmpRightsManagementPackage()

        Initializes a new instance of the XmpRightsManagementPackage class.

    • Method Detail

      • addValue

        public void addValue(String key,
                    String value)

        Adds string property.

        Overrides:
        addValue in class XmpPackage
        Parameters:
        key - Rights management key.
        value - String value.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Key should be provided for XMP Rights Management namespace.
      • setCertificate

        public final void setCertificate(String certificate)

        Sets the certificate.

        Parameters:
        certificate - Url to the rights management certificate.
      • setMarkedAsRightManagement

        public final void setMarkedAsRightManagement(boolean value)

        Marks as right management content

        Parameters:
        value - When true - resource is rights-managed. Otherwise it's a public-domain resource.
      • setOwners

        public final void setOwners(String[] owners)

        Sets owners.

        Parameters:
        owners - The owners of the resources.
      • setUsageTerms

        public final void setUsageTerms(LangAlt usageTerms)

        Sets the usage terms.

        Parameters:
        usageTerms - Instructions on how a resource can be used.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Usage terms could not be null.
      • setWebStatement

        public final void setWebStatement(String webStatementUrl)

        Sets the web statement.

        Parameters:
        webStatementUrl - Url to the a statement of the ownership and usage rights for resource.