View Javadoc

1   /*
2    * Copyright 2011 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 1.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/ecl1.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.authorization;
17  
18  import org.kuali.rice.krad.util.KRADConstants;
19  import org.kuali.rice.krad.web.form.UifFormBase;
20  
21  import java.util.HashSet;
22  import java.util.Set;
23  
24  /**
25   * @author Kuali Rice Team (rice.collab@kuali.org)
26   */
27  public class PresentationControllerBase implements PresentationController {
28  
29      /**
30       * @see org.kuali.rice.krad.uif.authorization.PresentationController#getActionFlags(org.kuali.rice.krad.web.form.UifFormBase)
31       */
32      public Set<String> getActionFlags(UifFormBase model) {
33          Set<String> actions = new HashSet<String>();
34  
35          actions.add(KRADConstants.KUALI_ACTION_CAN_EDIT);
36  
37          return actions;
38      }
39  
40      /**
41       * @see org.kuali.rice.krad.uif.authorization.PresentationController#getEditModes(org.kuali.rice.krad.web.form.UifFormBase)
42       */
43      public Set<String> getEditModes(UifFormBase model) {
44          return new HashSet<String>();
45      }
46  
47      /**
48       * @see org.kuali.rice.krad.uif.authorization.PresentationController#getConditionallyHiddenPropertyNames(org.kuali.rice.krad.web.form.UifFormBase)
49       */
50      public Set<String> getConditionallyHiddenPropertyNames(UifFormBase model) {
51          return new HashSet<String>();
52      }
53  
54      /**
55       * @see org.kuali.rice.krad.uif.authorization.PresentationController#getConditionallyHiddenGroupIds(org.kuali.rice.krad.web.form.UifFormBase)
56       */
57      public Set<String> getConditionallyHiddenGroupIds(UifFormBase model) {
58          return new HashSet<String>();
59      }
60  
61      /**
62       * @see org.kuali.rice.krad.uif.authorization.PresentationController#getConditionallyReadOnlyPropertyNames(org.kuali.rice.krad.web.form.UifFormBase)
63       */
64      public Set<String> getConditionallyReadOnlyPropertyNames(UifFormBase model) {
65          return new HashSet<String>();
66      }
67  
68      /**
69       * @see org.kuali.rice.krad.uif.authorization.PresentationController#getConditionallyReadOnlyGroupIds(org.kuali.rice.krad.web.form.UifFormBase)
70       */
71      public Set<String> getConditionallyReadOnlyGroupIds(UifFormBase model) {
72          return new HashSet<String>();
73      }
74  
75      /**
76       * @see org.kuali.rice.krad.uif.authorization.PresentationController#getConditionallyRequiredPropertyNames(org.kuali.rice.krad.web.form.UifFormBase)
77       */
78      public Set<String> getConditionallyRequiredPropertyNames(UifFormBase model) {
79          return new HashSet<String>();
80      }
81  
82  }