Example usage for com.liferay.portal.kernel.dao.search ResultRow addText

List of usage examples for com.liferay.portal.kernel.dao.search ResultRow addText

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.dao.search ResultRow addText.

Prototype

public void addText(String name, String href);

Source Link

Usage

From source file:org.apache.jsp.html.portlet.enterprise_005fadmin.view_005froles_jsp.java

License:Open Source License

public void _jspService(HttpServletRequest request, HttpServletResponse response)
          throws java.io.IOException, ServletException {

      PageContext pageContext = null;/*from  ww  w.j ava  2 s  .  c  o m*/
      HttpSession session = null;
      ServletContext application = null;
      ServletConfig config = null;
      JspWriter out = null;
      Object page = this;
      JspWriter _jspx_out = null;
      PageContext _jspx_page_context = null;

      try {
          response.setContentType("text/html; charset=UTF-8");
          pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
          _jspx_page_context = pageContext;
          application = pageContext.getServletContext();
          config = pageContext.getServletConfig();
          session = pageContext.getSession();
          out = pageContext.getOut();
          _jspx_out = out;

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          //  liferay-theme:defineObjects
          com.liferay.taglib.theme.DefineObjectsTag _jspx_th_liferay_002dtheme_005fdefineObjects_005f0 = (com.liferay.taglib.theme.DefineObjectsTag) _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                  .get(com.liferay.taglib.theme.DefineObjectsTag.class);
          _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
          _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setParent(null);
          int _jspx_eval_liferay_002dtheme_005fdefineObjects_005f0 = _jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                  .doStartTag();
          if (_jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                      .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
              return;
          }
          _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                  .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
          com.liferay.portal.theme.ThemeDisplay themeDisplay = null;
          com.liferay.portal.model.Company company = null;
          com.liferay.portal.model.Account account = null;
          com.liferay.portal.model.User user = null;
          com.liferay.portal.model.User realUser = null;
          com.liferay.portal.model.Contact contact = null;
          com.liferay.portal.model.Layout layout = null;
          java.util.List layouts = null;
          java.lang.Long plid = null;
          com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet = null;
          java.lang.Long scopeGroupId = null;
          com.liferay.portal.security.permission.PermissionChecker permissionChecker = null;
          java.util.Locale locale = null;
          java.util.TimeZone timeZone = null;
          com.liferay.portal.model.Theme theme = null;
          com.liferay.portal.model.ColorScheme colorScheme = null;
          com.liferay.portal.theme.PortletDisplay portletDisplay = null;
          java.lang.Long portletGroupId = null;
          themeDisplay = (com.liferay.portal.theme.ThemeDisplay) _jspx_page_context.findAttribute("themeDisplay");
          company = (com.liferay.portal.model.Company) _jspx_page_context.findAttribute("company");
          account = (com.liferay.portal.model.Account) _jspx_page_context.findAttribute("account");
          user = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("user");
          realUser = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("realUser");
          contact = (com.liferay.portal.model.Contact) _jspx_page_context.findAttribute("contact");
          layout = (com.liferay.portal.model.Layout) _jspx_page_context.findAttribute("layout");
          layouts = (java.util.List) _jspx_page_context.findAttribute("layouts");
          plid = (java.lang.Long) _jspx_page_context.findAttribute("plid");
          layoutTypePortlet = (com.liferay.portal.model.LayoutTypePortlet) _jspx_page_context
                  .findAttribute("layoutTypePortlet");
          scopeGroupId = (java.lang.Long) _jspx_page_context.findAttribute("scopeGroupId");
          permissionChecker = (com.liferay.portal.security.permission.PermissionChecker) _jspx_page_context
                  .findAttribute("permissionChecker");
          locale = (java.util.Locale) _jspx_page_context.findAttribute("locale");
          timeZone = (java.util.TimeZone) _jspx_page_context.findAttribute("timeZone");
          theme = (com.liferay.portal.model.Theme) _jspx_page_context.findAttribute("theme");
          colorScheme = (com.liferay.portal.model.ColorScheme) _jspx_page_context.findAttribute("colorScheme");
          portletDisplay = (com.liferay.portal.theme.PortletDisplay) _jspx_page_context
                  .findAttribute("portletDisplay");
          portletGroupId = (java.lang.Long) _jspx_page_context.findAttribute("portletGroupId");
          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');
          //  portlet:defineObjects
          com.liferay.taglib.portlet.DefineObjectsTag _jspx_th_portlet_005fdefineObjects_005f0 = (com.liferay.taglib.portlet.DefineObjectsTag) _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                  .get(com.liferay.taglib.portlet.DefineObjectsTag.class);
          _jspx_th_portlet_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
          _jspx_th_portlet_005fdefineObjects_005f0.setParent(null);
          int _jspx_eval_portlet_005fdefineObjects_005f0 = _jspx_th_portlet_005fdefineObjects_005f0.doStartTag();
          if (_jspx_th_portlet_005fdefineObjects_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                      .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
              return;
          }
          _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                  .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
          javax.portlet.ActionRequest actionRequest = null;
          javax.portlet.ActionResponse actionResponse = null;
          javax.portlet.EventRequest eventRequest = null;
          javax.portlet.EventResponse eventResponse = null;
          javax.portlet.PortletConfig portletConfig = null;
          java.lang.String portletName = null;
          javax.portlet.PortletPreferences portletPreferences = null;
          java.util.Map portletPreferencesValues = null;
          javax.portlet.PortletSession portletSession = null;
          java.util.Map portletSessionScope = null;
          javax.portlet.RenderRequest renderRequest = null;
          javax.portlet.RenderResponse renderResponse = null;
          javax.portlet.ResourceRequest resourceRequest = null;
          javax.portlet.ResourceResponse resourceResponse = null;
          actionRequest = (javax.portlet.ActionRequest) _jspx_page_context.findAttribute("actionRequest");
          actionResponse = (javax.portlet.ActionResponse) _jspx_page_context.findAttribute("actionResponse");
          eventRequest = (javax.portlet.EventRequest) _jspx_page_context.findAttribute("eventRequest");
          eventResponse = (javax.portlet.EventResponse) _jspx_page_context.findAttribute("eventResponse");
          portletConfig = (javax.portlet.PortletConfig) _jspx_page_context.findAttribute("portletConfig");
          portletName = (java.lang.String) _jspx_page_context.findAttribute("portletName");
          portletPreferences = (javax.portlet.PortletPreferences) _jspx_page_context
                  .findAttribute("portletPreferences");
          portletPreferencesValues = (java.util.Map) _jspx_page_context.findAttribute("portletPreferencesValues");
          portletSession = (javax.portlet.PortletSession) _jspx_page_context.findAttribute("portletSession");
          portletSessionScope = (java.util.Map) _jspx_page_context.findAttribute("portletSessionScope");
          renderRequest = (javax.portlet.RenderRequest) _jspx_page_context.findAttribute("renderRequest");
          renderResponse = (javax.portlet.RenderResponse) _jspx_page_context.findAttribute("renderResponse");
          resourceRequest = (javax.portlet.ResourceRequest) _jspx_page_context.findAttribute("resourceRequest");
          resourceResponse = (javax.portlet.ResourceResponse) _jspx_page_context
                  .findAttribute("resourceResponse");
          out.write('\n');
          out.write('\n');

          WindowState windowState = null;
          PortletMode portletMode = null;

          PortletURL currentURLObj = null;

          if (renderRequest != null) {
              windowState = renderRequest.getWindowState();
              portletMode = renderRequest.getPortletMode();

              currentURLObj = PortletURLUtil.getCurrent(renderRequest, renderResponse);
          } else if (resourceRequest != null) {
              windowState = resourceRequest.getWindowState();
              portletMode = resourceRequest.getPortletMode();

              currentURLObj = PortletURLUtil.getCurrent(resourceRequest, resourceResponse);
          }

          String currentURL = currentURLObj.toString();
          //String currentURL = PortalUtil.getCurrentURL(request);

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");

          String tabs1 = ParamUtil.getString(request, "tabs1");

          boolean showTabs1 = false;
          boolean showActiveUserSelect = true;

          if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USERS)) {
              tabs1 = "users";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ORGANIZATIONS)) {
              if (!tabs1.equals("users")) {
                  tabs1 = "organizations";
              }
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USER_GROUPS) && !tabs1.equals("users")) {
              tabs1 = "user-groups";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ROLES) && !tabs1.equals("users")) {
              tabs1 = "roles";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PASSWORD_POLICIES)) {
              tabs1 = "password-policies";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_SETTINGS)) {
              tabs1 = "settings";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_MONITORING)) {
              tabs1 = "monitoring";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PLUGINS)) {
              tabs1 = "plugins";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN)) {
              showTabs1 = true;
          } else {
              showActiveUserSelect = false;

              if (tabs1.equals("roles") || tabs1.equals("password-policies") || tabs1.equals("settings")
                      || tabs1.equals("monitoring") || tabs1.equals("plugins")) {
                  tabs1 = "users";
              }
          }

          if (Validator.isNull(tabs1)) {
              tabs1 = "users";
          }

          boolean filterManageableGroups = true;
          boolean filterManageableOrganizations = true;
          boolean filterManageableRoles = true;
          boolean filterManageableUserGroupRoles = true;
          boolean filterManageableUserGroups = true;

          if (portletName.equals(PortletKeys.MY_ACCOUNT)) {
              filterManageableGroups = false;
              filterManageableOrganizations = false;
              filterManageableRoles = false;
              filterManageableUserGroupRoles = false;
              filterManageableUserGroups = false;
          } else if (permissionChecker.isCompanyAdmin()) {
              filterManageableGroups = false;
              filterManageableOrganizations = false;
              filterManageableUserGroups = false;
          }

          boolean includeSystemPortlets = true;

          int maxNumberOfRolesChecked = 500;

          Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(locale, timeZone);

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');

          PortletURL portletURL = (PortletURL) request.getAttribute("view.jsp-portletURL");

          out.write('\n');
          out.write('\n');
          //  liferay-ui:error
          com.liferay.taglib.ui.ErrorTag _jspx_th_liferay_002dui_005ferror_005f0 = (com.liferay.taglib.ui.ErrorTag) _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                  .get(com.liferay.taglib.ui.ErrorTag.class);
          _jspx_th_liferay_002dui_005ferror_005f0.setPageContext(_jspx_page_context);
          _jspx_th_liferay_002dui_005ferror_005f0.setParent(null);
          // /html/portlet/enterprise_admin/view_roles.jsp(23,0) name = exception type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_liferay_002dui_005ferror_005f0.setException(RequiredRoleException.class);
          // /html/portlet/enterprise_admin/view_roles.jsp(23,0) name = message type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_liferay_002dui_005ferror_005f0.setMessage("you-cannot-delete-a-system-role");
          int _jspx_eval_liferay_002dui_005ferror_005f0 = _jspx_th_liferay_002dui_005ferror_005f0.doStartTag();
          if (_jspx_th_liferay_002dui_005ferror_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                      .reuse(_jspx_th_liferay_002dui_005ferror_005f0);
              return;
          }
          _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                  .reuse(_jspx_th_liferay_002dui_005ferror_005f0);
          out.write('\n');
          out.write('\n');
          if (_jspx_meth_liferay_002dutil_005finclude_005f0(_jspx_page_context))
              return;
          out.write('\n');
          out.write('\n');

          RoleSearch searchContainer = new RoleSearch(renderRequest, portletURL);

          List headerNames = searchContainer.getHeaderNames();

          headerNames.add(StringPool.BLANK);

          out.write('\n');
          out.write('\n');
          //  liferay-ui:search-form
          com.liferay.taglib.ui.SearchFormTag _jspx_th_liferay_002dui_005fsearch_002dform_005f0 = (com.liferay.taglib.ui.SearchFormTag) _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002dform_0026_005fsearchContainer_005fpage_005fnobody
                  .get(com.liferay.taglib.ui.SearchFormTag.class);
          _jspx_th_liferay_002dui_005fsearch_002dform_005f0.setPageContext(_jspx_page_context);
          _jspx_th_liferay_002dui_005fsearch_002dform_005f0.setParent(null);
          // /html/portlet/enterprise_admin/view_roles.jsp(37,0) name = page type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_liferay_002dui_005fsearch_002dform_005f0
                  .setPage("/html/portlet/enterprise_admin/role_search.jsp");
          // /html/portlet/enterprise_admin/view_roles.jsp(37,0) name = searchContainer type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_liferay_002dui_005fsearch_002dform_005f0.setSearchContainer(searchContainer);
          int _jspx_eval_liferay_002dui_005fsearch_002dform_005f0 = _jspx_th_liferay_002dui_005fsearch_002dform_005f0
                  .doStartTag();
          if (_jspx_th_liferay_002dui_005fsearch_002dform_005f0
                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002dform_0026_005fsearchContainer_005fpage_005fnobody
                      .reuse(_jspx_th_liferay_002dui_005fsearch_002dform_005f0);
              return;
          }
          _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002dform_0026_005fsearchContainer_005fpage_005fnobody
                  .reuse(_jspx_th_liferay_002dui_005fsearch_002dform_005f0);
          out.write('\n');
          out.write('\n');

          RoleSearchTerms searchTerms = (RoleSearchTerms) searchContainer.getSearchTerms();

          int total = RoleLocalServiceUtil.searchCount(company.getCompanyId(), searchTerms.getName(),
                  searchTerms.getDescription(), searchTerms.getTypesObj());

          searchContainer.setTotal(total);

          List results = RoleLocalServiceUtil.search(company.getCompanyId(), searchTerms.getName(),
                  searchTerms.getDescription(), searchTerms.getTypesObj(), searchContainer.getStart(),
                  searchContainer.getEnd(), searchContainer.getOrderByComparator());

          searchContainer.setResults(results);

          portletURL.setParameter(searchContainer.getCurParam(), String.valueOf(searchContainer.getCur()));

          out.write('\n');
          out.write('\n');
          //  aui:input
          com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f0 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005fnobody
                  .get(com.liferay.taglib.aui.InputTag.class);
          _jspx_th_aui_005finput_005f0.setPageContext(_jspx_page_context);
          _jspx_th_aui_005finput_005f0.setParent(null);
          // /html/portlet/enterprise_admin/view_roles.jsp(56,0) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_aui_005finput_005f0.setName("rolesRedirect");
          // /html/portlet/enterprise_admin/view_roles.jsp(56,0) name = type type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_aui_005finput_005f0.setType("hidden");
          // /html/portlet/enterprise_admin/view_roles.jsp(56,0) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_aui_005finput_005f0.setValue(portletURL.toString());
          int _jspx_eval_aui_005finput_005f0 = _jspx_th_aui_005finput_005f0.doStartTag();
          if (_jspx_th_aui_005finput_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005fnobody
                      .reuse(_jspx_th_aui_005finput_005f0);
              return;
          }
          _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005fnobody
                  .reuse(_jspx_th_aui_005finput_005f0);
          out.write("\n");
          out.write("\n");
          out.write("<div class=\"separator\"><!-- --></div>\n");
          out.write("\n");

          List resultRows = searchContainer.getResultRows();

          for (int i = 0; i < results.size(); i++) {
              Role role = (Role) results.get(i);

              role = role.toEscapedModel();

              ResultRow row = new ResultRow(role, role.getRoleId(), i);

              PortletURL rowURL = null;

              if (RolePermissionUtil.contains(permissionChecker, role.getRoleId(), ActionKeys.UPDATE)) {
                  rowURL = renderResponse.createRenderURL();

                  rowURL.setParameter("struts_action", "/enterprise_admin/edit_role");
                  rowURL.setParameter("redirect", searchContainer.getIteratorURL().toString());
                  rowURL.setParameter("roleId", String.valueOf(role.getRoleId()));
              }

              // Name

              row.addText(HtmlUtil.escape(role.getTitle(locale)), rowURL);

              // Type

              row.addText(LanguageUtil.get(pageContext, role.getTypeLabel()), rowURL);

              // Subtype

              if ((PropsValues.ROLES_COMMUNITY_SUBTYPES.length > 0)
                      || (PropsValues.ROLES_ORGANIZATION_SUBTYPES.length > 0)
                      || (PropsValues.ROLES_REGULAR_SUBTYPES.length > 0)) {

                  row.addText(LanguageUtil.get(pageContext, role.getSubtype()), rowURL);
              }

              // Description

              row.addText(role.getDescription(), rowURL);

              // Action

              row.addJSP("right", SearchEntry.DEFAULT_VALIGN, "/html/portlet/enterprise_admin/role_action.jsp");

              // CSS

              row.setClassName(EnterpriseAdminUtil.getCssClassName(role));
              row.setClassHoverName(EnterpriseAdminUtil.getCssClassName(role));

              // Add result row

              resultRows.add(row);
          }

          out.write('\n');
          out.write('\n');
          //  liferay-ui:search-iterator
          com.liferay.taglib.ui.SearchIteratorTag _jspx_th_liferay_002dui_005fsearch_002diterator_005f0 = (com.liferay.taglib.ui.SearchIteratorTag) _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002diterator_0026_005fsearchContainer_005fnobody
                  .get(com.liferay.taglib.ui.SearchIteratorTag.class);
          _jspx_th_liferay_002dui_005fsearch_002diterator_005f0.setPageContext(_jspx_page_context);
          _jspx_th_liferay_002dui_005fsearch_002diterator_005f0.setParent(null);
          // /html/portlet/enterprise_admin/view_roles.jsp(116,0) name = searchContainer type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_liferay_002dui_005fsearch_002diterator_005f0.setSearchContainer(searchContainer);
          int _jspx_eval_liferay_002dui_005fsearch_002diterator_005f0 = _jspx_th_liferay_002dui_005fsearch_002diterator_005f0
                  .doStartTag();
          if (_jspx_th_liferay_002dui_005fsearch_002diterator_005f0
                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002diterator_0026_005fsearchContainer_005fnobody
                      .reuse(_jspx_th_liferay_002dui_005fsearch_002diterator_005f0);
              return;
          }
          _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002diterator_0026_005fsearchContainer_005fnobody
                  .reuse(_jspx_th_liferay_002dui_005fsearch_002diterator_005f0);
      } catch (Throwable t) {
          if (!(t instanceof SkipPageException)) {
              out = _jspx_out;
              if (out != null && out.getBufferSize() != 0)
                  try {
                      out.clearBuffer();
                  } catch (java.io.IOException e) {
                  }
              if (_jspx_page_context != null)
                  _jspx_page_context.handlePageException(t);
          }
      } finally {
          _jspxFactory.releasePageContext(_jspx_page_context);
      }
  }