01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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: package org.kuali.module.kra.bo;
17:
18: import java.util.LinkedHashMap;
19:
20: import org.kuali.kfs.KFSPropertyConstants;
21:
22: /**
23: * This class represents an ad-hoc org.
24: */
25: public class AdhocOrg extends AbstractAdhoc {
26:
27: private String fiscalCampusCode;
28: private String primaryDepartmentCode;
29:
30: /**
31: * Gets the fiscalCampusCode attribute.
32: *
33: * @return Returns the fiscalCampusCode.
34: */
35: public String getFiscalCampusCode() {
36: return fiscalCampusCode;
37: }
38:
39: /**
40: * Sets the fiscalCampusCode attribute value.
41: *
42: * @param fiscalCampusCode The fiscalCampusCode to set.
43: */
44: public void setFiscalCampusCode(String fiscalCampusCode) {
45: this .fiscalCampusCode = fiscalCampusCode;
46: }
47:
48: /**
49: * Gets the primaryDepartmentCode attribute.
50: *
51: * @return Returns the primaryDepartmentCode.
52: */
53: public String getPrimaryDepartmentCode() {
54: return primaryDepartmentCode;
55: }
56:
57: /**
58: * Sets the primaryDepartmentCode attribute value.
59: *
60: * @param primaryDepartmentCode The primaryDepartmentCode to set.
61: */
62: public void setPrimaryDepartmentCode(String primaryDepartmentCode) {
63: this .primaryDepartmentCode = primaryDepartmentCode;
64: }
65:
66: /**
67: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
68: */
69: protected LinkedHashMap toStringMapper() {
70: LinkedHashMap m = new LinkedHashMap();
71: m.put(KFSPropertyConstants.DOCUMENT_NUMBER, this
72: .getDocumentNumber());
73: m.put("fiscalCampusCode", this .fiscalCampusCode);
74: m.put("primaryDepartmentCode", this.primaryDepartmentCode);
75:
76: return m;
77: }
78: }
|