1 /*
2 * Copyright 2005 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 package org.kuali.ole.coa.businessobject;
17
18 import java.util.LinkedHashMap;
19
20 import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
21 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
22
23 /**
24 *
25 */
26 public class RestrictedStatus extends PersistableBusinessObjectBase implements MutableInactivatable {
27
28 /**
29 * Default no-arg constructor.
30 */
31 public RestrictedStatus() {
32
33 }
34
35 private String accountRestrictedStatusCode;
36 private String accountRestrictedStatusName;
37 private boolean active;
38
39 /**
40 * Gets the accountRestrictedStatusCode attribute.
41 *
42 * @return Returns the accountRestrictedStatusCode
43 */
44 public String getAccountRestrictedStatusCode() {
45 return accountRestrictedStatusCode;
46 }
47
48 /**
49 * Sets the accountRestrictedStatusCode attribute.
50 *
51 * @param accountRestrictedStatusCode The accountRestrictedStatusCode to set.
52 */
53 public void setAccountRestrictedStatusCode(String accountRestrictedStatusCode) {
54 this.accountRestrictedStatusCode = accountRestrictedStatusCode;
55 }
56
57 /**
58 * Gets the accountRestrictedStatusName attribute.
59 *
60 * @return Returns the accountRestrictedStatusName
61 */
62 public String getAccountRestrictedStatusName() {
63 return accountRestrictedStatusName;
64 }
65
66 /**
67 * Sets the accountRestrictedStatusName attribute.
68 *
69 * @param accountRestrictedStatusName The accountRestrictedStatusName to set.
70 */
71 public void setAccountRestrictedStatusName(String accountRestrictedStatusName) {
72 this.accountRestrictedStatusName = accountRestrictedStatusName;
73 }
74
75 /**
76 * @return Returns the code and description in format: xx - xxxxxxxxxxxxxxxx
77 */
78 public String getCodeAndDescription() {
79 String theString = getAccountRestrictedStatusCode() + " - " + getAccountRestrictedStatusName();
80 return theString;
81 }
82
83
84 /**
85 * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
86 */
87 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
88 LinkedHashMap m = new LinkedHashMap();
89
90 m.put("accountRestrictedStatusCode", this.accountRestrictedStatusCode);
91
92 return m;
93 }
94
95 /**
96 * Gets the active attribute.
97 * @return Returns the active.
98 */
99 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 }