001/* 002 * Copyright (c) 2006-2011 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the Eclipse Public License v1.0 006 * which accompanies this distribution, and is available at 007 * http://www.eclipse.org/legal/epl-v10.html 008 * 009 * Contributors: 010 * Florent Guillaume 011 */ 012package org.nuxeo.ecm.core.trash; 013 014import java.io.Serializable; 015import java.util.List; 016import java.util.Set; 017 018import org.nuxeo.common.utils.Path; 019import org.nuxeo.ecm.core.api.DocumentModel; 020import org.nuxeo.ecm.core.api.DocumentRef; 021 022/** 023 * Info about the deletion/purge/undeletion of a list of document. 024 */ 025public class TrashInfo implements Serializable { 026 027 private static final long serialVersionUID = 1L; 028 029 /** Docs found ok. */ 030 public List<DocumentModel> docs; 031 032 /** Refs of common tree roots of docs found ok. */ 033 public List<DocumentRef> rootRefs; 034 035 /** Paths of common tree roots of docs found ok. */ 036 public Set<Path> rootPaths; 037 038 /** Refs of parents of common tree roots of docs found ok. */ 039 public Set<DocumentRef> rootParentRefs; 040 041 /** Number of docs not ok due to permissions or lifecycle state. */ 042 public int forbidden; 043 044 /** Number of docs not ok due to lock status. */ 045 public int locked; 046 047 /** Number of docs not ok due to being proxies. */ 048 public int proxies; 049 050}