Esempio n. 1
0
 /*    */ public String execute() /*    */ throws Exception /*    */ {
   /* 13 */ HiLogManager hiLogMgr = (HiLogManager) SpringContextHolder.getBean(HiLog.class);
   /* 14 */ if (super.perExecute(this.hiLog) != null) return returnCommand();
   /* 15 */ hiLogMgr.saveHiLog(this.hiLog);
   /* 16 */ super.postExecute(this.hiLog);
   /* 17 */ return returnCommand();
   /*    */ }
 /*    */ public String execute() /*    */ throws Exception /*    */ {
   /* 13 */ if (super.perExecute(this.enumeration) != null) return returnCommand();
   /* 14 */ EnumerationManager enumerationMgr =
       (EnumerationManager) SpringContextHolder.getBean(Enumeration.class);
   /* 15 */ enumerationMgr.saveEnumeration(this.enumeration);
   /* 16 */ super.postExecute(this.enumeration);
   /* 17 */ return returnCommand();
   /*    */ }
Esempio n. 3
0
 public String execute() throws Exception {
   if (super.perExecute(enumerationValue) != null) return returnCommand();
   EnumerationValueManager enumerationValueMgr =
       (EnumerationValueManager) SpringContextHolder.getBean(EnumerationValue.class);
   EnumerationManager enumerationMgr =
       (EnumerationManager) SpringContextHolder.getBean(Enumeration.class);
   if (enumerationValue.getEnumeration() != null
       && enumerationValue.getEnumeration().getId() != null
       && enumerationValue.getId() == null) {
     Enumeration enumeration =
         enumerationMgr.getEnumerationById(enumerationValue.getEnumeration().getId());
     enumerationValue.setEnumeration(enumeration);
     enumeration.getEnumerationValues().add(enumerationValue);
   }
   enumerationValueMgr.saveEnumerationValue(enumerationValue);
   super.postExecute(enumerationValue);
   return returnCommand();
 }