1 package org.apache.maven.archiva.repository.audit;
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
25 * @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
28 public class AuditEvent
30 public static final String CREATE_DIR = "Created Directory";
32 public static final String CREATE_FILE = "Created File";
34 public static final String REMOVE_DIR = "Removed Directory";
36 public static final String REMOVE_FILE = "Removed File";
38 public static final String MODIFY_FILE = "Modify File";
40 public static final String UPLOAD_FILE = "Uploaded File";
42 private String repositoryId;
44 private String userId;
46 private String remoteIP;
48 private String resource;
50 private String action;
57 public AuditEvent( String repoId, String user, String resource, String action )
59 this.repositoryId = repoId;
61 this.resource = resource;
65 public String getRepositoryId()
70 public void setRepositoryId( String repositoryId )
72 this.repositoryId = repositoryId;
75 public String getUserId()
80 public void setUserId( String userId )
85 public String getResource()
90 public void setResource( String resource )
92 this.resource = resource;
95 public String getAction()
100 public void setAction( String action )
102 this.action = action;
105 public String getRemoteIP()
110 public void setRemoteIP( String remoteIP )
112 this.remoteIP = remoteIP;