001/* 002 * (C) Copyright 2006-2016 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 * Contributors: 017 * Nuxeo - initial API and implementation 018 */ 019package org.nuxeo.ecm.platform.audit.ws; 020 021import java.io.Serializable; 022 023import org.nuxeo.ecm.platform.audit.api.LogEntry; 024 025public class EventDescriptor implements Serializable { 026 027 private static final long serialVersionUID = 987698679871L; 028 029 private String eventId; 030 031 private String eventDate; 032 033 private String docPath; 034 035 private String docUUID; 036 037 private String lifeCycle; 038 039 private String repoId; 040 041 public EventDescriptor() { 042 } 043 044 public EventDescriptor(LogEntry logEntry) { 045 this.eventDate = logEntry.getEventDate().toString(); 046 this.eventId = logEntry.getEventId(); 047 this.docPath = logEntry.getDocPath(); 048 this.docUUID = logEntry.getDocUUID(); 049 this.lifeCycle = logEntry.getDocLifeCycle(); 050 this.repoId = logEntry.getRepositoryId(); 051 } 052 053 public String getEventId() { 054 return eventId; 055 } 056 057 public String getEventDate() { 058 return eventDate; 059 } 060 061 public String getDocPath() { 062 return docPath; 063 } 064 065 public String getDocUUID() { 066 return docUUID; 067 } 068 069 public void setEventId(String eventId) { 070 this.eventId = eventId; 071 } 072 073 public void setEventDate(String eventDate) { 074 this.eventDate = eventDate; 075 } 076 077 public void setDocPath(String docPath) { 078 this.docPath = docPath; 079 } 080 081 public void setDocUUID(String docUUID) { 082 this.docUUID = docUUID; 083 } 084 085 public String getLifeCycle() { 086 return lifeCycle; 087 } 088 089 public void setLifeCycle(String lifeCycle) { 090 this.lifeCycle = lifeCycle; 091 } 092 093 public String getRepositoryId() { 094 return repoId; 095 } 096 097 public void setRepositoryId(String repoId) { 098 this.repoId = repoId; 099 } 100 101}