001 /* 002 * Copyright 2011 The Kuali Foundation. 003 * 004 * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php 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 package org.kuali.kfs.module.endow.businessobject; 017 018 import java.util.LinkedHashMap; 019 020 import org.kuali.rice.kns.bo.TransientBusinessObjectBase; 021 022 public class TicklerDeliveryStatisticsReportDetailTableRow extends TransientBusinessObjectBase { 023 024 private long ticklerDeliveryNotifications; 025 private long numberOfExceptions; 026 027 public TicklerDeliveryStatisticsReportDetailTableRow(){ 028 ticklerDeliveryNotifications = 0; 029 numberOfExceptions = 0; 030 } 031 032 public long getTicklerDeliveryNotifications() { 033 return ticklerDeliveryNotifications; 034 } 035 036 public void setTicklerDeliveryNotifications(long ticklerDeliveryNotifications) { 037 this.ticklerDeliveryNotifications = ticklerDeliveryNotifications; 038 } 039 040 public long getNumberOfExceptions() { 041 return numberOfExceptions; 042 } 043 044 public void setNumberOfExceptions(long numberOfExceptions) { 045 this.numberOfExceptions = numberOfExceptions; 046 } 047 048 /** 049 * method to increase the count of number of tickler delivery notifications 050 */ 051 public void increaseTicklerDeliveryNotificationsCount() { 052 this.ticklerDeliveryNotifications++; 053 } 054 055 /** 056 * method to increase the count of number of exceptions 057 */ 058 public void increaseNumberOfExceptionsCount() { 059 this.numberOfExceptions++; 060 } 061 062 /** 063 * A map of the "keys" of this transient business object 064 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 065 */ 066 @Override 067 protected LinkedHashMap toStringMapper() { 068 LinkedHashMap pks = new LinkedHashMap<String, Object>(); 069 pks.put("ticklerDeliveryNotifications",this.getTicklerDeliveryNotifications()); 070 pks.put("numberOfExceptions",this.getNumberOfExceptions()); 071 072 return pks; 073 } 074 075 }