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.uif.component.ComponentSecurity;
019
020/**
021 * Field security adds the edit in line and view in line flags to the standard component security
022 *
023 * <p>
024 * These flags are only applicable when the field is part of a collection group. They indicate there is security
025 * on the field within the collection line
026 * </p>
027 *
028 * @author Kuali Rice Team (rice.collab@kuali.org)
029 */
030public class FieldSecurity extends ComponentSecurity {
031
032    private boolean editInLineAuthz;
033    private boolean viewInLineAuthz;
034
035    public FieldSecurity() {
036        super();
037
038        editInLineAuthz = false;
039        viewInLineAuthz = false;
040    }
041
042    /**
043     * Indicates whether the field has edit in line authorization and KIM should be consulted
044     *
045     * @return boolean true if the field has edit in line authorization, false if not
046     */
047    public boolean isEditInLineAuthz() {
048        return editInLineAuthz;
049    }
050
051    /**
052     * Setter for the edit in line authorization flag
053     *
054     * @param editInLineAuthz
055     */
056    public void setEditInLineAuthz(boolean editInLineAuthz) {
057        this.editInLineAuthz = editInLineAuthz;
058    }
059
060    /**
061     * Indicates whether the field has view in line unmask authorization and KIM should be consulted
062     *
063     * @return boolean true if the field has view in line unmask authorization, false if not
064     */
065    public boolean isViewInLineAuthz() {
066        return viewInLineAuthz;
067    }
068
069    /**
070     * Setter for the view in line authorization flag
071     *
072     * @param viewInLineAuthz
073     */
074    public void setViewInLineAuthz(boolean viewInLineAuthz) {
075        this.viewInLineAuthz = viewInLineAuthz;
076    }
077
078}