/* * 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 implements PlanificationManager { @EJB private PlanificationDAO dao; @Override public GenericDAO 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 } }