| 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.WorkflowDocumentService; |
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | 0 | public class KRADServiceLocatorWeb { |
| 18 | |
|
| 19 | |
public static final String DOCUMENT_DICTIONARY_SERVICE = "documentDictionaryService"; |
| 20 | |
public static final String SESSION_DOCUMENT_SERVICE = "sessionDocumentService"; |
| 21 | |
public static final String DATA_OBJECT_AUTHORIZATION_SERVICE = "dataObjectAuthorizationService"; |
| 22 | |
public static final String MAINTENANCE_DOCUMENT_SERVICE = "maintenanceDocumentService"; |
| 23 | |
public static final String WORKFLOW_DOCUMENT_SERVICE = "workflowDocumentService"; |
| 24 | |
public static final String EXCEPTION_INCIDENT_REPORT_SERVICE = "kradExceptionIncidentService"; |
| 25 | |
public static final String DATA_DICTIONARY_SERVICE = "dataDictionaryService"; |
| 26 | |
public static final String BUSINESS_OBJECT_DICTIONARY_SERVICE = "businessObjectDictionaryService"; |
| 27 | |
public static final String DOCUMENT_HEADER_SERVICE = "documentHeaderService"; |
| 28 | |
public static final String PESSIMISTIC_LOCK_SERVICE = "pessimisticLockService"; |
| 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 DOCUMENT_SERIALIZER_SERVICE = "documentSerializerService"; |
| 35 | |
public static final String LOOKUP_SERVICE = "lookupService"; |
| 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 RICE_APPLICATION_CONFIGURATION_MEDIATION_SERVICE = "riceApplicationConfigurationMediationService"; |
| 39 | |
public static final String DATA_OBJECT_METADATA_SERVICE = "dataObjectMetaDataService"; |
| 40 | |
public static final String EXPRESSION_EVALUATOR_SERVICE = "expressionEvaluatorService"; |
| 41 | |
public static final String VIEW_SERVICE = "viewService"; |
| 42 | |
public static final String VIEW_DICTIONARY_SERVICE = "viewDictionaryService"; |
| 43 | |
public static final String ATTRIBUTE_QUERY_SERVICE = "attributeQueryService"; |
| 44 | |
|
| 45 | |
public static <T extends Object> T getService(String serviceName) { |
| 46 | 0 | return GlobalResourceLoader.<T>getService(serviceName); |
| 47 | |
} |
| 48 | |
|
| 49 | |
public static DocumentDictionaryService getDocumentDictionaryService() { |
| 50 | 0 | return getService(DOCUMENT_DICTIONARY_SERVICE); |
| 51 | |
} |
| 52 | |
|
| 53 | |
public static SessionDocumentService getSessionDocumentService() { |
| 54 | 0 | return getService(SESSION_DOCUMENT_SERVICE); |
| 55 | |
} |
| 56 | |
|
| 57 | |
public static DataObjectAuthorizationService getDataObjectAuthorizationService() { |
| 58 | 0 | return getService(DATA_OBJECT_AUTHORIZATION_SERVICE); |
| 59 | |
} |
| 60 | |
|
| 61 | |
public static MaintenanceDocumentService getMaintenanceDocumentService() { |
| 62 | 0 | return getService(MAINTENANCE_DOCUMENT_SERVICE); |
| 63 | |
} |
| 64 | |
|
| 65 | |
public static WorkflowDocumentService getWorkflowDocumentService() { |
| 66 | 0 | return getService(WORKFLOW_DOCUMENT_SERVICE); |
| 67 | |
} |
| 68 | |
|
| 69 | |
public static final KualiExceptionIncidentService getKualiExceptionIncidentService() { |
| 70 | 0 | return getService(EXCEPTION_INCIDENT_REPORT_SERVICE); |
| 71 | |
} |
| 72 | |
|
| 73 | |
public static DataDictionaryService getDataDictionaryService() { |
| 74 | 0 | return getService(DATA_DICTIONARY_SERVICE); |
| 75 | |
} |
| 76 | |
|
| 77 | |
public static BusinessObjectDictionaryService getBusinessObjectDictionaryService() { |
| 78 | 0 | return getService(BUSINESS_OBJECT_DICTIONARY_SERVICE); |
| 79 | |
} |
| 80 | |
|
| 81 | |
public static DocumentHeaderService getDocumentHeaderService() { |
| 82 | 0 | return getService(DOCUMENT_HEADER_SERVICE); |
| 83 | |
} |
| 84 | |
|
| 85 | |
public static PessimisticLockService getPessimisticLockService() { |
| 86 | 0 | return getService(PESSIMISTIC_LOCK_SERVICE); |
| 87 | |
} |
| 88 | |
|
| 89 | |
public static Lookupable getLookupable(String lookupableName) { |
| 90 | 0 | return getService(lookupableName); |
| 91 | |
} |
| 92 | |
|
| 93 | |
public static PersistenceService getPersistenceServiceOjb() { |
| 94 | 0 | return getService(PERSISTENCE_SERVICE_OJB); |
| 95 | |
} |
| 96 | |
|
| 97 | |
public static KualiModuleService getKualiModuleService() { |
| 98 | 0 | return getService(KUALI_MODULE_SERVICE); |
| 99 | |
} |
| 100 | |
|
| 101 | |
public static DocumentHelperService getDocumentHelperService() { |
| 102 | 0 | return getService(DOCUMENT_HELPER_SERVICE); |
| 103 | |
} |
| 104 | |
|
| 105 | |
public static KualiRuleService getKualiRuleService() { |
| 106 | 0 | return getService(KUALI_RULE_SERVICE); |
| 107 | |
} |
| 108 | |
|
| 109 | |
public static DocumentService getDocumentService() { |
| 110 | 0 | return getService(DOCUMENT_SERVICE); |
| 111 | |
} |
| 112 | |
|
| 113 | |
public static DocumentSerializerService getDocumentSerializerService() { |
| 114 | 0 | return (DocumentSerializerService) getService(DOCUMENT_SERIALIZER_SERVICE); |
| 115 | |
} |
| 116 | |
|
| 117 | |
public static LookupService getLookupService() { |
| 118 | 0 | return (LookupService) getService(LOOKUP_SERVICE); |
| 119 | |
} |
| 120 | |
|
| 121 | |
public static DictionaryValidationService getDictionaryValidationService() { |
| 122 | 0 | return (DictionaryValidationService) getService(DICTIONARY_VALIDATION_SERVICE); |
| 123 | |
} |
| 124 | |
|
| 125 | |
public static InactivationBlockingDetectionService getInactivationBlockingDetectionService(String serviceName) { |
| 126 | 0 | return (InactivationBlockingDetectionService) getService(serviceName); |
| 127 | |
} |
| 128 | |
|
| 129 | |
public static RiceApplicationConfigurationMediationService getRiceApplicationConfigurationMediationService() { |
| 130 | 0 | return (RiceApplicationConfigurationMediationService) getService(RICE_APPLICATION_CONFIGURATION_MEDIATION_SERVICE); |
| 131 | |
} |
| 132 | |
|
| 133 | |
public static Question getQuestion(String questionName) { |
| 134 | 0 | return (Question) getService(questionName); |
| 135 | |
} |
| 136 | |
|
| 137 | |
public static DataObjectMetaDataService getDataObjectMetaDataService() { |
| 138 | 0 | return (DataObjectMetaDataService) getService(DATA_OBJECT_METADATA_SERVICE); |
| 139 | |
} |
| 140 | |
|
| 141 | |
public static ExpressionEvaluatorService getExpressionEvaluatorService() { |
| 142 | 0 | return (ExpressionEvaluatorService) getService(EXPRESSION_EVALUATOR_SERVICE); |
| 143 | |
} |
| 144 | |
|
| 145 | |
public static ViewService getViewService() { |
| 146 | 0 | return (ViewService) getService(VIEW_SERVICE); |
| 147 | |
} |
| 148 | |
|
| 149 | |
public static ViewDictionaryService getViewDictionaryService() { |
| 150 | 0 | return (ViewDictionaryService) getService(VIEW_DICTIONARY_SERVICE); |
| 151 | |
} |
| 152 | |
|
| 153 | |
public static AttributeQueryService getAttributeQueryService() { |
| 154 | 0 | return (AttributeQueryService) getService(ATTRIBUTE_QUERY_SERVICE); |
| 155 | |
} |
| 156 | |
} |