View Javadoc
1   /*
2    * Copyright 2009 The Kuali Foundation.
3    * 
4    * Licensed under the Educational Community License, Version 1.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl1.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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   * Attribute Security Principal Definition
29   */
30  public class SecurityPrincipalDefinition extends AbstractSecurityModelDefinition {
31      protected KualiInteger principalDefinitionId;
32      protected String principalId;
33  
34      /**
35       * Gets the principalDefinitionId attribute.
36       * 
37       * @return Returns the principalDefinitionId.
38       */
39      public KualiInteger getPrincipalDefinitionId() {
40          return principalDefinitionId;
41      }
42  
43  
44      /**
45       * Sets the principalDefinitionId attribute value.
46       * 
47       * @param principalDefinitionId The principalDefinitionId to set.
48       */
49      public void setPrincipalDefinitionId(KualiInteger principalDefinitionId) {
50          this.principalDefinitionId = principalDefinitionId;
51      }
52  
53  
54      /**
55       * Gets the principalId attribute.
56       * 
57       * @return Returns the principalId.
58       */
59      public String getPrincipalId() {
60          return principalId;
61      }
62  
63  
64      /**
65       * Sets the principalId attribute value.
66       * 
67       * @param principalId The principalId to set.
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 }