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.uif.component.ComponentSecurity; 19 20 /** 21 * Field security adds the edit in line and view in line flags to the standard component security 22 * 23 * <p> 24 * These flags are only applicable when the field is part of a collection group. They indicate there is security 25 * on the field within the collection line 26 * </p> 27 * 28 * @author Kuali Rice Team (rice.collab@kuali.org) 29 */ 30 public class FieldSecurity extends ComponentSecurity { 31 32 private boolean editInLineAuthz; 33 private boolean viewInLineAuthz; 34 35 public FieldSecurity() { 36 super(); 37 38 editInLineAuthz = false; 39 viewInLineAuthz = false; 40 } 41 42 /** 43 * Indicates whether the field has edit in line authorization and KIM should be consulted 44 * 45 * @return boolean true if the field has edit in line authorization, false if not 46 */ 47 public boolean isEditInLineAuthz() { 48 return editInLineAuthz; 49 } 50 51 /** 52 * Setter for the edit in line authorization flag 53 * 54 * @param editInLineAuthz 55 */ 56 public void setEditInLineAuthz(boolean editInLineAuthz) { 57 this.editInLineAuthz = editInLineAuthz; 58 } 59 60 /** 61 * Indicates whether the field has view in line unmask authorization and KIM should be consulted 62 * 63 * @return boolean true if the field has view in line unmask authorization, false if not 64 */ 65 public boolean isViewInLineAuthz() { 66 return viewInLineAuthz; 67 } 68 69 /** 70 * Setter for the view in line authorization flag 71 * 72 * @param viewInLineAuthz 73 */ 74 public void setViewInLineAuthz(boolean viewInLineAuthz) { 75 this.viewInLineAuthz = viewInLineAuthz; 76 } 77 78 }