|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Auditable
States that this method should be logged for auditing purposes.
Required Element Summary | |
---|---|
String |
action
The action to write to the log when we audit this method. |
Class<? extends AuditableResourceResolver> |
resourceResolverClass
Returns the AuditableResourceResolver that knows how to resolve the resource. |
Optional Element Summary | |
---|---|
Class<? extends AuditableActionResolver> |
actionResolverClass
Whether to use one of the built in resolvers or not. |
String |
applicationCode
Identifier for this particular application in the audit trail logs. |
String |
failureSuffix
The suffix to append to the action when resolvers are used that can detect failure. |
String |
successSuffix
The suffix to append to the action when resolvers are used that can detect success. |
Element Detail |
---|
public abstract String action
public abstract Class<? extends AuditableResourceResolver> resourceResolverClass
AuditableResourceResolver
that knows how to resolve the resource.public abstract String applicationCode
public abstract String successSuffix
public abstract String failureSuffix
public abstract Class<? extends AuditableActionResolver> actionResolverClass
DefaultAuditableActionResolver
, which means just return the action.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |