001/*
002 * (C) Copyright 2013 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 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-2.1.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 *     Thomas Roger
016 */
017
018package org.nuxeo.ecm.platform.usermanager.providers;
019
020import java.util.List;
021
022import org.nuxeo.ecm.core.api.DocumentModel;
023
024/**
025 * Page provider listing users.
026 * <p>
027 * This page provider requires two parameters: the first one to be filled with the search string, and the second one to
028 * be filled with the selected letter when using the {@code tabbed} listing mode.
029 * <p>
030 * This page provider requires the property {@link #USERS_LISTING_MODE_PROPERTY} to be filled with a the listing mode to
031 * use.
032 *
033 * @author <a href="mailto:troger@nuxeo.com">Thomas Roger</a>
034 * @since 5.4.2
035 */
036public class UsersPageProvider extends AbstractUsersPageProvider<DocumentModel> {
037
038    private static final long serialVersionUID = 1L;
039
040    @Override
041    public List<DocumentModel> getCurrentPage() {
042        return computeCurrentPage();
043    }
044
045}