Package gov.nasa.pds.registry.model
Class AuditableEvent
- java.lang.Object
- 
- gov.nasa.pds.registry.model.Identifiable
- 
- gov.nasa.pds.registry.model.RegistryObject
- 
- gov.nasa.pds.registry.model.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 SummaryConstructors Constructor Description AuditableEvent()AuditableEvent(EventType eventType, List<String> affectedObjects, String user)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<String>getAffectedObjects()EventTypegetEventType()StringgetRequestId()DategetTimestamp()StringgetUser()inthashCode()voidsetAffectedObjects(List<String> affectedObjects)voidsetEventType(EventType eventType)voidsetRequestId(String requestId)voidsetTimestamp(Date timestamp)voidsetUser(String user)- 
Methods inherited from class gov.nasa.pds.registry.model.RegistryObjectgetClassifications, getDescription, getExternalIdentifiers, getLid, getName, getObjectType, getStatus, getVersionName, setClassifications, setDescription, setExternalIdentifiers, setLid, setName, setObjectType, setStatus, setVersionName
 
- 
 
- 
- 
- 
Method Detail- 
getEventTypepublic EventType getEventType() - Returns:
- the eventType
 
 - 
setEventTypepublic void setEventType(EventType eventType) - Parameters:
- eventType- the eventType to set
 
 - 
getAffectedObjectspublic List<String> getAffectedObjects() - Returns:
- the guid of the registry object this event is associated with
 
 - 
setAffectedObjectspublic void setAffectedObjects(List<String> affectedObjects) - Parameters:
- affectedObjects- the guid of the registry object this event is associated with
 
 - 
getTimestamppublic Date getTimestamp() - Returns:
- the timestamp when the event occurred
 
 - 
setTimestamppublic void setTimestamp(Date timestamp) - Parameters:
- timestamp- the timestamp to when event occured
 
 - 
getUserpublic String getUser() - Returns:
- identifier that maps to a user
 
 - 
setUserpublic void setUser(String user) - Parameters:
- user- an unique user id to set
 
 - 
getRequestIdpublic String getRequestId() - Returns:
- identifies the request made to cause this event
 
 - 
setRequestIdpublic void setRequestId(String requestId) - Parameters:
- requestId- unique id for request that generated this event
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- RegistryObject
 
 - 
equalspublic boolean equals(Object obj) - Overrides:
- equalsin class- RegistryObject
 
 
- 
 
-