Class LatestChange
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementClassificationHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.LatestChange
LatestChange is a bean that describes the latest change to an asset universe.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault ConstructorLatestChange
(LatestChange 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 description of the change.Return the unique identifier of an element.Return the type name.Return a classification name.Return the type of change.Return the relationship of element that has been changed to the anchor.Return the user identifier for the person/system making the change.int
hashCode()
Return code value representing the contents of this object.void
setActionDescription
(String actionDescription) Set up the description of the change.void
setAttachmentGUID
(String attachmentGUID) Set up the unique identifier of an element.void
setAttachmentTypeName
(String attachmentTypeName) Set up the type name.void
setClassificationName
(String classificationName) Set up a classification name.void
setLatestChangeAction
(LatestChangeAction latestChangeAction) Set up the type of change.void
setLatestChangeTarget
(LatestChangeTarget latestChangeTarget) Set up the relationship of element that has been changed to the anchor.void
Set up the user identifier for the person/system making the change.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementClassificationHeader
getClassificationOrigin, getClassificationOriginGUID, setClassificationOrigin, setClassificationOriginGUID
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions
-
Constructor Details
-
LatestChange
public LatestChange()Default Constructor -
LatestChange
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getLatestChangeTarget
Return the relationship of element that has been changed to the anchor.- Returns:
- enum
-
setLatestChangeTarget
Set up the relationship of element that has been changed to the anchor.- Parameters:
latestChangeTarget
- enum
-
getLatestChangeAction
Return the type of change.- Returns:
- enum
-
setLatestChangeAction
Set up the type of change.- Parameters:
latestChangeAction
- enum
-
getClassificationName
Return a classification name. If a classification name changed, this is its name or null.- Returns:
- string name
-
setClassificationName
Set up a classification name. If a classification name changed, this is its name or null.- Parameters:
classificationName
- string name
-
getAttachmentGUID
Return the unique identifier of an element. If an attached entity or relationship changed, this is its unique identifier.- Returns:
- string guid
-
setAttachmentGUID
Set up the unique identifier of an element. If an attached entity or relationship changed, this is its unique identifier.- Parameters:
attachmentGUID
- string guid
-
getAttachmentTypeName
Return the type name. If an attached entity or relationship changed, this is its unique type name.- Returns:
- string name
-
setAttachmentTypeName
Set up the type name. If an attached entity or relationship changed, this is its unique type name.- Parameters:
attachmentTypeName
- string name
-
getUserId
Return the user identifier for the person/system making the change.- Returns:
- string user id
-
setUserId
Set up the user identifier for the person/system making the change.- Parameters:
userId
- string user id
-
getActionDescription
Return the description of the change.- Returns:
- text
-
setActionDescription
Set up the description of the change.- Parameters:
actionDescription
- text
-
toString
Standard toString method.- Overrides:
toString
in classElementClassificationHeader
- 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 classElementClassificationHeader
- 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 classElementClassificationHeader
- Returns:
- int
-