Class AssetLicense

  • All Implemented Interfaces:
    Serializable

    public class AssetLicense
    extends AssetReferenceable

    The data economy brings licensing to data and metadata. Even open data typically has a license. License stores the license permission associated with the asset.

    The license will define the permitted uses and other requirements for using the asset.

    See Also:
    Serialized Form
    • Field Detail

      • licenseBean

        protected License licenseBean
    • Constructor Detail

      • AssetLicense

        public AssetLicense​(License licenseBean)
        Bean constructor
        Parameters:
        licenseBean - bean with all of the properties in it
      • AssetLicense

        public AssetLicense​(AssetDescriptor parentAsset,
                            License licenseBean)
        Bean constructor with parent asset
        Parameters:
        parentAsset - descriptor for parent asset
        licenseBean - bean with all of the properties in it
      • AssetLicense

        public AssetLicense​(AssetDescriptor parentAsset,
                            AssetLicense templateLicense)
        Copy/clone constructor.
        Parameters:
        parentAsset - descriptor for parent asset
        templateLicense - element to copy
    • Method Detail

      • getLicenseBean

        protected License getLicenseBean()
        Return the bean with all of the properties.
        Returns:
        license bean
      • getLicenseTypeGUID

        public String getLicenseTypeGUID()
        Return the unique id for the type of license.
        Returns:
        String license type GUID
      • getLicenseTypeName

        public String getLicenseTypeName()
        Return the type of the license.
        Returns:
        String license type
      • getLicensee

        public String getLicensee()
        Get the name of the organization or person that issued the license.
        Returns:
        String name
      • getSummary

        public String getSummary()
        Return a brief summary of the license.
        Returns:
        String summary
      • getLink

        public AssetExternalReference getLink()
        Return the link to the full text of the license.
        Returns:
        ExternalReference for full text
      • getStartDate

        public Date getStartDate()
        Return the start date for the license.
        Returns:
        Date
      • getEndDate

        public Date getEndDate()
        Return the end date for the license.
        Returns:
        Date
      • getLicenseConditions

        public String getLicenseConditions()
        Return any special conditions that apply to the license - such as endorsements.
        Returns:
        String license conditions
      • getCreatedBy

        public String getCreatedBy()
        Return the name of the person or organization that set up the license agreement for this asset.
        Returns:
        String name
      • getCustodian

        public String getCustodian()
        Return the name of the person or organization that is responsible for the correct management of the asset according to the license.
        Returns:
        String name
      • getNotes

        public String getNotes()
        Return the notes for the custodian.
        Returns:
        String notes
      • toString

        public String toString()
        Standard toString method.
        Overrides:
        toString in class AssetReferenceable
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class AssetReferenceable
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison