Class AuditableEvent

  • All Implemented Interfaces:
    Serializable

    @Entity
    public class AuditableEvent
    extends RegistryObject
    AuditableEvent instances provide a long-term record of events that effected a change in a RegistryObject. A RegistryObject is associated with an ordered Set of AuditableEvent instances that provide a complete audit trail for that RegistryObject. AuditableEvents are usually a result of a client-initiated request. AuditableEvent instances are generated by the Registry Service to log such Events. Often such events effect a change in the life cycle of a RegistryObject. For example a client request could Create, Update, Deprecate or Delete a RegistryObject. An AuditableEvent is typically created when a request creates or alters the content or ownership of a RegistryObject. Read-only requests typically do not generate an AuditableEvent.
    Author:
    pramirez
    See Also:
    Serialized Form
    • Constructor Detail

      • AuditableEvent

        public AuditableEvent()
    • Method Detail

      • getEventType

        public EventType getEventType()
        Returns:
        the eventType
      • setEventType

        public void setEventType​(EventType eventType)
        Parameters:
        eventType - the eventType to set
      • getAffectedObjects

        public List<String> getAffectedObjects()
        Returns:
        the guid of the registry object this event is associated with
      • setAffectedObjects

        public void setAffectedObjects​(List<String> affectedObjects)
        Parameters:
        affectedObjects - the guid of the registry object this event is associated with
      • getTimestamp

        public Date getTimestamp()
        Returns:
        the timestamp when the event occurred
      • setTimestamp

        public void setTimestamp​(Date timestamp)
        Parameters:
        timestamp - the timestamp to when event occured
      • getUser

        public String getUser()
        Returns:
        identifier that maps to a user
      • setUser

        public void setUser​(String user)
        Parameters:
        user - an unique user id to set
      • getRequestId

        public String getRequestId()
        Returns:
        identifies the request made to cause this event
      • setRequestId

        public void setRequestId​(String requestId)
        Parameters:
        requestId - unique id for request that generated this event