1 /*
2 * The Kuali Financial System, a comprehensive financial management system for higher education.
3 *
4 * Copyright 2005-2014 The Kuali Foundation
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Affero General Public License as
8 * published by the Free Software Foundation, either version 3 of the
9 * License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Affero General Public License for more details.
15 *
16 * You should have received a copy of the GNU Affero General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 package org.kuali.kfs.sec.datadictionary;
20
21
22 import java.util.HashMap;
23 import java.util.Map;
24
25 import org.kuali.kfs.sec.service.AccessPermissionEvaluator;
26 import org.kuali.rice.krad.datadictionary.AttributeDefinition;
27
28
29 /**
30 * Holds configuration on an attribute restriction. Mapping the attribute restriction type to a business object property name
31 */
32 public class AccessSecurityAttributeRestrictionEntry {
33 protected String securityAttributeName;
34 protected AttributeDefinition attribute;
35 protected Class<? extends AccessPermissionEvaluator> accessPermissionEvaluatorClass;
36 protected Map<String, AttributeDefinition> otherKeyFields;
37
38 public AccessSecurityAttributeRestrictionEntry() {
39 otherKeyFields = new HashMap<String, AttributeDefinition>();
40 }
41
42 /**
43 * Gets the securityAttributeName attribute.
44 *
45 * @return Returns the securityAttributeName.
46 */
47 public String getSecurityAttributeName() {
48 return securityAttributeName;
49 }
50
51 /**
52 * Sets the securityAttributeName attribute value.
53 *
54 * @param securityAttributeName The securityAttributeName to set.
55 */
56 public void setSecurityAttributeName(String securityAttributeName) {
57 this.securityAttributeName = securityAttributeName;
58 }
59
60 /**
61 * Gets the attribute attribute.
62 *
63 * @return Returns the attribute.
64 */
65 public AttributeDefinition getAttribute() {
66 return attribute;
67 }
68
69 /**
70 * Sets the attribute attribute value.
71 *
72 * @param attribute The attribute to set.
73 */
74 public void setAttribute(AttributeDefinition attribute) {
75 this.attribute = attribute;
76 }
77
78 /**
79 * Gets the accessPermissionEvaluatorClass attribute.
80 *
81 * @return Returns the accessPermissionEvaluatorClass.
82 */
83 public Class<? extends AccessPermissionEvaluator> getAccessPermissionEvaluatorClass() {
84 return accessPermissionEvaluatorClass;
85 }
86
87 /**
88 * Sets the accessPermissionEvaluatorClass attribute value.
89 *
90 * @param accessPermissionEvaluatorClass The accessPermissionEvaluatorClass to set.
91 */
92 public void setAccessPermissionEvaluatorClass(Class<? extends AccessPermissionEvaluator> accessPermissionEvaluatorClass) {
93 this.accessPermissionEvaluatorClass = accessPermissionEvaluatorClass;
94 }
95
96 /**
97 * Gets the otherKeyFields attribute.
98 *
99 * @return Returns the otherKeyFields.
100 */
101 public Map<String, AttributeDefinition> getOtherKeyFields() {
102 return otherKeyFields;
103 }
104
105 /**
106 * Sets the otherKeyFields attribute value.
107 *
108 * @param otherKeyFields The otherKeyFields to set.
109 */
110 public void setOtherKeyFields(Map<String, AttributeDefinition> otherKeyFields) {
111 this.otherKeyFields = otherKeyFields;
112 }
113
114
115
116 }