Class AuditEventRecord

java.lang.Object
com.evolveum.midpoint.audit.api.AuditEventRecord
All Implemented Interfaces:
DebugDumpable, Serializable

public class AuditEventRecord extends Object implements 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:
  • Constructor Details

  • Method Details

    • 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)
    • setInitiator

      public void setInitiator(PrismObject<? extends FocusType> initiator)
    • getInitiatorRef

      public PrismReferenceValue 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

      public void setInitiatorRef(PrismReferenceValue initiator)
      It is assumed the ref has oid, type and description set.
    • setAttorney

      public void setAttorney(PrismObject<? extends FocusType> attorney)
    • getAttorneyRef

      public PrismReferenceValue 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

      public void setAttorneyRef(PrismReferenceValue attorneyRef)
      It is assumed the ref has oid, type and description set.
    • getEffectivePrincipalRef

      @Nullable public @Nullable PrismReferenceValue getEffectivePrincipalRef()
    • setEffectivePrincipal

      public void setEffectivePrincipal(@Nullable @Nullable PrismObject<? extends FocusType> object)
    • setEffectivePrincipalRef

      public void setEffectivePrincipalRef(PrismReferenceValue effectivePrincipalRef)
      It is assumed the ref has oid, type and description set.
    • getEffectivePrivilegesModification

      @Nullable public @Nullable EffectivePrivilegesModificationType getEffectivePrivilegesModification()
    • setEffectivePrivilegesModification

      public void setEffectivePrivilegesModification(EffectivePrivilegesModificationType value)
    • getTargetRef

      public PrismReferenceValue getTargetRef()
    • setTargetRef

      public void setTargetRef(PrismReferenceValue target)
      It is assumed the ref has oid, type and description set.
    • setTarget

      public void setTarget(PrismObject<?> target)
    • setTargetOwner

      public void setTargetOwner(PrismObject<? extends FocusType> targetOwner)
    • getTargetOwnerRef

      public PrismReferenceValue getTargetOwnerRef()
    • setTargetOwnerRef

      public void setTargetOwnerRef(PrismReferenceValue targetOwnerRef)
      It is assumed the ref has oid, type and description set.
    • getEventType

      public AuditEventType getEventType()
    • setEventType

      public void setEventType(AuditEventType eventType)
    • getEventStage

      public AuditEventStage getEventStage()
    • setEventStage

      public void setEventStage(AuditEventStage eventStage)
    • getDeltas

      @NotNull public @NotNull Collection<ObjectDeltaOperation<? extends ObjectType>> getDeltas()
    • addDelta

      public void addDelta(ObjectDeltaOperation<? extends ObjectType> delta)
    • addDeltas

      public void addDeltas(Collection<? extends 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)
    • getProperties

      public Map<String,Set<String>> getProperties()
    • getPropertyValues

      public Set<String> getPropertyValues(String name)
    • getReferences

      public Map<String,Set<AuditReferenceValue>> getReferences()
    • getReferenceValues

      public Set<AuditReferenceValue> getReferenceValues(String name)
    • getCustomColumnProperty

      public Map<String,String> getCustomColumnProperty()
    • getResourceOids

      public Set<String> getResourceOids()
    • setResourceOids

      public void setResourceOids(Set<String> resourceOids)
    • addResourceOid

      public void addResourceOid(String resourceOid)
    • addPropertyValue

      public void addPropertyValue(String key, String value)
    • addPropertyValueIgnoreNull

      public void addPropertyValueIgnoreNull(String key, Object value)
    • addReferenceValueIgnoreNull

      public void addReferenceValueIgnoreNull(String key, ObjectReferenceType value)
    • addReferenceValue

      public void addReferenceValue(String key, @NotNull @NotNull AuditReferenceValue value)
    • addReferenceValue

      public void addReferenceValue(String key, @NotNull @NotNull PrismReferenceValue prv)
    • addReferenceValues

      public void addReferenceValues(String key, @NotNull @NotNull List<ObjectReferenceType> values)
    • checkConsistence

      public void checkConsistence()
    • createAuditEventRecordType

      public AuditEventRecordType createAuditEventRecordType(boolean tolerateInconsistencies)
    • clone

      public AuditEventRecord clone()
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • debugDump

      public String debugDump(int indent)
      Specified by:
      debugDump in interface DebugDumpable
    • 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<? extends FocusType> initiator)
    • getNonExistingReferencedObjects

      @NotNull public @NotNull Set<String> getNonExistingReferencedObjects()
    • addNonExistingReferencedObject

      public void addNonExistingReferencedObject(String oid)