Package com.evolveum.midpoint.audit.api
Class AuditEventRecord
- java.lang.Object
-
- com.evolveum.midpoint.audit.api.AuditEventRecord
-
- All Implemented Interfaces:
DebugDumpable
public class AuditEventRecord extends Object implements DebugDumpable
Audit event record describes a single event (usually data change) in a format suitable for audit.- Author:
- Radovan Semancik
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description AuditEventRecord()
AuditEventRecord(AuditEventType eventType)
AuditEventRecord(AuditEventType eventType, AuditEventStage eventStage)
-
Method Summary
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDumpLazily, debugDumpLazily
-
-
-
-
Constructor Detail
-
AuditEventRecord
public AuditEventRecord()
-
AuditEventRecord
public AuditEventRecord(AuditEventType eventType)
-
AuditEventRecord
public AuditEventRecord(AuditEventType eventType, AuditEventStage eventStage)
-
-
Method Detail
-
getTimestamp
public Long getTimestamp()
-
clearTimestamp
public void clearTimestamp()
-
setTimestamp
public void setTimestamp(Long timestamp)
-
getEventIdentifier
public String getEventIdentifier()
-
setEventIdentifier
public void setEventIdentifier(String eventIdentifier)
-
getSessionIdentifier
public String getSessionIdentifier()
-
setSessionIdentifier
public void setSessionIdentifier(String sessionIdentifier)
-
getRequestIdentifier
public String getRequestIdentifier()
-
setRequestIdentifier
public void setRequestIdentifier(String requestIdentifier)
-
getTaskIdentifier
public String getTaskIdentifier()
-
setTaskIdentifier
public void setTaskIdentifier(String taskIdentifier)
-
getTaskOID
public String getTaskOID()
-
setTaskOID
public void setTaskOID(String taskOID)
-
getHostIdentifier
public String getHostIdentifier()
-
setHostIdentifier
public void setHostIdentifier(String hostIdentifier)
-
getNodeIdentifier
public String getNodeIdentifier()
-
setNodeIdentifier
public void setNodeIdentifier(String nodeIdentifier)
-
getRemoteHostAddress
public String getRemoteHostAddress()
-
setRemoteHostAddress
public void setRemoteHostAddress(String remoteHostAddress)
-
getInitiator
public PrismObject<UserType> getInitiator()
Initiator is the (legal) entity on behalf of whom is the action executed. It is the subject of the operation. Authorizations of the initiator are used to evaluate access to the operation. This is the entity who is formally responsible for the operation. Although initiator is always a user in midPoint 3.7 and earlier, the initiator may be an organization in later midPoint versions.
-
setInitiator
public void setInitiator(PrismObject<UserType> initiator)
-
getAttorney
public PrismObject<UserType> getAttorney()
Attorney is the (physical) user who have executed the action. This is the user that have logged-in to the user interface. This is the user that pressed the button to execute the action. This is always identity of a user and it will always be a user. It cannot be a company or any other virtual entity.
-
setAttorney
public void setAttorney(PrismObject<UserType> attorney)
-
getTarget
public PrismReferenceValue getTarget()
-
setTarget
public void setTarget(PrismReferenceValue target)
-
setTarget
public void setTarget(PrismObject<?> targetObject, PrismContext prismContext)
-
getTargetOwner
public PrismObject<FocusType> getTargetOwner()
-
setTargetOwner
public void setTargetOwner(PrismObject<FocusType> targetOwner)
-
getEventType
public AuditEventType getEventType()
-
setEventType
public void setEventType(AuditEventType eventType)
-
getEventStage
public AuditEventStage getEventStage()
-
setEventStage
public void setEventStage(AuditEventStage eventStage)
-
getDeltas
public Collection<ObjectDeltaOperation<? extends ObjectType>> getDeltas()
-
addDelta
public void addDelta(ObjectDeltaOperation<? extends ObjectType> delta)
-
addDeltas
public void addDeltas(Collection<ObjectDeltaOperation<? extends ObjectType>> deltasToAdd)
-
getChannel
public String getChannel()
-
setChannel
public void setChannel(String channel)
-
clearDeltas
public void clearDeltas()
-
getOutcome
public OperationResultStatus getOutcome()
-
setOutcome
public void setOutcome(OperationResultStatus outcome)
-
setResult
public void setResult(String result)
-
getResult
public String getResult()
-
getMessage
public String getMessage()
-
setMessage
public void setMessage(String message)
-
getParameter
public String getParameter()
-
setParameter
public void setParameter(String parameter)
-
getRepoId
public Long getRepoId()
-
setRepoId
public void setRepoId(Long repoId)
-
getReferences
public Map<String,Set<AuditReferenceValue>> getReferences()
-
getReferenceValues
public Set<AuditReferenceValue> getReferenceValues(String name)
-
addResourceOid
public void addResourceOid(String resourceOid)
-
addReferenceValueIgnoreNull
public void addReferenceValueIgnoreNull(String key, ObjectReferenceType value)
-
addReferenceValue
public void addReferenceValue(String key, @NotNull AuditReferenceValue value)
-
addReferenceValue
public void addReferenceValue(String key, @NotNull PrismReferenceValue prv)
-
addReferenceValues
public void addReferenceValues(String key, @NotNull List<ObjectReferenceType> values)
-
checkConsistence
public void checkConsistence()
-
createAuditEventRecordType
public AuditEventRecordType createAuditEventRecordType()
-
createAuditEventRecordType
public AuditEventRecordType createAuditEventRecordType(boolean tolerateInconsistencies)
-
clone
public AuditEventRecord clone()
-
debugDump
public String debugDump()
Description copied from interface:DebugDumpable
Show the content of the object intended for diagnostics by system administrator. The out put should be suitable to use in system logs at "debug" level. It may be multi-line, but in that case it should be well indented and quite terse. As it is intended to be used by system administrator, it should not use any developer terms such as class names, exceptions or stack traces.- Specified by:
debugDump
in interfaceDebugDumpable
- Returns:
- content of the object intended for diagnostics by system administrator.
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
adopt
public static void adopt(AuditEventRecordType record, PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
adopt
public static void adopt(ObjectDeltaType delta, PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
setInitiatorAndLoginParameter
public void setInitiatorAndLoginParameter(PrismObject<UserType> initiator)
-
addNonExistingReferencedObject
public void addNonExistingReferencedObject(String oid)
-
-