Class RetentionProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.ClassificationProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.ClassificationBeanProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.governance.GovernanceClassificationBase
org.odpi.openmetadata.frameworks.openmetadata.properties.governance.RetentionProperties
RetentionClassificationProperties defines the retention requirements for related data items.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorRetentionProperties
(RetentionProperties template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the date that this asset will be archived.Return the unique identifier of the element used in deciding the archiveAfter and deleteAfter dates.int
Return a description of the factor used to set the archiveAfter and deleteAfter dates.Return the date that this asset will be permanently deleted.int
hashCode()
Return code value representing the contents of this object.void
setArchiveAfter
(Date archiveAfter) Set up the date that this asset will be archived.void
setAssociatedGUID
(String associatedGUID) Set up the unique identifier of the element used in deciding the archiveAfter and deleteAfter dates.void
setBasisIdentifier
(int basisIdentifier) Set up a description of the factor used to set the archiveAfter and deleteAfter dates.void
setDeleteAfter
(Date deleteAfter) Set up the date that this asset will be permanently deleted.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.governance.GovernanceClassificationBase
getConfidence, getNotes, getSource, getStatusIdentifier, getSteward, getStewardPropertyName, getStewardTypeName, setConfidence, setNotes, setSource, setStatusIdentifier, setSteward, setStewardPropertyName, setStewardTypeName
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.ClassificationBeanProperties
getExtendedProperties, getTypeName, setExtendedProperties, setTypeName
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.ClassificationProperties
getEffectiveFrom, getEffectiveTo, setEffectiveFrom, setEffectiveTo
-
Constructor Details
-
RetentionProperties
public RetentionProperties()Default constructor -
RetentionProperties
Copy/clone constructor.- Parameters:
template
- object to copy
-
-
Method Details
-
getBasisIdentifier
public int getBasisIdentifier()Return a description of the factor used to set the archiveAfter and deleteAfter dates.- Returns:
- int
-
setBasisIdentifier
public void setBasisIdentifier(int basisIdentifier) Set up a description of the factor used to set the archiveAfter and deleteAfter dates.- Parameters:
basisIdentifier
- int
-
getAssociatedGUID
Return the unique identifier of the element used in deciding the archiveAfter and deleteAfter dates. For example if the retention basis is determined by the project lifetime, this identifier is the identifier of the associated project.- Returns:
- string guid
-
setAssociatedGUID
Set up the unique identifier of the element used in deciding the archiveAfter and deleteAfter dates. For example if the retention basis is determined by the project lifetime, this identifier is the identifier of the associated project.- Parameters:
associatedGUID
- string guid
-
getArchiveAfter
Return the date that this asset will be archived.- Returns:
- date/timestamp
-
setArchiveAfter
Set up the date that this asset will be archived.- Parameters:
archiveAfter
- date/timestamp
-
getDeleteAfter
Return the date that this asset will be permanently deleted.- Returns:
- date/timestamp
-
setDeleteAfter
Set up the date that this asset will be permanently deleted.- Parameters:
deleteAfter
- date/timestamp
-
toString
Standard toString method.- Overrides:
toString
in classGovernanceClassificationBase
- 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 classGovernanceClassificationBase
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return code value representing the contents of this object.- Overrides:
hashCode
in classGovernanceClassificationBase
- Returns:
- int
-