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:
023: import edu.iu.uis.eden.workgroup.Workgroup;
024:
025: /**
026: * Class representing a ResearchRiskType.
027: */
028: public class ResearchRiskType extends PersistableBusinessObjectBase {
029:
030: /**
031: * Constant values for research risk type notification values
032: */
033: public static final String YES = "Y";
034: public static final String NO = "N";
035: public static final String ALL = "A";
036: public static final String NEVER = "X";
037:
038: private String researchRiskTypeCode;
039: private boolean dataObjectMaintenanceCodeActiveIndicator;
040: private String researchRiskTypeDescription;
041: private String controlAttributeTypeCode;
042: private Integer researchRiskTypeSortNumber;
043: private String researchRiskTypeNotificationGroupText;
044: private String researchRiskTypeNotificationValue;
045:
046: private ControlAttributeType controlAttributeType;
047: private Workgroup routeWorkgroup;
048:
049: /**
050: * Default constructor.
051: */
052: public ResearchRiskType() {
053:
054: }
055:
056: /**
057: * Gets the researchRiskTypeCode attribute.
058: *
059: * @return Returns the researchRiskTypeCode
060: */
061: public String getResearchRiskTypeCode() {
062: return researchRiskTypeCode;
063: }
064:
065: /**
066: * Sets the researchRiskTypeCode attribute.
067: *
068: * @param researchRiskTypeCode The researchRiskTypeCode to set.
069: */
070: public void setResearchRiskTypeCode(String researchRiskTypeCode) {
071: this .researchRiskTypeCode = researchRiskTypeCode;
072: }
073:
074: /**
075: * Gets the dataObjectMaintenanceCodeActiveIndicator attribute.
076: *
077: * @return Returns the dataObjectMaintenanceCodeActiveIndicator
078: */
079: public boolean isDataObjectMaintenanceCodeActiveIndicator() {
080: return dataObjectMaintenanceCodeActiveIndicator;
081: }
082:
083: /**
084: * Sets the dataObjectMaintenanceCodeActiveIndicator attribute.
085: *
086: * @param dataObjectMaintenanceCodeActiveIndicator The dataObjectMaintenanceCodeActiveIndicator to set.
087: */
088: public void setDataObjectMaintenanceCodeActiveIndicator(
089: boolean dataObjectMaintenanceCodeActiveIndicator) {
090: this .dataObjectMaintenanceCodeActiveIndicator = dataObjectMaintenanceCodeActiveIndicator;
091: }
092:
093: /**
094: * Gets the researchRiskTypeDescription attribute.
095: *
096: * @return Returns the researchRiskTypeDescription
097: */
098: public String getResearchRiskTypeDescription() {
099: return researchRiskTypeDescription;
100: }
101:
102: /**
103: * Sets the researchRiskTypeDescription attribute.
104: *
105: * @param researchRiskTypeDescription The researchRiskTypeDescription to set.
106: */
107: public void setResearchRiskTypeDescription(
108: String researchRiskTypeDescription) {
109: this .researchRiskTypeDescription = researchRiskTypeDescription;
110: }
111:
112: /**
113: * Gets the controlAttributeTypeCode attribute.
114: *
115: * @return Returns the controlAttributeTypeCode.
116: */
117: public String getControlAttributeTypeCode() {
118: return controlAttributeTypeCode;
119: }
120:
121: /**
122: * Sets the controlAttributeTypeCode attribute value.
123: *
124: * @param controlAttributeTypeCode The controlAttributeTypeCode to set.
125: */
126: public void setControlAttributeTypeCode(
127: String controlAttributeTypeCode) {
128: this .controlAttributeTypeCode = controlAttributeTypeCode;
129: }
130:
131: /**
132: * Gets the researchRiskTypeSortNumber attribute.
133: *
134: * @return Returns the researchRiskTypeSortNumber.
135: */
136: public Integer getResearchRiskTypeSortNumber() {
137: return researchRiskTypeSortNumber;
138: }
139:
140: /**
141: * Sets the researchRiskTypeSortNumber attribute value.
142: *
143: * @param researchRiskTypeSortNumber The researchRiskTypeSortNumber to set.
144: */
145: public void setResearchRiskTypeSortNumber(
146: Integer researchRiskTypeSortNumber) {
147: this .researchRiskTypeSortNumber = researchRiskTypeSortNumber;
148: }
149:
150: /**
151: * Gets the researchRiskTypeNotificationGroupText attribute.
152: *
153: * @return Returns the researchRiskTypeNotificationGroupText.
154: */
155: public String getResearchRiskTypeNotificationGroupText() {
156: return researchRiskTypeNotificationGroupText;
157: }
158:
159: /**
160: * Sets the researchRiskTypeNotificationGroupText attribute value.
161: *
162: * @param researchRiskTypeNotificationGroupText The researchRiskTypeNotificationGroupText to set.
163: */
164: public void setResearchRiskTypeNotificationGroupText(
165: String researchRiskTypeNotificationGroupText) {
166: this .researchRiskTypeNotificationGroupText = researchRiskTypeNotificationGroupText;
167: }
168:
169: /**
170: * Gets the researchRiskTypeNotificationValue attribute.
171: *
172: * @return Returns the researchRiskTypeNotificationValue.
173: */
174: public String getResearchRiskTypeNotificationValue() {
175: return researchRiskTypeNotificationValue;
176: }
177:
178: /**
179: * Sets the researchRiskTypeNotificationValue attribute value.
180: *
181: * @param researchRiskTypeNotificationValue The researchRiskTypeNotificationValue to set.
182: */
183: public void setResearchRiskTypeNotificationValue(
184: String researchRiskTypeNotificationValue) {
185: this .researchRiskTypeNotificationValue = researchRiskTypeNotificationValue;
186: }
187:
188: /**
189: * Gets the controlAttributeType attribute.
190: *
191: * @return Returns the controlAttributeType.
192: */
193: public ControlAttributeType getControlAttributeType() {
194: return controlAttributeType;
195: }
196:
197: /**
198: * Sets the controlAttributeType attribute value.
199: *
200: * @param controlAttributeType The controlAttributeType to set.
201: * @deprecated
202: */
203: public void setControlAttributeType(
204: ControlAttributeType controlAttributeType) {
205: this .controlAttributeType = controlAttributeType;
206: }
207:
208: /**
209: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
210: */
211: protected LinkedHashMap toStringMapper() {
212: LinkedHashMap m = new LinkedHashMap();
213: m.put("researchRiskTypeCode", this.researchRiskTypeCode);
214: return m;
215: }
216: }
|