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