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 /** 19 * Action field security adds the take action flags to the standard component security 20 * 21 * @author Kuali Rice Team (rice.collab@kuali.org) 22 */ 23 public class ActionFieldSecurity extends FieldSecurity { 24 private static final long serialVersionUID = 585138507596582667L; 25 26 private boolean performActionAuthz; 27 private boolean performLineActionAuthz; 28 29 public ActionFieldSecurity() { 30 super(); 31 32 performActionAuthz = false; 33 performLineActionAuthz = false; 34 } 35 36 /** 37 * Indicates whether the action field has take action authorization and KIM should be consulted 38 * 39 * @return boolean true if the action field has perform action authorization, false if not 40 */ 41 public boolean isPerformActionAuthz() { 42 return performActionAuthz; 43 } 44 45 /** 46 * Setter for the perform action authorization flag 47 * 48 * @param performActionAuthz 49 */ 50 public void setPerformActionAuthz(boolean performActionAuthz) { 51 this.performActionAuthz = performActionAuthz; 52 } 53 54 /** 55 * Indicates whether the line action field has take action authorization and KIM should be consulted 56 * 57 * @return boolean true if the line action field has perform action authorization, false if not 58 */ 59 public boolean isPerformLineActionAuthz() { 60 return performLineActionAuthz; 61 } 62 63 /** 64 * Setter for the perform line action authorization flag 65 * 66 * @param performLineActionAuthz 67 */ 68 public void setPerformLineActionAuthz(boolean performLineActionAuthz) { 69 this.performLineActionAuthz = performLineActionAuthz; 70 } 71 }