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.AttributeQueryService; |
9 | |
import org.kuali.rice.kns.uif.service.ExpressionEvaluatorService; |
10 | |
import org.kuali.rice.kns.uif.service.ViewDictionaryService; |
11 | |
import org.kuali.rice.kns.uif.service.ViewService; |
12 | |
import org.kuali.rice.kns.workflow.service.KualiWorkflowInfo; |
13 | |
import org.kuali.rice.kns.workflow.service.WorkflowDocumentService; |
14 | |
|
15 | 0 | public class KNSServiceLocatorWeb { |
16 | |
|
17 | |
public static final String SESSION_DOCUMENT_SERVICE = "sessionDocumentService"; |
18 | |
public static final String BUSINESS_OBJECT_AUTHORIZATION_SERVICE = "businessObjectAuthorizationService"; |
19 | |
public static final String MAINTENANCE_DOCUMENT_SERVICE = "maintenanceDocumentService"; |
20 | |
public static final String WORKFLOW_DOCUMENT_SERVICE = "workflowDocumentService"; |
21 | |
public static final String EXCEPTION_INCIDENT_REPORT_SERVICE = "knsExceptionIncidentService"; |
22 | |
public static final String MAINTENANCE_DOCUMENT_DICTIONARY_SERVICE = "maintenanceDocumentDictionaryService"; |
23 | |
public static final String DATA_DICTIONARY_SERVICE = "dataDictionaryService"; |
24 | |
public static final String KUALI_INQUIRABLE = "kualiInquirable"; |
25 | |
public static final String BUSINESS_OBJECT_METADATA_SERVICE = "businessObjectMetaDataService"; |
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 KUALI_LOOKUPABLE = "kualiLookupable"; |
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 LOOKUP_RESULTS_SERVICE = "lookupResultsService"; |
39 | |
public static final String DICTIONARY_VALIDATION_SERVICE = "dictionaryValidationService"; |
40 | |
public static final String DEFAULT_INACTIVATION_BLOCKING_DETECTION_SERVICE = "inactivationBlockingDetectionService"; |
41 | |
public static final String TRANSACTIONAL_DOCUMENT_DICTIONARY_SERVICE = "transactionalDocumentDictionaryService"; |
42 | |
public static final String RICE_APPLICATION_CONFIGURATION_MEDIATION_SERVICE = "riceApplicationConfigurationMediationService"; |
43 | |
public static final String DATA_OBJECT_METADATA_SERVICE = "dataObjectMetaDataService"; |
44 | |
public static final String EXPRESSION_EVALUATOR_SERVICE = "expressionEvaluatorService"; |
45 | |
public static final String VIEW_SERVICE = "viewService"; |
46 | |
public static final String VIEW_DICTIONARY_SERVICE = "viewDictionaryService"; |
47 | |
public static final String ATTRIBUTE_QUERY_SERVICE = "attributeQueryService"; |
48 | |
|
49 | |
public static <T extends Object> T getService(String serviceName) { |
50 | 0 | return GlobalResourceLoader.<T>getService(serviceName); |
51 | |
} |
52 | |
|
53 | |
public static SessionDocumentService getSessionDocumentService() { |
54 | 0 | return getService(SESSION_DOCUMENT_SERVICE); |
55 | |
} |
56 | |
|
57 | |
public static BusinessObjectAuthorizationService getBusinessObjectAuthorizationService() { |
58 | 0 | return KNSServiceLocator.getService(BUSINESS_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 MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService() { |
74 | 0 | return getService(MAINTENANCE_DOCUMENT_DICTIONARY_SERVICE); |
75 | |
} |
76 | |
|
77 | |
public static DataDictionaryService getDataDictionaryService() { |
78 | 0 | return getService(DATA_DICTIONARY_SERVICE); |
79 | |
} |
80 | |
|
81 | |
public static Inquirable getKualiInquirable() { |
82 | 0 | return getService(KUALI_INQUIRABLE); |
83 | |
} |
84 | |
|
85 | |
public static BusinessObjectMetaDataService getBusinessObjectMetaDataService() { |
86 | 0 | return getService(BUSINESS_OBJECT_METADATA_SERVICE); |
87 | |
} |
88 | |
|
89 | |
public static BusinessObjectDictionaryService getBusinessObjectDictionaryService() { |
90 | 0 | return getService(BUSINESS_OBJECT_DICTIONARY_SERVICE); |
91 | |
} |
92 | |
|
93 | |
public static DocumentHeaderService getDocumentHeaderService() { |
94 | 0 | return getService(DOCUMENT_HEADER_SERVICE); |
95 | |
} |
96 | |
|
97 | |
public static PessimisticLockService getPessimisticLockService() { |
98 | 0 | return getService(PESSIMISTIC_LOCK_SERVICE); |
99 | |
} |
100 | |
|
101 | |
public static Lookupable getLookupable(String lookupableName) { |
102 | 0 | return getService(lookupableName); |
103 | |
} |
104 | |
|
105 | |
public static PersistenceService getPersistenceServiceOjb() { |
106 | 0 | return getService(PERSISTENCE_SERVICE_OJB); |
107 | |
} |
108 | |
|
109 | |
public static KualiModuleService getKualiModuleService() { |
110 | 0 | return getService(KUALI_MODULE_SERVICE); |
111 | |
} |
112 | |
|
113 | |
public static DocumentHelperService getDocumentHelperService() { |
114 | 0 | return getService(DOCUMENT_HELPER_SERVICE); |
115 | |
} |
116 | |
|
117 | |
public static KualiRuleService getKualiRuleService() { |
118 | 0 | return getService(KUALI_RULE_SERVICE); |
119 | |
} |
120 | |
|
121 | |
public static DocumentService getDocumentService() { |
122 | 0 | return getService(DOCUMENT_SERVICE); |
123 | |
} |
124 | |
|
125 | |
public static KualiWorkflowInfo getWorkflowInfoService() { |
126 | 0 | return (KualiWorkflowInfo) getService(WORKFLOW_INFO_SERVICE); |
127 | |
} |
128 | |
|
129 | |
public static DocumentSerializerService getDocumentSerializerService() { |
130 | 0 | return (DocumentSerializerService) getService(DOCUMENT_SERIALIZER_SERVICE); |
131 | |
} |
132 | |
|
133 | |
public static LookupService getLookupService() { |
134 | 0 | return (LookupService) getService(LOOKUP_SERVICE); |
135 | |
} |
136 | |
|
137 | |
public static LookupResultsService getLookupResultsService() { |
138 | 0 | return (LookupResultsService) getService(LOOKUP_RESULTS_SERVICE); |
139 | |
} |
140 | |
|
141 | |
public static DictionaryValidationService getDictionaryValidationService() { |
142 | 0 | return (DictionaryValidationService) getService(DICTIONARY_VALIDATION_SERVICE); |
143 | |
} |
144 | |
|
145 | |
public static InactivationBlockingDetectionService getInactivationBlockingDetectionService(String serviceName) { |
146 | 0 | return (InactivationBlockingDetectionService) getService(serviceName); |
147 | |
} |
148 | |
|
149 | |
public static TransactionalDocumentDictionaryService getTransactionalDocumentDictionaryService() { |
150 | 0 | return (TransactionalDocumentDictionaryService) getService(TRANSACTIONAL_DOCUMENT_DICTIONARY_SERVICE); |
151 | |
} |
152 | |
|
153 | |
public static RiceApplicationConfigurationMediationService getRiceApplicationConfigurationMediationService() { |
154 | 0 | return (RiceApplicationConfigurationMediationService) getService(RICE_APPLICATION_CONFIGURATION_MEDIATION_SERVICE); |
155 | |
} |
156 | |
|
157 | |
public static Question getQuestion(String questionName) { |
158 | 0 | return (Question) getService(questionName); |
159 | |
} |
160 | |
|
161 | |
public static DataObjectMetaDataService getDataObjectMetaDataService() { |
162 | 0 | return (DataObjectMetaDataService) getService(DATA_OBJECT_METADATA_SERVICE); |
163 | |
} |
164 | |
|
165 | |
public static ExpressionEvaluatorService getExpressionEvaluatorService() { |
166 | 0 | return (ExpressionEvaluatorService) getService(EXPRESSION_EVALUATOR_SERVICE); |
167 | |
} |
168 | |
|
169 | |
public static ViewService getViewService() { |
170 | 0 | return (ViewService) getService(VIEW_SERVICE); |
171 | |
} |
172 | |
|
173 | |
public static ViewDictionaryService getViewDictionaryService() { |
174 | 0 | return (ViewDictionaryService) getService(VIEW_DICTIONARY_SERVICE); |
175 | |
} |
176 | |
|
177 | |
public static AttributeQueryService getAttributeQueryService() { |
178 | 0 | return (AttributeQueryService) getService(ATTRIBUTE_QUERY_SERVICE); |
179 | |
} |
180 | |
} |