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.datadictionary;
17  
18  
19  import java.util.HashMap;
20  import java.util.Map;
21  
22  import org.kuali.ole.sec.service.AccessPermissionEvaluator;
23  import org.kuali.rice.krad.datadictionary.AttributeDefinition;
24  
25  
26  /**
27   * Holds configuration on an attribute restriction. Mapping the attribute restriction type to a business object property name
28   */
29  public class AccessSecurityAttributeRestrictionEntry {
30      protected String securityAttributeName;
31      protected AttributeDefinition attribute;
32      protected Class<? extends AccessPermissionEvaluator> accessPermissionEvaluatorClass;
33      protected Map<String, AttributeDefinition> otherKeyFields;
34  
35      public AccessSecurityAttributeRestrictionEntry() {
36          otherKeyFields = new HashMap<String, AttributeDefinition>();
37      }
38  
39      /**
40       * Gets the securityAttributeName attribute.
41       * 
42       * @return Returns the securityAttributeName.
43       */
44      public String getSecurityAttributeName() {
45          return securityAttributeName;
46      }
47  
48      /**
49       * Sets the securityAttributeName attribute value.
50       * 
51       * @param securityAttributeName The securityAttributeName to set.
52       */
53      public void setSecurityAttributeName(String securityAttributeName) {
54          this.securityAttributeName = securityAttributeName;
55      }
56  
57      /**
58       * Gets the attribute attribute.
59       * 
60       * @return Returns the attribute.
61       */
62      public AttributeDefinition getAttribute() {
63          return attribute;
64      }
65  
66      /**
67       * Sets the attribute attribute value.
68       * 
69       * @param attribute The attribute to set.
70       */
71      public void setAttribute(AttributeDefinition attribute) {
72          this.attribute = attribute;
73      }
74  
75      /**
76       * Gets the accessPermissionEvaluatorClass attribute.
77       * 
78       * @return Returns the accessPermissionEvaluatorClass.
79       */
80      public Class<? extends AccessPermissionEvaluator> getAccessPermissionEvaluatorClass() {
81          return accessPermissionEvaluatorClass;
82      }
83  
84      /**
85       * Sets the accessPermissionEvaluatorClass attribute value.
86       * 
87       * @param accessPermissionEvaluatorClass The accessPermissionEvaluatorClass to set.
88       */
89      public void setAccessPermissionEvaluatorClass(Class<? extends AccessPermissionEvaluator> accessPermissionEvaluatorClass) {
90          this.accessPermissionEvaluatorClass = accessPermissionEvaluatorClass;
91      }
92  
93      /**
94       * Gets the otherKeyFields attribute.
95       * 
96       * @return Returns the otherKeyFields.
97       */
98      public Map<String, AttributeDefinition> getOtherKeyFields() {
99          return otherKeyFields;
100     }
101 
102     /**
103      * Sets the otherKeyFields attribute value.
104      * 
105      * @param otherKeyFields The otherKeyFields to set.
106      */
107     public void setOtherKeyFields(Map<String, AttributeDefinition> otherKeyFields) {
108         this.otherKeyFields = otherKeyFields;
109     }
110     
111     
112 
113 }