001: /*
002: * Copyright 2006-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.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/ecl1.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:
017: package org.kuali.module.kra.routingform.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.kfs.KFSPropertyConstants;
023: import org.kuali.module.chart.bo.Org;
024:
025: /**
026: *
027: */
028: public class RoutingFormOrganization extends
029: PersistableBusinessObjectBase {
030:
031: private String chartOfAccountsCode;
032: private String organizationCode;
033: private String documentNumber;
034: private boolean budgetIndicator;
035: private boolean routingFormPrimaryOrganizationIndicator;
036:
037: private Org organization;
038:
039: /**
040: * Default constructor.
041: */
042: public RoutingFormOrganization() {
043:
044: }
045:
046: /**
047: * Gets the chartOfAccountsCode attribute.
048: *
049: * @return Returns the chartOfAccountsCode
050: */
051: public String getChartOfAccountsCode() {
052: return chartOfAccountsCode;
053: }
054:
055: /**
056: * Sets the chartOfAccountsCode attribute.
057: *
058: * @param chartOfAccountsCode The chartOfAccountsCode to set.
059: */
060: public void setChartOfAccountsCode(String chartOfAccountsCode) {
061: this .chartOfAccountsCode = chartOfAccountsCode;
062: }
063:
064: /**
065: * Gets the organizationCode attribute.
066: *
067: * @return Returns the organizationCode
068: */
069: public String getOrganizationCode() {
070: return organizationCode;
071: }
072:
073: /**
074: * Sets the organizationCode attribute.
075: *
076: * @param organizationCode The organizationCode to set.
077: */
078: public void setOrganizationCode(String organizationCode) {
079: this .organizationCode = organizationCode;
080: }
081:
082: /**
083: * Gets the documentNumber attribute.
084: *
085: * @return Returns the documentNumber
086: */
087: public String getDocumentNumber() {
088: return documentNumber;
089: }
090:
091: /**
092: * Sets the documentNumber attribute.
093: *
094: * @param documentNumber The documentNumber to set.
095: */
096: public void setDocumentNumber(String documentNumber) {
097: this .documentNumber = documentNumber;
098: }
099:
100: /**
101: * Gets the budgetIndicator attribute.
102: *
103: * @return Returns the budgetIndicator
104: */
105: public boolean getBudgetIndicator() {
106: return budgetIndicator;
107: }
108:
109: /**
110: * Sets the budgetIndicator attribute.
111: *
112: * @param budgetIndicator The budgetIndicator to set.
113: */
114: public void setBudgetIndicator(boolean budgetIndicator) {
115: this .budgetIndicator = budgetIndicator;
116: }
117:
118: /**
119: * Gets the routingFormPrimaryOrganizationIndicator attribute.
120: *
121: * @return Returns the routingFormPrimaryOrganizationIndicator
122: */
123: public boolean getRoutingFormPrimaryOrganizationIndicator() {
124: return routingFormPrimaryOrganizationIndicator;
125: }
126:
127: /**
128: * Sets the routingFormPrimaryOrganizationIndicator attribute.
129: *
130: * @param routingFormPrimaryOrganizationIndicator The routingFormPrimaryOrganizationIndicator to set.
131: */
132: public void setRoutingFormPrimaryOrganizationIndicator(
133: boolean routingFormPrimaryOrganizationIndicator) {
134: this .routingFormPrimaryOrganizationIndicator = routingFormPrimaryOrganizationIndicator;
135: }
136:
137: /**
138: * Gets the organization attribute.
139: *
140: * @return Returns the organization
141: */
142: public Org getOrganization() {
143: return organization;
144: }
145:
146: /**
147: * Sets the organization attribute.
148: *
149: * @param organization The organization to set.
150: * @deprecated
151: */
152: public void setOrganization(Org organization) {
153: this .organization = organization;
154: }
155:
156: /**
157: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
158: */
159: protected LinkedHashMap toStringMapper() {
160: LinkedHashMap m = new LinkedHashMap();
161: m.put("chartOfAccountsCode", this .chartOfAccountsCode);
162: m.put("organizationCode", this.organizationCode);
163: m
164: .put(KFSPropertyConstants.DOCUMENT_NUMBER,
165: this.documentNumber);
166: return m;
167: }
168: }
|