/* * Copyright 2013 JBoss Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.overlord.rtgov.ui.client.model; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import org.jboss.errai.common.client.api.annotations.Portable; /** * Models the set of Situation summary objects returned by a Situations search. * * @author eric.wittmann@redhat.com */ @Portable public class SituationResultSetBean implements Serializable { private static final long serialVersionUID = SituationResultSetBean.class.hashCode(); private List<SituationSummaryBean> situations=new ArrayList<SituationSummaryBean>(); private long totalResults; private int itemsPerPage=10; // Default to 10 private int startIndex; /** * Constructor. */ public SituationResultSetBean() { } /** * @return the services */ public List<SituationSummaryBean> getSituations() { return situations; } /** * @param services the servicess to set */ public void setSituations(List<SituationSummaryBean> services) { this.situations = services; } /** * @return the totalResults */ public long getTotalResults() { return totalResults; } /** * @param totalResults the totalResults to set */ public void setTotalResults(long totalResults) { this.totalResults = totalResults; } /** * @return the itemsPerPage */ public int getItemsPerPage() { return itemsPerPage; } /** * @param itemsPerPage the itemsPerPage to set */ public void setItemsPerPage(int itemsPerPage) { this.itemsPerPage = itemsPerPage; } /** * @return the startIndex */ public int getStartIndex() { return startIndex; } /** * @param startIndex the startIndex to set */ public void setStartIndex(int startIndex) { this.startIndex = startIndex; } }