Exemplo n.º 1
0
 public String serviceInstanciation(ServiceInstance serviceInstance) {
   log.info("serviceInstanciation serviceInstanceId:" + serviceInstance.getId());
   try {
     serviceInstanceService.serviceInstanciation(serviceInstance, currentUser);
   } catch (BusinessException e) {
     e.printStackTrace();
     statusMessages.add(e.getMessage());
   } catch (Exception e) {
     e.printStackTrace();
     statusMessages.add(e.getMessage());
   }
   return null;
 }
Exemplo n.º 2
0
 public String suspendService() {
   log.info("closeAccount serviceInstanceId:" + entity.getId());
   try {
     serviceInstanceService.serviceSusupension(entity, new Date(), currentUser);
     statusMessages.addFromResourceBundle("suspension.suspendSuccessful");
     return "/pages/resource/serviceInstances/serviceInstanceDetail.seam?objectId="
         + entity.getId()
         + "&edit=false";
   } catch (BusinessException e) {
     e.printStackTrace();
     statusMessages.add(e.getMessage());
   } catch (Exception e) {
     e.printStackTrace();
     statusMessages.add(e.getMessage());
   }
   return null;
 }