All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.view.jsp Maven / Gradle / Ivy

There is a newer version: 5.0.66
Show newest version
<%--
/**
 * 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 displayStyle = ParamUtil.getString(request, "displayStyle", "list");

PortletURL portletURL = renderResponse.createRenderURL();

pageContext.setAttribute("portletURL", portletURL);

String portletURLString = portletURL.toString();

boolean passwordPolicyEnabled = LDAPSettingsUtil.isPasswordPolicyEnabled(company.getCompanyId());

PasswordPolicySearch searchContainer = new PasswordPolicySearch(renderRequest, portletURL);

searchContainer.setId("passwordPolicy");
searchContainer.setRowChecker(new PasswordPolicyChecker(renderResponse));

String description = LanguageUtil.get(request, "javax.portlet.description.com_liferay_password_policies_admin_web_portlet_PasswordPoliciesAdminPortlet") + " " + LanguageUtil.get(request, "when-no-password-policy-is-assigned-to-a-user,-either-explicitly-or-through-an-organization,-the-default-password-policy-is-used");

portletDisplay.setDescription(description);

PortalUtil.addPortletBreadcrumbEntry(request, LanguageUtil.get(request, "password-policies"), null);
%>


	
		
	

	

		<%
		PortletURL searchURL = renderResponse.createRenderURL();
		%>

		
			
				
			
		
	



	
		

		
	

	
		
	

	
		
	



	
	

	

	
		
<% PasswordPolicyDisplayTerms searchTerms = (PasswordPolicyDisplayTerms)passwordPolicySearchContainer.getSearchTerms(); total = PasswordPolicyLocalServiceUtil.searchCount(company.getCompanyId(), searchTerms.getKeywords()); passwordPolicySearchContainer.setTotal(total); List results = PasswordPolicyLocalServiceUtil.search(company.getCompanyId(), searchTerms.getKeywords(), passwordPolicySearchContainer.getStart(), passwordPolicySearchContainer.getEnd(), passwordPolicySearchContainer.getOrderByComparator()); passwordPolicySearchContainer.setResults(results); PortletURL passwordPoliciesRedirectURL = PortletURLUtil.clone(portletURL, renderResponse); passwordPoliciesRedirectURL.setParameter(passwordPolicySearchContainer.getCurParam(), String.valueOf(passwordPolicySearchContainer.getCur())); %>
$('#deletePasswordPolicies').on( 'click', function() { if (confirm('<%= UnicodeLanguageUtil.get(request, "are-you-sure-you-want-to-delete-this") %>')) { var form = AUI.$(document.fm); var passwordPolicyIds = Liferay.Util.listCheckedExcept(form, 'allRowIds'); form.attr('method', 'post'); form.fm('passwordPolicyIds').val(passwordPolicyIds); document.fm.p_p_lifecycle.value = '1'; submitForm(form, ''); } } );




© 2015 - 2025 Weber Informatics LLC | Privacy Policy