|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PrincipalResolver
An SPI interface needed to be implemented by individual applications requiring an audit trail record keeping functionality, to provide a currently authenticated principal performing an audit-able action.
| Field Summary | |
|---|---|
static java.lang.String |
ANONYMOUS_USER
Default String that can be used when the user is anonymous. |
static java.lang.String |
UNKNOWN_USER
Default String that can be used when the user cannot be determined. |
| Method Summary | |
|---|---|
java.lang.String |
resolve()
Called when there is no other way to resolve the principal (i.e. |
java.lang.String |
resolveFrom(org.aspectj.lang.JoinPoint auditTarget,
java.lang.Exception exception)
Resolve the principal performing an audit-able action that has incurred an exception. |
java.lang.String |
resolveFrom(org.aspectj.lang.JoinPoint auditTarget,
java.lang.Object returnValue)
Resolve the principal performing an audit-able action. |
| Field Detail |
|---|
static final java.lang.String ANONYMOUS_USER
static final java.lang.String UNKNOWN_USER
| Method Detail |
|---|
java.lang.String resolveFrom(org.aspectj.lang.JoinPoint auditTarget,
java.lang.Object returnValue)
Note, this method should NEVER throw an exception *unless* the expectation is that a failed resolution causes
the entire transaction to fail. Otherwise use UNKNOWN_USER.
auditTarget - the join point where we're auditing.returnValue - the returned value
java.lang.String resolveFrom(org.aspectj.lang.JoinPoint auditTarget,
java.lang.Exception exception)
Note, this method should NEVER throw an exception *unless* the expectation is that a failed resolution causes
the entire transaction to fail. Otherwise use UNKNOWN_USER.
auditTarget - the join point where we're auditing.exception - The exception incurred when the join point proceeds.
java.lang.String resolve()
Note, this method should NEVER throw an exception *unless* the expectation is that a failed resolution causes
the entire transaction to fail. Otherwise use UNKNOWN_USER.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||