private List<ToolbarButton> getServiceDefinitionDetailsButtons(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton) throws Exception
{
List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();
ServiceDefinitionVO serviceDefinitionVO = ServiceDefinitionController.getController().getServiceDefinitionVOWithId(new Integer(request.getParameter("serviceDefinitionId")));
buttons.add(new ToolbarButton("",
getLocalizedString(locale, "tool.managementtool.deleteServiceDefinition.header"),
getLocalizedString(locale, "tool.managementtool.deleteServiceDefinition.header"),
"DeleteServiceDefinition.action?serviceDefinitionId=" + serviceDefinitionVO.getId() + "&igSecurityCode=" + request.getSession().getAttribute("securityCode"),
"css/images/v3/deleteBackgroundWasteBasket.gif",
"left",
"delete",
false,
true,
getLocalizedString(locale, "tool.managementtool.deleteServiceDefinition.header"),
getLocalizedString(locale, "tool.managementtool.deleteServiceDefinition.text", new String[]{serviceDefinitionVO.getName()}),
"workIframe"));
return buttons;
}