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); } }