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