Project

General

Profile

« Previous | Next » 

Revision ba0d4c2f

Added by Cherian Mathew about 9 years ago

httpInvokerServiceClients.xml : set 'CdmServiceRequestExecutor' class as default for all services
ICdmEntitySession, CdmEntitySession, MockCdmEntitySession : added method to update session
ICdmEntitySessionManager, CdmEntitySessionManager, MockCdmEntitySessionManager : added methods to set active session, dispose and update sessions
ProxyUtils : added utility method
EntityCacherDebugResult : corrected method to determine cache corresponding to entity
CdmTransientEntityCacher : corrected put method
CacheLoader : optimised recursive call
CdmServiceCacher : corrected methods to get from cache and load
CdmServiceRequestExecutor : added update result return calls to load

View differences:

eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/session/ICdmEntitySessionManager.java
1 1
package eu.etaxonomy.taxeditor.session;
2 2

  
3 3
import java.util.Collection;
4
import java.util.Set;
4 5

  
5 6
import eu.etaxonomy.cdm.model.common.CdmBase;
6 7

  
......
29 30

  
30 31
    public void addSessionObserver(ICdmEntitySessionManagerObserver sessionObserver);
31 32

  
32
	//FIXME:Remoting would be nice to have these methods working,
33
	//      but they can only be useful if we can 'intelligently'
34
	//      get from a model class to the correspoding service class
35 33

  
36
//	@SuppressWarnings("unchecked")
37
//	public abstract <T extends CdmBase> void addRootEntity(T cdmBase);
38
//
39
//	@SuppressWarnings("unchecked")
40
//	public abstract <T extends Object> void addRootEntities(
41
//			Collection<T> cdmBaseList);
42

  
43
//	public abstract void commit();
44
//
45
//	public abstract void commit(ISessionEventListener sessionOwner);
46
//
47
//	public abstract void commit(IService service, CdmBase cdmBase);
48 34

  
49 35

  
50 36
    public boolean isRemoting();
51 37

  
38
    /**
39
     * @param owner
40
     */
41
    public void dispose(ICdmEntitySessionEnabled owner);
42

  
43
    /**
44
     *
45
     */
46
    public void disposeAll();
47

  
48
    /**
49
     * @param cdmBase
50
     * @param affectedObjects
51
     */
52
    public <T extends CdmBase> void update(T cdmBase, Set<CdmBase> affectedObjects);
53

  
54
    /**
55
     *
56
     */
57
    public <T extends CdmBase> void update();
58

  
52 59

  
53 60
}

Also available in: Unified diff