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 Jul 8, 2004
18   *
19   */
20  package org.kuali.ole.pdp.businessobject;
21  
22  import java.sql.Timestamp;
23  import java.util.LinkedHashMap;
24  
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  import org.kuali.rice.kim.api.identity.Person;
31  
32  public class Batch extends TimestampedBusinessObjectBase {
33      private KualiInteger id; 
34      private KualiInteger customerId;
35      private String paymentFileName; 
36      private Timestamp customerFileCreateTimestamp; 
37      private KualiInteger paymentCount; 
38      private KualiDecimal paymentTotalAmount; 
39      private String submiterUserId; 
40      private Timestamp fileProcessTimestamp; 
41      
42      private CustomerProfile customerProfile; 
43      private Person submiterUser;
44      
45      public Batch() {
46          super();
47      }
48  
49      public Timestamp getFileProcessTimestamp() {
50          return fileProcessTimestamp;
51      }
52  
53      /**
54       * @return
55       */
56      public KualiInteger getId() {
57          return id;
58      }
59  
60      /**
61       * @return
62       */
63      public Timestamp getCustomerFileCreateTimestamp() {
64          return customerFileCreateTimestamp;
65      }
66  
67      /**
68       * @return
69       */
70      public KualiInteger getPaymentCount() {
71          return paymentCount;
72      }
73  
74      /**
75       * @return
76       */
77      public String getPaymentFileName() {
78          return paymentFileName;
79      }
80  
81      /**
82       * @return
83       */
84      public KualiDecimal getPaymentTotalAmount() {
85          return paymentTotalAmount;
86      }
87  
88      /**
89       * @return
90       */
91      public CustomerProfile getCustomerProfile() {
92          return customerProfile;
93      }
94  
95      /**
96       * @param string
97       */
98      public void setCustomerFileCreateTimestamp(Timestamp t) {
99          customerFileCreateTimestamp = t;
100     }
101 
102     /**
103      * @param timestamp
104      */
105     public void setFileProcessTimestamp(Timestamp timestamp) {
106         fileProcessTimestamp = timestamp;
107     }
108 
109     /**
110      * @param integer
111      */
112     public void setId(KualiInteger integer) {
113         id = integer;
114     }
115 
116     /**
117      * @param integer
118      */
119     public void setPaymentCount(KualiInteger integer) {
120         paymentCount = integer;
121     }
122 
123     /**
124      * @param string
125      */
126     public void setPaymentFileName(String string) {
127         paymentFileName = string;
128     }
129 
130     /**
131      * @param decimal
132      */
133     public void setPaymentTotalAmount(KualiDecimal decimal) {
134         paymentTotalAmount = decimal;
135     }
136 
137     /**
138      * @param integer
139      */
140     public void setCustomerProfile(CustomerProfile cp) {
141         customerProfile = cp;
142     }
143 
144     public Person getSubmiterUser() {
145         submiterUser = SpringContext.getBean(org.kuali.rice.kim.api.identity.PersonService.class).updatePersonIfNecessary(submiterUserId, submiterUser);
146         return submiterUser;
147     }
148 
149     public void setSubmiterUser(Person s) {
150         this.submiterUser = s;
151     }
152 
153     /**
154      * @return Returns the submiterUserId.
155      */
156     public String getSubmiterUserId() {
157         return submiterUserId;
158     }
159 
160     /**
161      * @param submiterUserId The submiterUserId to set.
162      */
163     public void setSubmiterUserId(String submiterUserId) {
164         this.submiterUserId = submiterUserId;
165     }
166 
167     /**
168      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
169      */
170     
171     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
172         LinkedHashMap m = new LinkedHashMap();
173         
174         m.put(OLEPropertyConstants.ID, this.id);
175 
176         return m;
177     }
178    
179 }
180