001: /*
002: * Copyright 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: package org.kuali.module.kra.routingform.bo;
017:
018: import java.util.LinkedHashMap;
019:
020: import org.kuali.core.bo.PersistableBusinessObjectBase;
021:
022: public class RoutingFormPersonRole extends
023: PersistableBusinessObjectBase {
024:
025: private String documentNumber;
026: private String personRoleCode;
027:
028: private PersonRole personRole;
029:
030: /**
031: * Default constructor.
032: */
033: public RoutingFormPersonRole() {
034:
035: }
036:
037: /**
038: * Constructs a RoutingFormPurpose.
039: *
040: * @param documentNumber
041: * @param purpose
042: */
043: public RoutingFormPersonRole(String documentNumber,
044: PersonRole personRole) {
045: this ();
046: this .documentNumber = documentNumber;
047: this .personRoleCode = personRole.getPersonRoleCode();
048: this .personRole = personRole;
049: }
050:
051: /**
052: * Gets the documentNumber attribute.
053: *
054: * @return Returns the documentNumber
055: */
056: public String getDocumentNumber() {
057: return documentNumber;
058: }
059:
060: /**
061: * Sets the documentNumber attribute.
062: *
063: * @param documentNumber The documentNumber to set.
064: */
065: public void setDocumentNumber(String documentNumber) {
066: this .documentNumber = documentNumber;
067: }
068:
069: /**
070: * Gets the personRoleCode attribute.
071: *
072: * @return Returns the personRoleCode
073: */
074: public String getPersonRoleCode() {
075: return personRoleCode;
076: }
077:
078: /**
079: * Sets the personRoleCode attribute.
080: *
081: * @param personRoleCode The personRoleCode to set.
082: */
083: public void setPersonRoleCode(String personRoleCode) {
084: this .personRoleCode = personRoleCode;
085: }
086:
087: /**
088: * Gets the personRole attribute.
089: *
090: * @return Returns the personRole
091: */
092: public PersonRole getPersonRole() {
093: return personRole;
094: }
095:
096: /**
097: * Sets the personRole attribute.
098: *
099: * @param personRole The personRole to set.
100: */
101: public void setPersonRole(PersonRole personRole) {
102: this .personRole = personRole;
103: }
104:
105: /**
106: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
107: */
108: protected LinkedHashMap toStringMapper() {
109: LinkedHashMap m = new LinkedHashMap();
110: m.put("documentNumber", this .documentNumber);
111: m.put("personRoleCode", this.personRoleCode);
112: return m;
113: }
114: }
|