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.cg.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022:
023: /**
024: * Instances of this class represent the various statuses an Award can be in.
025: */
026: public class AwardStatus extends PersistableBusinessObjectBase {
027:
028: private String awardStatusCode;
029: private String awardStatusDescription;
030: private boolean rowActiveIndicator;
031:
032: /**
033: * Default constructor.
034: */
035: public AwardStatus() {
036: }
037:
038: /**
039: * Gets the awardStatusCode attribute.
040: *
041: * @return Returns the awardStatusCode
042: */
043: public String getAwardStatusCode() {
044: return awardStatusCode;
045: }
046:
047: /**
048: * Sets the awardStatusCode attribute.
049: *
050: * @param awardStatusCode The awardStatusCode to set.
051: */
052: public void setAwardStatusCode(String awardStatusCode) {
053: this .awardStatusCode = awardStatusCode;
054: }
055:
056: /**
057: * This method is a dummy getter that simply returns the same value as getAwardStatusCode(). This method was needed so we could
058: * add an attribute reference to the DD with a different name than awardStatusCode. This allowed us to override the input
059: * behavior and define two different methods of input based on what type of page we're displaying.
060: *
061: * @return Returns the awardStatusCode
062: */
063: public String getAwardStatusCodeDropDown() {
064: return awardStatusCode;
065: }
066:
067: /**
068: * @param awardStatusCode
069: * @deprecated Do not use this method, it is only here for DD mapping purposes and has no defined functionality. See KULCG-281
070: * for further details.
071: */
072: public void setAwardStatusCodeDropDown(String awardStatusCode) {
073: this .awardStatusCode = awardStatusCode;
074: }
075:
076: /**
077: * Gets the awardStatusDescription attribute.
078: *
079: * @return Returns the awardStatusDescription
080: */
081: public String getAwardStatusDescription() {
082: return awardStatusDescription;
083: }
084:
085: /**
086: * Sets the awardStatusDescription attribute.
087: *
088: * @param awardStatusDescription The awardStatusDescription to set.
089: */
090: public void setAwardStatusDescription(String awardStatusDescription) {
091: this .awardStatusDescription = awardStatusDescription;
092: }
093:
094: /**
095: * Gets the rowActiveIndicator attribute.
096: *
097: * @return Returns the rowActiveIndicator.
098: */
099: public boolean isRowActiveIndicator() {
100: return rowActiveIndicator;
101: }
102:
103: /**
104: * Sets the rowActiveIndicator attribute value.
105: *
106: * @param rowActiveIndicator The rowActiveIndicator to set.
107: */
108: public void setRowActiveIndicator(boolean rowActiveIndicator) {
109: this .rowActiveIndicator = rowActiveIndicator;
110: }
111:
112: /**
113: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
114: */
115: @SuppressWarnings("unchecked")
116: @Override
117: protected LinkedHashMap toStringMapper() {
118: LinkedHashMap m = new LinkedHashMap();
119: m.put("awardStatusCode", this.awardStatusCode);
120: return m;
121: }
122:
123: }
|