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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package com.megatim.fdxconsultation.core.impl.remoteaction;
 
import com.bekosoftware.genericdaolayer.dao.ifaces.GenericDAO;
import com.bekosoftware.genericdaolayer.dao.tools.RestrictionsContainer;
import com.bekosoftware.genericmanagerlayer.core.impl.AbstractGenericManager;
import com.megatim.fdxcommons.model.enumeration.TypeOperation;
import com.megatim.fdxconsultation.model.remoteaction.Planification;
import com.megatim.fdxconsultation.core.ifaces.remoteaction.PlanificationManager;
import com.megatim.fdxconsultation.dao.ifaces.remoteaction.PlanificationDAO;
import com.megatim.fdxconsultation.model.administration.User;
import java.util.Date;
import javax.ejb.EJB;
import javax.enterprise.context.Dependent;
 
/**
 *
 * @author ASUS
 */
@Dependent
public class PlanificationManagerImpl extends AbstractGenericManager<Planification, Long> implements PlanificationManager {
 
    @EJB
    private PlanificationDAO dao;
 
    @Override
    public GenericDAO<Planification, Long> getDao() {
        return dao;
    }
 
    @Override
    public String getEntityIdName() {
        return "id";
    }
 
    @Override
    public void beforeAdd(Planification entity, User connectedUser) {
    }
 
    @Override
    public void beforeRemove(Planification entity, User connectedUser) {
    }
 
    @Override
    public void beforeModify(Planification actualEntity, Planification requestEntity, User connectedUser) {
        requestEntity.setUtilisateurModification(connectedUser.getUserName());
        requestEntity.setDateDerniereModification(new Date());
    }
 
    @Override
    public Planification mapToDto(Planification entity) {
        throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
    }
 
    @Override
    public Planification mapToDetailDto(Planification entity) {
        throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
    }
 
    @Override
    public RestrictionsContainer construireRequete(User searchEntity, TypeOperation typeOperation) {
        throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
    }
}