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.audit.ws;
023
024import java.io.Serializable;
025
026public class EventDescriptorPage implements Serializable {
027
028    private static final long serialVersionUID = 876567561L;
029
030    private int pageIndex;
031
032    private boolean bHasMorePage;
033
034    private EventDescriptor[] events;
035
036    public EventDescriptorPage() {
037        this(null, 0, false);
038    }
039
040    public EventDescriptorPage(EventDescriptor[] events, int pageIndex, boolean bHasMorePage) {
041        this.pageIndex = pageIndex;
042        this.bHasMorePage = bHasMorePage;
043        this.events = events;
044    }
045
046    public int getPageIndex() {
047        return pageIndex;
048    }
049
050    public boolean hasModePage() {
051        return bHasMorePage;
052    }
053
054    public EventDescriptor[] getEvents() {
055        return events;
056    }
057
058    public boolean getHasMorePage() {
059        return bHasMorePage;
060    }
061
062    public void setPageIndex(int pageIndex) {
063        this.pageIndex = pageIndex;
064    }
065
066    public void setHasMorePage(boolean hasMorePage) {
067        bHasMorePage = hasMorePage;
068    }
069
070    public void setEvents(EventDescriptor[] events) {
071        this.events = events;
072    }
073
074}