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: * Represents the status of a {@link Proposal}.
025: */
026: public class ProposalStatus extends PersistableBusinessObjectBase {
027:
028: private String proposalStatusCode;
029: private String proposalStatusDescription;
030: private boolean rowActiveIndicator;
031:
032: /**
033: * Default constructor.
034: */
035: public ProposalStatus() {
036: }
037:
038: /**
039: * Gets the proposalStatusCode attribute.
040: *
041: * @return Returns the proposalStatusCode
042: */
043: public String getProposalStatusCode() {
044: return proposalStatusCode;
045: }
046:
047: /**
048: * Sets the proposalStatusCode attribute.
049: *
050: * @param proposalStatusCode The proposalStatusCode to set.
051: */
052: public void setProposalStatusCode(String proposalStatusCode) {
053: this .proposalStatusCode = proposalStatusCode;
054: }
055:
056: /**
057: * Gets the proposalStatusDescription attribute.
058: *
059: * @return Returns the proposalStatusDescription
060: */
061: public String getProposalStatusDescription() {
062: return proposalStatusDescription;
063: }
064:
065: /**
066: * Sets the proposalStatusDescription attribute.
067: *
068: * @param proposalStatusDescription The proposalStatusDescription to set.
069: */
070: public void setProposalStatusDescription(
071: String proposalStatusDescription) {
072: this .proposalStatusDescription = proposalStatusDescription;
073: }
074:
075: /**
076: * Gets the rowActiveIndicator attribute.
077: *
078: * @return Returns the rowActiveIndicator.
079: */
080: public boolean isRowActiveIndicator() {
081: return rowActiveIndicator;
082: }
083:
084: /**
085: * Sets the rowActiveIndicator attribute value.
086: *
087: * @param rowActiveIndicator The rowActiveIndicator to set.
088: */
089: public void setRowActiveIndicator(boolean rowActiveIndicator) {
090: this .rowActiveIndicator = rowActiveIndicator;
091: }
092:
093: /**
094: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
095: */
096: protected LinkedHashMap toStringMapper() {
097: LinkedHashMap m = new LinkedHashMap();
098: m.put("proposalStatusCode", this.proposalStatusCode);
099: return m;
100: }
101:
102: }
|