Coverage Report - org.kuali.rice.krad.service.KRADServiceLocatorWeb
 
Classes in this File Line Coverage Branch Coverage Complexity
KRADServiceLocatorWeb
0%
0/30
N/A
1
KRADServiceLocatorWeb$Namespaces
0%
0/1
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2011 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.service;
 17  
 
 18  
 import org.kuali.rice.core.api.CoreConstants;
 19  
 import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader;
 20  
 import org.kuali.rice.krad.lookup.Lookupable;
 21  
 import org.kuali.rice.krad.question.Question;
 22  
 import org.kuali.rice.krad.uif.service.AttributeQueryService;
 23  
 import org.kuali.rice.krad.uif.service.ExpressionEvaluatorService;
 24  
 import org.kuali.rice.krad.uif.service.ViewDictionaryService;
 25  
 import org.kuali.rice.krad.uif.service.ViewService;
 26  
 import org.kuali.rice.krad.workflow.service.WorkflowDocumentService;
 27  
 
 28  
 import javax.xml.namespace.QName;
 29  
 
 30  
 /**
 31  
  * Service locator for the KRAD Web module
 32  
  *
 33  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 34  
  */
 35  0
 public class KRADServiceLocatorWeb {
 36  
 
 37  0
     public static final class Namespaces {
 38  
         public static final String MODULE_NAME = "krad";
 39  
         public static final String KRAD_NAMESPACE_PREFIX = CoreConstants.Namespaces.ROOT_NAMESPACE_PREFIX + "/" + MODULE_NAME;
 40  
 
 41  
         /**
 42  
          * Namespace for the krad module which is compatible with Kuali Rice 2.0.x.
 43  
          */
 44  
         public static final String KRAD_NAMESPACE_2_0 = KRAD_NAMESPACE_PREFIX + "/" + CoreConstants.Versions.VERSION_2_0;
 45  
 
 46  
     }
 47  
 
 48  
     public static final String DATA_DICTIONARY_REMOTE_FIELD_SERVICE = "dataDictionaryRemoteFieldService";
 49  
     public static final String DOCUMENT_DICTIONARY_SERVICE = "documentDictionaryService";
 50  
     public static final String SESSION_DOCUMENT_SERVICE = "sessionDocumentService";
 51  
     public static final String DATA_OBJECT_AUTHORIZATION_SERVICE = "dataObjectAuthorizationService";
 52  
     public static final String MAINTENANCE_DOCUMENT_SERVICE = "maintenanceDocumentService";
 53  
     public static final String WORKFLOW_DOCUMENT_SERVICE = "workflowDocumentService";
 54  
     public static final String EXCEPTION_INCIDENT_REPORT_SERVICE = "kradExceptionIncidentService";
 55  
     public static final String DATA_DICTIONARY_SERVICE = "dataDictionaryService";
 56  
     public static final String BUSINESS_OBJECT_DICTIONARY_SERVICE = "businessObjectDictionaryService";
 57  
     public static final String DOCUMENT_HEADER_SERVICE = "documentHeaderService";
 58  
     public static final String PESSIMISTIC_LOCK_SERVICE = "pessimisticLockService";
 59  
     public static final String PERSISTENCE_SERVICE_OJB = "persistenceServiceOjb";
 60  
     public static final String KUALI_MODULE_SERVICE = "kualiModuleService";
 61  
     public static final String DOCUMENT_HELPER_SERVICE = "documentHelperService";
 62  
     public static final String KUALI_RULE_SERVICE = "kualiRuleService";
 63  
     public static final String DOCUMENT_SERVICE = "documentService";
 64  
     public static final String DOCUMENT_SERIALIZER_SERVICE = "documentSerializerService";
 65  
     public static final String LOOKUP_SERVICE = "lookupService";
 66  
     public static final String DICTIONARY_VALIDATION_SERVICE = "dictionaryValidationService";
 67  
     public static final String DEFAULT_INACTIVATION_BLOCKING_DETECTION_SERVICE = "inactivationBlockingDetectionService";
 68  
     public static final String DATA_OBJECT_METADATA_SERVICE = "dataObjectMetaDataService";
 69  
     public static final String EXPRESSION_EVALUATOR_SERVICE = "expressionEvaluatorService";
 70  
     public static final String VIEW_SERVICE = "viewService";
 71  
     public static final String VIEW_DICTIONARY_SERVICE = "viewDictionaryService";
 72  
     public static final String ATTRIBUTE_QUERY_SERVICE = "attributeQueryService";
 73  
 
 74  
     public static <T extends Object> T getService(String serviceName) {
 75  0
         return GlobalResourceLoader.<T>getService(serviceName);
 76  
     }
 77  
 
 78  
     public static DocumentDictionaryService getDocumentDictionaryService() {
 79  0
         return  getService(DOCUMENT_DICTIONARY_SERVICE);
 80  
     }
 81  
 
 82  
     public static SessionDocumentService getSessionDocumentService() {
 83  0
         return  getService(SESSION_DOCUMENT_SERVICE);
 84  
     }
 85  
 
 86  
     public static DataObjectAuthorizationService getDataObjectAuthorizationService() {
 87  0
         return getService(DATA_OBJECT_AUTHORIZATION_SERVICE);
 88  
     }
 89  
 
 90  
     public static MaintenanceDocumentService getMaintenanceDocumentService() {
 91  0
         return getService(MAINTENANCE_DOCUMENT_SERVICE);
 92  
     }
 93  
 
 94  
     public static WorkflowDocumentService getWorkflowDocumentService() {
 95  0
         return getService(WORKFLOW_DOCUMENT_SERVICE);
 96  
     }
 97  
 
 98  
     public static final KualiExceptionIncidentService getKualiExceptionIncidentService() {
 99  0
         return getService(EXCEPTION_INCIDENT_REPORT_SERVICE);
 100  
     }
 101  
 
 102  
     public static DataDictionaryService getDataDictionaryService() {
 103  0
         return getService(DATA_DICTIONARY_SERVICE);
 104  
     }
 105  
 
 106  
     public static BusinessObjectDictionaryService getBusinessObjectDictionaryService() {
 107  0
         return getService(BUSINESS_OBJECT_DICTIONARY_SERVICE);
 108  
     }
 109  
 
 110  
     public static DocumentHeaderService getDocumentHeaderService() {
 111  0
         return getService(DOCUMENT_HEADER_SERVICE);
 112  
     }
 113  
 
 114  
     public static PessimisticLockService getPessimisticLockService() {
 115  0
         return getService(PESSIMISTIC_LOCK_SERVICE);
 116  
     }
 117  
 
 118  
     public static Lookupable getLookupable(String lookupableName) {
 119  0
         return getService(lookupableName);
 120  
     }
 121  
 
 122  
     public static PersistenceService getPersistenceServiceOjb() {
 123  0
         return getService(PERSISTENCE_SERVICE_OJB);
 124  
     }
 125  
 
 126  
     public static KualiModuleService getKualiModuleService() {
 127  0
         return getService(KUALI_MODULE_SERVICE);
 128  
     }
 129  
 
 130  
     public static DocumentHelperService getDocumentHelperService() {
 131  0
         return getService(DOCUMENT_HELPER_SERVICE);
 132  
     }
 133  
 
 134  
     public static KualiRuleService getKualiRuleService() {
 135  0
         return getService(KUALI_RULE_SERVICE);
 136  
     }
 137  
 
 138  
     public static DocumentService getDocumentService() {
 139  0
         return getService(DOCUMENT_SERVICE);
 140  
     }
 141  
 
 142  
     public static DocumentSerializerService getDocumentSerializerService() {
 143  0
         return (DocumentSerializerService) getService(DOCUMENT_SERIALIZER_SERVICE);
 144  
     }
 145  
 
 146  
     public static LookupService getLookupService() {
 147  0
         return (LookupService) getService(LOOKUP_SERVICE);
 148  
     }
 149  
 
 150  
     public static DictionaryValidationService getDictionaryValidationService() {
 151  0
         return (DictionaryValidationService) getService(DICTIONARY_VALIDATION_SERVICE);
 152  
     }
 153  
 
 154  
     public static InactivationBlockingDetectionService getInactivationBlockingDetectionService(String serviceName) {
 155  0
         return (InactivationBlockingDetectionService) getService(serviceName);
 156  
     }
 157  
 
 158  
         public static Question getQuestion(String questionName) {
 159  0
                 return (Question) getService(questionName);
 160  
         }
 161  
 
 162  
         public static DataObjectMetaDataService getDataObjectMetaDataService() {
 163  0
                 return (DataObjectMetaDataService) getService(DATA_OBJECT_METADATA_SERVICE);
 164  
         }
 165  
 
 166  
         public static ExpressionEvaluatorService getExpressionEvaluatorService() {
 167  0
                 return (ExpressionEvaluatorService) getService(EXPRESSION_EVALUATOR_SERVICE);
 168  
         }
 169  
 
 170  
         public static ViewService getViewService() {
 171  0
                 return (ViewService) getService(VIEW_SERVICE);
 172  
         }
 173  
 
 174  
         public static ViewDictionaryService getViewDictionaryService() {
 175  0
                 return (ViewDictionaryService) getService(VIEW_DICTIONARY_SERVICE);
 176  
         }
 177  
 
 178  
     public static AttributeQueryService getAttributeQueryService() {
 179  0
         return (AttributeQueryService) getService(ATTRIBUTE_QUERY_SERVICE);
 180  
     }
 181  
 
 182  
     public static DataDictionaryRemoteFieldService getDataDictionaryRemoteFieldService() {
 183  0
         return (DataDictionaryRemoteFieldService) getService(DATA_DICTIONARY_REMOTE_FIELD_SERVICE);
 184  
     }
 185  
 }