com.evolveum.midpoint.audit.api
Class AuditEventRecord

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

public class AuditEventRecord
extends Object
implements Dumpable, DebugDumpable

Author:
semancik

Field Summary
 
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
 
Constructor Summary
AuditEventRecord()
           
AuditEventRecord(AuditEventType eventType)
           
AuditEventRecord(AuditEventType eventType, AuditEventStage eventStage)
           
 
Method Summary
 void addDelta(ObjectDeltaOperation<? extends ObjectType> delta)
           
 void addDeltas(Collection<ObjectDeltaOperation<? extends ObjectType>> deltasToAdd)
           
 void checkConsistence()
           
 void clearDeltas()
           
 void clearTimestamp()
           
 AuditEventRecord clone()
           
 String debugDump()
          Show the content of the object intended for diagnostics by system administrator.
 String debugDump(int indent)
           
 String dump()
          Show the content of the object intended for diagnostics by developer.
 String getChannel()
           
 Collection<ObjectDeltaOperation<? extends ObjectType>> getDeltas()
           
 String getEventIdentifier()
           
 AuditEventStage getEventStage()
           
 AuditEventType getEventType()
           
 String getHostIdentifier()
           
 PrismObject<UserType> getInitiator()
           
 OperationResultStatus getOutcome()
           
 String getSessionIdentifier()
           
 PrismObject<? extends ObjectType> getTarget()
           
 PrismObject<UserType> getTargetOwner()
           
 String getTaskIdentifier()
           
 String getTaskOID()
           
 Long getTimestamp()
           
 void setChannel(String channel)
           
 void setEventIdentifier(String eventIdentifier)
           
 void setEventStage(AuditEventStage eventStage)
           
 void setEventType(AuditEventType eventType)
           
 void setHostIdentifier(String hostIdentifier)
           
 void setInitiator(PrismObject<UserType> initiator)
           
 void setOutcome(OperationResultStatus outcome)
           
 void setResult(OperationResult result)
           
 void setSessionIdentifier(String sessionIdentifier)
           
 void setTarget(PrismObject<? extends ObjectType> target)
           
 void setTargetOwner(PrismObject<UserType> targetOwner)
           
 void setTaskIdentifier(String taskIdentifier)
           
 void setTaskOID(String taskOID)
           
 void setTimestamp(Long timestamp)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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)

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)

getInitiator

public PrismObject<UserType> getInitiator()

setInitiator

public void setInitiator(PrismObject<UserType> initiator)

getTarget

public PrismObject<? extends ObjectType> getTarget()

setTarget

public void setTarget(PrismObject<? extends ObjectType> target)

getTargetOwner

public PrismObject<UserType> getTargetOwner()

setTargetOwner

public void setTargetOwner(PrismObject<UserType> 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(OperationResult result)

checkConsistence

public void checkConsistence()

clone

public AuditEventRecord clone()
Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class Object

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 interface DebugDumpable
Returns:
content of the object intended for diagnostics by system administrator.

debugDump

public String debugDump(int indent)
Specified by:
debugDump in interface DebugDumpable

dump

public String dump()
Description copied from interface: Dumpable
Show the content of the object intended for diagnostics by developer. The content may be multi-line, in case of hierarchical objects it may be intended. The use of this method may not be efficient. It is not supposed to be used in normal operation. However, it is very useful in tests or in case of dumping objects in severe error situations.

Specified by:
dump in interface Dumpable
Returns:
content of the object intended for diagnostics.


Copyright © 2013 evolveum. All Rights Reserved.