Package org.infoglue.cms.applications.common

Examples of org.infoglue.cms.applications.common.ToolbarButton


    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();
   
    Integer repositoryId = new Integer(request.getParameter("repositoryId"));
    RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(repositoryId);
   
    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.deleteRepository.header"),
          getLocalizedString(locale, "tool.managementtool.deleteRepository.header"),
          "DeleteRepository!markForDelete.action?repositoryId=" + repositoryId + "&igSecurityCode=" + request.getSession().getAttribute("securityCode"),
          "css/images/v3/createBackgroundPenPaper.gif",
          "left",
          "create",
          false,
          true,
          getLocalizedString(locale, "tool.managementtool.deleteRepository.header"),
          getLocalizedString(locale, "tool.managementtool.deleteRepository.text", new String[]{repositoryVO.getName()}),
          "workIframe"));

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.exportRepository.header"),
          getLocalizedString(locale, "tool.managementtool.exportRepository.header"),
          "javascript:openPopup('ExportRepository!input.action?repositoryId=" + request.getParameter("repositoryId") + "', 'Export', 'width=600,height=500,resizable=no');",
          "",
          "left",
          "exportContent",
          true));

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.importRepositoryCopy.header"),
          getLocalizedString(locale, "tool.managementtool.importRepositoryCopy.header"),
          "javascript:openPopup('ImportRepository!inputCopy.action?repositoryId=" + request.getParameter("repositoryId") + "', 'Copy', 'width=600,height=500,resizable=no');",
          "",
          "left",
          "importContent",
          true));

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.repositoryProperties.header"),
          getLocalizedString(locale, "tool.managementtool.repositoryProperties.header"),
          "ViewRepositoryProperties.action?repositoryId=" + request.getParameter("repositoryId"),
          "",
          "properties",
          "workIframe"));

    if(hasAccessTo(principal, "Common.ManageAccessRights", true) || !CmsPropertyHandler.getHideAccessRightsIfNotAllowedToManage())
    {
      buttons.add(new ToolbarButton("",
            getLocalizedString(locale, "tool.contenttool.accessRights.header"),
            getLocalizedString(locale, "tool.contenttool.accessRights.header"),
            "ViewAccessRights!V3.action?interceptionPointCategory=Repository&extraParameters=" + request.getParameter("repositoryId") + "&returnAddress=ViewInlineOperationMessages.action&originalAddress=refreshParent",
            "css/images/v3/accessRightIcon.gif",
            "accessRights",
            "inlineDiv"));
    }
   
    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.repositoryLanguages.header"),
          getLocalizedString(locale, "tool.managementtool.repositoryLanguages.header"),
          "ViewListRepositoryLanguage.action?repositoryId=" + request.getParameter("repositoryId") + "&returnAddress=ViewRepository.action?repositoryId=" + request.getParameter("repositoryId"),
          "",
          "changeLanguage",
          "workIframe"));

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.rebuildRegistry.header"),
          getLocalizedString(locale, "tool.managementtool.rebuildRegistry.header"),
          "javascript:openPopup('RebuildRegistry!input.action?repositoryId=" + request.getParameter("repositoryId") + "', 'Registry', 'width=400,height=200,resizable=no');",
          "",
          "left",
View Full Code Here


  private List<ToolbarButton> getLanguagesButtons(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton) throws Exception
  {
    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.createLanguage.header"),
          getLocalizedString(locale, "tool.managementtool.createLanguage.header"),
          "CreateLanguage!input.action",
          "css/images/v3/createBackgroundPenPaper.gif",
          "create",
View Full Code Here

    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();
   
    Integer languageId = new Integer(request.getParameter("languageId"));
    LanguageVO languageVO = (LanguageVO)LanguageController.getController().getLanguageVOWithId(languageId);

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.deleteLanguage.header"),
          getLocalizedString(locale, "tool.managementtool.deleteLanguage.header"),
          "DeleteLanguage.action?languageId=" + languageId + "&igSecurityCode=" + request.getSession().getAttribute("securityCode"),
          "css/images/v3/createBackgroundPenPaper.gif",
          "left",
View Full Code Here

    String url = "CategoryManagement!new.action";
    String categoryIdString = request.getParameter("categoryId");
    if(categoryIdString != null && !categoryIdString.equals(""))
      url += "?model/parentId=" + categoryIdString;

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.createCategory.header"),
          getLocalizedString(locale, "tool.managementtool.createCategory.header"),
          url,
          "css/images/v3/createBackgroundPenPaper.gif",
          "create",
          "workIframe"));
    /*
    buttons.add(new ToolbarButton("",
        getLocalizedString(locale, "tool.managementtool.deleteCategories.header"),
        getLocalizedString(locale, "tool.managementtool.deleteCategories.header"),
        "submitListForm('category');",
        "css/images/v3/deleteBackgroundWasteBasket.gif",
        "left",
        "delete",
        true,
        false,
        "",
        "",
        "workIframe"));
    */
      final String protectCategories = CmsPropertyHandler.getProtectCategories();
      if(protectCategories != null && protectCategories.equalsIgnoreCase("true") && request.getParameter("categoryId") != null && !request.getParameter("categoryId").equals(""))
      {
      Integer categoryId = new Integer(request.getParameter("categoryId"));
      CategoryVO categoryVO = CategoryController.getController().findById(categoryId);

      buttons.add(new ToolbarButton("",
            getLocalizedString(locale, "tool.common.accessRights.accessRightsButtonLabel"),
            getLocalizedString(locale, "tool.common.accessRights.accessRightsButtonTitle"),
            "ViewAccessRights!V3.action?interceptionPointCategory=Category&extraParameters=" + categoryVO.getName() + "&returnAddress=ViewInlineOperationMessages.action&originalAddress=refreshParent",
            "css/images/v3/accessRightIcon.gif",
            "accessRights",
View Full Code Here

 
  private List<ToolbarButton> getContentTypeDefinitionsButtons(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton) throws Exception
  {
    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.createContentTypeDefinition.header"),
          getLocalizedString(locale, "tool.managementtool.createContentTypeDefinition.header"),
          "CreateContentTypeDefinition!input.action",
          "css/images/v3/createBackgroundPenPaper.gif",
          "create",
View Full Code Here

    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();
   
    Integer contentTypeDefinitionId = new Integer(request.getParameter("contentTypeDefinitionId"));
    ContentTypeDefinitionVO contentTypeDefinitionVO = (ContentTypeDefinitionVO)ContentTypeDefinitionController.getController().getContentTypeDefinitionVOWithId(contentTypeDefinitionId);
   
    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.deleteContentTypeDefinition.header"),
          getLocalizedString(locale, "tool.managementtool.deleteContentTypeDefinition.header"),
          "DeleteContentTypeDefinition.action?deleteContentTypeDefinitionId=" + contentTypeDefinitionId + "&igSecurityCode=" + request.getSession().getAttribute("securityCode"),
          "css/images/v3/createBackgroundPenPaper.gif",
          "left",
          "delete",
          false,
          true,
          getLocalizedString(locale, "tool.managementtool.deleteContentTypeDefinition.header"),
          getLocalizedString(locale, "tool.managementtool.deleteContentTypeDefinition.text", new String[]{contentTypeDefinitionVO.getName()}),
          "workIframe"));

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.asXML.label"),
          getLocalizedString(locale, "tool.managementtool.asXML.label"),
          "ViewContentTypeDefinition!useSimple.action?contentTypeDefinitionId=" + contentTypeDefinitionId,
          "",
          "showDataAsXML"));

      final String protectContentTypes = CmsPropertyHandler.getProtectContentTypes();
      if(protectContentTypes != null && protectContentTypes.equalsIgnoreCase("true"))
      {
      buttons.add(new ToolbarButton("",
            getLocalizedString(locale, "tool.common.accessRights.accessRightsButtonLabel"),
            getLocalizedString(locale, "tool.common.accessRights.accessRightsButtonTitle"),
            "ViewAccessRights!V3.action?interceptionPointCategory=ContentTypeDefinition&extraParameters=" + contentTypeDefinitionVO.getName() + "&returnAddress=ViewInlineOperationMessages.action&originalAddress=refreshParent",
            "css/images/v3/accessRightIcon.gif",
            "accessRights",
View Full Code Here

  private List<ToolbarButton> getWorkflowDefinitionsButtons(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton) throws Exception
  {
    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.createWorkflowDefinition.header"),
          getLocalizedString(locale, "tool.managementtool.createWorkflowDefinition.header"),
          "CreateWorkflowDefinition!input.action",
          "css/images/v3/createBackgroundPenPaper.gif",
          "create",
View Full Code Here

   
    Integer workflowDefinitionId = new Integer(request.getParameter("workflowDefinitionId"));
    WorkflowDefinitionVO workflowDefinitionVO = WorkflowDefinitionController.getController().getWorkflowDefinitionVOWithId(workflowDefinitionId);

   
    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.deleteWorkflowDefinition.header"),
          getLocalizedString(locale, "tool.managementtool.deleteWorkflowDefinition.header"),
          "DeleteWorkflowDefinition.action?workflowDefinitionId=" + workflowDefinitionId + "&igSecurityCode=" + request.getSession().getAttribute("securityCode"),
          "css/images/v3/createBackgroundPenPaper.gif",
          "left",
          "delete",
          false,
          true,
          getLocalizedString(locale, "tool.managementtool.deleteWorkflowDefinition.header"),
          getLocalizedString(locale, "tool.managementtool.deleteWorkflowDefinition.text", new String[]{workflowDefinitionVO.getName()}),
          "workIframe"));

      final String protectWorkflows = CmsPropertyHandler.getProtectWorkflows();
      if(protectWorkflows != null && protectWorkflows.equalsIgnoreCase("true"))
      {
      buttons.add(new ToolbarButton("",
            getLocalizedString(locale, "tool.common.accessRights.accessRightsButtonLabel"),
            getLocalizedString(locale, "tool.common.accessRights.accessRightsButtonTitle"),
            "ViewAccessRights!V3.action?interceptionPointCategory=Workflow&extraParameters=" + workflowDefinitionVO.getName() + "&returnAddress=ViewInlineOperationMessages.action&originalAddress=refreshParent",
            "css/images/v3/accessRightIcon.gif",
            "accessRights",
View Full Code Here

  private List<ToolbarButton> getPortletsButtons(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton) throws Exception
  {
    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.createPortlet.header"),
          getLocalizedString(locale, "tool.managementtool.createPortlet.header"),
          "UploadPortlet.action",
          "css/images/v3/createBackgroundPenPaper.gif",
          "create",
View Full Code Here

  private List<ToolbarButton> getRedirectsButtons(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton) throws Exception
  {
    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.createRedirect.header"),
          getLocalizedString(locale, "tool.managementtool.createRedirect.header"),
          "CreateRedirect!input.action",
          "css/images/v3/createBackgroundPenPaper.gif",
          "create",
View Full Code Here

TOP

Related Classes of org.infoglue.cms.applications.common.ToolbarButton

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.