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.LinkedHashMap;
19
20 import org.kuali.ole.sec.SecPropertyConstants;
21 import org.kuali.ole.sys.OLEPropertyConstants;
22 import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
23 import org.kuali.rice.core.api.util.type.KualiInteger;
24 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
25
26
27
28
29
30 public class SecurityPrincipalDefinition extends AbstractSecurityModelDefinition {
31 protected KualiInteger principalDefinitionId;
32 protected String principalId;
33
34
35
36
37
38
39 public KualiInteger getPrincipalDefinitionId() {
40 return principalDefinitionId;
41 }
42
43
44
45
46
47
48
49 public void setPrincipalDefinitionId(KualiInteger principalDefinitionId) {
50 this.principalDefinitionId = principalDefinitionId;
51 }
52
53
54
55
56
57
58
59 public String getPrincipalId() {
60 return principalId;
61 }
62
63
64
65
66
67
68
69 public void setPrincipalId(String principalId) {
70 this.principalId = principalId;
71 }
72
73
74 @Override
75 public String toString() {
76 StringBuilder builder = new StringBuilder();
77 builder.append("SecurityPrincipalDefinition [");
78 if (principalDefinitionId != null) {
79 builder.append("principalDefinitionId=");
80 builder.append(principalDefinitionId);
81 builder.append(", ");
82 }
83 if (principalId != null) {
84 builder.append("principalId=");
85 builder.append(principalId);
86 builder.append(", ");
87 }
88 if (definitionId != null) {
89 builder.append("definitionId=");
90 builder.append(definitionId);
91 builder.append(", ");
92 }
93 if (constraintCode != null) {
94 builder.append("constraintCode=");
95 builder.append(constraintCode);
96 builder.append(", ");
97 }
98 if (operatorCode != null) {
99 builder.append("operatorCode=");
100 builder.append(operatorCode);
101 builder.append(", ");
102 }
103 if (attributeValue != null) {
104 builder.append("attributeValue=");
105 builder.append(attributeValue);
106 builder.append(", ");
107 }
108 builder.append("overrideDeny=");
109 builder.append(overrideDeny);
110 builder.append("]");
111 return builder.toString();
112 }
113
114
115 }