Exemplo n.º 1
0
 public void checkRuleAud() {
   if (ruleAud == null) throw REQUEST_MISSING_VALUE.exception("rule");
   if (!ruleAud.getAllowed())
     throw REQUEST_NOT_ALLOWED.exception(goods.getName(), arrival.getName());
 }
Exemplo n.º 2
0
 public void checkArrival() {
   if (arrival == null) throw REQUEST_MISSING_VALUE.exception("arrival");
 }
Exemplo n.º 3
0
 public void checkDeparture() {
   if (departure == null) throw REQUEST_MISSING_VALUE.exception("departure");
 }
Exemplo n.º 4
0
 public void checkGoods() {
   if (goods == null) throw REQUEST_MISSING_VALUE.exception("goods");
 }
Exemplo n.º 5
0
 public void checkCustomer() {
   if (customer == null) throw REQUEST_MISSING_VALUE.exception("customer");
 }
Exemplo n.º 6
0
 public void checkReference() {
   if (StringUtils.isEmpty(reference)) throw REQUEST_MISSING_VALUE.exception("reference");
 }