public static void suggestDeleting(int gerundId) throws RawNotFoundException { Gerund newGerund = BLUtil.daoFactory.getGerundDAO().getById(gerundId); newGerund.setChechStatus(BOManagerUtil.DELETING_STATUS.getCheckStatus()); newGerund.setInfoStatus(BOManagerUtil.DELETING_STATUS.getInfoStatus()); newGerund.setSuggestion(BOManagerUtil.GET_DELETE_SUGGESTION()); BLUtil.daoFactory.getGerundDAO().update(newGerund); }
static void rejectAdding(int gerundId) throws RawNotFoundException { Gerund newGERUND = GERUND_DAO.getById(gerundId); if (newGERUND.getInfoStatus().equals(WordStatus.INSERT_INFO_STATUS)) { newGERUND.setInfoStatus(WordStatus.REJECTED_INFO_STATUS); newGERUND.setChechStatus(WordStatus.NOT_NEED_CHECK_STATUS); if (newGERUND.getSuggestion() != null) { BOManagerUtil.REJECT_SUGGESTION(newGERUND.getSuggestion()); } GERUND_DAO.update(newGERUND); } }
static void affirmDeleting(int gerundId) throws RawNotFoundException { Gerund newGERUND = GERUND_DAO.getById(gerundId); if (newGERUND.getInfoStatus().equals(WordStatus.DELETE_INFO_STATUS)) { newGERUND.setInfoStatus(WordStatus.NEED_DELETING); newGERUND.setChechStatus(WordStatus.NOT_NEED_CHECK_STATUS); if (newGERUND.getSuggestion() != null) { BOManagerUtil.AFFIRM_SUGGESTION(newGERUND.getSuggestion()); } GERUND_DAO.update(newGERUND); } }