Class AssetLicense
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetElementHeader
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetReferenceable
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetLicense
-
- All Implemented Interfaces:
Serializable
public class AssetLicense extends AssetReferenceable
The data economy brings licensing to data and metadata. Even open data typically has a license. License stores the license permission associated with the asset.
The license will define the permitted uses and other requirements for using the asset.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected LicenselicenseBean-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetReferenceable
referenceableBean
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
parentAsset
-
-
Constructor Summary
Constructors Constructor Description AssetLicense(AssetDescriptor parentAsset, AssetLicense templateLicense)Copy/clone constructor.AssetLicense(AssetDescriptor parentAsset, License licenseBean)Bean constructor with parent assetAssetLicense(License licenseBean)Bean constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.StringgetCreatedBy()Return the name of the person or organization that set up the license agreement for this asset.StringgetCustodian()Return the name of the person or organization that is responsible for the correct management of the asset according to the license.DategetEndDate()Return the end date for the license.protected LicensegetLicenseBean()Return the bean with all of the properties.StringgetLicenseConditions()Return any special conditions that apply to the license - such as endorsements.StringgetLicensee()Get the name of the organization or person that issued the license.StringgetLicenseTypeGUID()Return the unique id for the type of license.StringgetLicenseTypeName()Return the type of the license.AssetExternalReferencegetLink()Return the link to the full text of the license.StringgetNotes()Return the notes for the custodian.DategetStartDate()Return the start date for the license.StringgetSummary()Return a brief summary of the license.inthashCode()Hash of propertiesStringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetReferenceable
getAdditionalProperties, getMeanings, getQualifiedName, getReferenceableBean, getSecurityTags, setBean
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetElementHeader
getAssetClassifications, getElementHeaderBean, getExtendedProperties, getGUID, getType, getURL, setBean
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
getParentAsset, getParentAssetName, getParentAssetTypeName
-
-
-
-
Field Detail
-
licenseBean
protected License licenseBean
-
-
Constructor Detail
-
AssetLicense
public AssetLicense(License licenseBean)
Bean constructor- Parameters:
licenseBean- bean with all of the properties in it
-
AssetLicense
public AssetLicense(AssetDescriptor parentAsset, License licenseBean)
Bean constructor with parent asset- Parameters:
parentAsset- descriptor for parent assetlicenseBean- bean with all of the properties in it
-
AssetLicense
public AssetLicense(AssetDescriptor parentAsset, AssetLicense templateLicense)
Copy/clone constructor.- Parameters:
parentAsset- descriptor for parent assettemplateLicense- element to copy
-
-
Method Detail
-
getLicenseBean
protected License getLicenseBean()
Return the bean with all of the properties.- Returns:
- license bean
-
getLicenseTypeGUID
public String getLicenseTypeGUID()
Return the unique id for the type of license.- Returns:
- String license type GUID
-
getLicenseTypeName
public String getLicenseTypeName()
Return the type of the license.- Returns:
- String license type
-
getLicensee
public String getLicensee()
Get the name of the organization or person that issued the license.- Returns:
- String name
-
getSummary
public String getSummary()
Return a brief summary of the license.- Returns:
- String summary
-
getLink
public AssetExternalReference getLink()
Return the link to the full text of the license.- Returns:
- ExternalReference for full text
-
getStartDate
public Date getStartDate()
Return the start date for the license.- Returns:
- Date
-
getEndDate
public Date getEndDate()
Return the end date for the license.- Returns:
- Date
-
getLicenseConditions
public String getLicenseConditions()
Return any special conditions that apply to the license - such as endorsements.- Returns:
- 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
-
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
-
getNotes
public String getNotes()
Return the notes for the custodian.- Returns:
- String notes
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classAssetReferenceable- 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:
equalsin classAssetReferenceable- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash of properties- Overrides:
hashCodein classAssetReferenceable- Returns:
- int
-
-