public void checkRuleAud() { if (ruleAud == null) throw REQUEST_MISSING_VALUE.exception("rule"); if (!ruleAud.getAllowed()) throw REQUEST_NOT_ALLOWED.exception(goods.getName(), arrival.getName()); }
public void checkArrival() { if (arrival == null) throw REQUEST_MISSING_VALUE.exception("arrival"); }
public void checkDeparture() { if (departure == null) throw REQUEST_MISSING_VALUE.exception("departure"); }
public void checkGoods() { if (goods == null) throw REQUEST_MISSING_VALUE.exception("goods"); }
public void checkCustomer() { if (customer == null) throw REQUEST_MISSING_VALUE.exception("customer"); }
public void checkReference() { if (StringUtils.isEmpty(reference)) throw REQUEST_MISSING_VALUE.exception("reference"); }