use of org.apache.archiva.redback.rest.services.RedbackRequestInformation in project archiva by apache.
the class AbstractRestService method getAuditInformation.
protected AuditInformation getAuditInformation() {
RedbackRequestInformation redbackRequestInformation = RedbackAuthenticationThreadLocal.get();
User user = redbackRequestInformation == null ? null : redbackRequestInformation.getUser();
String remoteAddr = redbackRequestInformation == null ? null : redbackRequestInformation.getRemoteAddr();
return new AuditInformation(user, remoteAddr);
}
Aggregations