001/**
002 * Copyright 2005-2016 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.krad.uif.field;
017
018import org.kuali.rice.krad.datadictionary.AttributeSecurity;
019
020/**
021 * Data field security adds attribute security to the standard component security
022 *
023 * <p>
024 * The {@link AttributeSecurity} can be configured for the field to indicate there is security at the data layer
025 * (configured by component (class) and property). If the field is backed by a data dictionary
026 * {@link org.kuali.rice.krad.datadictionary.AttributeDefinition} the attribute security can be configured there and
027 * will be picked up and inserted into the field security
028 * </p>
029 *
030 * @author Kuali Rice Team (rice.collab@kuali.org)
031 */
032public class DataFieldSecurity extends FieldSecurity {
033    private static final long serialVersionUID = 585138507596582667L;
034
035    private AttributeSecurity attributeSecurity;
036
037    public DataFieldSecurity() {
038        super();
039    }
040
041    /**
042     * Attribute security instance configured or picked up for the field
043     *
044     * @return AttributeSecurity instance
045     */
046    public AttributeSecurity getAttributeSecurity() {
047        return attributeSecurity;
048    }
049
050    /**
051     * Setter for the fields attribute security
052     *
053     * @param attributeSecurity
054     */
055    public void setAttributeSecurity(AttributeSecurity attributeSecurity) {
056        this.attributeSecurity = attributeSecurity;
057    }
058
059}