public class SurrogateAuditPrincipalIdProvider extends DefaultAuditPrincipalIdProvider
SurrogateAuditPrincipalIdProvider
.Constructor and Description |
---|
SurrogateAuditPrincipalIdProvider() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
java.lang.String |
getPrincipalIdFrom(Authentication authentication,
java.lang.Object returnValue,
java.lang.Exception exception)
Return principal id from a given authentication event.
|
boolean |
supports(Authentication authentication,
java.lang.Object resultValue,
java.lang.Exception exception)
Whether this provider can support the authentication transaction to provide a principal id.
|
public int getOrder()
public java.lang.String getPrincipalIdFrom(Authentication authentication, java.lang.Object returnValue, java.lang.Exception exception)
AuditPrincipalIdProvider
getPrincipalIdFrom
in interface AuditPrincipalIdProvider
getPrincipalIdFrom
in class DefaultAuditPrincipalIdProvider
authentication
- authentication event containing the data to computed the final principal id fromreturnValue
- the result value that is currently processed by the executing op. May be null.exception
- the exception that may have occurred as part of the current executing op. May be null.public boolean supports(Authentication authentication, java.lang.Object resultValue, java.lang.Exception exception)
AuditPrincipalIdProvider
supports
in interface AuditPrincipalIdProvider
supports
in class DefaultAuditPrincipalIdProvider
authentication
- the authentication transaction.resultValue
- the result value that is currently processed by the executing op. May be null.exception
- the exception that may have occurred as part of the current executing op. May be null.