Coverage Report - org.kuali.rice.krad.document.authorization.MaintenanceDocumentPresentationControllerBase
 
Classes in this File Line Coverage Branch Coverage Complexity
MaintenanceDocumentPresentationControllerBase
0%
0/10
0%
0/2
1.143
 
 1  
 /*
 2  
  * Copyright 2007-2008 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.document.authorization;
 17  
 
 18  
 import java.util.HashSet;
 19  
 import java.util.Set;
 20  
 
 21  
 import org.kuali.rice.krad.bo.BusinessObject;
 22  
 import org.kuali.rice.krad.document.MaintenanceDocument;
 23  
 import org.kuali.rice.krad.service.KRADServiceLocatorWeb;
 24  
 import org.kuali.rice.krad.service.MaintenanceDocumentDictionaryService;
 25  
 
 26  
 /**
 27  
  * Base class for all MaintenanceDocumentPresentationControllers.
 28  
  */
 29  0
 public class MaintenanceDocumentPresentationControllerBase extends
 30  
                 DocumentPresentationControllerBase implements
 31  
         MaintenanceDocumentPresentationController {
 32  
 //        private static final Logger LOG = Logger
 33  
 //                        .getLogger(MaintenanceDocumentPresentationControllerBase.class);
 34  
 
 35  
         protected static MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService;
 36  
 
 37  
         public boolean canCreate(Class boClass) {
 38  0
                 return getMaintenanceDocumentDictionaryService().getAllowsNewOrCopy(
 39  
                                 getMaintenanceDocumentDictionaryService().getDocumentTypeName(
 40  
                                                 boClass));
 41  
         }
 42  
 
 43  
         public Set<String> getConditionallyHiddenPropertyNames(
 44  
                         BusinessObject businessObject) {
 45  0
                 return new HashSet<String>();
 46  
         }
 47  
 
 48  
         public Set<String> getConditionallyHiddenSectionIds(
 49  
                         BusinessObject businessObject) {
 50  0
                 return new HashSet<String>();
 51  
         }
 52  
 
 53  
         public Set<String> getConditionallyReadOnlyPropertyNames(
 54  
                         MaintenanceDocument document) {
 55  0
                 return new HashSet<String>();
 56  
         }
 57  
 
 58  
         public Set<String> getConditionallyReadOnlySectionIds(
 59  
                         MaintenanceDocument document) {
 60  0
                 return new HashSet<String>();
 61  
         }
 62  
         
 63  
         public Set<String> getConditionallyRequiredPropertyNames(
 64  
                         MaintenanceDocument document) {
 65  0
                 return new HashSet<String>();
 66  
         }        
 67  
 
 68  
         public static MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService() {
 69  0
                 if (maintenanceDocumentDictionaryService == null) {
 70  0
                         maintenanceDocumentDictionaryService = KRADServiceLocatorWeb.getMaintenanceDocumentDictionaryService();
 71  
 
 72  
                 }
 73  0
                 return maintenanceDocumentDictionaryService;
 74  
         }
 75  
 
 76  
 }