Class LicenseProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.governanceprogram.properties.RelationshipProperties
-
- org.odpi.openmetadata.accessservices.governanceprogram.properties.LicenseProperties
-
- All Implemented Interfaces:
Serializable
public class LicenseProperties extends RelationshipProperties
LicenseProperties describe the details of a license that shows that an element is licensed with a particular license type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LicenseProperties()Default ConstructorLicenseProperties(LicenseProperties template)Copy/clone Constructor - the resulting object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Equals method that returns true if containing properties are the same.StringgetConditions()Return any conditions or endorsements to this license.StringgetCustodian()Return the person/team responsible for ensuring that the license conditions are adhered to.StringgetCustodianPropertyName()Return the name of the property from the element supplying the custodian property.StringgetCustodianTypeName()Return the name of the type of the element supplying the custodian property.DategetEndDate()Return the date/time that this license is no longer valid.StringgetLicensedBy()Return the name of the person in the license authority that granted this license.StringgetLicensedByPropertyName()Return the name of the property from the element supplying the licensedBy property.StringgetLicensedByTypeName()Return the name of the type of the element supplying the licensedBy property.StringgetLicensee()Return the person/team that received the license.StringgetLicenseePropertyName()Return the name of the property from the element supplying the licensee property.StringgetLicenseeTypeName()Return the name of the type of the element supplying the licensee property.StringgetLicenseId()Return the unique identifier of the license.StringgetNotes()Return any notes associated with the license.DategetStartDate()Return the date/time that this license is valid from.inthashCode()Just use the GUID for the hash code as it should be unique.voidsetConditions(String conditions)Set up any conditions or endorsements to this license.voidsetCustodian(String custodian)Set up the person/team responsible for ensuring that the license conditions are adhered to.voidsetCustodianPropertyName(String custodianPropertyName)Set up the name of the property from the element supplying the custodian property.voidsetCustodianTypeName(String custodianTypeName)Set up the name of the type of the element supplying the custodian property.voidsetEndDate(Date endDate)Set up the date/time that this license is no longer valid.voidsetLicensedBy(String licensedBy)Set up the name of the person in the license authority that granted this license.voidsetLicensedByPropertyName(String licensedByPropertyName)Set up the name of the property from the element supplying the licensedBy property.voidsetLicensedByTypeName(String licensedByTypeName)Set up the name of the type of the element supplying the licensedBy property.voidsetLicensee(String licensee)Set up the person/team that received the license.voidsetLicenseePropertyName(String licenseePropertyName)Set up the name of the property from the element supplying the licensee property.voidsetLicenseeTypeName(String licenseeTypeName)Set up the name of the type of the element supplying the licensee property.voidsetLicenseId(String licenseId)Set up the unique identifier of the license.voidsetNotes(String notes)Set up any notes associated with the license.voidsetStartDate(Date startDate)Set up the date/time that this license is valid from.StringtoString()JSON-style toString.-
Methods inherited from class org.odpi.openmetadata.accessservices.governanceprogram.properties.RelationshipProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties
-
-
-
-
Constructor Detail
-
LicenseProperties
public LicenseProperties()
Default Constructor
-
LicenseProperties
public LicenseProperties(LicenseProperties template)
Copy/clone Constructor - the resulting object.- Parameters:
template- object being copied
-
-
Method Detail
-
getLicenseId
public String getLicenseId()
Return the unique identifier of the license. This value comes from the license authority.- Returns:
- string
-
setLicenseId
public void setLicenseId(String licenseId)
Set up the unique identifier of the license. This value comes from the license authority.- Parameters:
licenseId- string
-
getStartDate
public Date getStartDate()
Return the date/time that this license is valid from.- Returns:
- date/time
-
setStartDate
public void setStartDate(Date startDate)
Set up the date/time that this license is valid from.- Parameters:
startDate- date/time
-
getEndDate
public Date getEndDate()
Return the date/time that this license is no longer valid.- Returns:
- date/time
-
setEndDate
public void setEndDate(Date endDate)
Set up the date/time that this license is no longer valid.- Parameters:
endDate- date/time
-
getConditions
public String getConditions()
Return any conditions or endorsements to this license.- Returns:
- string text
-
setConditions
public void setConditions(String conditions)
Set up any conditions or endorsements to this license.- Parameters:
conditions- string text
-
getLicensedBy
public String getLicensedBy()
Return the name of the person in the license authority that granted this license.- Returns:
- string name/id
-
setLicensedBy
public void setLicensedBy(String licensedBy)
Set up the name of the person in the license authority that granted this license.- Parameters:
licensedBy- string name/id
-
getLicensedByTypeName
public String getLicensedByTypeName()
Return the name of the type of the element supplying the licensedBy property.- Returns:
- string type name
-
setLicensedByTypeName
public void setLicensedByTypeName(String licensedByTypeName)
Set up the name of the type of the element supplying the licensedBy property.- Parameters:
licensedByTypeName- string type name
-
getLicensedByPropertyName
public String getLicensedByPropertyName()
Return the name of the property from the element supplying the licensedBy property.- Returns:
- string property name
-
setLicensedByPropertyName
public void setLicensedByPropertyName(String licensedByPropertyName)
Set up the name of the property from the element supplying the licensedBy property.- Parameters:
licensedByPropertyName- string property name
-
getCustodian
public String getCustodian()
Return the person/team responsible for ensuring that the license conditions are adhered to.- Returns:
- string name/id
-
setCustodian
public void setCustodian(String custodian)
Set up the person/team responsible for ensuring that the license conditions are adhered to.- Parameters:
custodian- string name/id
-
getCustodianTypeName
public String getCustodianTypeName()
Return the name of the type of the element supplying the custodian property.- Returns:
- string type name
-
setCustodianTypeName
public void setCustodianTypeName(String custodianTypeName)
Set up the name of the type of the element supplying the custodian property.- Parameters:
custodianTypeName- string type name
-
getCustodianPropertyName
public String getCustodianPropertyName()
Return the name of the property from the element supplying the custodian property.- Returns:
- string property name
-
setCustodianPropertyName
public void setCustodianPropertyName(String custodianPropertyName)
Set up the name of the property from the element supplying the custodian property.- Parameters:
custodianPropertyName- string property name
-
getLicensee
public String getLicensee()
Return the person/team that received the license.- Returns:
- string name/id
-
setLicensee
public void setLicensee(String licensee)
Set up the person/team that received the license.- Parameters:
licensee- string name/id
-
getLicenseeTypeName
public String getLicenseeTypeName()
Return the name of the type of the element supplying the licensee property.- Returns:
- string type name
-
setLicenseeTypeName
public void setLicenseeTypeName(String licenseeTypeName)
Set up the name of the type of the element supplying the licensee property.- Parameters:
licenseeTypeName- string type name
-
getLicenseePropertyName
public String getLicenseePropertyName()
Return the name of the property from the element supplying the licensee property.- Returns:
- string property name
-
setLicenseePropertyName
public void setLicenseePropertyName(String licenseePropertyName)
Set up the name of the property from the element supplying the licensee property.- Parameters:
licenseePropertyName- string property name
-
getNotes
public String getNotes()
Return any notes associated with the license.- Returns:
- string text
-
setNotes
public void setNotes(String notes)
Set up any notes associated with the license.- Parameters:
notes- string text
-
toString
public String toString()
JSON-style toString.- Overrides:
toStringin classRelationshipProperties- Returns:
- list of properties and their values.
-
equals
public boolean equals(Object objectToCompare)
Equals method that returns true if containing properties are the same.- Overrides:
equalsin 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:
hashCodein classRelationshipProperties- Returns:
- int code
-
-