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.purap.bo;
017:
018: import java.util.LinkedHashMap;
019:
020: import org.kuali.core.bo.Campus;
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.kfs.bo.Building;
023:
024: /**
025: * Building Lookup Business Object. Defines searchable attributes for buliding lookup.
026: */
027: public class BuildingLookup extends PersistableBusinessObjectBase {
028:
029: private String campusCode;
030: private String buildingCode;
031: private String buildingOverrideCode;
032: private String buildingLookupName;
033: private String buildingLookupStreetAddress;
034: private String buildingLookupAddressCityName;
035: private String buildingLookupAddressStateCode;
036: private String buildingLookupAddressZipCode;
037:
038: private Campus campus;
039: private Building building;
040:
041: /**
042: * Default constructor.
043: */
044: public BuildingLookup() {
045:
046: }
047:
048: public String getCampusCode() {
049: return campusCode;
050: }
051:
052: public void setCampusCode(String campusCode) {
053: this .campusCode = campusCode;
054: }
055:
056: public String getBuildingCode() {
057: return buildingCode;
058: }
059:
060: public void setBuildingCode(String buildingCode) {
061: this .buildingCode = buildingCode;
062: }
063:
064: public String getBuildingOverrideCode() {
065: return buildingOverrideCode;
066: }
067:
068: public void setBuildingOverrideCode(String buildingOverrideCode) {
069: this .buildingOverrideCode = buildingOverrideCode;
070: }
071:
072: public String getBuildingLookupName() {
073: return buildingLookupName;
074: }
075:
076: public void setBuildingLookupName(String buildingLookupName) {
077: this .buildingLookupName = buildingLookupName;
078: }
079:
080: public String getBuildingLookupStreetAddress() {
081: return buildingLookupStreetAddress;
082: }
083:
084: public void setBuildingLookupStreetAddress(
085: String buildingLookupStreetAddress) {
086: this .buildingLookupStreetAddress = buildingLookupStreetAddress;
087: }
088:
089: public String getBuildingLookupAddressCityName() {
090: return buildingLookupAddressCityName;
091: }
092:
093: public void setBuildingLookupAddressCityName(
094: String buildingLookupAddressCityName) {
095: this .buildingLookupAddressCityName = buildingLookupAddressCityName;
096: }
097:
098: public String getBuildingLookupAddressStateCode() {
099: return buildingLookupAddressStateCode;
100: }
101:
102: public void setBuildingLookupAddressStateCode(
103: String buildingLookupAddressStateCode) {
104: this .buildingLookupAddressStateCode = buildingLookupAddressStateCode;
105: }
106:
107: public String getBuildingLookupAddressZipCode() {
108: return buildingLookupAddressZipCode;
109: }
110:
111: public void setBuildingLookupAddressZipCode(
112: String buildingLookupAddressZipCode) {
113: this .buildingLookupAddressZipCode = buildingLookupAddressZipCode;
114: }
115:
116: public Campus getCampus() {
117: return campus;
118: }
119:
120: /**
121: * @deprecated
122: */
123: public void setCampus(Campus campus) {
124: this .campus = campus;
125: }
126:
127: public Building getBuilding() {
128: return building;
129: }
130:
131: /**
132: * @deprecated
133: */
134: public void setBuilding(Building building) {
135: this .building = building;
136: }
137:
138: /**
139: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
140: */
141: protected LinkedHashMap toStringMapper() {
142: LinkedHashMap m = new LinkedHashMap();
143: m.put("campusCode", this .campusCode);
144: m.put("buildingCode", this .buildingCode);
145: m.put("buildingOverrideCode", this.buildingOverrideCode);
146: return m;
147: }
148: }
|