Coverage Report - org.kuali.rice.kns.service.KNSServiceLocatorWeb
 
Classes in this File Line Coverage Branch Coverage Complexity
KNSServiceLocatorWeb
0%
0/33
N/A
1
 
 1  
 package org.kuali.rice.kns.service;
 2  
 
 3  
 import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader;
 4  
 import org.kuali.rice.kns.inquiry.Inquirable;
 5  
 import org.kuali.rice.kns.lookup.LookupResultsService;
 6  
 import org.kuali.rice.kns.lookup.Lookupable;
 7  
 import org.kuali.rice.kns.question.Question;
 8  
 import org.kuali.rice.kns.uif.service.ExpressionEvaluatorService;
 9  
 import org.kuali.rice.kns.uif.service.ViewDictionaryService;
 10  
 import org.kuali.rice.kns.uif.service.ViewService;
 11  
 import org.kuali.rice.kns.workflow.service.KualiWorkflowInfo;
 12  
 import org.kuali.rice.kns.workflow.service.WorkflowDocumentService;
 13  
 
 14  0
 public class KNSServiceLocatorWeb {
 15  
 
 16  
     public static final String SESSION_DOCUMENT_SERVICE = "sessionDocumentService";
 17  
     public static final String BUSINESS_OBJECT_AUTHORIZATION_SERVICE = "businessObjectAuthorizationService";
 18  
     public static final String MAINTENANCE_DOCUMENT_SERVICE = "maintenanceDocumentService";
 19  
     public static final String WORKFLOW_DOCUMENT_SERVICE = "workflowDocumentService";
 20  
     public static final String EXCEPTION_INCIDENT_REPORT_SERVICE = "knsExceptionIncidentService";
 21  
     public static final String MAINTENANCE_DOCUMENT_DICTIONARY_SERVICE = "maintenanceDocumentDictionaryService";
 22  
     public static final String DATA_DICTIONARY_SERVICE = "dataDictionaryService";
 23  
     public static final String KUALI_INQUIRABLE = "kualiInquirable";
 24  
     public static final String BUSINESS_OBJECT_METADATA_SERVICE = "businessObjectMetaDataService";
 25  
     public static final String BUSINESS_OBJECT_DICTIONARY_SERVICE = "businessObjectDictionaryService";
 26  
     public static final String DOCUMENT_HEADER_SERVICE = "documentHeaderService";
 27  
     public static final String PESSIMISTIC_LOCK_SERVICE = "pessimisticLockService";
 28  
     public static final String KUALI_LOOKUPABLE = "kualiLookupable";
 29  
     public static final String PERSISTENCE_SERVICE_OJB = "persistenceServiceOjb";
 30  
     public static final String KUALI_MODULE_SERVICE = "kualiModuleService";
 31  
     public static final String DOCUMENT_HELPER_SERVICE = "documentHelperService";
 32  
     public static final String KUALI_RULE_SERVICE = "kualiRuleService";
 33  
     public static final String DOCUMENT_SERVICE = "documentService";
 34  
     public static final String WORKFLOW_INFO_SERVICE = "workflowInfoService";
 35  
     public static final String DOCUMENT_SERIALIZER_SERVICE = "documentSerializerService";
 36  
     public static final String LOOKUP_SERVICE = "lookupService";
 37  
     public static final String LOOKUP_RESULTS_SERVICE = "lookupResultsService";
 38  
     public static final String DICTIONARY_VALIDATION_SERVICE = "dictionaryValidationService";
 39  
     public static final String DEFAULT_INACTIVATION_BLOCKING_DETECTION_SERVICE = "inactivationBlockingDetectionService";
 40  
     public static final String TRANSACTIONAL_DOCUMENT_DICTIONARY_SERVICE = "transactionalDocumentDictionaryService";
 41  
     public static final String RICE_APPLICATION_CONFIGURATION_MEDIATION_SERVICE = "riceApplicationConfigurationMediationService";
 42  
     public static final String DATA_OBJECT_METADATA_SERVICE = "dataObjectMetaDataService";
 43  
     public static final String EXPRESSION_EVALUATOR_SERVICE = "expressionEvaluatorService";
 44  
     public static final String VIEW_SERVICE = "viewService";
 45  
     public static final String VIEW_DICTIONARY_SERVICE = "viewDictionaryService";
 46  
 
 47  
     public static <T extends Object> T getService(String serviceName) {
 48  0
         return GlobalResourceLoader.<T>getService(serviceName);
 49  
     }
 50  
 
 51  
     public static SessionDocumentService getSessionDocumentService() {
 52  0
         return  getService(SESSION_DOCUMENT_SERVICE);
 53  
     }
 54  
 
 55  
     public static BusinessObjectAuthorizationService getBusinessObjectAuthorizationService() {
 56  0
         return  KNSServiceLocator.getService(BUSINESS_OBJECT_AUTHORIZATION_SERVICE);
 57  
     }
 58  
 
 59  
     public static MaintenanceDocumentService getMaintenanceDocumentService() {
 60  0
         return getService(MAINTENANCE_DOCUMENT_SERVICE);
 61  
     }
 62  
 
 63  
     public static WorkflowDocumentService getWorkflowDocumentService() {
 64  0
         return getService(WORKFLOW_DOCUMENT_SERVICE);
 65  
     }
 66  
 
 67  
     public static final KualiExceptionIncidentService getKualiExceptionIncidentService() {
 68  0
         return getService(EXCEPTION_INCIDENT_REPORT_SERVICE);
 69  
     }
 70  
 
 71  
     public static MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService() {
 72  0
         return getService(MAINTENANCE_DOCUMENT_DICTIONARY_SERVICE);
 73  
     }
 74  
 
 75  
     public static DataDictionaryService getDataDictionaryService() {
 76  0
         return getService(DATA_DICTIONARY_SERVICE);
 77  
     }
 78  
 
 79  
     public static Inquirable getKualiInquirable() {
 80  0
         return getService(KUALI_INQUIRABLE);
 81  
     }
 82  
 
 83  
     public static BusinessObjectMetaDataService getBusinessObjectMetaDataService() {
 84  0
         return getService(BUSINESS_OBJECT_METADATA_SERVICE);
 85  
     }
 86  
 
 87  
     public static BusinessObjectDictionaryService getBusinessObjectDictionaryService() {
 88  0
         return getService(BUSINESS_OBJECT_DICTIONARY_SERVICE);
 89  
     }
 90  
 
 91  
     public static DocumentHeaderService getDocumentHeaderService() {
 92  0
         return getService(DOCUMENT_HEADER_SERVICE);
 93  
     }
 94  
 
 95  
     public static PessimisticLockService getPessimisticLockService() {
 96  0
         return getService(PESSIMISTIC_LOCK_SERVICE);
 97  
     }
 98  
 
 99  
     public static Lookupable getLookupable(String lookupableName) {
 100  0
         return getService(lookupableName);
 101  
     }
 102  
 
 103  
     public static PersistenceService getPersistenceServiceOjb() {
 104  0
         return getService(PERSISTENCE_SERVICE_OJB);
 105  
     }
 106  
 
 107  
     public static KualiModuleService getKualiModuleService() {
 108  0
         return getService(KUALI_MODULE_SERVICE);
 109  
     }
 110  
 
 111  
     public static DocumentHelperService getDocumentHelperService() {
 112  0
         return getService(DOCUMENT_HELPER_SERVICE);
 113  
     }
 114  
 
 115  
     public static KualiRuleService getKualiRuleService() {
 116  0
         return getService(KUALI_RULE_SERVICE);
 117  
     }
 118  
 
 119  
     public static DocumentService getDocumentService() {
 120  0
         return getService(DOCUMENT_SERVICE);
 121  
     }
 122  
 
 123  
     public static KualiWorkflowInfo getWorkflowInfoService() {
 124  0
         return (KualiWorkflowInfo) getService(WORKFLOW_INFO_SERVICE);
 125  
     }
 126  
 
 127  
     public static DocumentSerializerService getDocumentSerializerService() {
 128  0
         return (DocumentSerializerService) getService(DOCUMENT_SERIALIZER_SERVICE);
 129  
     }
 130  
 
 131  
     public static LookupService getLookupService() {
 132  0
         return (LookupService) getService(LOOKUP_SERVICE);
 133  
     }
 134  
 
 135  
     public static LookupResultsService getLookupResultsService() {
 136  0
         return (LookupResultsService) getService(LOOKUP_RESULTS_SERVICE);
 137  
     }
 138  
 
 139  
     public static DictionaryValidationService getDictionaryValidationService() {
 140  0
         return (DictionaryValidationService) getService(DICTIONARY_VALIDATION_SERVICE);
 141  
     }
 142  
 
 143  
     public static InactivationBlockingDetectionService getInactivationBlockingDetectionService(String serviceName) {
 144  0
         return (InactivationBlockingDetectionService) getService(serviceName);
 145  
     }
 146  
 
 147  
     public static TransactionalDocumentDictionaryService getTransactionalDocumentDictionaryService() {
 148  0
         return (TransactionalDocumentDictionaryService) getService(TRANSACTIONAL_DOCUMENT_DICTIONARY_SERVICE);
 149  
     }
 150  
 
 151  
     public static RiceApplicationConfigurationMediationService getRiceApplicationConfigurationMediationService() {
 152  0
             return (RiceApplicationConfigurationMediationService) getService(RICE_APPLICATION_CONFIGURATION_MEDIATION_SERVICE);
 153  
     }
 154  
 
 155  
         public static Question getQuestion(String questionName) {
 156  0
                 return (Question) getService(questionName);
 157  
         }
 158  
 
 159  
         public static DataObjectMetaDataService getDataObjectMetaDataService() {
 160  0
                 return (DataObjectMetaDataService) getService(DATA_OBJECT_METADATA_SERVICE);
 161  
         }
 162  
 
 163  
         public static ExpressionEvaluatorService getExpressionEvaluatorService() {
 164  0
                 return (ExpressionEvaluatorService) getService(EXPRESSION_EVALUATOR_SERVICE);
 165  
         }
 166  
 
 167  
         public static ViewService getViewService() {
 168  0
                 return (ViewService) getService(VIEW_SERVICE);
 169  
         }
 170  
 
 171  
         public static ViewDictionaryService getViewDictionaryService() {
 172  0
                 return (ViewDictionaryService) getService(VIEW_DICTIONARY_SERVICE);
 173  
         }
 174  
 }