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 org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
19 import org.kuali.rice.core.api.util.type.KualiInteger;
20 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
21 import org.kuali.rice.krad.util.ObjectUtils;
22
23 public abstract class AbstractSecurityModelDefinition extends PersistableBusinessObjectBase implements MutableInactivatable {
24
25 protected KualiInteger definitionId;
26 protected String constraintCode;
27 protected String operatorCode;
28 protected String attributeValue;
29 protected boolean overrideDeny = false;
30 protected boolean active = true;
31
32 protected SecurityDefinition securityDefinition;
33
34
35
36
37
38
39 public KualiInteger getDefinitionId() {
40 return definitionId;
41 }
42
43
44
45
46
47
48
49 public void setDefinitionId(KualiInteger definitionId) {
50 this.definitionId = definitionId;
51 }
52
53
54
55
56
57
58
59 public String getAttributeValue() {
60 return attributeValue;
61 }
62
63
64
65
66
67
68
69 public void setAttributeValue(String attributeValue) {
70 this.attributeValue = attributeValue;
71 }
72
73
74
75
76
77
78
79 public String getOperatorCode() {
80 return operatorCode;
81 }
82
83
84
85
86
87
88
89 public void setOperatorCode(String operatorCode) {
90 this.operatorCode = operatorCode;
91 }
92
93
94
95
96
97
98
99 public String getConstraintCode() {
100 return constraintCode;
101 }
102
103
104
105
106
107
108
109 public void setConstraintCode(String constraintCode) {
110 this.constraintCode = constraintCode;
111 }
112
113
114
115
116
117
118
119 public boolean isOverrideDeny() {
120 return overrideDeny;
121 }
122
123
124
125
126
127
128
129 public void setOverrideDeny(boolean overrideDeny) {
130 this.overrideDeny = overrideDeny;
131 }
132
133
134
135
136
137
138
139 public boolean isActive() {
140 return active;
141 }
142
143
144
145
146
147
148
149 public void setActive(boolean active) {
150 this.active = active;
151 }
152
153
154
155
156
157
158
159 public SecurityDefinition getSecurityDefinition() {
160 return securityDefinition;
161 }
162
163
164
165
166
167
168
169 public void setSecurityDefinition(SecurityDefinition securityDefinition) {
170 this.securityDefinition = securityDefinition;
171 }
172
173 public String getPrettyPrint() {
174 if ( ObjectUtils.isNotNull(securityDefinition) && ObjectUtils.isNotNull(securityDefinition.getSecurityAttribute()) ) {
175 return securityDefinition.getSecurityAttribute().getName() + " " + operatorCode + " " + attributeValue + "(" + constraintCode + ")";
176 }
177 return "";
178 }
179 }