1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.component;
17
18 import org.kuali.rice.krad.datadictionary.parse.BeanTag;
19 import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
20 import org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase;
21
22 import java.io.Serializable;
23 import java.util.HashMap;
24 import java.util.Map;
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 @BeanTag(name = "componentSecurity-bean")
41 public class ComponentSecurity extends UifDictionaryBeanBase implements Serializable {
42 private static final long serialVersionUID = 726347449984853891L;
43
44 private Boolean editAuthz;
45 private Boolean viewAuthz;
46
47 private String namespaceAttribute;
48 private String componentAttribute;
49 private String idAttribute;
50
51 private Map<String, String> additionalPermissionDetails;
52 private Map<String, String> additionalRoleQualifiers;
53
54 public ComponentSecurity() {
55 additionalPermissionDetails = new HashMap<String, String>();
56 additionalRoleQualifiers = new HashMap<String, String>();
57 }
58
59
60
61
62
63
64 @BeanTagAttribute(name="editAuthz")
65 public Boolean isEditAuthz() {
66 return editAuthz;
67 }
68
69
70
71
72
73
74 public void setEditAuthz(Boolean editAuthz) {
75 this.editAuthz = editAuthz;
76 }
77
78
79
80
81
82
83 @BeanTagAttribute(name="viewAuthz")
84 public Boolean isViewAuthz() {
85 return viewAuthz;
86 }
87
88
89
90
91
92
93 public void setViewAuthz(Boolean viewAuthz) {
94 this.viewAuthz = viewAuthz;
95 }
96
97
98
99
100
101
102
103
104
105
106
107 @BeanTagAttribute(name="namespaceAttribute")
108 public String getNamespaceAttribute() {
109 return namespaceAttribute;
110 }
111
112
113
114
115
116
117 public void setNamespaceAttribute(String namespaceAttribute) {
118 this.namespaceAttribute = namespaceAttribute;
119 }
120
121
122
123
124
125
126
127
128
129
130
131 @BeanTagAttribute(name="componentAttribute")
132 public String getComponentAttribute() {
133 return componentAttribute;
134 }
135
136
137
138
139
140
141 public void setComponentAttribute(String componentAttribute) {
142 this.componentAttribute = componentAttribute;
143 }
144
145
146
147
148
149
150
151
152
153
154
155 @BeanTagAttribute(name="idAttribute")
156 public String getIdAttribute() {
157 return idAttribute;
158 }
159
160
161
162
163
164
165 public void setIdAttribute(String idAttribute) {
166 this.idAttribute = idAttribute;
167 }
168
169
170
171
172
173
174
175
176
177
178
179 @BeanTagAttribute(name="additionalPermissionDetails",type= BeanTagAttribute.AttributeType.MAPVALUE)
180 public Map<String, String> getAdditionalPermissionDetails() {
181 return additionalPermissionDetails;
182 }
183
184
185
186
187
188
189 public void setAdditionalPermissionDetails(Map<String, String> additionalPermissionDetails) {
190 this.additionalPermissionDetails = additionalPermissionDetails;
191 }
192
193
194
195
196
197
198
199
200
201
202
203 @BeanTagAttribute(name="additionalRoleQualifiers",type= BeanTagAttribute.AttributeType.MAPVALUE)
204 public Map<String, String> getAdditionalRoleQualifiers() {
205 return additionalRoleQualifiers;
206 }
207
208
209
210
211
212
213 public void setAdditionalRoleQualifiers(Map<String, String> additionalRoleQualifiers) {
214 this.additionalRoleQualifiers = additionalRoleQualifiers;
215 }
216
217 @Override
218 protected void finalize() throws Throwable {
219 try {
220 idAttribute = null;
221 componentAttribute = null;
222 namespaceAttribute = null;
223 additionalRoleQualifiers = null;
224 additionalPermissionDetails = null;
225 } finally {
226
227 }
228 }
229 }