Revision 5c9343bd
Added by Cherian Mathew about 9 years ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/session/ICdmEntitySessionManager.java | ||
---|---|---|
6 | 6 |
|
7 | 7 |
public interface ICdmEntitySessionManager { |
8 | 8 |
|
9 |
public abstract ICdmEntitySession newSession(ISessionEventListener sessionOwner, boolean setAsActive);
|
|
9 |
public abstract ICdmEntitySession newSession(ICdmEntitySessionEnabled sessionOwner, boolean setAsActive);
|
|
10 | 10 |
|
11 |
public abstract void bind(ISessionEventListener sessionOwner);
|
|
11 |
public abstract void bind(ICdmEntitySessionEnabled sessionOwner);
|
|
12 | 12 |
|
13 | 13 |
// public abstract <T extends Object> T load( |
14 | 14 |
// ISessionEventListener sessionOwner, T obj); |
... | ... | |
26 | 26 |
public abstract <T extends CdmBase> Collection<T> load( |
27 | 27 |
Collection<T> cdmBaseList); |
28 | 28 |
|
29 |
public abstract void dispose(ISessionEventListener owner); |
|
29 |
public abstract void dispose(ICdmEntitySessionEnabled owner); |
|
30 |
|
|
31 |
/** |
|
32 |
* @return |
|
33 |
*/ |
|
34 |
public ICdmEntitySession getActiveSession(); |
|
30 | 35 |
|
31 | 36 |
//FIXME:Remoting would be nice to have these methods working, |
32 | 37 |
// but they can only be useful if we can 'intelligently' |
Also available in: Unified diff
CdmTransientEntityCacher : comments and cleanup
MockCdmEntitySessionManager, MockCdmEntitySession : implementing new interface methods
renamed ISessionEventListener to ICdmEntitySessionEnabled
ICdmEntitySession, CdmEntitySession : added methods to register session observer and add change events
ICdmEntitySessionManager, CdmEntitySessionManager : added getActiveSession method
CdmServerInfo :: added possiblity to connect directly to dev eclipse cdm server