Kenmegne
7 days ago 23a46b4be35277e06ec89f48730eeb694e686be8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.megatim.apifdxweb.core.impl.referentiel;
 
import com.megatim.apifdxweb.core.ifaces.referentiel.NoeudManager;
import com.megatim.apifdxweb.dao.ifaces.referentiel.NoeudDAO;
import com.megatim.apifdxweb.model.administration.User;
import com.megatim.fdxcommons.model.dtos.referentiel.NoeudDto;
import com.megatim.fdxcommons.model.mappers.MapStructMapper;
import com.megatim.fdxcommons.model.referentiel.Noeud;
import javax.ejb.EJB;
import javax.enterprise.context.Dependent;
import javax.inject.Inject;
 
@Dependent
public class NoeudManagerImpl implements NoeudManager {
 
    @EJB
    protected NoeudDAO dao;
 
    @Inject
    private MapStructMapper mapstructMapper;
 
    /**
     *
     */
    public NoeudManagerImpl() {
    }
 
    @Override
    public NoeudDAO getDao() {
        return dao;
    }
 
    public Noeud saveOrUpdateCurrentElement(Noeud entityToSave) {
        return dao.save(entityToSave);
    }
 
    @Override
    public Noeud getById(String id, User connectedUser) {
        Noeud noeud = dao.getById(id);
        return noeud;
    }
 
    @Override
    public Noeud getById(String id) {
        return dao.getById(id);
    }
 
}