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.container; 017 018import org.kuali.rice.krad.uif.component.ComponentSecurity; 019 020/** 021 * Collection Group security is used to flag that permissions exist for the associated {@link CollectionGroup} 022 * in KIM and should be checked to determine the associated group, line, and field state. In particular this adds 023 * the edit line and view line flags 024 * 025 * <p> 026 * In addition, properties such as additional role and permission details can be configured to use when 027 * checking the KIM permissions 028 * </p> 029 * 030 * @author Kuali Rice Team (rice.collab@kuali.org) 031 */ 032public class CollectionGroupSecurity extends ComponentSecurity { 033 private static final long serialVersionUID = 1134455196763917062L; 034 035 private boolean editLineAuthz; 036 private boolean viewLineAuthz; 037 038 public CollectionGroupSecurity() { 039 super(); 040 041 editLineAuthz = false; 042 viewLineAuthz = false; 043 } 044 045 /** 046 * Indicates whether the collection group line has edit authorization and KIM should be consulted 047 * 048 * @return boolean true if the line has edit authorization, false if not 049 */ 050 public boolean isEditLineAuthz() { 051 return editLineAuthz; 052 } 053 054 /** 055 * Setter for the edit line authorization flag 056 * 057 * @param editLineAuthz 058 */ 059 public void setEditLineAuthz(boolean editLineAuthz) { 060 this.editLineAuthz = editLineAuthz; 061 } 062 063 /** 064 * Indicates whether the collection group line has view authorization and KIM should be consulted 065 * 066 * @return boolean true if the line has view authorization, false if not 067 */ 068 public boolean isViewLineAuthz() { 069 return viewLineAuthz; 070 } 071 072 /** 073 * Setter for the view line authorization flag 074 * 075 * @param viewLineAuthz 076 */ 077 public void setViewLineAuthz(boolean viewLineAuthz) { 078 this.viewLineAuthz = viewLineAuthz; 079 } 080 081}