com.github.inspektr.audit.annotation
Annotation Type Audit


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Audit

States that this method should be logged for auditing purposes.

Since:
1.0
Version:
$Revision$ $Date$
Author:
Alice Leung, Dmitriy Kopylenko, Scott Battaglia

Required Element Summary
 String action
          The action to write to the log when we audit this method.
 String actionResolverName
          Reference name of the action resolver to use.
 String resourceResolverName
          Reference name of the resource resolver to use.
 
Optional Element Summary
 String applicationCode
          Identifier for this particular application in the audit trail logs.
 

Element Detail

action

public abstract String action
The action to write to the log when we audit this method. Value must be defined.

Returns:
the action to write to the logs.

resourceResolverName

public abstract String resourceResolverName
Reference name of the resource resolver to use.

Returns:
the reference to the resource resolver. CANNOT be NULL.

actionResolverName

public abstract String actionResolverName
Reference name of the action resolver to use.

Returns:
the reference to the action resolver. CANNOT be NULL.

applicationCode

public abstract String applicationCode
Identifier for this particular application in the audit trail logs. This attribute should only be used to override the basic application code when you want to differentiate a section of the code.

Returns:
the application code or an empty String if none is set.
Default:
""


Copyright © 2007-2012 Rutgers, the State University of New Jersey. All Rights Reserved.