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
018/**
019 * Action field security adds the take action flags to the standard component security
020 *
021 * @author Kuali Rice Team (rice.collab@kuali.org)
022 */
023public class ActionFieldSecurity extends FieldSecurity {
024    private static final long serialVersionUID = 585138507596582667L;
025
026    private boolean performActionAuthz;
027    private boolean performLineActionAuthz;
028
029    public ActionFieldSecurity() {
030        super();
031
032        performActionAuthz = false;
033        performLineActionAuthz = false;
034    }
035
036    /**
037     * Indicates whether the action field has take action authorization and KIM should be consulted
038     *
039     * @return boolean true if the action field has perform action authorization, false if not
040     */
041    public boolean isPerformActionAuthz() {
042        return performActionAuthz;
043    }
044
045    /**
046     * Setter for the perform action authorization flag
047     *
048     * @param performActionAuthz
049     */
050    public void setPerformActionAuthz(boolean performActionAuthz) {
051        this.performActionAuthz = performActionAuthz;
052    }
053
054    /**
055     * Indicates whether the line action field has take action authorization and KIM should be consulted
056     *
057     * @return boolean true if the line action field has perform action authorization, false if not
058     */
059    public boolean isPerformLineActionAuthz() {
060        return performLineActionAuthz;
061    }
062
063    /**
064     * Setter for the perform line action authorization flag
065     *
066     * @param performLineActionAuthz
067     */
068    public void setPerformLineActionAuthz(boolean performLineActionAuthz) {
069        this.performLineActionAuthz = performLineActionAuthz;
070    }
071}