1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.element;
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.uif.field.FieldSecurity;
21
22
23
24
25
26
27 @BeanTag(name = "actionSecurity-bean")
28 public class ActionSecurity extends FieldSecurity {
29 private static final long serialVersionUID = 585138507596582667L;
30
31 private boolean performActionAuthz;
32 private boolean performLineActionAuthz;
33
34 public ActionSecurity() {
35 super();
36
37 performActionAuthz = false;
38 performLineActionAuthz = false;
39 }
40
41
42
43
44
45
46 @BeanTagAttribute(name="performActionAuthz")
47 public boolean isPerformActionAuthz() {
48 return performActionAuthz;
49 }
50
51
52
53
54
55
56 public void setPerformActionAuthz(boolean performActionAuthz) {
57 this.performActionAuthz = performActionAuthz;
58 }
59
60
61
62
63
64
65 @BeanTagAttribute(name="performLineActionAuthz")
66 public boolean isPerformLineActionAuthz() {
67 return performLineActionAuthz;
68 }
69
70
71
72
73
74
75 public void setPerformLineActionAuthz(boolean performLineActionAuthz) {
76 this.performLineActionAuthz = performLineActionAuthz;
77 }
78
79
80
81
82 @Override
83 protected <T> void copyProperties(T component) {
84 super.copyProperties(component);
85 ActionSecurity actionSecurityCopy = (ActionSecurity) component;
86 actionSecurityCopy.setPerformActionAuthz(this.performActionAuthz);
87 actionSecurityCopy.setPerformLineActionAuthz(this.performLineActionAuthz);
88 }
89 }