001/* 002 * (C) Copyright 2006-2008 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 * Nuxeo - initial API and implementation 016 * 017 * $Id$ 018 */ 019 020package org.nuxeo.ecm.platform.api.ws; 021 022import java.io.Serializable; 023 024public class DocumentSnapshot implements Serializable { 025 026 private static final long serialVersionUID = 1L; 027 028 private DocumentProperty[] noBlobProperties; 029 030 private DocumentBlob[] blobProperties; 031 032 private String pathAsString; 033 034 private WsACE[] acl; 035 036 public DocumentSnapshot() { 037 } 038 039 public DocumentSnapshot(DocumentProperty[] noBlobProperties, DocumentBlob[] blobProperties, String pathAsString, 040 WsACE[] acl) { 041 this.acl = acl; 042 this.noBlobProperties = noBlobProperties; 043 this.blobProperties = blobProperties; 044 this.pathAsString = pathAsString; 045 } 046 047 public DocumentProperty[] getNoBlobProperties() { 048 return noBlobProperties; 049 } 050 051 public void setNoBlobProperties(DocumentProperty[] noBlobProperties) { 052 this.noBlobProperties = noBlobProperties; 053 } 054 055 public DocumentBlob[] getBlobProperties() { 056 return blobProperties; 057 } 058 059 public void setBlobProperties(DocumentBlob[] blobProperties) { 060 this.blobProperties = blobProperties; 061 } 062 063 public String getPathAsString() { 064 return pathAsString; 065 } 066 067 public void setPathAsString(String pathAsString) { 068 this.pathAsString = pathAsString; 069 } 070 071 public WsACE[] getAcl() { 072 return acl; 073 } 074 075 public void setAcl(WsACE[] acl) { 076 this.acl = acl; 077 } 078 079}