001 /*
002 * Copyright 2011 The Kuali Foundation.
003 *
004 * Licensed under the Educational Community License, Version 2.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/ecl2.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 package org.kuali.kfs.coa.businessobject;
017
018 import java.util.LinkedHashMap;
019
020 import org.kuali.rice.kns.bo.Inactivateable;
021 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
022
023 /**
024 *
025 */
026 public class RestrictedStatus extends PersistableBusinessObjectBase implements Inactivateable {
027
028 /**
029 * Default no-arg constructor.
030 */
031 public RestrictedStatus() {
032
033 }
034
035 private String accountRestrictedStatusCode;
036 private String accountRestrictedStatusName;
037 private boolean active;
038
039 /**
040 * Gets the accountRestrictedStatusCode attribute.
041 *
042 * @return Returns the accountRestrictedStatusCode
043 */
044 public String getAccountRestrictedStatusCode() {
045 return accountRestrictedStatusCode;
046 }
047
048 /**
049 * Sets the accountRestrictedStatusCode attribute.
050 *
051 * @param accountRestrictedStatusCode The accountRestrictedStatusCode to set.
052 */
053 public void setAccountRestrictedStatusCode(String accountRestrictedStatusCode) {
054 this.accountRestrictedStatusCode = accountRestrictedStatusCode;
055 }
056
057 /**
058 * Gets the accountRestrictedStatusName attribute.
059 *
060 * @return Returns the accountRestrictedStatusName
061 */
062 public String getAccountRestrictedStatusName() {
063 return accountRestrictedStatusName;
064 }
065
066 /**
067 * Sets the accountRestrictedStatusName attribute.
068 *
069 * @param accountRestrictedStatusName The accountRestrictedStatusName to set.
070 */
071 public void setAccountRestrictedStatusName(String accountRestrictedStatusName) {
072 this.accountRestrictedStatusName = accountRestrictedStatusName;
073 }
074
075 /**
076 * @return Returns the code and description in format: xx - xxxxxxxxxxxxxxxx
077 */
078 public String getCodeAndDescription() {
079 String theString = getAccountRestrictedStatusCode() + " - " + getAccountRestrictedStatusName();
080 return theString;
081 }
082
083
084 /**
085 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
086 */
087 protected LinkedHashMap toStringMapper() {
088 LinkedHashMap m = new LinkedHashMap();
089
090 m.put("accountRestrictedStatusCode", this.accountRestrictedStatusCode);
091
092 return m;
093 }
094
095 /**
096 * Gets the active attribute.
097 * @return Returns the active.
098 */
099 public boolean isActive() {
100 return active;
101 }
102
103 /**
104 * Sets the active attribute value.
105 * @param active The active to set.
106 */
107 public void setActive(boolean active) {
108 this.active = active;
109 }
110 }