/** * Provides detail information of a business context definition (application). * * <p> * <i> Example URL: /bc/definition/app/{id}</i> * </p> * * @param id * Application ID. * * @return detail information of an {@link ApplicationDefinition}. * @throws BusinessException * If given ID of the application is not valid. */ @RequestMapping(method = GET, value = "{id}") @ResponseBody public ApplicationDefinition getApplicationDefinition(@PathVariable int id) throws BusinessException { return configurationInterfaceService.getApplicationDefinition(id); }
/** * Provides information of all business transaction definitions of an application. * * <p> * <i> Example URL: /bc/definition/app/{id}/btx</i> * </p> * * @param id * Application ID. * * @return a list of {@link BusinessTransactionData}. * @throws BusinessException * If given ID of the application is not valid. */ @RequestMapping(method = GET, value = "{id}/btx") @ResponseBody public List<BusinessTransactionDefinition> getBusinessTransactionDefinitions(@PathVariable int id) throws BusinessException { return configurationInterfaceService.getApplicationDefinition(id).getBusinessTransactionDefinitions(); }
/** * Provides detail information of a business transaction definition and application. * * <p> * <i> Example URL: /bc/definition/app/{id}/btx/{businessTxId}</i> * </p> * * @param id * Application ID. * @param businessTxId * Business transaction ID. * * @return detail information of a {@link BusinessTransactionData}. * @throws BusinessException * If given ID of the application is not valid. */ @RequestMapping(method = GET, value = "{id}/btx/{businessTxId}") @ResponseBody public BusinessTransactionDefinition getBusinessTransactionDefinition(@PathVariable int id, @PathVariable int businessTxId) throws BusinessException { return configurationInterfaceService.getApplicationDefinition(id).getBusinessTransactionDefinition(businessTxId); }
application = cmrRepositoryDefinition.getConfigurationInterfaceService().getApplicationDefinition(applicationId); } catch (BusinessException e) { return new Status(IStatus.ERROR, InspectIT.ID, "Exception occurred loading the application from the CMR.", e);