1package org.apache.archiva.admin.model;
2/*3 * Licensed to the Apache Software Foundation (ASF) under one4 * or more contributor license agreements. See the NOTICE file5 * distributed with this work for additional information6 * regarding copyright ownership. The ASF licenses this file7 * to you under the Apache License, Version 2.0 (the8 * "License"); you may not use this file except in compliance9 * with the License. You may obtain a copy of the License at10 *11 * http://www.apache.org/licenses/LICENSE-2.012 *13 * Unless required by applicable law or agreed to in writing,14 * software distributed under the License is distributed on an15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY16 * KIND, either express or implied. See the License for the17 * specific language governing permissions and limitations18 * under the License.19 */2021import org.apache.archiva.redback.users.User;
2223/**24 * @author Olivier Lamy25 * @since 1.4-M126 */27publicclassAuditInformation28 {
29private User user;
3031private String remoteAddr;
3233publicAuditInformation( User user, String remoteAddr )
34 {
35this.user = user;
36this.remoteAddr = remoteAddr;
37 }
3839public User getUser()
40 {
41return user;
42 }
4344publicvoid setUser( User user )
45 {
46this.user = user;
47 }
4849public String getRemoteAddr()
50 {
51return remoteAddr;
52 }
5354publicvoid setRemoteAddr( String remoteAddr )
55 {
56this.remoteAddr = remoteAddr;
57 }
5859 @Override
60public String toString()
61 {
62final StringBuilder sb = new StringBuilder();
63 sb.append( "AuditInformation" );
64 sb.append( "{user=" ).append( user );
65 sb.append( ", remoteAddr='" ).append( remoteAddr ).append( '\'' );
66 sb.append( '}' );
67return sb.toString();
68 }
69 }