View Javadoc
1   /*
2    * Copyright 2006 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  package org.kuali.ole.fp.businessobject;
18  
19  import java.util.LinkedHashMap;
20  
21  import org.kuali.ole.sys.OLEPropertyConstants;
22  import org.kuali.rice.core.api.util.type.KualiDecimal;
23  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
24  
25  /**
26   * This class is used to represent a procurement card holder, or the individual whose name is on the card.
27   */
28  public class ProcurementCardHolder extends PersistableBusinessObjectBase {
29  
30      private String documentNumber;
31      private String transactionCreditCardNumber;
32      private String cardHolderName;
33      private String cardHolderAlternateName;
34      private String cardHolderLine1Address;
35      private String cardHolderLine2Address;
36      private String cardHolderCityName;
37      private String cardHolderStateCode;
38      private String cardHolderZipCode;
39      private String cardHolderWorkPhoneNumber;
40      private KualiDecimal cardLimit;
41      private KualiDecimal cardCycleAmountLimit;
42      private KualiDecimal cardCycleVolumeLimit;
43      private String cardStatusCode;
44      private String cardNoteText;
45      private String chartOfAccountsCode;
46      private String accountNumber;
47      private String subAccountNumber;
48  
49  
50      /**
51       * Default constructor.
52       */
53      public ProcurementCardHolder() {
54  
55      }
56  
57      /**
58       * Gets the documentNumber attribute.
59       * 
60       * @return Returns the documentNumber
61       */
62      public String getDocumentNumber() {
63          return documentNumber;
64      }
65  
66      /**
67       * Sets the documentNumber attribute.
68       * 
69       * @param documentNumber The documentNumber to set.
70       */
71      public void setDocumentNumber(String documentNumber) {
72          this.documentNumber = documentNumber;
73      }
74  
75  
76      /**
77       * Gets the transactionCreditCardNumber attribute.
78       * 
79       * @return Returns the transactionCreditCardNumber
80       */
81      public String getTransactionCreditCardNumber() {
82          return transactionCreditCardNumber;
83      }
84  
85      /**
86       * Sets the transactionCreditCardNumber attribute.
87       * 
88       * @param transactionCreditCardNumber The transactionCreditCardNumber to set.
89       */
90      public void setTransactionCreditCardNumber(String transactionCreditCardNumber) {
91          this.transactionCreditCardNumber = transactionCreditCardNumber;
92      }
93  
94  
95      /**
96       * Gets the cardHolderName attribute.
97       * 
98       * @return Returns the cardHolderName
99       */
100     public String getCardHolderName() {
101         return cardHolderName;
102     }
103 
104     /**
105      * Sets the cardHolderName attribute.
106      * 
107      * @param cardHolderName The cardHolderName to set.
108      */
109     public void setCardHolderName(String cardHolderName) {
110         this.cardHolderName = cardHolderName;
111     }
112 
113 
114     /**
115      * Gets the cardHolderAlternateName attribute.
116      * 
117      * @return Returns the cardHolderAlternateName
118      */
119     public String getCardHolderAlternateName() {
120         return cardHolderAlternateName;
121     }
122 
123     /**
124      * Sets the cardHolderAlternateName attribute.
125      * 
126      * @param cardHolderAlternateName The cardHolderAlternateName to set.
127      */
128     public void setCardHolderAlternateName(String cardHolderAlternateName) {
129         this.cardHolderAlternateName = cardHolderAlternateName;
130     }
131 
132 
133     /**
134      * Gets the cardHolderLine1Address attribute.
135      * 
136      * @return Returns the cardHolderLine1Address
137      */
138     public String getCardHolderLine1Address() {
139         return cardHolderLine1Address;
140     }
141 
142     /**
143      * Sets the cardHolderLine1Address attribute.
144      * 
145      * @param cardHolderLine1Address The cardHolderLine1Address to set.
146      */
147     public void setCardHolderLine1Address(String cardHolderLine1Address) {
148         this.cardHolderLine1Address = cardHolderLine1Address;
149     }
150 
151 
152     /**
153      * Gets the cardHolderLine2Address attribute.
154      * 
155      * @return Returns the cardHolderLine2Address
156      */
157     public String getCardHolderLine2Address() {
158         return cardHolderLine2Address;
159     }
160 
161     /**
162      * Sets the cardHolderLine2Address attribute.
163      * 
164      * @param cardHolderLine2Address The cardHolderLine2Address to set.
165      */
166     public void setCardHolderLine2Address(String cardHolderLine2Address) {
167         this.cardHolderLine2Address = cardHolderLine2Address;
168     }
169 
170 
171     /**
172      * Gets the cardHolderCityName attribute.
173      * 
174      * @return Returns the cardHolderCityName
175      */
176     public String getCardHolderCityName() {
177         return cardHolderCityName;
178     }
179 
180     /**
181      * Sets the cardHolderCityName attribute.
182      * 
183      * @param cardHolderCityName The cardHolderCityName to set.
184      */
185     public void setCardHolderCityName(String cardHolderCityName) {
186         this.cardHolderCityName = cardHolderCityName;
187     }
188 
189 
190     /**
191      * Gets the cardHolderStateCode attribute.
192      * 
193      * @return Returns the cardHolderStateCode
194      */
195     public String getCardHolderStateCode() {
196         return cardHolderStateCode;
197     }
198 
199     /**
200      * Sets the cardHolderStateCode attribute.
201      * 
202      * @param cardHolderStateCode The cardHolderStateCode to set.
203      */
204     public void setCardHolderStateCode(String cardHolderStateCode) {
205         this.cardHolderStateCode = cardHolderStateCode;
206     }
207 
208 
209     /**
210      * Gets the cardHolderZipCode attribute.
211      * 
212      * @return Returns the cardHolderZipCode
213      */
214     public String getCardHolderZipCode() {
215         return cardHolderZipCode;
216     }
217 
218     /**
219      * Sets the cardHolderZipCode attribute.
220      * 
221      * @param cardHolderZipCode The cardHolderZipCode to set.
222      */
223     public void setCardHolderZipCode(String cardHolderZipCode) {
224         this.cardHolderZipCode = cardHolderZipCode;
225     }
226 
227 
228     /**
229      * Gets the cardHolderWorkPhoneNumber attribute.
230      * 
231      * @return Returns the cardHolderWorkPhoneNumber
232      */
233     public String getCardHolderWorkPhoneNumber() {
234         return cardHolderWorkPhoneNumber;
235     }
236 
237     /**
238      * Sets the cardHolderWorkPhoneNumber attribute.
239      * 
240      * @param cardHolderWorkPhoneNumber The cardHolderWorkPhoneNumber to set.
241      */
242     public void setCardHolderWorkPhoneNumber(String cardHolderWorkPhoneNumber) {
243         this.cardHolderWorkPhoneNumber = cardHolderWorkPhoneNumber;
244     }
245 
246 
247     /**
248      * Gets the cardLimit attribute.
249      * 
250      * @return Returns the cardLimit
251      */
252     public KualiDecimal getCardLimit() {
253         return cardLimit;
254     }
255 
256     /**
257      * Sets the cardLimit attribute.
258      * 
259      * @param cardLimit The cardLimit to set.
260      */
261     public void setCardLimit(KualiDecimal cardLimit) {
262         this.cardLimit = cardLimit;
263     }
264 
265 
266     /**
267      * Gets the cardCycleAmountLimit attribute.
268      * 
269      * @return Returns the cardCycleAmountLimit
270      */
271     public KualiDecimal getCardCycleAmountLimit() {
272         return cardCycleAmountLimit;
273     }
274 
275     /**
276      * Sets the cardCycleAmountLimit attribute.
277      * 
278      * @param cardCycleAmountLimit The cardCycleAmountLimit to set.
279      */
280     public void setCardCycleAmountLimit(KualiDecimal cardCycleAmountLimit) {
281         this.cardCycleAmountLimit = cardCycleAmountLimit;
282     }
283 
284 
285     /**
286      * Gets the cardCycleVolumeLimit attribute.
287      * 
288      * @return Returns the cardCycleVolumeLimit
289      */
290     public KualiDecimal getCardCycleVolumeLimit() {
291         return cardCycleVolumeLimit;
292     }
293 
294     /**
295      * Sets the cardCycleVolumeLimit attribute.
296      * 
297      * @param cardCycleVolumeLimit The cardCycleVolumeLimit to set.
298      */
299     public void setCardCycleVolumeLimit(KualiDecimal cardCycleVolumeLimit) {
300         this.cardCycleVolumeLimit = cardCycleVolumeLimit;
301     }
302 
303 
304     /**
305      * Gets the cardStatusCode attribute.
306      * 
307      * @return Returns the cardStatusCode
308      */
309     public String getCardStatusCode() {
310         return cardStatusCode;
311     }
312 
313     /**
314      * Sets the cardStatusCode attribute.
315      * 
316      * @param cardStatusCode The cardStatusCode to set.
317      */
318     public void setCardStatusCode(String cardStatusCode) {
319         this.cardStatusCode = cardStatusCode;
320     }
321 
322 
323     /**
324      * Gets the cardNoteText attribute.
325      * 
326      * @return Returns the cardNoteText
327      */
328     public String getCardNoteText() {
329         return cardNoteText;
330     }
331 
332     /**
333      * Sets the cardNoteText attribute.
334      * 
335      * @param cardNoteText The cardNoteText to set.
336      */
337     public void setCardNoteText(String cardNoteText) {
338         this.cardNoteText = cardNoteText;
339     }
340 
341 
342     /**
343      * Gets the chartOfAccountsCode attribute.
344      * 
345      * @return Returns the chartOfAccountsCode
346      */
347     public String getChartOfAccountsCode() {
348         return chartOfAccountsCode;
349     }
350 
351     /**
352      * Sets the chartOfAccountsCode attribute.
353      * 
354      * @param chartOfAccountsCode The chartOfAccountsCode to set.
355      */
356     public void setChartOfAccountsCode(String chartOfAccountsCode) {
357         this.chartOfAccountsCode = chartOfAccountsCode;
358     }
359 
360 
361     /**
362      * Gets the accountNumber attribute.
363      * 
364      * @return Returns the accountNumber
365      */
366     public String getAccountNumber() {
367         return accountNumber;
368     }
369 
370     /**
371      * Sets the accountNumber attribute.
372      * 
373      * @param accountNumber The accountNumber to set.
374      */
375     public void setAccountNumber(String accountNumber) {
376         this.accountNumber = accountNumber;
377     }
378 
379 
380     /**
381      * Gets the subAccountNumber attribute.
382      * 
383      * @return Returns the subAccountNumber
384      */
385     public String getSubAccountNumber() {
386         return subAccountNumber;
387     }
388 
389     /**
390      * Sets the subAccountNumber attribute.
391      * 
392      * @param subAccountNumber The subAccountNumber to set.
393      */
394     public void setSubAccountNumber(String subAccountNumber) {
395         this.subAccountNumber = subAccountNumber;
396     }
397 
398     /**
399      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
400      */
401     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
402         LinkedHashMap m = new LinkedHashMap();
403         m.put(OLEPropertyConstants.DOCUMENT_NUMBER, this.documentNumber);
404         return m;
405     }
406 }