org.inspektr.audit.spi
Interface AuditablePrincipalResolver

All Known Implementing Classes:
SpringSecurityAuditablePrincipalResolver

public interface AuditablePrincipalResolver

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 auditable action.

Since:
1.0
Version:
$Revision$ $Date$
Author:
Dmitriy Kopylenko

Method Summary
 String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget, Exception exception)
          Resolve the principal performing an auditable action that has incurred an exception.
 String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget, Object retval)
          Resolve the principal performing an auditable action.
 

Method Detail

resolveFrom

String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
                   Object retval)
Resolve the principal performing an auditable action.

Parameters:
auditableTarget -
retval - The returned value
Returns:
The resource String

resolveFrom

String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
                   Exception exception)
Resolve the principal performing an auditable action that has incurred an exception.

Parameters:
auditableTarget -
exception - The exception incurred when the join point proceeds.
Returns:
The resource String


Copyright © 2007-2012. All Rights Reserved.