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.rice.core.api.mo.common.active.MutableInactivatable;
22  import org.kuali.rice.core.api.util.type.KualiInteger;
23  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
24  
25  
26  /**
27   * Associates a security definition with a model with qualification. The qualifications become the qualifications on the KIM assignment of the model role to the definition role
28   */
29  public class SecurityModelDefinition extends AbstractSecurityModelDefinition {
30      protected KualiInteger modelDefinitionId;
31      protected KualiInteger modelId;
32  
33      /**
34       * Gets the modelDefinitionId attribute.
35       * 
36       * @return Returns the modelDefinitionId.
37       */
38      public KualiInteger getModelDefinitionId() {
39          return modelDefinitionId;
40      }
41  
42  
43      /**
44       * Sets the modelDefinitionId attribute value.
45       * 
46       * @param modelDefinitionId The modelDefinitionId to set.
47       */
48      public void setModelDefinitionId(KualiInteger modelDefinitionId) {
49          this.modelDefinitionId = modelDefinitionId;
50      }
51  
52  
53      /**
54       * Gets the modelId attribute.
55       * 
56       * @return Returns the modelId.
57       */
58      public KualiInteger getModelId() {
59          return modelId;
60      }
61  
62  
63      /**
64       * Sets the modelId attribute value.
65       * 
66       * @param modelId The modelId to set.
67       */
68      public void setModelId(KualiInteger modelId) {
69          this.modelId = modelId;
70      }
71  
72  
73      @Override
74      public String toString() {
75          StringBuilder builder = new StringBuilder();
76          builder.append("SecurityModelDefinition [");
77          if (modelDefinitionId != null) {
78              builder.append("modelDefinitionId=");
79              builder.append(modelDefinitionId);
80              builder.append(", ");
81          }
82          if (modelId != null) {
83              builder.append("modelId=");
84              builder.append(modelId);
85              builder.append(", ");
86          }
87          if (definitionId != null) {
88              builder.append("definitionId=");
89              builder.append(definitionId);
90              builder.append(", ");
91          }
92          if (constraintCode != null) {
93              builder.append("constraintCode=");
94              builder.append(constraintCode);
95              builder.append(", ");
96          }
97          if (operatorCode != null) {
98              builder.append("operatorCode=");
99              builder.append(operatorCode);
100             builder.append(", ");
101         }
102         if (attributeValue != null) {
103             builder.append("attributeValue=");
104             builder.append(attributeValue);
105             builder.append(", ");
106         }
107         builder.append("overrideDeny=");
108         builder.append(overrideDeny);
109         builder.append("]");
110         return builder.toString();
111     }
112 
113     
114 }