Package com.evolveum.midpoint.audit.api
Class AuditEventRecord
java.lang.Object
com.evolveum.midpoint.audit.api.AuditEventRecord
- All Implemented Interfaces:
DebugDumpable
,Serializable
Audit event record describes a single event (usually data change) in a format suitable for audit.
This is more or less equivalent to
AuditEventRecordType
.- See Also:
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Constructor Summary
ConstructorDescriptionAuditEventRecord
(AuditEventType eventType) AuditEventRecord
(AuditEventType eventType, AuditEventStage eventStage) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDelta
(ObjectDeltaOperation<? extends ObjectType> delta) void
addDeltas
(Collection<? extends ObjectDeltaOperation<? extends ObjectType>> deltasToAdd) void
void
addPropertyValue
(String key, String value) void
addPropertyValueIgnoreNull
(String key, Object value) void
addReferenceValue
(String key, @NotNull AuditReferenceValue value) void
addReferenceValue
(String key, @NotNull PrismReferenceValue prv) void
addReferenceValueIgnoreNull
(String key, ObjectReferenceType value) void
addReferenceValues
(String key, @NotNull List<ObjectReferenceType> values) void
addResourceOid
(String resourceOid) static void
adopt
(AuditEventRecordType record, PrismContext prismContext) static void
adopt
(ObjectDeltaType delta, PrismContext prismContext) void
void
void
clone()
createAuditEventRecordType
(boolean tolerateInconsistencies) debugDump
(int indent) Attorney is the (physical) user who have executed the action.@NotNull Collection<ObjectDeltaOperation<? extends ObjectType>>
@Nullable PrismReferenceValue
@Nullable EffectivePrivilegesModificationType
Initiator is the (legal) entity on behalf of whom is the action executed.getPropertyValues
(String name) getReferenceValues
(String name) void
setAttorney
(PrismObject<? extends FocusType> attorney) void
setAttorneyRef
(PrismReferenceValue attorneyRef) It is assumed the ref has oid, type and description set.void
setChannel
(String channel) void
setEffectivePrincipal
(@Nullable PrismObject<? extends FocusType> object) void
setEffectivePrincipalRef
(PrismReferenceValue effectivePrincipalRef) It is assumed the ref has oid, type and description set.void
void
setEventIdentifier
(String eventIdentifier) void
setEventStage
(AuditEventStage eventStage) void
setEventType
(AuditEventType eventType) void
setHostIdentifier
(String hostIdentifier) void
setInitiator
(PrismObject<? extends FocusType> initiator) void
setInitiatorAndLoginParameter
(PrismObject<? extends FocusType> initiator) void
setInitiatorRef
(PrismReferenceValue initiator) It is assumed the ref has oid, type and description set.void
setMessage
(String message) void
setNodeIdentifier
(String nodeIdentifier) void
setOutcome
(OperationResultStatus outcome) void
setParameter
(String parameter) void
setRemoteHostAddress
(String remoteHostAddress) void
void
setRequestIdentifier
(String requestIdentifier) void
setResourceOids
(Set<String> resourceOids) void
void
setSessionIdentifier
(String sessionIdentifier) void
setTarget
(PrismObject<?> target) void
setTargetOwner
(PrismObject<? extends FocusType> targetOwner) void
setTargetOwnerRef
(PrismReferenceValue targetOwnerRef) It is assumed the ref has oid, type and description set.void
setTargetRef
(PrismReferenceValue target) It is assumed the ref has oid, type and description set.void
setTaskIdentifier
(String taskIdentifier) void
setTaskOid
(String taskOid) void
setTimestamp
(Long timestamp) toString()
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
debugDump, debugDumpLazily, debugDumpLazily
-
Constructor Details
-
AuditEventRecord
public AuditEventRecord() -
AuditEventRecord
-
AuditEventRecord
-
-
Method Details
-
getTimestamp
-
clearTimestamp
public void clearTimestamp() -
setTimestamp
-
getEventIdentifier
-
setEventIdentifier
-
getSessionIdentifier
-
setSessionIdentifier
-
getRequestIdentifier
-
setRequestIdentifier
-
getTaskIdentifier
-
setTaskIdentifier
-
getTaskOid
-
setTaskOid
-
getHostIdentifier
-
setHostIdentifier
-
getNodeIdentifier
-
setNodeIdentifier
-
getRemoteHostAddress
-
setRemoteHostAddress
-
setInitiator
-
getInitiatorRef
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. -
setInitiatorRef
It is assumed the ref has oid, type and description set. -
setAttorney
-
getAttorneyRef
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. -
setAttorneyRef
It is assumed the ref has oid, type and description set. -
getEffectivePrincipalRef
-
setEffectivePrincipal
-
setEffectivePrincipalRef
It is assumed the ref has oid, type and description set. -
getEffectivePrivilegesModification
-
setEffectivePrivilegesModification
-
getTargetRef
-
setTargetRef
It is assumed the ref has oid, type and description set. -
setTarget
-
setTargetOwner
-
getTargetOwnerRef
-
setTargetOwnerRef
It is assumed the ref has oid, type and description set. -
getEventType
-
setEventType
-
getEventStage
-
setEventStage
-
getDeltas
-
addDelta
-
addDeltas
-
getChannel
-
setChannel
-
clearDeltas
public void clearDeltas() -
getOutcome
-
setOutcome
-
setResult
-
getResult
-
getMessage
-
setMessage
-
getParameter
-
setParameter
-
getRepoId
-
setRepoId
-
getProperties
-
getPropertyValues
-
getReferences
-
getReferenceValues
-
getCustomColumnProperty
-
getResourceOids
-
setResourceOids
-
addResourceOid
-
addPropertyValue
-
addPropertyValueIgnoreNull
-
addReferenceValueIgnoreNull
-
addReferenceValue
-
addReferenceValue
-
addReferenceValues
-
checkConsistence
public void checkConsistence() -
createAuditEventRecordType
-
clone
-
toString
-
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-
adopt
public static void adopt(AuditEventRecordType record, PrismContext prismContext) throws SchemaException - Throws:
SchemaException
-
adopt
- Throws:
SchemaException
-
setInitiatorAndLoginParameter
-
getNonExistingReferencedObjects
-
addNonExistingReferencedObject
-