01: /*
02: * Copyright 2006-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:
17: package org.kuali.module.purap.bo;
18:
19: import java.util.LinkedHashMap;
20:
21: import org.kuali.core.bo.PersistableBusinessObjectBase;
22:
23: /**
24: * Restricted Material Business Object.
25: */
26: public class RestrictedMaterial extends PersistableBusinessObjectBase {
27:
28: private String restrictedMaterialCode;
29: private String restrictedMaterialDescription;
30: private String restrictedMaterialDefaultDescription;
31: private String restrictedMaterialWorkgroupName;
32: private boolean active;
33:
34: /**
35: * Default constructor.
36: */
37: public RestrictedMaterial() {
38:
39: }
40:
41: public String getRestrictedMaterialCode() {
42: return restrictedMaterialCode;
43: }
44:
45: public void setRestrictedMaterialCode(String restrictedMaterialCode) {
46: this .restrictedMaterialCode = restrictedMaterialCode;
47: }
48:
49: public String getRestrictedMaterialDescription() {
50: return restrictedMaterialDescription;
51: }
52:
53: public void setRestrictedMaterialDescription(
54: String restrictedMaterialDescription) {
55: this .restrictedMaterialDescription = restrictedMaterialDescription;
56: }
57:
58: public String getRestrictedMaterialDefaultDescription() {
59: return restrictedMaterialDefaultDescription;
60: }
61:
62: public void setRestrictedMaterialDefaultDescription(
63: String restrictedMaterialDefaultDescription) {
64: this .restrictedMaterialDefaultDescription = restrictedMaterialDefaultDescription;
65: }
66:
67: public String getRestrictedMaterialWorkgroupName() {
68: return restrictedMaterialWorkgroupName;
69: }
70:
71: public void setRestrictedMaterialWorkgroupName(
72: String restrictedMaterialWorkgroupName) {
73: this .restrictedMaterialWorkgroupName = restrictedMaterialWorkgroupName;
74: }
75:
76: public boolean isActive() {
77: return active;
78: }
79:
80: public void setActive(boolean active) {
81: this .active = active;
82: }
83:
84: /**
85: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
86: */
87: protected LinkedHashMap toStringMapper() {
88: LinkedHashMap m = new LinkedHashMap();
89: m.put("restrictedMaterialCode", this.restrictedMaterialCode);
90: return m;
91: }
92:
93: }
|