001/* 002 * (C) Copyright 2006-2007 Nuxeo SAS (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * anguenot 016 * 017 * $Id: ModifiedDocumentDescriptor.java 30185 2008-02-14 17:56:36Z tdelprat $ 018 */ 019 020package org.nuxeo.ecm.platform.audit.ws; 021 022import java.io.Serializable; 023import java.util.Date; 024 025/** 026 * Web service modified document descriptor. 027 * 028 * @author <a href="mailto:ja@nuxeo.com">Julien Anguenot</a> 029 */ 030public class ModifiedDocumentDescriptor implements Serializable { 031 032 private static final long serialVersionUID = 17654654654L; 033 034 private String modified; 035 036 private String type; 037 038 private String uuid; 039 040 public String getUuid() { 041 return uuid; 042 } 043 044 public ModifiedDocumentDescriptor() { 045 this(null, null, null); 046 } 047 048 public ModifiedDocumentDescriptor(Date modified, String type, String uuid) { 049 this.modified = modified.toString(); 050 this.type = type; 051 this.uuid = uuid; 052 } 053 054 /** 055 * Returns the modification date. 056 * 057 * @return the modification date. 058 */ 059 public String getModified() { 060 return modified; 061 } 062 063 /** 064 * Returns the doc type. 065 * 066 * @return the doc type. 067 */ 068 public String getType() { 069 return type; 070 } 071 072 /** 073 * Returns the document UUID. 074 * 075 * @return the document UUID. 076 */ 077 public String getUUID() { 078 return uuid; 079 } 080 081 public void setModified(String modified) { 082 this.modified = modified; 083 } 084 085 public void setType(String type) { 086 this.type = type; 087 } 088 089 public void setUuid(String uuid) { 090 this.uuid = uuid; 091 } 092 093}