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