public void attributeSupervisorRole2(UserManagement userManagement) { DAO dao = new DAO(); UserHabilitationParam userHabilitationParam = new UserHabilitationParam(); EpsHabilitationParam epsHabilitationParam = new EpsHabilitationParam(); epsHabilitationParam.setCode("R_SEC_PARAM_USR_MANAG_U"); userHabilitationParam.setUserManagement(userManagement); userHabilitationParam.setStartDate(Calendar.getInstance().getTime()); userHabilitationParam.setEndDate(Calendar.getInstance().getTime()); userHabilitationParam.setEpsHabilitationParam(epsHabilitationParam); dao.save(userHabilitationParam); }
public void attributeConnecteRole(UserManagement userManagement) { DAO dao = new DAO(); UserHabilitationParam userHabilitationParam = new UserHabilitationParam(); EpsHabilitationParam epsHabilitationParam = new EpsHabilitationParam(); epsHabilitationParam.setCode("ConnectRole"); userHabilitationParam.setUserManagement(userManagement); userHabilitationParam.setStartDate(Calendar.getInstance().getTime()); userHabilitationParam.setEndDate(Calendar.getInstance().getTime()); userHabilitationParam.setEpsHabilitationParam(epsHabilitationParam); dao.save(userHabilitationParam); }