Coverage Report - org.kuali.rice.krad.service.KRADServiceLocatorWeb
 
Classes in this File Line Coverage Branch Coverage Complexity
KRADServiceLocatorWeb
0%
0/30
N/A
1
 
 1  
 package org.kuali.rice.krad.service;
 2  
 
 3  
 import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader;
 4  
 import org.kuali.rice.krad.lookup.Lookupable;
 5  
 import org.kuali.rice.krad.question.Question;
 6  
 import org.kuali.rice.krad.uif.service.AttributeQueryService;
 7  
 import org.kuali.rice.krad.uif.service.ExpressionEvaluatorService;
 8  
 import org.kuali.rice.krad.uif.service.ViewDictionaryService;
 9  
 import org.kuali.rice.krad.uif.service.ViewService;
 10  
 import org.kuali.rice.krad.workflow.service.KualiWorkflowInfo;
 11  
 import org.kuali.rice.krad.workflow.service.WorkflowDocumentService;
 12  
 
 13  
 /**
 14  
  * Service locator for the KRAD Web module
 15  
  *
 16  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 17  
  */
 18  0
 public class KRADServiceLocatorWeb {
 19  
 
 20  
     public static final String DOCUMENT_DICTIONARY_SERVICE = "documentDictionaryService";
 21  
     public static final String SESSION_DOCUMENT_SERVICE = "sessionDocumentService";
 22  
     public static final String DATA_OBJECT_AUTHORIZATION_SERVICE = "dataObjectAuthorizationService";
 23  
     public static final String MAINTENANCE_DOCUMENT_SERVICE = "maintenanceDocumentService";
 24  
     public static final String WORKFLOW_DOCUMENT_SERVICE = "workflowDocumentService";
 25  
     public static final String EXCEPTION_INCIDENT_REPORT_SERVICE = "kradExceptionIncidentService";
 26  
     public static final String DATA_DICTIONARY_SERVICE = "dataDictionaryService";
 27  
     public static final String BUSINESS_OBJECT_DICTIONARY_SERVICE = "businessObjectDictionaryService";
 28  
     public static final String DOCUMENT_HEADER_SERVICE = "documentHeaderService";
 29  
     public static final String PESSIMISTIC_LOCK_SERVICE = "pessimisticLockService";
 30  
     public static final String PERSISTENCE_SERVICE_OJB = "persistenceServiceOjb";
 31  
     public static final String KUALI_MODULE_SERVICE = "kualiModuleService";
 32  
     public static final String DOCUMENT_HELPER_SERVICE = "documentHelperService";
 33  
     public static final String KUALI_RULE_SERVICE = "kualiRuleService";
 34  
     public static final String DOCUMENT_SERVICE = "documentService";
 35  
     public static final String WORKFLOW_INFO_SERVICE = "workflowInfoService";
 36  
     public static final String DOCUMENT_SERIALIZER_SERVICE = "documentSerializerService";
 37  
     public static final String LOOKUP_SERVICE = "lookupService";
 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 RICE_APPLICATION_CONFIGURATION_MEDIATION_SERVICE = "riceApplicationConfigurationMediationService";
 41  
     public static final String DATA_OBJECT_METADATA_SERVICE = "dataObjectMetaDataService";
 42  
     public static final String EXPRESSION_EVALUATOR_SERVICE = "expressionEvaluatorService";
 43  
     public static final String VIEW_SERVICE = "viewService";
 44  
     public static final String VIEW_DICTIONARY_SERVICE = "viewDictionaryService";
 45  
     public static final String ATTRIBUTE_QUERY_SERVICE = "attributeQueryService";
 46  
 
 47  
     public static <T extends Object> T getService(String serviceName) {
 48  0
         return GlobalResourceLoader.<T>getService(serviceName);
 49  
     }
 50  
 
 51  
     public static DocumentDictionaryService getDocumentDictionaryService() {
 52  0
         return  getService(DOCUMENT_DICTIONARY_SERVICE);
 53  
     }
 54  
 
 55  
     public static SessionDocumentService getSessionDocumentService() {
 56  0
         return  getService(SESSION_DOCUMENT_SERVICE);
 57  
     }
 58  
 
 59  
     public static DataObjectAuthorizationService getDataObjectAuthorizationService() {
 60  0
         return getService(DATA_OBJECT_AUTHORIZATION_SERVICE);
 61  
     }
 62  
 
 63  
     public static MaintenanceDocumentService getMaintenanceDocumentService() {
 64  0
         return getService(MAINTENANCE_DOCUMENT_SERVICE);
 65  
     }
 66  
 
 67  
     public static WorkflowDocumentService getWorkflowDocumentService() {
 68  0
         return getService(WORKFLOW_DOCUMENT_SERVICE);
 69  
     }
 70  
 
 71  
     public static final KualiExceptionIncidentService getKualiExceptionIncidentService() {
 72  0
         return getService(EXCEPTION_INCIDENT_REPORT_SERVICE);
 73  
     }
 74  
 
 75  
     public static DataDictionaryService getDataDictionaryService() {
 76  0
         return getService(DATA_DICTIONARY_SERVICE);
 77  
     }
 78  
 
 79  
     public static BusinessObjectDictionaryService getBusinessObjectDictionaryService() {
 80  0
         return getService(BUSINESS_OBJECT_DICTIONARY_SERVICE);
 81  
     }
 82  
 
 83  
     public static DocumentHeaderService getDocumentHeaderService() {
 84  0
         return getService(DOCUMENT_HEADER_SERVICE);
 85  
     }
 86  
 
 87  
     public static PessimisticLockService getPessimisticLockService() {
 88  0
         return getService(PESSIMISTIC_LOCK_SERVICE);
 89  
     }
 90  
 
 91  
     public static Lookupable getLookupable(String lookupableName) {
 92  0
         return getService(lookupableName);
 93  
     }
 94  
 
 95  
     public static PersistenceService getPersistenceServiceOjb() {
 96  0
         return getService(PERSISTENCE_SERVICE_OJB);
 97  
     }
 98  
 
 99  
     public static KualiModuleService getKualiModuleService() {
 100  0
         return getService(KUALI_MODULE_SERVICE);
 101  
     }
 102  
 
 103  
     public static DocumentHelperService getDocumentHelperService() {
 104  0
         return getService(DOCUMENT_HELPER_SERVICE);
 105  
     }
 106  
 
 107  
     public static KualiRuleService getKualiRuleService() {
 108  0
         return getService(KUALI_RULE_SERVICE);
 109  
     }
 110  
 
 111  
     public static DocumentService getDocumentService() {
 112  0
         return getService(DOCUMENT_SERVICE);
 113  
     }
 114  
 
 115  
     public static KualiWorkflowInfo getWorkflowInfoService() {
 116  0
         return (KualiWorkflowInfo) getService(WORKFLOW_INFO_SERVICE);
 117  
     }
 118  
 
 119  
     public static DocumentSerializerService getDocumentSerializerService() {
 120  0
         return (DocumentSerializerService) getService(DOCUMENT_SERIALIZER_SERVICE);
 121  
     }
 122  
 
 123  
     public static LookupService getLookupService() {
 124  0
         return (LookupService) getService(LOOKUP_SERVICE);
 125  
     }
 126  
 
 127  
     public static DictionaryValidationService getDictionaryValidationService() {
 128  0
         return (DictionaryValidationService) getService(DICTIONARY_VALIDATION_SERVICE);
 129  
     }
 130  
 
 131  
     public static InactivationBlockingDetectionService getInactivationBlockingDetectionService(String serviceName) {
 132  0
         return (InactivationBlockingDetectionService) getService(serviceName);
 133  
     }
 134  
 
 135  
     public static RiceApplicationConfigurationMediationService getRiceApplicationConfigurationMediationService() {
 136  0
             return (RiceApplicationConfigurationMediationService) getService(RICE_APPLICATION_CONFIGURATION_MEDIATION_SERVICE);
 137  
     }
 138  
 
 139  
         public static Question getQuestion(String questionName) {
 140  0
                 return (Question) getService(questionName);
 141  
         }
 142  
 
 143  
         public static DataObjectMetaDataService getDataObjectMetaDataService() {
 144  0
                 return (DataObjectMetaDataService) getService(DATA_OBJECT_METADATA_SERVICE);
 145  
         }
 146  
 
 147  
         public static ExpressionEvaluatorService getExpressionEvaluatorService() {
 148  0
                 return (ExpressionEvaluatorService) getService(EXPRESSION_EVALUATOR_SERVICE);
 149  
         }
 150  
 
 151  
         public static ViewService getViewService() {
 152  0
                 return (ViewService) getService(VIEW_SERVICE);
 153  
         }
 154  
 
 155  
         public static ViewDictionaryService getViewDictionaryService() {
 156  0
                 return (ViewDictionaryService) getService(VIEW_DICTIONARY_SERVICE);
 157  
         }
 158  
 
 159  
     public static AttributeQueryService getAttributeQueryService() {
 160  0
         return (AttributeQueryService) getService(ATTRIBUTE_QUERY_SERVICE);
 161  
     }
 162  
 }