/** * Remove a group and its components from db * * @param aGroup to remove */ public void removeGroup(final GroupEntity aGroup) { if (aGroup != null) { groupDao.removeGroup(aGroup); } }
/** * Returns a group with id in parameter * * @param id of the group from db to retrieve * @return the group from db */ public GroupEntity getAGroupById(final Long id) { return groupDao.getAGroupById(id); }
/** * Update the group with id in DB with the informations of the group in parameter * * @param aGroup the group with information to update * @param id of the group to update */ public void updateGroup(final GroupEntity aGroup, final Long id) { if (aGroup != null && aGroup.getStage() != null) { groupDao.updateGroup(aGroup, id); } }
/** * Add a group in DB * * @param aGroup to add in DB */ public void addGroup(final GroupEntity aGroup) { if (aGroup != null && aGroup.getStage() != null) { groupDao.addGroup(aGroup); } }