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

META-INF.resources.user.details.jsp Maven / Gradle / Ivy

There is a newer version: 3.0.6
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" %>

<%
User selUser = (User)request.getAttribute("user.selUser");

if (selUser == null) {
	selUser = PortalUtil.getSelectedUser(request);
}

Contact selContact = (Contact)request.getAttribute("user.selContact");
PasswordPolicy passwordPolicy = (PasswordPolicy)request.getAttribute("user.passwordPolicy");

Calendar birthday = CalendarFactoryUtil.getCalendar();

birthday.set(Calendar.MONTH, Calendar.JANUARY);
birthday.set(Calendar.DATE, 1);
birthday.set(Calendar.YEAR, 1970);

if (selContact != null) {
	birthday.setTime(selContact.getBirthday());
}
%>





<% GroupFriendlyURLException gfurle = (GroupFriendlyURLException)errorException; %> <% UserFieldException ufe = (UserFieldException)errorException; List fields = ufe.getFields(); StringBundler sb = new StringBundler(2 * fields.size() - 1); for (int i = 0; i < fields.size(); i++) { String field = fields.get(i); sb.append(LanguageUtil.get(request, TextFormatter.format(field, TextFormatter.K))); if ((i + 1) < fields.size()) { sb.append(StringPool.COMMA_AND_SPACE); } } %> <% UserScreenNameException.MustValidate usne = (UserScreenNameException.MustValidate)errorException; %> <% ScreenNameValidator screenNameValidator = ScreenNameValidatorFactory.getInstance(); %> <%= screenNameValidator.getAUIValidatorJS() %> <% User displayEmailAddressUser = null; if (selUser != null) { displayEmailAddressUser = (User)selUser.clone(); displayEmailAddressUser.setEmailAddress(displayEmailAddressUser.getDisplayEmailAddress()); } %>
<liferay-ui:message escapeAttribute=" key="portrait" />" src="<%= selUser.getPortraitURL(themeDisplay) %>" />
<% boolean lockedOut = false; if ((selUser != null) && (passwordPolicy != null)) { try { UserLocalServiceUtil.checkLockout(selUser); } catch (UserLockoutException.PasswordPolicyLockout ule) { lockedOut = true; } } %>
<% String taglibOnClick = renderResponse.getNamespace() + "saveUser('unlock');"; %>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy