Class License

  • All Implemented Interfaces:
    Serializable

    public class License
    extends Referenceable

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

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

    See Also:
    Serialized Form
    • Field Detail

      • licenseGUID

        protected String licenseGUID
      • licenseTypeName

        protected String licenseTypeName
      • licensee

        protected String licensee
      • summary

        protected String summary
      • startDate

        protected Date startDate
      • endDate

        protected Date endDate
      • licenseConditions

        protected String licenseConditions
      • createdBy

        protected String createdBy
      • custodian

        protected String custodian
      • notes

        protected String notes
    • Constructor Detail

      • License

        public License()
        Default constructor
      • License

        public License​(License template)
        Copy/clone constructor.
        Parameters:
        template - element to copy
    • Method Detail

      • getLicenseGUID

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

        public void setLicenseGUID​(String licenseGUID)
        Set up the unique id for the type of license.
        Parameters:
        licenseGUID - String license type GUID
      • getLicenseTypeName

        public String getLicenseTypeName()
        Return the name for the type of the license.
        Returns:
        String license type name
      • setLicenseTypeName

        public void setLicenseTypeName​(String licenseTypeName)
        Set up the name for the type of the license.
        Parameters:
        licenseTypeName - String license type name
      • getLicensee

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

        public void setLicensee​(String licensee)
        Set up the name of the organization or person that issued the license.
        Parameters:
        licensee - String name of person or organization
      • getSummary

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

        public void setSummary​(String summary)
        Set up a brief summary of the license.
        Parameters:
        summary - String summary text
      • getLink

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

        public void setLink​(ExternalReference link)
        Set up the link to the full text of the license.
        Parameters:
        link - ExternalReference for full text
      • getStartDate

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

        public void setStartDate​(Date startDate)
        Set up the start date for the license.
        Parameters:
        startDate - Date
      • getEndDate

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

        public void setEndDate​(Date endDate)
        Set up the end data for the license.
        Parameters:
        endDate - Date
      • getLicenseConditions

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

        public void setLicenseConditions​(String licenseConditions)
        Set up any special conditions that apply to the license - such as endorsements.
        Parameters:
        licenseConditions - 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
      • setCreatedBy

        public void setCreatedBy​(String createdBy)
        Set up the name of the person or organization that set up the license agreement for this asset.
        Parameters:
        createdBy - 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
      • setCustodian

        public void setCustodian​(String custodian)
        Set up the name of the person or organization that is responsible for the correct management of the asset according to the license.
        Parameters:
        custodian - String name
      • getNotes

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

        public void setNotes​(String notes)
        Set up the notes for the custodian.
        Parameters:
        notes - String notes
      • toString

        public String toString()
        Standard toString method.
        Overrides:
        toString in class Referenceable
        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 Referenceable
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Hash of properties
        Overrides:
        hashCode in class Referenceable
        Returns:
        int