Revision 703e8efc
Added by Cherian Mathew about 9 years ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/session/mock/MockCdmEntitySessionManager.java | ||
---|---|---|
6 | 6 |
import eu.etaxonomy.taxeditor.session.ICdmEntitySession; |
7 | 7 |
import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled; |
8 | 8 |
import eu.etaxonomy.taxeditor.session.ICdmEntitySessionManager; |
9 |
import eu.etaxonomy.taxeditor.session.ICdmEntitySessionManagerObserver; |
|
9 | 10 |
|
10 | 11 |
|
11 | 12 |
public class MockCdmEntitySessionManager implements ICdmEntitySessionManager { |
... | ... | |
32 | 33 |
} |
33 | 34 |
|
34 | 35 |
|
35 |
@Override |
|
36 |
public void dispose(ICdmEntitySessionEnabled owner) { |
|
37 |
|
|
38 |
} |
|
39 |
|
|
40 | 36 |
/* (non-Javadoc) |
41 | 37 |
* @see eu.etaxonomy.taxeditor.session.ICdmEntitySessionManager#newSession(eu.etaxonomy.taxeditor.session.ISessionEventListener, boolean) |
42 | 38 |
*/ |
... | ... | |
53 | 49 |
return new MockCdmEntitySession(); |
54 | 50 |
} |
55 | 51 |
|
52 |
/* (non-Javadoc) |
|
53 |
* @see eu.etaxonomy.taxeditor.session.ICdmEntitySessionManager#getSessions() |
|
54 |
*/ |
|
55 |
@Override |
|
56 |
public Collection<ICdmEntitySession> getSessions() { |
|
57 |
return null; |
|
58 |
} |
|
59 |
|
|
60 |
/* (non-Javadoc) |
|
61 |
* @see eu.etaxonomy.taxeditor.session.ICdmEntitySessionManager#addSessionObserver(eu.etaxonomy.taxeditor.session.ICdmEntitySessionManagerObserver) |
|
62 |
*/ |
|
63 |
@Override |
|
64 |
public void addSessionObserver(ICdmEntitySessionManagerObserver sessionObserver) { |
|
65 |
|
|
66 |
} |
|
67 |
|
|
68 |
/* (non-Javadoc) |
|
69 |
* @see eu.etaxonomy.taxeditor.session.ICdmEntitySessionManager#isRemoting() |
|
70 |
*/ |
|
71 |
@Override |
|
72 |
public boolean isRemoting() { |
|
73 |
return false; |
|
74 |
} |
|
75 |
|
|
56 | 76 |
} |
Also available in: Unified diff
CdmRemoteCacheManager : added cache getter methods
CdmTransientEntityCacher, CdmEntitySession, CdmEntitySessionManager, ICdmEntitySession, ICdmEntitySessionManager, ICdmEntitySessionManagerObserver, MockCdmEntitySession, MockCdmEntitySessionManager , eu.etaxonomy.taxeditor.cdmlib/src/main/resources/cdmlib-ehcache.xml : added statistics config , getter method for live stats and observer to update when sessions are bound and disposed
eu.etaxonomy.taxeditor.store/plugin.xml, SessionsViewPart : added new sessions debug view
MatchStrategyConfigurator : moved to cdmlib
ParseHandler, AbstractMatchingPreferences, NonViralNameMatchingPreference, ReferenceMatchingPreference, TeamOrPersonMatchingPreference : refactored after removal of MatchStrategyConfigurator replaced by enum MatchStrategy