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