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

META-INF.resources.edit_password_policy.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 redirect = ParamUtil.getString(request, "redirect");

String backURL = ParamUtil.getString(request, "backURL", redirect);

long passwordPolicyId = ParamUtil.getLong(request, "passwordPolicyId");

PasswordPolicy passwordPolicy = PasswordPolicyLocalServiceUtil.fetchPasswordPolicy(passwordPolicyId);

if (passwordPolicy == null) {
	passwordPolicy = new PasswordPolicyImpl();

	passwordPolicy.setNew(true);
}

boolean defaultPolicy = BeanParamUtil.getBoolean(passwordPolicy, request, "defaultPolicy");

portletDisplay.setShowBackIcon(true);
portletDisplay.setURLBack(backURL.toString());

renderResponse.setTitle(passwordPolicy.isNew() ? LanguageUtil.get(request, "new-password-policy") : passwordPolicy.getName());
%>




	
	

	
	

	

	
		
			

			
		

		
			
				
					

					
<% for (int i = 0; i < 15; i++) { %> <% } %>
<% for (int i = 0; i < 15; i++) { %> <% } %>
<% String taglinbHelpMessage = LanguageUtil.format(request, "regular-expression-help", new Object[] {"", ""}, false); %>
<% for (int i = 2; i < 25; i++) { %> <% } %>
<% for (int i = 15; i < _DURATIONS.length; i++) { %> <% } %> <% for (int i = 7; i < 16; i++) { %> <% } %>
<% for (int i = 0; i < 15; i++) { %> <% } %> <% for (int i = 0; i < 15; i++) { %> <% } %>
Liferay.Util.toggleBoxes('changeable', 'changeableSettings'); Liferay.Util.toggleBoxes('checkSyntax', 'syntaxSettings'); Liferay.Util.toggleBoxes('history', 'historySettings'); Liferay.Util.toggleBoxes('expireable', 'expirationSettings'); Liferay.Util.toggleBoxes('lockout', 'lockoutSettings'); <% if (passwordPolicy != null) { PortalUtil.addPortletBreadcrumbEntry(request, passwordPolicy.getName(), null); PortalUtil.addPortletBreadcrumbEntry(request, LanguageUtil.get(request, "edit"), currentURL); } else { PortalUtil.addPortletBreadcrumbEntry(request, LanguageUtil.get(request, "add-user"), currentURL); } %> <%! private static final long[] _DURATIONS = {300, 600, 1800, 3600, 7200, 10800, 21600, 43200, 86400, 172800, 259200, 345600, 432000, 518400, 604800, 1209600, 1814400, 2419200, 4838400, 7862400, 15724800, 31449600}; %>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy