Class License
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
org.odpi.openmetadata.frameworks.connectors.properties.beans.License
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
Modifier and TypeFieldDescriptionprotected String
protected String
protected Date
protected String
protected String
protected String
protected String
protected ExternalReference
protected String
protected Date
protected String
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
additionalProperties, qualifiedName
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
extendedProperties
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.getLink()
Return the link to the full text of the license.getNotes()
Return the notes for the custodian.Return the start date for the license.Return a brief summary of the license.int
hashCode()
Hash of propertiesvoid
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
setLink
(ExternalReference link) 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.toString()
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
-
Field Details
-
licenseGUID
-
licenseTypeName
-
licensee
-
summary
-
link
-
startDate
-
endDate
-
licenseConditions
-
createdBy
-
custodian
-
notes
-
-
Constructor Details
-
License
public License()Default constructor -
License
Copy/clone constructor.- Parameters:
template
- element to copy
-
-
Method Details
-
getLicenseGUID
Return the unique id for the type of license.- Returns:
- String license type GUID
-
setLicenseGUID
Set up the unique id for the type of license.- Parameters:
licenseGUID
- String license type GUID
-
getLicenseTypeName
Return the name for the type of the license.- Returns:
- String license type name
-
setLicenseTypeName
Set up the name for the type of the license.- Parameters:
licenseTypeName
- String license type name
-
getLicensee
Return the name of the organization or person that issued the license.- Returns:
- String name of person or organization
-
setLicensee
Set up the name of the organization or person that issued the license.- Parameters:
licensee
- String name of person or organization
-
getSummary
Return a brief summary of the license.- Returns:
- String summary text
-
setSummary
Set up a brief summary of the license.- Parameters:
summary
- String summary text
-
getLink
Return the link to the full text of the license.- Returns:
- ExternalReference for full text
-
setLink
Set up the link to the full text of the license.- Parameters:
link
- ExternalReference for full text
-
getStartDate
Return the start date for the license.- Returns:
- Date
-
setStartDate
Set up the start date for the license.- Parameters:
startDate
- Date
-
getEndDate
Return the end date for the license.- Returns:
- Date
-
setEndDate
Set up the end data for the license.- Parameters:
endDate
- Date
-
getLicenseConditions
Return any special conditions that apply to the license - such as endorsements.- Returns:
- String license conditions
-
setLicenseConditions
Set up any special conditions that apply to the license - such as endorsements.- Parameters:
licenseConditions
- String license conditions
-
getCreatedBy
Return the name of the person or organization that set up the license agreement for this asset.- Returns:
- String name
-
setCreatedBy
Set up the name of the person or organization that set up the license agreement for this asset.- Parameters:
createdBy
- String name
-
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
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
Return the notes for the custodian.- Returns:
- String notes
-
setNotes
Set up the notes for the custodian.- Parameters:
notes
- String notes
-
toString
Standard toString method.- Overrides:
toString
in classReferenceable
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classReferenceable
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Hash of properties- Overrides:
hashCode
in classReferenceable
- Returns:
- int
-