
META-INF.resources.view_flat_organizations.jsp Maven / Gradle / Ivy
<%--
/**
* Copyright (c) 2000-present 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.
*/
--%>
<%@ include file="/init.jsp" %>
<%
String toolbarItem = ParamUtil.getString(request, "toolbarItem", "view-all-organizations");
String displayStyle = ParamUtil.getString(request, "displayStyle", "list");
String usersListView = (String)request.getAttribute("view.jsp-usersListView");
PortletURL portletURL = (PortletURL)request.getAttribute("view.jsp-portletURL");
String keywords = ParamUtil.getString(request, "keywords");
LinkedHashMap organizationParams = new LinkedHashMap();
boolean showList = true;
if (filterManageableOrganizations) {
List userOrganizations = user.getOrganizations(true);
if (userOrganizations.isEmpty()) {
showList = false;
}
else {
organizationParams.put("organizationsTree", userOrganizations);
}
}
boolean hasAddOrganizationPermission = PortalPermissionUtil.contains(permissionChecker, ActionKeys.ADD_ORGANIZATION);
%>
<%
SearchContainer searchContainer = new OrganizationSearch(renderRequest, portletURL);
OrganizationSearchTerms searchTerms = (OrganizationSearchTerms)searchContainer.getSearchTerms();
if (!searchTerms.isSearch() && hasAddOrganizationPermission) {
searchContainer.setEmptyResultsMessageCssClass("taglib-empty-result-message-header-has-plus-btn");
}
RowChecker rowChecker = new OrganizationChecker(renderResponse);
rowChecker.setRowIds("rowIdsOrganization");
searchContainer.setRowChecker(rowChecker);
%>
<%
long parentOrganizationId = OrganizationConstants.DEFAULT_PARENT_ORGANIZATION_ID;
if (Validator.isNotNull(keywords)) {
parentOrganizationId = OrganizationConstants.ANY_PARENT_ORGANIZATION_ID;
}
else {
parentOrganizationId = ParamUtil.getLong(request, "parentOrganizationId", OrganizationConstants.DEFAULT_PARENT_ORGANIZATION_ID);
}
%>
<%
if (!OrganizationPermissionUtil.contains(permissionChecker, organization, ActionKeys.VIEW)) {
rowURL = null;
}
%>
<%@ include file="/organization/search_columns.jspf" %>
<%
for (String organizationType : PropsValues.ORGANIZATIONS_TYPES) {
%>
<%
}
%>
Liferay.Util.toggleSearchContainerButton('# delete', '# <%= searchContainerReference.getId(request, "organizationSearchContainer") %>SearchContainer', document. fm, ' allRowIds');
© 2015 - 2025 Weber Informatics LLC | Privacy Policy