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 *     Bogdan Stefanescu
011 *     Florent Guillaume
012 */
013
014package org.nuxeo.ecm.core.api;
015
016import java.io.Serializable;
017import java.util.List;
018
019/**
020 * A serializable list of document models.
021 * <p>
022 * It may include information about which part of a bigger list it represents.
023 *
024 * @author Bogdan Stefanescu
025 * @author Florent Guillaume
026 */
027public interface DocumentModelList extends List<DocumentModel>, Serializable {
028
029    /**
030     * Returns the total size of the bigger list this is a part of.
031     *
032     * @return the total size
033     */
034    long totalSize();
035
036}