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 * Represents the status of a {@link Proposal}.
26 */
27 public class ProposalStatus extends PersistableBusinessObjectBase implements MutableInactivatable {
28
29 private String proposalStatusCode;
30 private String proposalStatusDescription;
31 private boolean active;
32
33 /**
34 * Default constructor.
35 */
36 public ProposalStatus() {
37 }
38
39 /**
40 * Gets the proposalStatusCode attribute.
41 *
42 * @return Returns the proposalStatusCode
43 */
44 public String getProposalStatusCode() {
45 return proposalStatusCode;
46 }
47
48 /**
49 * Sets the proposalStatusCode attribute.
50 *
51 * @param proposalStatusCode The proposalStatusCode to set.
52 */
53 public void setProposalStatusCode(String proposalStatusCode) {
54 this.proposalStatusCode = proposalStatusCode;
55 }
56
57
58 /**
59 * Gets the proposalStatusDescription attribute.
60 *
61 * @return Returns the proposalStatusDescription
62 */
63 public String getProposalStatusDescription() {
64 return proposalStatusDescription;
65 }
66
67 /**
68 * Sets the proposalStatusDescription attribute.
69 *
70 * @param proposalStatusDescription The proposalStatusDescription to set.
71 */
72 public void setProposalStatusDescription(String proposalStatusDescription) {
73 this.proposalStatusDescription = proposalStatusDescription;
74 }
75
76 /**
77 * Gets the active attribute.
78 *
79 * @return Returns the active.
80 */
81 public boolean isActive() {
82 return active;
83 }
84
85 /**
86 * Sets the active attribute value.
87 *
88 * @param active The active to set.
89 */
90 public void setActive(boolean active) {
91 this.active = active;
92 }
93
94 /**
95 * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
96 */
97 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
98 LinkedHashMap m = new LinkedHashMap();
99 m.put("proposalStatusCode", this.proposalStatusCode);
100 return m;
101 }
102
103 }