1 /*
2 * The Kuali Financial System, a comprehensive financial management system for higher education.
3 *
4 * Copyright 2005-2014 The Kuali Foundation
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Affero General Public License as
8 * published by the Free Software Foundation, either version 3 of the
9 * License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Affero General Public License for more details.
15 *
16 * You should have received a copy of the GNU Affero General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 package org.kuali.kfs.sec.businessobject;
20
21 import java.util.LinkedHashMap;
22
23 import org.kuali.kfs.sys.KFSPropertyConstants;
24 import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
25 import org.kuali.rice.core.api.util.type.KualiInteger;
26 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
27
28 /**
29 * Security Attribute represents attributes that can used within the security system to define restrictions.
30 */
31 public class SecurityAttribute extends PersistableBusinessObjectBase implements MutableInactivatable {
32 private KualiInteger id;
33 private String name;
34 private boolean active;
35
36 public SecurityAttribute() {
37 super();
38 }
39
40 /**
41 * Gets the id attribute.
42 *
43 * @return Returns the id.
44 */
45 public KualiInteger getId() {
46 return id;
47 }
48
49 /**
50 * Sets the id attribute value.
51 *
52 * @param id The id to set.
53 */
54 public void setId(KualiInteger id) {
55 this.id = id;
56 }
57
58 /**
59 * Gets the name attribute.
60 *
61 * @return Returns the name.
62 */
63 public String getName() {
64 return name;
65 }
66
67 /**
68 * Sets the name attribute value.
69 *
70 * @param name The name to set.
71 */
72 public void setName(String name) {
73 this.name = name;
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
98 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
99 LinkedHashMap m = new LinkedHashMap();
100
101 m.put(KFSPropertyConstants.ID, this.id);
102
103 return m;
104 }
105 }