View Javadoc

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