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