Revision ca5fe165
Added by Andreas Kohlbecker over 11 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/application/ICdmApplicationConfiguration.java | ||
---|---|---|
1 | 1 |
// $Id$ |
2 | 2 |
/** |
3 | 3 |
* Copyright (C) 2007 EDIT |
4 |
* European Distributed Institute of Taxonomy
|
|
4 |
* European Distributed Institute of Taxonomy |
|
5 | 5 |
* http://www.e-taxonomy.eu |
6 |
*
|
|
6 |
* |
|
7 | 7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
8 | 8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
9 | 9 |
*/ |
10 | 10 |
|
11 | 11 |
package eu.etaxonomy.cdm.api.application; |
12 | 12 |
|
13 |
import org.springframework.security.access.PermissionEvaluator; |
|
13 | 14 |
import org.springframework.security.authentication.ProviderManager; |
14 | 15 |
import org.springframework.transaction.PlatformTransactionManager; |
15 | 16 |
import org.springframework.transaction.TransactionStatus; |
... | ... | |
40 | 41 |
import eu.etaxonomy.cdm.api.service.IVocabularyService; |
41 | 42 |
import eu.etaxonomy.cdm.api.service.IWorkingSetService; |
42 | 43 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
44 |
import eu.etaxonomy.cdm.persistence.hibernate.permission.CdmPermissionEvaluator; |
|
43 | 45 |
|
44 | 46 |
/** |
45 | 47 |
* @author a.mueller |
... | ... | |
48 | 50 |
*/ |
49 | 51 |
public interface ICdmApplicationConfiguration { |
50 | 52 |
|
51 |
public TransactionStatus startTransaction(); |
|
52 |
|
|
53 |
public TransactionStatus startTransaction(Boolean readOnly); |
|
54 |
|
|
55 |
public void commitTransaction(TransactionStatus tx); |
|
56 |
|
|
57 |
public Object getBean(String string); |
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
/** |
|
62 |
* @return |
|
63 |
*/ |
|
64 |
public INameService getNameService(); |
|
65 |
|
|
66 |
/** |
|
67 |
* @return |
|
68 |
*/ |
|
69 |
public ITaxonService getTaxonService(); |
|
70 |
|
|
71 |
/** |
|
72 |
* @return |
|
73 |
*/ |
|
74 |
public IClassificationService getClassificationService(); |
|
75 |
|
|
76 |
/** |
|
77 |
* |
|
78 |
* @return |
|
79 |
*/ |
|
80 |
public ITaxonNodeService getTaxonNodeService(); |
|
81 |
|
|
82 |
/** |
|
83 |
* @return |
|
84 |
*/ |
|
85 |
public IReferenceService getReferenceService(); |
|
86 |
|
|
87 |
/** |
|
88 |
* @return |
|
89 |
*/ |
|
90 |
public IAgentService getAgentService(); |
|
91 |
|
|
92 |
/** |
|
93 |
* @return |
|
94 |
*/ |
|
95 |
public IDescriptionService getDescriptionService(); |
|
96 |
|
|
97 |
/** |
|
98 |
* @return |
|
99 |
*/ |
|
100 |
public IOccurrenceService getOccurrenceService(); |
|
101 |
|
|
102 |
/** |
|
103 |
* @return |
|
104 |
*/ |
|
105 |
public IMediaService getMediaService(); |
|
106 |
|
|
107 |
/** |
|
108 |
* @return |
|
109 |
*/ |
|
110 |
public IDatabaseService getDatabaseService(); |
|
111 |
|
|
112 |
/** |
|
113 |
* @return |
|
114 |
*/ |
|
115 |
public ITermService getTermService(); |
|
116 |
|
|
117 |
/** |
|
118 |
* @return |
|
119 |
*/ |
|
120 |
public ICommonService getCommonService(); |
|
121 |
|
|
122 |
/** |
|
123 |
* |
|
124 |
* @return |
|
125 |
*/ |
|
126 |
public ILocationService getLocationService(); |
|
127 |
|
|
128 |
/** |
|
129 |
* |
|
130 |
* @return |
|
131 |
*/ |
|
132 |
public IUserService getUserService(); |
|
133 |
|
|
134 |
|
|
135 |
/** |
|
136 |
* |
|
137 |
* @return |
|
138 |
*/ |
|
139 |
public IGroupService getGroupService(); |
|
140 |
|
|
141 |
/** |
|
142 |
* @return |
|
143 |
*/ |
|
144 |
public IService<CdmBase> getMainService(); |
|
145 |
|
|
146 |
|
|
147 |
/** |
|
148 |
* @return |
|
149 |
*/ |
|
150 |
public IWorkingSetService getWorkingSetService(); |
|
151 |
|
|
152 |
/** |
|
153 |
* @return |
|
154 |
*/ |
|
155 |
public PlatformTransactionManager getTransactionManager(); |
|
156 |
|
|
157 |
|
|
158 |
/** |
|
159 |
* |
|
160 |
* @return |
|
161 |
*/ |
|
162 |
public ProviderManager getAuthenticationManager(); |
|
163 |
|
|
164 |
/** |
|
165 |
* @return |
|
166 |
*/ |
|
167 |
public ConversationHolder NewConversation(); |
|
168 |
|
|
169 |
/** |
|
170 |
* |
|
171 |
* @return |
|
172 |
*/ |
|
173 |
public ICollectionService getCollectionService(); |
|
174 |
|
|
175 |
/** |
|
176 |
* |
|
177 |
* @return |
|
178 |
*/ |
|
179 |
public IFeatureTreeService getFeatureTreeService(); |
|
180 |
|
|
181 |
/** |
|
182 |
* |
|
183 |
* @return |
|
184 |
*/ |
|
185 |
public IFeatureNodeService getFeatureNodeService(); |
|
186 |
|
|
187 |
/** |
|
188 |
* |
|
189 |
* @return |
|
190 |
*/ |
|
191 |
public IVocabularyService getVocabularyService(); |
|
192 |
|
|
193 |
/** |
|
194 |
* @return |
|
195 |
*/ |
|
196 |
public IIdentificationKeyService getIdentificationKeyService(); |
|
197 |
|
|
198 |
/** |
|
199 |
* @return |
|
200 |
*/ |
|
201 |
public IPolytomousKeyService getPolytomousKeyService(); |
|
202 |
|
|
203 |
/** |
|
204 |
* @return |
|
205 |
*/ |
|
206 |
public IPolytomousKeyNodeService getPolytomousKeyNodeService(); |
|
207 |
|
|
208 |
|
|
209 |
|
|
53 |
public TransactionStatus startTransaction(); |
|
54 |
|
|
55 |
public TransactionStatus startTransaction(Boolean readOnly); |
|
56 |
|
|
57 |
public void commitTransaction(TransactionStatus tx); |
|
58 |
|
|
59 |
public Object getBean(String string); |
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
/** |
|
64 |
* @return |
|
65 |
*/ |
|
66 |
public INameService getNameService(); |
|
67 |
|
|
68 |
/** |
|
69 |
* @return |
|
70 |
*/ |
|
71 |
public ITaxonService getTaxonService(); |
|
72 |
|
|
73 |
/** |
|
74 |
* @return |
|
75 |
*/ |
|
76 |
public IClassificationService getClassificationService(); |
|
77 |
|
|
78 |
/** |
|
79 |
* |
|
80 |
* @return |
|
81 |
*/ |
|
82 |
public ITaxonNodeService getTaxonNodeService(); |
|
83 |
|
|
84 |
/** |
|
85 |
* @return |
|
86 |
*/ |
|
87 |
public IReferenceService getReferenceService(); |
|
88 |
|
|
89 |
/** |
|
90 |
* @return |
|
91 |
*/ |
|
92 |
public IAgentService getAgentService(); |
|
93 |
|
|
94 |
/** |
|
95 |
* @return |
|
96 |
*/ |
|
97 |
public IDescriptionService getDescriptionService(); |
|
98 |
|
|
99 |
/** |
|
100 |
* @return |
|
101 |
*/ |
|
102 |
public IOccurrenceService getOccurrenceService(); |
|
103 |
|
|
104 |
/** |
|
105 |
* @return |
|
106 |
*/ |
|
107 |
public IMediaService getMediaService(); |
|
108 |
|
|
109 |
/** |
|
110 |
* @return |
|
111 |
*/ |
|
112 |
public IDatabaseService getDatabaseService(); |
|
113 |
|
|
114 |
/** |
|
115 |
* @return |
|
116 |
*/ |
|
117 |
public ITermService getTermService(); |
|
118 |
|
|
119 |
/** |
|
120 |
* @return |
|
121 |
*/ |
|
122 |
public ICommonService getCommonService(); |
|
123 |
|
|
124 |
/** |
|
125 |
* |
|
126 |
* @return |
|
127 |
*/ |
|
128 |
public ILocationService getLocationService(); |
|
129 |
|
|
130 |
/** |
|
131 |
* |
|
132 |
* @return |
|
133 |
*/ |
|
134 |
public IUserService getUserService(); |
|
135 |
|
|
136 |
|
|
137 |
/** |
|
138 |
* |
|
139 |
* @return |
|
140 |
*/ |
|
141 |
public IGroupService getGroupService(); |
|
142 |
|
|
143 |
/** |
|
144 |
* @return |
|
145 |
*/ |
|
146 |
public IService<CdmBase> getMainService(); |
|
147 |
|
|
148 |
|
|
149 |
/** |
|
150 |
* @return |
|
151 |
*/ |
|
152 |
public IWorkingSetService getWorkingSetService(); |
|
153 |
|
|
154 |
/** |
|
155 |
* @return |
|
156 |
*/ |
|
157 |
public PlatformTransactionManager getTransactionManager(); |
|
158 |
|
|
159 |
|
|
160 |
/** |
|
161 |
* |
|
162 |
* @return |
|
163 |
*/ |
|
164 |
public ProviderManager getAuthenticationManager(); |
|
165 |
|
|
166 |
/** |
|
167 |
* @return |
|
168 |
*/ |
|
169 |
public ConversationHolder NewConversation(); |
|
170 |
|
|
171 |
/** |
|
172 |
* |
|
173 |
* @return |
|
174 |
*/ |
|
175 |
public ICollectionService getCollectionService(); |
|
176 |
|
|
177 |
/** |
|
178 |
* |
|
179 |
* @return |
|
180 |
*/ |
|
181 |
public IFeatureTreeService getFeatureTreeService(); |
|
182 |
|
|
183 |
/** |
|
184 |
* |
|
185 |
* @return |
|
186 |
*/ |
|
187 |
public IFeatureNodeService getFeatureNodeService(); |
|
188 |
|
|
189 |
/** |
|
190 |
* |
|
191 |
* @return |
|
192 |
*/ |
|
193 |
public IVocabularyService getVocabularyService(); |
|
194 |
|
|
195 |
/** |
|
196 |
* @return |
|
197 |
*/ |
|
198 |
public IIdentificationKeyService getIdentificationKeyService(); |
|
199 |
|
|
200 |
/** |
|
201 |
* @return |
|
202 |
*/ |
|
203 |
public IPolytomousKeyService getPolytomousKeyService(); |
|
204 |
|
|
205 |
/** |
|
206 |
* @return |
|
207 |
*/ |
|
208 |
public IPolytomousKeyNodeService getPolytomousKeyNodeService(); |
|
209 |
|
|
210 |
/** |
|
211 |
* @return the configured PermissionEvaluator, usually the {@link CdmPermissionEvaluator} |
|
212 |
*/ |
|
213 |
public PermissionEvaluator getPermissionEvaluator(); |
|
214 |
|
|
215 |
|
|
216 |
|
|
210 | 217 |
} |
Also available in: Unified diff
fixing #3094 (security: make PermissionEvaluator and/or methods available via ApplicationController) & also removing hasPermission() from IService