Project

General

Profile

« Previous | Next » 

Revision e5c6153b

Added by Andreas Müller about 1 year ago

cleanup

View differences:

eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/session/CdmEntitySession.java
43 43

  
44 44
    private final CdmEntitySessionManager cdmEntitySessionManager;
45 45

  
46
    private final ICdmEntitySessionEnabled sessionOwner;
46
    private final ICdmEntitySessionEnabled<?> sessionOwner;
47 47

  
48 48
    private ConversationalTransientEntityCacher cdmTransientEntityCacher;
49 49

  
50
    private List<ICdmEntitySessionEnabled> changeObservers;
50
    private List<ICdmEntitySessionEnabled<?>> changeObservers;
51 51

  
52
    public CdmEntitySession(ICdmEntitySessionEnabled sessionOwner, CdmEntitySessionManager cdmEntitySessionManager) {
52
    public CdmEntitySession(ICdmEntitySessionEnabled<?> sessionOwner, CdmEntitySessionManager cdmEntitySessionManager) {
53 53
        this.sessionOwner = sessionOwner;
54 54
        this.cdmEntitySessionManager = cdmEntitySessionManager;
55 55
        init(sessionOwner, cdmEntitySessionManager);
56 56
    }
57 57

  
58
    private void init(ICdmEntitySessionEnabled sessionOwner, CdmEntitySessionManager cdmEntitySessionManager) {
58
    private void init(ICdmEntitySessionEnabled<?> sessionOwner, CdmEntitySessionManager cdmEntitySessionManager) {
59 59
        this.cdmTransientEntityCacher = new ConversationalTransientEntityCacher(sessionOwner);
60 60
        this.changeObservers = new ArrayList<>();
61 61
        cdmEntitySessionManager.addToOwnerSessionMap(sessionOwner, this);
......
237 237

  
238 238
    @Override
239 239
    public <T extends CdmBase> Collection<T> getRootEntities() {
240
        return sessionOwner.getRootEntities();
240
        return getOwner().getRootEntities();
241 241
    }
242 242

  
243 243
    public CdmTransientEntityCacher getCacher() {

Also available in: Unified diff