1 /* 2 * Copyright 2006 The Kuali Foundation 3 * 4 * Licensed under the Educational Community License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.opensource.org/licenses/ecl2.php 9 * 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.ole.module.cg.businessobject; 18 19 import java.util.LinkedHashMap; 20 21 import org.kuali.rice.core.api.mo.common.active.MutableInactivatable; 22 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 23 24 /** 25 * Instances of this class represent the various statuses an Award can be in. 26 */ 27 public class AwardStatus extends PersistableBusinessObjectBase implements MutableInactivatable { 28 29 private String awardStatusCode; 30 private String awardStatusDescription; 31 private boolean active; 32 33 /** 34 * Default constructor. 35 */ 36 public AwardStatus() { 37 } 38 39 /** 40 * Gets the awardStatusCode attribute. 41 * 42 * @return Returns the awardStatusCode 43 */ 44 public String getAwardStatusCode() { 45 return awardStatusCode; 46 } 47 48 49 /** 50 * Sets the awardStatusCode attribute. 51 * 52 * @param awardStatusCode The awardStatusCode to set. 53 */ 54 public void setAwardStatusCode(String awardStatusCode) { 55 this.awardStatusCode = awardStatusCode; 56 } 57 58 59 /** 60 * This method is a dummy getter that simply returns the same value as getAwardStatusCode(). This method was needed so we could 61 * add an attribute reference to the DD with a different name than awardStatusCode. This allowed us to override the input 62 * behavior and define two different methods of input based on what type of page we're displaying. 63 * 64 * @return Returns the awardStatusCode 65 */ 66 public String getAwardStatusCodeDropDown() { 67 return awardStatusCode; 68 } 69 70 /** 71 * @param awardStatusCode 72 * @deprecated Do not use this method, it is only here for DD mapping purposes and has no defined functionality. See KULCG-281 73 * for further details. 74 */ 75 public void setAwardStatusCodeDropDown(String awardStatusCode) { 76 this.awardStatusCode = awardStatusCode; 77 } 78 79 /** 80 * Gets the awardStatusDescription attribute. 81 * 82 * @return Returns the awardStatusDescription 83 */ 84 public String getAwardStatusDescription() { 85 return awardStatusDescription; 86 } 87 88 /** 89 * Sets the awardStatusDescription attribute. 90 * 91 * @param awardStatusDescription The awardStatusDescription to set. 92 */ 93 public void setAwardStatusDescription(String awardStatusDescription) { 94 this.awardStatusDescription = awardStatusDescription; 95 } 96 97 /** 98 * Gets the active attribute. 99 * 100 * @return Returns the active. 101 */ 102 public boolean isActive() { 103 return active; 104 } 105 106 /** 107 * Sets the active attribute value. 108 * 109 * @param active The active to set. 110 */ 111 public void setActive(boolean active) { 112 this.active = active; 113 } 114 115 /** 116 * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper() 117 */ 118 @SuppressWarnings("unchecked") 119 120 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() { 121 LinkedHashMap m = new LinkedHashMap(); 122 m.put("awardStatusCode", this.awardStatusCode); 123 return m; 124 } 125 126 }