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

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

The 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" %>



	<%
	Portlet portlet = PortletLocalServiceUtil.getPortletById(company.getCompanyId(), portletDisplay.getId());
	%>

	
		" rel="stylesheet" type="text/css" />
	

	
		
			
				Liferay.Poller.init({
					encryptedUserId:
						'<%= EncryptorUtil.encrypt(company.getKeyObj(), String.valueOf(themeDisplay.getUserId())) %>',
				});
			
		

		
		
	

	<%
	Status status = StatusLocalServiceUtil.getUserStatus(themeDisplay.getUserId());

	boolean online = status.getOnline();

	JSONObject activePanelIdsJSONObject = null;

	String openPanelId = StringPool.BLANK;

	if (Validator.isNotNull(status.getActivePanelIds())) {
		activePanelIdsJSONObject = JSONFactoryUtil.createJSONObject(status.getActivePanelIds());

		openPanelId = activePanelIdsJSONObject.getString("open");
	}

	String statusMessage = HtmlUtil.escape(status.getMessage());
	boolean playSound = status.getPlaySound();

	List buddies = BuddyFinderUtil.getBuddies(themeDisplay.getCompanyId(), themeDisplay.getUserId());

	int buddiesCount = buddies.size();
	%>

	
<%= LanguageUtil.format(request, "you-are-x", "" + statusMessage + "", false) %>
  • ">
    <%= LanguageUtil.format(request, "online-friends-x", "(" + buddiesCount + ")", false) %>
    <%= LanguageUtil.format(request, "online-friends-x", "(" + buddiesCount + ")", false) %>
      <% for (Object[] buddy : buddies) { String firstName = (String)buddy[1]; long groupId = (Long)buddy[2]; String lastName = (String)buddy[3]; boolean male = (Boolean)buddy[4]; String middleName = (String)buddy[5]; long portraitId = (Long)buddy[6]; long userId = (Long)buddy[8]; String userUuid = (String)buddy[9]; Group group = GroupLocalServiceUtil.fetchGroup(groupId); %>
    • <%= HtmlUtil.escape(ContactConstants.getFullName(firstName, middleName, lastName)) %>
      <%= HtmlUtil.escape(ContactConstants.getFullName(firstName, middleName, lastName)) %>
    • <% } %>
  • ">
    " />
<% Map extensions = ChatExtensionsUtil.getExtensions(); Set servletContextNames = extensions.keySet(); for (String servletContextName : servletContextNames) { %> <% } %>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy