View Javadoc
1   /*
2    * Copyright 2007 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  /*
17   * Created on Aug 19, 2004
18   *
19   */
20  package org.kuali.ole.pdp.businessobject;
21  
22  import java.util.LinkedHashMap;
23  
24  import org.kuali.ole.pdp.service.PaymentGroupService;
25  import org.kuali.ole.sys.OLEPropertyConstants;
26  import org.kuali.ole.sys.businessobject.TimestampedBusinessObjectBase;
27  import org.kuali.ole.sys.context.SpringContext;
28  import org.kuali.rice.core.api.util.type.KualiDecimal;
29  import org.kuali.rice.core.api.util.type.KualiInteger;
30  
31  /**
32   * 
33   */
34  public class ProcessSummary extends TimestampedBusinessObjectBase {
35      private KualiInteger id;
36      private KualiInteger customerId;
37      private String disbursementTypeCode;
38      private KualiInteger processId;
39      private KualiInteger sortGroupId;
40      private KualiInteger beginDisbursementNbr;
41      private KualiInteger endDisbursementNbr;
42      private KualiDecimal processTotalAmount;
43      private KualiInteger processTotalCount;
44      
45      private DisbursementType disbursementType;
46      private PaymentProcess process;
47      private CustomerProfile customer;
48      
49      public ProcessSummary() {
50      }
51  
52      public KualiInteger getBeginDisbursementNbr() {
53          return beginDisbursementNbr;
54      }
55  
56      public void setBeginDisbursementNbr(KualiInteger beginDisbursementNbr) {
57          this.beginDisbursementNbr = beginDisbursementNbr;
58      }
59  
60      public CustomerProfile getCustomer() {
61          return customer;
62      }
63  
64      public void setCustomer(CustomerProfile customer) {
65          this.customer = customer;
66      }
67  
68      public DisbursementType getDisbursementType() {
69          return disbursementType;
70      }
71  
72      public void setDisbursementType(DisbursementType disbursementType) {
73          this.disbursementType = disbursementType;
74      }
75  
76      public KualiInteger getEndDisbursementNbr() {
77          return endDisbursementNbr;
78      }
79  
80      public void setEndDisbursementNbr(KualiInteger endDisbursementNbr) {
81          this.endDisbursementNbr = endDisbursementNbr;
82      }
83  
84      public KualiInteger getId() {
85          return id;
86      }
87  
88      public void setId(KualiInteger id) {
89          this.id = id;
90      }
91  
92      public PaymentProcess getProcess() {
93          return process;
94      }
95  
96      public void setProcess(PaymentProcess process) {
97          this.process = process;
98      }
99  
100     public KualiDecimal getProcessTotalAmount() {
101         return processTotalAmount;
102     }
103 
104     public void setProcessTotalAmount(KualiDecimal processTotalAmount) {
105         this.processTotalAmount = processTotalAmount;
106     }
107 
108     public KualiInteger getProcessTotalCount() {
109         return processTotalCount;
110     }
111 
112     public void setProcessTotalCount(KualiInteger processTotalCount) {
113         this.processTotalCount = processTotalCount;
114     }
115     
116     public KualiInteger getCustomerId() {
117         return customerId;
118     }
119 
120     public void setCustomerId(KualiInteger customerId) {
121         this.customerId = customerId;
122     }
123 
124     public String getDisbursementTypeCode() {
125         return disbursementTypeCode;
126     }
127 
128     public void setDisbursementTypeCode(String disbursementTypeCode) {
129         this.disbursementTypeCode = disbursementTypeCode;
130     }
131 
132     public KualiInteger getProcessId() {
133         return processId;
134     }
135 
136     public void setProcessId(KualiInteger processId) {
137         this.processId = processId;
138     }
139     
140     public String getSortGroupName(){
141        PaymentGroupService paymentGroupService = SpringContext.getBean(PaymentGroupService.class);
142        String sortGroupName = paymentGroupService.getSortGroupName(sortGroupId.intValue());
143        return sortGroupName;
144     }
145     
146     public void setSortGroupName(){
147         
148     }
149     
150       /**
151      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
152      */
153     
154     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
155         LinkedHashMap m = new LinkedHashMap();
156         
157         m.put(OLEPropertyConstants.ID, this.id);
158 
159         return m;
160     }
161 
162     public KualiInteger getSortGroupId() {
163         return sortGroupId;
164     }
165 
166     public void setSortGroupId(KualiInteger sortGroupId) {
167         this.sortGroupId = sortGroupId;
168     }
169 
170 }