Package org.infoglue.cms.applications.common

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


    if(UserControllerProxy.getController().getSupportCreate())
    {
      boolean hasAccessToCreateRole = hasAccessTo(principal, "SystemUser.Create", true);
      if(hasAccessToCreateRole)
      {
        buttons.add(new ToolbarButton("",
                        getLocalizedString(locale, "tool.managementtool.createSystemUser.header"),
                        getLocalizedString(locale, "tool.managementtool.createSystemUser.header"),
                        "CreateSystemUser!input.action",
                        "css/images/v3/createBackgroundPenPaper.gif",
                        "create",
View Full Code Here


    if(!userName.equals(CmsPropertyHandler.getAnonymousUser()))
    {
      InfoGluePrincipal user = UserControllerProxy.getController().getUser(userName);
      if(user.getAutorizationModule().getSupportDelete())
      {
        buttons.add(new ToolbarButton("",
            getLocalizedString(locale, "tool.managementtool.deleteSystemUser.header"),
            getLocalizedString(locale, "tool.managementtool.deleteSystemUser.header"),
            "DeleteSystemUser.action?userName=" + formatter.encodeBase64(userName) + "&igSecurityCode=" + request.getSession().getAttribute("securityCode"),
            "css/images/v3/createBackgroundPenPaper.gif",
            "left",
            "delete",
            false,
            true,
            getLocalizedString(locale, "tool.managementtool.deleteSystemUser.header"),
            getLocalizedString(locale, "tool.managementtool.deleteSystemUser.text", new String[]{userName}),
              "workIframe"));
      }
     
      if(user.getAutorizationModule().getSupportUpdate())
      {
        buttons.add(new ToolbarButton("",
              getLocalizedString(locale, "tool.managementtool.viewSystemUserPasswordDialog.header"),
              getLocalizedString(locale, "tool.managementtool.viewSystemUserPasswordDialog.header"),
              "UpdateSystemUserPassword!input.action?userName=" + formatter.encodeBase64(userName) + "&igSecurityCode=" + request.getSession().getAttribute("securityCode"),
              "css/images/v3/passwordIcon.gif",
              "accessRights",
              "workIframe"));
        //buttons.add(new ToolbarButton("UpdateSystemUserPassword!input.action?userName=" + URLEncoder.encode(URLEncoder.encode(primaryKey, URIEncoding), URIEncoding), getLocalizedString(locale, "images.managementtool.buttons.updateSystemUserPassword"), "Update user password"));

        boolean hasAccessToRenameSystemUser = hasAccessTo(principal, "SystemUser.changeUsername", false);
        if (hasAccessToRenameSystemUser)
        {
          buttons.add(new ToolbarButton("",
              getLocalizedString(locale, "tool.managementtool.viewSystemUserUserNameDialog.header"),
              getLocalizedString(locale, "tool.managementtool.viewSystemUserUserNameDialog.header"),
              "UpdateSystemUserUserName!input.action?userName=" + formatter.encodeBase64(userName) + "&igSecurityCode=" + request.getSession().getAttribute("securityCode"),
              "css/images/v3/group.png",
              "transferUser",
              "workIframe"));
        }
       
      }
    }
   
    List contentTypeDefinitionVOList = UserPropertiesController.getController().getContentTypeDefinitionVOList(userName);
    if(contentTypeDefinitionVOList.size() > 0)
    {
      buttons.add(new ToolbarButton("",
            getLocalizedString(locale, "tool.managementtool.viewUserProperties.header"),
            getLocalizedString(locale, "tool.managementtool.viewUserProperties.header"),
            "ViewUserProperties.action?userName=" + formatter.encodeBase64(userName),
            "css/images/v3/advancedSettingsIcon.gif",
            "properties",
            "workIframe"));

      //buttons.add(new ToolbarButton("ViewUserProperties.action?userName=" + URLEncoder.encode(URLEncoder.encode(primaryKey, URIEncoding), URIEncoding), getLocalizedString(locale, "images.managementtool.buttons.viewSystemUserProperties"), "View User Properties"));
    }
   
//    if(principal.getIsAdministrator())
   
    if(principal.getIsAdministrator())
    {
      buttons.add(new ToolbarButton("",
            getLocalizedString(locale, "tool.managementtool.transferAccessRights.header"),
            getLocalizedString(locale, "tool.managementtool.transferAccessRights.header"),
            "AuthorizationSwitchManagement!inputUser.action?userName=" + formatter.encodeBase64(userName),
            "css/images/v3/createBackgroundPenPaper.gif",
            "create",
View Full Code Here

    if(RoleControllerProxy.getController().getSupportCreate())
    {
      boolean hasAccessToCreateRole = hasAccessTo(principal, "Role.Create", true);
      if(hasAccessToCreateRole)
      {
        buttons.add(new ToolbarButton("",
                        getLocalizedString(locale, "tool.managementtool.createRole.header"),
                        getLocalizedString(locale, "tool.managementtool.createRole.header"),
                        "CreateRole!input.action",
                        "css/images/v3/createBackgroundPenPaper.gif",
                        "create",
View Full Code Here

    if(role.getAutorizationModule().getSupportDelete())
    {
      //boolean hasAccessToDeleteRole = hasAccessTo(principal, "Role.Delete", "" + roleName);
      //if(hasAccessToDeleteRole)
      //{
        buttons.add(new ToolbarButton("",
            getLocalizedString(locale, "tool.managementtool.deleteRole.header"),
            getLocalizedString(locale, "tool.managementtool.deleteRole.header"),
            "DeleteRole.action?roleName=" + formatter.encodeBase64(roleName) + "&igSecurityCode=" + request.getSession().getAttribute("securityCode"),
            "css/images/v3/createBackgroundPenPaper.gif",
            "left",
            "delete",
            false,
            true,
            getLocalizedString(locale, "tool.managementtool.deleteRole.header"),
            getLocalizedString(locale, "tool.managementtool.deleteRole.text", new String[]{roleName}),
              "workIframe"));
      //}
    }
   
    List contentTypeDefinitionVOList = RolePropertiesController.getController().getContentTypeDefinitionVOList(roleName);
    if(contentTypeDefinitionVOList.size() > 0)
    {
      //boolean hasAccessToEditProperties = hasAccessTo(principal, "Role.EditProperties", true);
      //if(hasAccessToEditProperties)
      //{
        buttons.add(new ToolbarButton("",
            getLocalizedString(locale, "tool.managementtool.viewRoleProperties.header"),
            getLocalizedString(locale, "tool.managementtool.viewRoleProperties.header"),
            "ViewRoleProperties.action?roleName=" + formatter.encodeBase64(roleName),
            "css/images/v3/advancedSettingsIcon.gif",
            "properties",
View Full Code Here

    if(GroupControllerProxy.getController().getSupportCreate())
    {
      //boolean hasAccessToCreateGroup = hasAccessTo(principal, "Group.Create", true);
      //if(hasAccessToCreateGroup)
      //{
        buttons.add(new ToolbarButton("",
                        getLocalizedString(locale, "tool.managementtool.createGroup.header"),
                        getLocalizedString(locale, "tool.managementtool.createGroup.header"),
                        "CreateGroup!input.action",
                        "css/images/v3/createBackgroundPenPaper.gif",
                        "create",
View Full Code Here

    if(group.getAutorizationModule().getSupportDelete())
    {
      //boolean hasAccessToDeleteGroup = hasAccessTo(principal, "Group.Delete", "" + primaryKey);
      //if(hasAccessToDeleteGroup)
      //{
        buttons.add(new ToolbarButton("",
            getLocalizedString(locale, "tool.managementtool.deleteGroup.header"),
            getLocalizedString(locale, "tool.managementtool.deleteGroup.header"),
            "DeleteGroup.action?groupName=" + formatter.encodeBase64(groupName) + "&igSecurityCode=" + request.getSession().getAttribute("securityCode"),
            "css/images/v3/createBackgroundPenPaper.gif",
            "left",
            "delete",
            false,
            true,
            getLocalizedString(locale, "tool.managementtool.deleteGroup.header"),
            getLocalizedString(locale, "tool.managementtool.deleteGroup.text", new String[]{groupName}),
              "workIframe"));
        //}
    }
   
    List contentTypeDefinitionVOList = GroupPropertiesController.getController().getContentTypeDefinitionVOList(groupName);
    if(contentTypeDefinitionVOList.size() > 0)
    {
      //boolean hasAccessToEditProperties = hasAccessTo(principal, "Group.EditProperties", true);
      //if(hasAccessToEditProperties)
      //{
        buttons.add(new ToolbarButton("",
            getLocalizedString(locale, "tool.managementtool.viewGroupProperties.header"),
            getLocalizedString(locale, "tool.managementtool.viewGroupProperties.header"),
            "ViewGroupProperties.action?groupName=" + formatter.encodeBase64(groupName),
            "css/images/v3/advancedSettingsIcon.gif",
            "properties",
View Full Code Here

    String entityId = request.getParameter("entityId");
   
    if(entityId != null && !entityId.equals(""))
    {
      buttons.add(new ToolbarButton("uploadAsset",
            getLocalizedString(locale, "tool.contenttool.uploadNewAttachment"),
            getLocalizedString(locale, "tool.contenttool.uploadNewAttachment"),
            "ViewDigitalAsset.action?entity=org.infoglue.cms.entities.management.GroupProperties&entityId=" + entityId + "",
            "",
            "",
View Full Code Here

    String entityId = request.getParameter("entityId");
   
    if(entityId != null && !entityId.equals(""))
    {
      buttons.add(new ToolbarButton("uploadAsset",
            getLocalizedString(locale, "tool.contenttool.uploadNewAttachment"),
            getLocalizedString(locale, "tool.contenttool.uploadNewAttachment"),
            "ViewDigitalAsset.action?entity=org.infoglue.cms.entities.management.RoleProperties&entityId=" + entityId + "",
            "",
            "",
View Full Code Here

    String entityId = request.getParameter("entityId");
   
    if(entityId != null && !entityId.equals(""))
    {
      buttons.add(new ToolbarButton("uploadAsset",
            getLocalizedString(locale, "tool.contenttool.uploadNewAttachment"),
            getLocalizedString(locale, "tool.contenttool.uploadNewAttachment"),
            "ViewDigitalAsset.action?entity=org.infoglue.cms.entities.management.UserProperties&entityId=" + entityId + "",
            "",
            "",
View Full Code Here

 
  private List<ToolbarButton> getRepositoriesButtons(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.createRepository.header"),
          getLocalizedString(locale, "tool.managementtool.createRepository.header"),
          "CreateRepository!inputV3.action",
          "css/images/v3/createBackgroundPenPaper.gif",
          "create",
          "workIframe"));
    /*
    buttons.add(new ToolbarButton("",
        getLocalizedString(locale, "tool.managementtool.deleteRepositories.header"),
        getLocalizedString(locale, "tool.managementtool.deleteRepositories.header"),
        "submitListForm('repository');",
        "css/images/v3/deleteBackgroundWasteBasket.gif",
        "left",
        "delete",
        true,
        false,
        "Delete repository?",
        "Really want to delete rep...",
        "workIframe"));
    */
   
    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.importRepository.header"),
          getLocalizedString(locale, "tool.managementtool.importRepository.header"),
          "javascript:openPopup('ImportRepository!input.action', 'Import', 'width=600,height=500,resizable=no');",
          "",
          "left",
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.