3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
11 package eu
.etaxonomy
.cdm
.api
.application
;
13 import org
.springframework
.security
.authentication
.ProviderManager
;
14 import org
.springframework
.transaction
.PlatformTransactionManager
;
15 import org
.springframework
.transaction
.TransactionStatus
;
17 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
18 import eu
.etaxonomy
.cdm
.api
.service
.IAgentService
;
19 import eu
.etaxonomy
.cdm
.api
.service
.IClassificationService
;
20 import eu
.etaxonomy
.cdm
.api
.service
.ICollectionService
;
21 import eu
.etaxonomy
.cdm
.api
.service
.ICommonService
;
22 import eu
.etaxonomy
.cdm
.api
.service
.IDatabaseService
;
23 import eu
.etaxonomy
.cdm
.api
.service
.IDescriptionService
;
24 import eu
.etaxonomy
.cdm
.api
.service
.IEntityConstraintViolationService
;
25 import eu
.etaxonomy
.cdm
.api
.service
.IEntityValidationResultService
;
26 import eu
.etaxonomy
.cdm
.api
.service
.IFeatureNodeService
;
27 import eu
.etaxonomy
.cdm
.api
.service
.IFeatureTreeService
;
28 import eu
.etaxonomy
.cdm
.api
.service
.IGrantedAuthorityService
;
29 import eu
.etaxonomy
.cdm
.api
.service
.IGroupService
;
30 import eu
.etaxonomy
.cdm
.api
.service
.IIdentificationKeyService
;
31 import eu
.etaxonomy
.cdm
.api
.service
.ILocationService
;
32 import eu
.etaxonomy
.cdm
.api
.service
.IMediaService
;
33 import eu
.etaxonomy
.cdm
.api
.service
.INameService
;
34 import eu
.etaxonomy
.cdm
.api
.service
.IOccurrenceService
;
35 import eu
.etaxonomy
.cdm
.api
.service
.IPolytomousKeyNodeService
;
36 import eu
.etaxonomy
.cdm
.api
.service
.IPolytomousKeyService
;
37 import eu
.etaxonomy
.cdm
.api
.service
.IReferenceService
;
38 import eu
.etaxonomy
.cdm
.api
.service
.IService
;
39 import eu
.etaxonomy
.cdm
.api
.service
.ITaxonNodeService
;
40 import eu
.etaxonomy
.cdm
.api
.service
.ITaxonService
;
41 import eu
.etaxonomy
.cdm
.api
.service
.ITermService
;
42 import eu
.etaxonomy
.cdm
.api
.service
.IUserService
;
43 import eu
.etaxonomy
.cdm
.api
.service
.IVocabularyService
;
44 import eu
.etaxonomy
.cdm
.api
.service
.IWorkingSetService
;
45 import eu
.etaxonomy
.cdm
.api
.service
.molecular
.IAmplificationService
;
46 import eu
.etaxonomy
.cdm
.api
.service
.molecular
.IPrimerService
;
47 import eu
.etaxonomy
.cdm
.api
.service
.molecular
.ISequenceService
;
48 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
49 import eu
.etaxonomy
.cdm
.persistence
.hibernate
.permission
.CdmPermissionEvaluator
;
50 import eu
.etaxonomy
.cdm
.persistence
.hibernate
.permission
.ICdmPermissionEvaluator
;
56 public interface ICdmApplicationConfiguration
{
58 public TransactionStatus
startTransaction();
61 public TransactionStatus
startTransaction(Boolean readOnly
);
64 public void commitTransaction(TransactionStatus tx
);
67 public Object
getBean(String string
);
73 public INameService
getNameService();
79 public ITaxonService
getTaxonService();
85 public IClassificationService
getClassificationService();
92 public ITaxonNodeService
getTaxonNodeService();
98 public IReferenceService
getReferenceService();
104 public IAgentService
getAgentService();
110 public IDescriptionService
getDescriptionService();
116 public IOccurrenceService
getOccurrenceService();
122 public IPrimerService
getPrimerService();
128 public IAmplificationService
getAmplificationService();
134 public ISequenceService
getSequenceService();
140 public IMediaService
getMediaService();
146 public IDatabaseService
getDatabaseService();
152 public ITermService
getTermService();
158 public ICommonService
getCommonService();
165 public ILocationService
getLocationService();
172 public IUserService
getUserService();
179 public IGroupService
getGroupService();
186 public IGrantedAuthorityService
getGrantedAuthorityService();
192 public IService
<CdmBase
> getMainService();
198 public IWorkingSetService
getWorkingSetService();
204 public PlatformTransactionManager
getTransactionManager();
211 public ProviderManager
getAuthenticationManager();
217 public ConversationHolder
NewConversation();
224 public ICollectionService
getCollectionService();
231 public IFeatureTreeService
getFeatureTreeService();
238 public IFeatureNodeService
getFeatureNodeService();
245 public IVocabularyService
getVocabularyService();
251 public IIdentificationKeyService
getIdentificationKeyService();
257 public IPolytomousKeyService
getPolytomousKeyService();
263 public IPolytomousKeyNodeService
getPolytomousKeyNodeService();
269 public IEntityValidationResultService
getEntityValidationResultService();
275 public IEntityConstraintViolationService
getEntityConstraintViolationService();
279 * @return the configured PermissionEvaluator, usually the
280 * {@link CdmPermissionEvaluator}
282 public ICdmPermissionEvaluator
getPermissionEvaluator();
285 void authenticate(String username
, String password
);