1 /** 2 * Copyright 2005-2012 The Kuali Foundation 3 * 4 * Licensed under the Educational Community License, Version 2.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/ecl2.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.rice.krad.uif.field; 17 18 import org.kuali.rice.krad.datadictionary.AttributeSecurity; 19 20 /** 21 * Data field security adds attribute security to the standard component security 22 * 23 * <p> 24 * The {@link AttributeSecurity} can be configured for the field to indicate there is security at the data layer 25 * (configured by component (class) and property). If the field is backed by a data dictionary 26 * {@link org.kuali.rice.krad.datadictionary.AttributeDefinition} the attribute security can be configured there and 27 * will be picked up and inserted into the field security 28 * </p> 29 * 30 * @author Kuali Rice Team (rice.collab@kuali.org) 31 */ 32 public class DataFieldSecurity extends FieldSecurity { 33 private static final long serialVersionUID = 585138507596582667L; 34 35 private AttributeSecurity attributeSecurity; 36 37 public DataFieldSecurity() { 38 super(); 39 } 40 41 /** 42 * Attribute security instance configured or picked up for the field 43 * 44 * @return AttributeSecurity instance 45 */ 46 public AttributeSecurity getAttributeSecurity() { 47 return attributeSecurity; 48 } 49 50 /** 51 * Setter for the fields attribute security 52 * 53 * @param attributeSecurity 54 */ 55 public void setAttributeSecurity(AttributeSecurity attributeSecurity) { 56 this.attributeSecurity = attributeSecurity; 57 } 58 59 }