Class LicenseProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.governance.LicenseProperties
LicenseProperties describe the details of a license that shows that an element is licensed with a particular license type.
-
Constructor Summary
ConstructorDescriptionDefault ConstructorLicenseProperties
(LicenseProperties template) Copy/clone Constructor - the resulting object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return any conditions or endorsements to this license.Return the person/team responsible for ensuring that the license conditions are adhered to.Return the name of the property from the element supplying the custodian property.Return the name of the type of the element supplying the custodian property.Return the date/time that this license is no longer valid.Return the entitlements granted by the license.Return the name of the person in the license authority that granted this license.Return the name of the property from the element supplying the licensedBy property.Return the name of the type of the element supplying the licensedBy property.Return the person/team that received the license.Return the name of the property from the element supplying the licensee property.Return the name of the type of the element supplying the licensee property.Return the unique identifier of the license.getNotes()
Return any notes associated with the license.Return the obligations stipulated by the license.Return the restrictions imposed by the license.Return the date/time that this license is valid from.int
hashCode()
Just use the GUID for the hash code as it should be unique.void
setConditions
(String conditions) Set up any conditions or endorsements to this license.void
setCustodian
(String custodian) Set up the person/team responsible for ensuring that the license conditions are adhered to.void
setCustodianPropertyName
(String custodianPropertyName) Set up the name of the property from the element supplying the custodian property.void
setCustodianTypeName
(String custodianTypeName) Set up the name of the type of the element supplying the custodian property.void
setEndDate
(Date endDate) Set up the date/time that this license is no longer valid.void
setEntitlements
(Map<String, String> entitlements) Set up the entitlements granted by the license.void
setLicensedBy
(String licensedBy) Set up the name of the person in the license authority that granted this license.void
setLicensedByPropertyName
(String licensedByPropertyName) Set up the name of the property from the element supplying the licensedBy property.void
setLicensedByTypeName
(String licensedByTypeName) Set up the name of the type of the element supplying the licensedBy property.void
setLicensee
(String licensee) Set up the person/team that received the license.void
setLicenseePropertyName
(String licenseePropertyName) Set up the name of the property from the element supplying the licensee property.void
setLicenseeTypeName
(String licenseeTypeName) Set up the name of the type of the element supplying the licensee property.void
setLicenseId
(String licenseId) Set up the unique identifier of the license.void
Set up any notes associated with the license.void
setObligations
(Map<String, String> obligations) Set up the obligations stipulated by the license.void
setRestrictions
(Map<String, String> restrictions) Set up the restrictions imposed by the license.void
setStartDate
(Date startDate) Set up the date/time that this license is valid from.toString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties
-
Constructor Details
-
LicenseProperties
public LicenseProperties()Default Constructor -
LicenseProperties
Copy/clone Constructor - the resulting object.- Parameters:
template
- object being copied
-
-
Method Details
-
getLicenseId
Return the unique identifier of the license. This value comes from the license authority.- Returns:
- string
-
setLicenseId
Set up the unique identifier of the license. This value comes from the license authority.- Parameters:
licenseId
- string
-
getStartDate
Return the date/time that this license is valid from.- Returns:
- date/time
-
setStartDate
Set up the date/time that this license is valid from.- Parameters:
startDate
- date/time
-
getEndDate
Return the date/time that this license is no longer valid.- Returns:
- date/time
-
setEndDate
Set up the date/time that this license is no longer valid.- Parameters:
endDate
- date/time
-
getConditions
Return any conditions or endorsements to this license.- Returns:
- string text
-
setConditions
Set up any conditions or endorsements to this license.- Parameters:
conditions
- string text
-
getLicensedBy
Return the name of the person in the license authority that granted this license.- Returns:
- string name/id
-
setLicensedBy
Set up the name of the person in the license authority that granted this license.- Parameters:
licensedBy
- string name/id
-
getLicensedByTypeName
Return the name of the type of the element supplying the licensedBy property.- Returns:
- string type name
-
setLicensedByTypeName
Set up the name of the type of the element supplying the licensedBy property.- Parameters:
licensedByTypeName
- string type name
-
getLicensedByPropertyName
Return the name of the property from the element supplying the licensedBy property.- Returns:
- string property name
-
setLicensedByPropertyName
Set up the name of the property from the element supplying the licensedBy property.- Parameters:
licensedByPropertyName
- string property name
-
getCustodian
Return the person/team responsible for ensuring that the license conditions are adhered to.- Returns:
- string name/id
-
setCustodian
Set up the person/team responsible for ensuring that the license conditions are adhered to.- Parameters:
custodian
- string name/id
-
getCustodianTypeName
Return the name of the type of the element supplying the custodian property.- Returns:
- string type name
-
setCustodianTypeName
Set up the name of the type of the element supplying the custodian property.- Parameters:
custodianTypeName
- string type name
-
getCustodianPropertyName
Return the name of the property from the element supplying the custodian property.- Returns:
- string property name
-
setCustodianPropertyName
Set up the name of the property from the element supplying the custodian property.- Parameters:
custodianPropertyName
- string property name
-
getLicensee
Return the person/team that received the license.- Returns:
- string name/id
-
setLicensee
Set up the person/team that received the license.- Parameters:
licensee
- string name/id
-
getLicenseeTypeName
Return the name of the type of the element supplying the licensee property.- Returns:
- string type name
-
setLicenseeTypeName
Set up the name of the type of the element supplying the licensee property.- Parameters:
licenseeTypeName
- string type name
-
getLicenseePropertyName
Return the name of the property from the element supplying the licensee property.- Returns:
- string property name
-
setLicenseePropertyName
Set up the name of the property from the element supplying the licensee property.- Parameters:
licenseePropertyName
- string property name
-
getEntitlements
Return the entitlements granted by the license.- Returns:
- name value pairs
-
setEntitlements
Set up the entitlements granted by the license.- Parameters:
entitlements
- name value pairs
-
getRestrictions
Return the restrictions imposed by the license.- Returns:
- name value pairs
-
setRestrictions
Set up the restrictions imposed by the license.- Parameters:
restrictions
- name value pairs
-
getObligations
Return the obligations stipulated by the license.- Returns:
- name value pairs
-
setObligations
Set up the obligations stipulated by the license.- Parameters:
obligations
- name value pairs
-
getNotes
Return any notes associated with the license.- Returns:
- string text
-
setNotes
Set up any notes associated with the license.- Parameters:
notes
- string text
-
toString
JSON-style toString.- Overrides:
toString
in classRelationshipProperties
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in classRelationshipProperties
- Parameters:
objectToCompare
- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Just use the GUID for the hash code as it should be unique.- Overrides:
hashCode
in classRelationshipProperties
- Returns:
- int code
-