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