1
|
// $Id: CdmApplicationDefaultConfiguration.java 11680 2011-04-04 17:07:39Z a.mueller $
|
2
|
/**
|
3
|
* Copyright (C) 2007 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
|
11
|
package eu.etaxonomy.cdm.api.application;
|
12
|
|
13
|
import org.apache.log4j.Logger;
|
14
|
import org.springframework.beans.factory.annotation.Autowired;
|
15
|
import org.springframework.security.authentication.ProviderManager;
|
16
|
import org.springframework.stereotype.Component;
|
17
|
import org.springframework.transaction.PlatformTransactionManager;
|
18
|
import org.springframework.transaction.TransactionStatus;
|
19
|
|
20
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
21
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolderMock;
|
22
|
import eu.etaxonomy.cdm.api.service.IAgentService;
|
23
|
import eu.etaxonomy.cdm.api.service.IClassificationService;
|
24
|
import eu.etaxonomy.cdm.api.service.ICollectionService;
|
25
|
import eu.etaxonomy.cdm.api.service.ICommonService;
|
26
|
import eu.etaxonomy.cdm.api.service.IDatabaseService;
|
27
|
import eu.etaxonomy.cdm.api.service.IDescriptionService;
|
28
|
import eu.etaxonomy.cdm.api.service.IFeatureNodeService;
|
29
|
import eu.etaxonomy.cdm.api.service.IFeatureTreeService;
|
30
|
import eu.etaxonomy.cdm.api.service.IGroupService;
|
31
|
import eu.etaxonomy.cdm.api.service.IIdentificationKeyService;
|
32
|
import eu.etaxonomy.cdm.api.service.ILocationService;
|
33
|
import eu.etaxonomy.cdm.api.service.IMediaService;
|
34
|
import eu.etaxonomy.cdm.api.service.INameService;
|
35
|
import eu.etaxonomy.cdm.api.service.IOccurrenceService;
|
36
|
import eu.etaxonomy.cdm.api.service.IPolytomousKeyNodeService;
|
37
|
import eu.etaxonomy.cdm.api.service.IPolytomousKeyService;
|
38
|
import eu.etaxonomy.cdm.api.service.IReferenceService;
|
39
|
import eu.etaxonomy.cdm.api.service.IService;
|
40
|
import eu.etaxonomy.cdm.api.service.ITaxonNodeService;
|
41
|
import eu.etaxonomy.cdm.api.service.ITaxonService;
|
42
|
import eu.etaxonomy.cdm.api.service.ITermService;
|
43
|
import eu.etaxonomy.cdm.api.service.IUserService;
|
44
|
import eu.etaxonomy.cdm.api.service.IVocabularyService;
|
45
|
import eu.etaxonomy.cdm.api.service.IWorkingSetService;
|
46
|
import eu.etaxonomy.cdm.model.common.CdmBase;
|
47
|
|
48
|
/**
|
49
|
* @author a.mueller
|
50
|
* @created 21.05.2008
|
51
|
* @version 1.0
|
52
|
*/
|
53
|
/**
|
54
|
* @author a.mueller
|
55
|
* @author j.koch
|
56
|
*/
|
57
|
@Component
|
58
|
public class CdmApplicationRemoteDefaultConfiguration implements ICdmApplicationRemoteConfiguration {
|
59
|
@SuppressWarnings("unused")
|
60
|
private static final Logger logger = Logger.getLogger(CdmApplicationRemoteDefaultConfiguration.class);
|
61
|
|
62
|
@Autowired
|
63
|
//@Qualifier("nameService")
|
64
|
private INameService nameService;
|
65
|
@Autowired
|
66
|
//@Qualifier("taxonService")
|
67
|
private ITaxonService taxonService;
|
68
|
@Autowired
|
69
|
//@Qualifier("classificationService")
|
70
|
private IClassificationService classificationService;
|
71
|
@Autowired
|
72
|
//@Qualifier("referenceService")
|
73
|
private IReferenceService referenceService;
|
74
|
@Autowired
|
75
|
//@Qualifier("agentService")
|
76
|
private IAgentService agentService;
|
77
|
@Autowired
|
78
|
//@Qualifier("termService")
|
79
|
private ITermService termService;
|
80
|
@Autowired
|
81
|
//@Qualifier("descriptionService")
|
82
|
private IDescriptionService descriptionService;
|
83
|
@Autowired
|
84
|
//@Qualifier("occurrenceService")
|
85
|
private IOccurrenceService occurrenceService;
|
86
|
@Autowired
|
87
|
//@Qualifier("mediaService")
|
88
|
private IMediaService mediaService;
|
89
|
@Autowired
|
90
|
//@Qualifier("commonService")
|
91
|
private ICommonService commonService;
|
92
|
@Autowired
|
93
|
private ILocationService locationService;
|
94
|
@Autowired
|
95
|
private IUserService userService;
|
96
|
@Autowired
|
97
|
private IGroupService groupService;
|
98
|
@Autowired
|
99
|
private ICollectionService collectionService;
|
100
|
@Autowired
|
101
|
private IFeatureTreeService featureTreeService;
|
102
|
@Autowired
|
103
|
private IFeatureNodeService featureNodeService;
|
104
|
@Autowired
|
105
|
private IVocabularyService vocabularyService;
|
106
|
@Autowired
|
107
|
private ITaxonNodeService taxonNodeService;
|
108
|
@Autowired
|
109
|
private IIdentificationKeyService identificationKeyService;
|
110
|
@Autowired
|
111
|
private IPolytomousKeyService polytomousKeyService;
|
112
|
@Autowired
|
113
|
private IPolytomousKeyNodeService polytomousKeyNodeService;
|
114
|
|
115
|
// @Autowired
|
116
|
//@Qualifier("mainService")
|
117
|
private IService<CdmBase> mainService;
|
118
|
|
119
|
@Autowired
|
120
|
private IWorkingSetService workingSetService;
|
121
|
@Autowired
|
122
|
private ProviderManager authenticationManager;
|
123
|
|
124
|
/**
|
125
|
*
|
126
|
*/
|
127
|
public CdmApplicationRemoteDefaultConfiguration() {
|
128
|
}
|
129
|
|
130
|
/* (non-Javadoc)
|
131
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getAgentService()
|
132
|
*/
|
133
|
public IAgentService getAgentService() {
|
134
|
return this.agentService;
|
135
|
}
|
136
|
|
137
|
/* (non-Javadoc)
|
138
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getNameService()
|
139
|
*/
|
140
|
public INameService getNameService() {
|
141
|
return this.nameService;
|
142
|
}
|
143
|
|
144
|
/* (non-Javadoc)
|
145
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getReferenceService()
|
146
|
*/
|
147
|
public IReferenceService getReferenceService() {
|
148
|
return this.referenceService;
|
149
|
}
|
150
|
|
151
|
/* (non-Javadoc)
|
152
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getTaxonService()
|
153
|
*/
|
154
|
public ITaxonService getTaxonService() {
|
155
|
return this.taxonService;
|
156
|
}
|
157
|
|
158
|
|
159
|
/* (non-Javadoc)
|
160
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getClassificationService()
|
161
|
*/
|
162
|
public IClassificationService getClassificationService() {
|
163
|
return this.classificationService;
|
164
|
}
|
165
|
|
166
|
public ITaxonNodeService getTaxonNodeService(){
|
167
|
return this.taxonNodeService;
|
168
|
}
|
169
|
|
170
|
/* (non-Javadoc)
|
171
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getDescriptionService()
|
172
|
*/
|
173
|
public IDescriptionService getDescriptionService(){
|
174
|
return this.descriptionService;
|
175
|
}
|
176
|
|
177
|
/*
|
178
|
* (non-Javadoc)
|
179
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getOccurrenceService()
|
180
|
*/
|
181
|
public IOccurrenceService getOccurrenceService(){
|
182
|
return this.occurrenceService;
|
183
|
}
|
184
|
|
185
|
/*
|
186
|
* (non-Javadoc)
|
187
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getMediaService()
|
188
|
*/
|
189
|
public IMediaService getMediaService(){
|
190
|
return this.mediaService;
|
191
|
}
|
192
|
|
193
|
/* (non-Javadoc)
|
194
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getTermService()
|
195
|
*/
|
196
|
public ITermService getTermService() {
|
197
|
return this.termService;
|
198
|
}
|
199
|
|
200
|
/* (non-Javadoc)
|
201
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getCommonService()
|
202
|
*/
|
203
|
public ICommonService getCommonService(){
|
204
|
return this.commonService;
|
205
|
}
|
206
|
|
207
|
/* (non-Javadoc)
|
208
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getLocationService()
|
209
|
*/
|
210
|
public ILocationService getLocationService() {
|
211
|
return this.locationService;
|
212
|
}
|
213
|
|
214
|
/* (non-Javadoc)
|
215
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getUserService()
|
216
|
*/
|
217
|
public IUserService getUserService() {
|
218
|
return this.userService;
|
219
|
}
|
220
|
|
221
|
/* (non-Javadoc)
|
222
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getCommonService()
|
223
|
*/
|
224
|
public IService<CdmBase> getMainService(){
|
225
|
return this.mainService;
|
226
|
}
|
227
|
|
228
|
/*
|
229
|
* (non-Javadoc)
|
230
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getCollectionService()
|
231
|
*/
|
232
|
public ICollectionService getCollectionService() {
|
233
|
return collectionService;
|
234
|
}
|
235
|
|
236
|
/*
|
237
|
* (non-Javadoc)
|
238
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getFeatureTreeService()
|
239
|
*/
|
240
|
public IFeatureTreeService getFeatureTreeService() {
|
241
|
return featureTreeService;
|
242
|
}
|
243
|
|
244
|
/*
|
245
|
* (non-Javadoc)
|
246
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getFeatureNodeService()
|
247
|
*/
|
248
|
public IFeatureNodeService getFeatureNodeService(){
|
249
|
return featureNodeService;
|
250
|
}
|
251
|
|
252
|
/*
|
253
|
* (non-Javadoc)
|
254
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getVocabularyService()
|
255
|
*/
|
256
|
public IVocabularyService getVocabularyService() {
|
257
|
return vocabularyService;
|
258
|
}
|
259
|
|
260
|
/* (non-Javadoc)
|
261
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getIdentificationKeyService()
|
262
|
*/
|
263
|
public IIdentificationKeyService getIdentificationKeyService(){
|
264
|
return identificationKeyService;
|
265
|
}
|
266
|
|
267
|
/* (non-Javadoc)
|
268
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getPolytomousKeyService()
|
269
|
*/
|
270
|
public IPolytomousKeyService getPolytomousKeyService(){
|
271
|
return polytomousKeyService;
|
272
|
}
|
273
|
|
274
|
public IPolytomousKeyNodeService getPolytomousKeyNodeService(){
|
275
|
return polytomousKeyNodeService;
|
276
|
}
|
277
|
|
278
|
/* (non-Javadoc)
|
279
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getWorkingSetService()
|
280
|
*/
|
281
|
@Override
|
282
|
public IWorkingSetService getWorkingSetService() {
|
283
|
return workingSetService;
|
284
|
}
|
285
|
|
286
|
/* (non-Javadoc)
|
287
|
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationRemoteConfiguration#getGroupService()
|
288
|
*/
|
289
|
@Override
|
290
|
public IGroupService getGroupService() {
|
291
|
return groupService;
|
292
|
}
|
293
|
|
294
|
@Override
|
295
|
public IDatabaseService getDatabaseService() {
|
296
|
// TODO Auto-generated method stub
|
297
|
return null;
|
298
|
}
|
299
|
|
300
|
@Override
|
301
|
public ProviderManager getAuthenticationManager() {
|
302
|
return authenticationManager;
|
303
|
}
|
304
|
|
305
|
@Override
|
306
|
public TransactionStatus startTransaction() {
|
307
|
// TODO Auto-generated method stub
|
308
|
return null;
|
309
|
}
|
310
|
|
311
|
@Override
|
312
|
public TransactionStatus startTransaction(Boolean readOnly) {
|
313
|
// TODO Auto-generated method stub
|
314
|
return null;
|
315
|
}
|
316
|
|
317
|
@Override
|
318
|
public void commitTransaction(TransactionStatus tx) {
|
319
|
// TODO Auto-generated method stub
|
320
|
|
321
|
}
|
322
|
|
323
|
@Override
|
324
|
public Object getBean(String string) {
|
325
|
// TODO Auto-generated method stub
|
326
|
return null;
|
327
|
}
|
328
|
|
329
|
@Override
|
330
|
public PlatformTransactionManager getTransactionManager() {
|
331
|
// TODO Auto-generated method stub
|
332
|
return null;
|
333
|
}
|
334
|
|
335
|
@Override
|
336
|
public ConversationHolder NewConversation() {
|
337
|
return new ConversationHolderMock();
|
338
|
}
|
339
|
|
340
|
}
|