java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader

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.

  • Field Summary

    Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader

    CURRENT_AUDIT_HEADER_VERSION
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
    License(License template)
    Copy/clone constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    Return the name of the person or organization that set up the license agreement for this asset.
    Return the name of the person or organization that is responsible for the correct management of the asset according to the license.
    Return the end date for the license.
    Return any special conditions that apply to the license - such as endorsements.
    Return the name of the organization or person that issued the license.
    Return the unique id for the type of license.
    Return the name for the type of the license.
    Return the link to the full text of the license.
    Return the notes for the custodian.
    Return the start date for the license.
    Return a brief summary of the license.
    int
    Hash of properties
    void
    setCreatedBy(String createdBy)
    Set up the name of the person or organization that set up the license agreement for this asset.
    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.
    void
    setEndDate(Date endDate)
    Set up the end data for the license.
    void
    setLicenseConditions(String licenseConditions)
    Set up any special conditions that apply to the license - such as endorsements.
    void
    setLicensee(String licensee)
    Set up the name of the organization or person that issued the license.
    void
    setLicenseGUID(String licenseGUID)
    Set up the unique id for the type of license.
    void
    setLicenseTypeName(String licenseTypeName)
    Set up the name for the type of the license.
    void
    Set up the link to the full text of the license.
    void
    Set up the notes for the custodian.
    void
    setStartDate(Date startDate)
    Set up the start date for the license.
    void
    setSummary(String summary)
    Set up a brief summary of the license.
    Standard toString method.

    Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable

    getAdditionalProperties, getQualifiedName, setAdditionalProperties, setQualifiedName

    Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase

    getExtendedProperties, setExtendedProperties

    Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader

    getClassifications, getGUID, setClassifications, setGUID

    Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader

    getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • License

      public License()
      Default constructor
    • License

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

    • 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