Search in sources :

Example 1 with RedbackRequestInformation

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);
}
Also used : AuditInformation(org.apache.archiva.admin.model.AuditInformation) User(org.apache.archiva.redback.users.User) RedbackRequestInformation(org.apache.archiva.redback.rest.services.RedbackRequestInformation)

Aggregations

AuditInformation (org.apache.archiva.admin.model.AuditInformation)1 RedbackRequestInformation (org.apache.archiva.redback.rest.services.RedbackRequestInformation)1 User (org.apache.archiva.redback.users.User)1