Revision 29dea790
Added by Andreas Müller over 1 year ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/CdmStore.java | ||
---|---|---|
27 | 27 |
import eu.etaxonomy.cdm.api.application.CdmApplicationState; |
28 | 28 |
import eu.etaxonomy.cdm.api.application.ICdmRepository; |
29 | 29 |
import eu.etaxonomy.cdm.api.cache.CdmServiceCacher; |
30 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
|
31 | 30 |
import eu.etaxonomy.cdm.api.service.IAgentService; |
32 | 31 |
import eu.etaxonomy.cdm.api.service.IAnnotationService; |
33 | 32 |
import eu.etaxonomy.cdm.api.service.IClassificationService; |
... | ... | |
311 | 310 |
return null; |
312 | 311 |
} |
313 | 312 |
|
314 |
/* |
|
315 |
* CONVERSATIONS |
|
316 |
*/ |
|
317 |
|
|
318 |
/** |
|
319 |
* Creates a new conversation, binds resources to the conversation and start |
|
320 |
* a transaction for this conversation. |
|
321 |
* |
|
322 |
* @return a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} |
|
323 |
* object. |
|
324 |
*/ |
|
325 |
public static ConversationHolder createConversation() { |
|
326 |
ConversationHolder conversation = getCurrentApplicationConfiguration() |
|
327 |
.NewConversation(); |
|
328 |
try { |
|
329 |
conversation.startTransaction(); |
|
330 |
}catch(Exception e){ |
|
331 |
MessagingUtils.messageDialog("No database connection", CdmStore.class, "No database connection available", e); |
|
332 |
} |
|
333 |
return conversation; |
|
334 |
} |
|
335 |
|
|
336 |
//FIXME:Remoting should be removed after moving completely to remoting |
|
337 |
private MockCdmEntitySessionManager mockCdmEntitySessionManager; |
|
338 |
|
|
339 | 313 |
private ICdmEntitySessionManager getSessionManager() { |
340 | 314 |
return getCurrentApplicationConfiguration().getCdmEntitySessionManager(); |
341 | 315 |
} |
Also available in: Unified diff
ref #10186 further remove ConversationHolder from TaxEditor code and some cleanup (cont.)