Class WatchdogClassificationEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class WatchdogClassificationEvent
    extends WatchdogMetadataElementEvent
    WatchdogClassificationEvent describes the structure of the events passed to the WatchdogGovernanceActionService that describe changes to classifications attached to metadata elements. This form of the WatchdogGovernanceEvent is used with the following event types:
    • NEW_CLASSIFICATION
    • UPDATED_CLASSIFICATION_PROPERTIES
    • DELETED_CLASSIFICATION
    See Also:
    Serialized Form
    • Constructor Detail

      • WatchdogClassificationEvent

        public WatchdogClassificationEvent()
        Default constructor
      • WatchdogClassificationEvent

        public WatchdogClassificationEvent​(WatchdogClassificationEvent template)
        Copy/clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • getChangedClassification

        public AttachedClassification getChangedClassification()
        Return the classification that is the subject of the event.
        Returns:
        classification
      • setChangedClassification

        public void setChangedClassification​(AttachedClassification changedClassification)
        Set up the classification that is the subject of the event.
        Parameters:
        changedClassification - classification
      • getPreviousClassification

        public AttachedClassification getPreviousClassification()
        For UPDATED_CLASSIFICATION_PROPERTIES, return the previous version of the classification (if available. For all other event type, this is null.
        Returns:
        classification
      • setPreviousClassification

        public void setPreviousClassification​(AttachedClassification previousClassification)
        For UPDATED_CLASSIFICATION_PROPERTIES, set up the previous version of the classification (if available. For all other event type, this is null.
        Parameters:
        previousClassification - classification
      • toString

        public java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class WatchdogMetadataElementEvent
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class WatchdogMetadataElementEvent
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison