public class DummyAuditService extends Object implements AuditService, Dumpable, DebugDumpable
MAX_MESSAGE_SIZE
INDENT_STRING
Constructor and Description |
---|
DummyAuditService() |
Modifier and Type | Method and Description |
---|---|
void |
asserHasDelta(ChangeType expectedChangeType,
Class<?> expectedClass) |
void |
asserHasDelta(int index,
ChangeType expectedChangeType,
Class<?> expectedClass) |
void |
asserHasDelta(String message,
int index,
ChangeType expectedChangeType,
Class<?> expectedClass) |
void |
assertAnyRequestDeltas() |
void |
assertExecutionDeltaAdd() |
void |
assertExecutionDeltas(int expectedNumber) |
void |
assertExecutionDeltas(int index,
int expectedNumber) |
void |
assertExecutionMessage() |
void |
assertExecutionMessage(int index) |
void |
assertExecutionOutcome(int index,
OperationResultStatus expectedStatus) |
void |
assertExecutionOutcome(OperationResultStatus expectedStatus) |
void |
assertExecutionSuccess() |
void |
assertNoRecord() |
void |
assertRecords(AuditEventType type,
int expectedNumber) |
void |
assertRecords(int expectedNumber) |
void |
assertSimpleRecordSanity()
Asserts that there is a request message followed by execution message.
|
void |
assertTarget(String expectedOid) |
void |
audit(AuditEventRecord record,
Task task) |
void |
cleanupAudit(CleanupPolicyType policy,
OperationResult parentResult)
Clean up audit records that are older than specified.
|
void |
clear() |
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.
|
ObjectDeltaOperation<?> |
getExecutionDelta(int index) |
ObjectDeltaOperation<?> |
getExecutionDelta(int index,
ChangeType changeType,
Class<?> typeClass) |
Collection<ObjectDeltaOperation<? extends ObjectType>> |
getExecutionDeltas() |
Collection<ObjectDeltaOperation<? extends ObjectType>> |
getExecutionDeltas(int index) |
AuditEventRecord |
getExecutionRecord(int index) |
List<AuditEventRecord> |
getExecutionRecords() |
static DummyAuditService |
getInstance() |
List<AuditEventRecord> |
getRecords() |
List<AuditEventRecord> |
getRecordsOfType(AuditEventType type) |
AuditEventRecord |
getRequestRecord() |
String |
toString() |
public static DummyAuditService getInstance()
public void audit(AuditEventRecord record, Task task)
audit
in interface AuditService
public void cleanupAudit(CleanupPolicyType policy, OperationResult parentResult)
AuditService
cleanupAudit
in interface AuditService
policy
- Records will be deleted base on this policy.public List<AuditEventRecord> getRecords()
public void clear()
public void assertSimpleRecordSanity()
public void assertRecords(int expectedNumber)
public List<AuditEventRecord> getRecordsOfType(AuditEventType type)
public void assertRecords(AuditEventType type, int expectedNumber)
public AuditEventRecord getRequestRecord()
public AuditEventRecord getExecutionRecord(int index)
public List<AuditEventRecord> getExecutionRecords()
public void assertAnyRequestDeltas()
public Collection<ObjectDeltaOperation<? extends ObjectType>> getExecutionDeltas()
public Collection<ObjectDeltaOperation<? extends ObjectType>> getExecutionDeltas(int index)
public ObjectDeltaOperation<?> getExecutionDelta(int index)
public ObjectDeltaOperation<?> getExecutionDelta(int index, ChangeType changeType, Class<?> typeClass)
public void assertExecutionDeltaAdd()
public void assertExecutionSuccess()
public void assertExecutionOutcome(OperationResultStatus expectedStatus)
public void assertExecutionOutcome(int index, OperationResultStatus expectedStatus)
public void assertExecutionMessage()
public void assertExecutionMessage(int index)
public void assertNoRecord()
public void asserHasDelta(ChangeType expectedChangeType, Class<?> expectedClass)
public void asserHasDelta(int index, ChangeType expectedChangeType, Class<?> expectedClass)
public void asserHasDelta(String message, int index, ChangeType expectedChangeType, Class<?> expectedClass)
public void assertExecutionDeltas(int expectedNumber)
public void assertExecutionDeltas(int index, int expectedNumber)
public void assertTarget(String expectedOid)
public String debugDump()
DebugDumpable
debugDump
in interface DebugDumpable
public String debugDump(int indent)
debugDump
in interface DebugDumpable
public String dump()
Dumpable
Copyright © 2013 evolveum. All rights reserved.