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