1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.sec.businessobject;
17
18 import java.util.ArrayList;
19 import java.util.LinkedHashMap;
20 import java.util.List;
21
22 import org.kuali.ole.sys.OLEPropertyConstants;
23 import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
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
30
31 public class SecurityModel extends PersistableBusinessObjectBase implements MutableInactivatable {
32 protected KualiInteger id;
33 protected String name;
34 protected String description;
35 protected String roleId;
36 protected boolean active;
37
38 protected List<SecurityModelDefinition> modelDefinitions = new org.apache.ojb.broker.util.collections.ManageableArrayList();
39 protected List<SecurityModelMember> modelMembers = new org.apache.ojb.broker.util.collections.ManageableArrayList();
40
41
42
43
44
45
46 public KualiInteger getId() {
47 return id;
48 }
49
50
51
52
53
54
55
56 public void setId(KualiInteger id) {
57 this.id = id;
58 }
59
60
61
62
63
64
65
66 public String getName() {
67 return name;
68 }
69
70
71
72
73
74
75
76 public void setName(String name) {
77 this.name = name;
78 }
79
80
81
82
83
84
85
86 public String getDescription() {
87 return description;
88 }
89
90
91
92
93
94
95
96 public void setDescription(String description) {
97 this.description = description;
98 }
99
100
101
102
103
104
105
106 public String getRoleId() {
107 return roleId;
108 }
109
110
111
112
113
114
115
116 public void setRoleId(String roleId) {
117 this.roleId = roleId;
118 }
119
120
121
122
123
124
125
126 public boolean isActive() {
127 return active;
128 }
129
130
131
132
133
134
135
136 public void setActive(boolean active) {
137 this.active = active;
138 }
139
140
141
142
143
144
145
146 public List<SecurityModelDefinition> getModelDefinitions() {
147 return modelDefinitions;
148 }
149
150
151
152
153
154
155
156 public void setModelDefinitions(List<SecurityModelDefinition> modelDefinitions) {
157 this.modelDefinitions = modelDefinitions;
158 }
159
160
161
162
163
164
165
166 public List<SecurityModelMember> getModelMembers() {
167 return modelMembers;
168 }
169
170
171
172
173
174
175
176 public void setModelMembers(List<SecurityModelMember> modelMembers) {
177 this.modelMembers = modelMembers;
178 }
179
180
181 @Override
182 public String toString() {
183 StringBuilder builder = new StringBuilder();
184 builder.append("SecurityModel [");
185 if (id != null) {
186 builder.append("id=");
187 builder.append(id);
188 builder.append(", ");
189 }
190 if (name != null) {
191 builder.append("name=");
192 builder.append(name);
193 builder.append(", ");
194 }
195 if (description != null) {
196 builder.append("description=");
197 builder.append(description);
198 builder.append(", ");
199 }
200 if (roleId != null) {
201 builder.append("roleId=");
202 builder.append(roleId);
203 builder.append(", ");
204 }
205 builder.append("active=");
206 builder.append(active);
207 builder.append("]");
208 return builder.toString();
209 }
210
211
212
213 }