Coverage Report - org.kuali.rice.kew.actionlist.PaginatedActionList
 
Classes in this File Line Coverage Branch Coverage Complexity
PaginatedActionList
0%
0/16
N/A
1
 
 1  
 /*
 2  
  * Copyright 2005-2008 The Kuali Foundation
 3  
  * 
 4  
  * 
 5  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 6  
  * you may not use this file except in compliance with the License.
 7  
  * You may obtain a copy of the License at
 8  
  * 
 9  
  * http://www.opensource.org/licenses/ecl2.php
 10  
  * 
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 17  
 package org.kuali.rice.kew.actionlist;
 18  
 
 19  
 import java.util.List;
 20  
 
 21  
 import org.displaytag.pagination.PaginatedList;
 22  
 import org.displaytag.properties.SortOrderEnum;
 23  
 
 24  
 /**
 25  
  * Implements the display tags paginated list to provide effecient paging for the action list.  
 26  
  * This allows us not to have to fetch an entire action list each time a user pages their list.
 27  
  *
 28  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 29  
  */
 30  
 public class PaginatedActionList implements PaginatedList {
 31  
 
 32  
         private final List list;
 33  
         private final int fullListSize;
 34  
         private final int pageNumber;
 35  
         private final int objectsPerPage;
 36  
         private final String searchId;
 37  
         private final String sortCriterion;
 38  
         private final SortOrderEnum sortDirection; 
 39  
         
 40  0
         public PaginatedActionList(List list, int fullListSize, int pageNumber, int objectsPerPage, String searchId, String sortCriterion, SortOrderEnum sortDirection) {
 41  0
                 this.list = list;
 42  0
                 this.fullListSize = fullListSize;
 43  0
                 this.pageNumber = pageNumber;
 44  0
                 this.objectsPerPage = objectsPerPage;
 45  0
                 this.searchId = searchId;
 46  0
                 this.sortCriterion = sortCriterion;
 47  0
                 this.sortDirection = sortDirection;
 48  0
         }
 49  
         
 50  
         public int getFullListSize() {
 51  0
                 return fullListSize;
 52  
         }
 53  
 
 54  
         public List getList() {
 55  0
                 return list;
 56  
         }
 57  
 
 58  
         public int getObjectsPerPage() {
 59  0
                 return objectsPerPage;
 60  
         }
 61  
 
 62  
         public int getPageNumber() {
 63  0
                 return pageNumber;
 64  
         }
 65  
 
 66  
         public String getSearchId() {
 67  0
                 return searchId;
 68  
         }
 69  
 
 70  
         public String getSortCriterion() {
 71  0
                 return sortCriterion;
 72  
         }
 73  
 
 74  
         public SortOrderEnum getSortDirection() {
 75  0
                 return sortDirection;
 76  
         }
 77  
         
 78  
 }