/portal-impl/src/com/liferay/portal/service/http/UserServiceHttp.java
https://github.com/danielreuther/liferay-portal · Java · 1678 lines · 1283 code · 356 blank · 39 comment · 37 complexity · 1d63f6ca13a9713127afcf2a006d0e1d MD5 · raw file
- /**
- * 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.
- */
- package com.liferay.portal.service.http;
- import com.liferay.portal.kernel.log.Log;
- import com.liferay.portal.kernel.log.LogFactoryUtil;
- import com.liferay.portal.kernel.security.auth.HttpPrincipal;
- import com.liferay.portal.kernel.service.UserServiceUtil;
- import com.liferay.portal.kernel.service.http.TunnelUtil;
- import com.liferay.portal.kernel.util.MethodHandler;
- import com.liferay.portal.kernel.util.MethodKey;
- /**
- * Provides the HTTP utility for the
- * <code>UserServiceUtil</code> service
- * utility. The
- * static methods of this class calls the same methods of the service utility.
- * However, the signatures are different because it requires an additional
- * <code>HttpPrincipal</code> parameter.
- *
- * <p>
- * The benefits of using the HTTP utility is that it is fast and allows for
- * tunneling without the cost of serializing to text. The drawback is that it
- * only works with Java.
- * </p>
- *
- * <p>
- * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
- * configure security.
- * </p>
- *
- * <p>
- * The HTTP utility is only generated for remote services.
- * </p>
- *
- * @author Brian Wing Shun Chan
- * @generated
- */
- public class UserServiceHttp {
- public static void addGroupUsers(
- HttpPrincipal httpPrincipal, long groupId, long[] userIds,
- com.liferay.portal.kernel.service.ServiceContext serviceContext)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "addGroupUsers",
- _addGroupUsersParameterTypes0);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, groupId, userIds, serviceContext);
- try {
- TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static void addOrganizationUsers(
- HttpPrincipal httpPrincipal, long organizationId, long[] userIds)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "addOrganizationUsers",
- _addOrganizationUsersParameterTypes1);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, organizationId, userIds);
- try {
- TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static com.liferay.portal.kernel.model.User addOrUpdateUser(
- HttpPrincipal httpPrincipal, String externalReferenceCode,
- long creatorUserId, long companyId, boolean autoPassword,
- String password1, String password2, boolean autoScreenName,
- String screenName, String emailAddress, java.util.Locale locale,
- String firstName, String middleName, String lastName, long prefixId,
- long suffixId, boolean male, int birthdayMonth, int birthdayDay,
- int birthdayYear, String jobTitle,
- java.util.List<com.liferay.portal.kernel.model.Address> addresses,
- java.util.List<com.liferay.portal.kernel.model.EmailAddress>
- emailAddresses,
- java.util.List<com.liferay.portal.kernel.model.Phone> phones,
- java.util.List<com.liferay.portal.kernel.model.Website> websites,
- boolean sendEmail,
- com.liferay.portal.kernel.service.ServiceContext serviceContext)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "addOrUpdateUser",
- _addOrUpdateUserParameterTypes2);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, externalReferenceCode, creatorUserId, companyId,
- autoPassword, password1, password2, autoScreenName, screenName,
- emailAddress, locale, firstName, middleName, lastName, prefixId,
- suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
- jobTitle, addresses, emailAddresses, phones, websites,
- sendEmail, serviceContext);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (com.liferay.portal.kernel.model.User)returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static void addPasswordPolicyUsers(
- HttpPrincipal httpPrincipal, long passwordPolicyId, long[] userIds)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "addPasswordPolicyUsers",
- _addPasswordPolicyUsersParameterTypes3);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, passwordPolicyId, userIds);
- try {
- TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static void addRoleUsers(
- HttpPrincipal httpPrincipal, long roleId, long[] userIds)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "addRoleUsers",
- _addRoleUsersParameterTypes4);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, roleId, userIds);
- try {
- TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static void addTeamUsers(
- HttpPrincipal httpPrincipal, long teamId, long[] userIds)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "addTeamUsers",
- _addTeamUsersParameterTypes5);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, teamId, userIds);
- try {
- TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static com.liferay.portal.kernel.model.User addUser(
- HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
- String password1, String password2, boolean autoScreenName,
- String screenName, String emailAddress, java.util.Locale locale,
- String firstName, String middleName, String lastName, long prefixId,
- long suffixId, boolean male, int birthdayMonth, int birthdayDay,
- int birthdayYear, String jobTitle, long[] groupIds,
- long[] organizationIds, long[] roleIds, long[] userGroupIds,
- boolean sendEmail,
- com.liferay.portal.kernel.service.ServiceContext serviceContext)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "addUser", _addUserParameterTypes6);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, companyId, autoPassword, password1, password2,
- autoScreenName, screenName, emailAddress, locale, firstName,
- middleName, lastName, prefixId, suffixId, male, birthdayMonth,
- birthdayDay, birthdayYear, jobTitle, groupIds, organizationIds,
- roleIds, userGroupIds, sendEmail, serviceContext);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (com.liferay.portal.kernel.model.User)returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static com.liferay.portal.kernel.model.User addUser(
- HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
- String password1, String password2, boolean autoScreenName,
- String screenName, String emailAddress, java.util.Locale locale,
- String firstName, String middleName, String lastName, long prefixId,
- long suffixId, boolean male, int birthdayMonth, int birthdayDay,
- int birthdayYear, String jobTitle, long[] groupIds,
- long[] organizationIds, long[] roleIds, long[] userGroupIds,
- java.util.List<com.liferay.portal.kernel.model.Address> addresses,
- java.util.List<com.liferay.portal.kernel.model.EmailAddress>
- emailAddresses,
- java.util.List<com.liferay.portal.kernel.model.Phone> phones,
- java.util.List<com.liferay.portal.kernel.model.Website> websites,
- java.util.List
- <com.liferay.announcements.kernel.model.AnnouncementsDelivery>
- announcementsDelivers,
- boolean sendEmail,
- com.liferay.portal.kernel.service.ServiceContext serviceContext)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "addUser", _addUserParameterTypes7);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, companyId, autoPassword, password1, password2,
- autoScreenName, screenName, emailAddress, locale, firstName,
- middleName, lastName, prefixId, suffixId, male, birthdayMonth,
- birthdayDay, birthdayYear, jobTitle, groupIds, organizationIds,
- roleIds, userGroupIds, addresses, emailAddresses, phones,
- websites, announcementsDelivers, sendEmail, serviceContext);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (com.liferay.portal.kernel.model.User)returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static com.liferay.portal.kernel.model.User addUser(
- HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
- String password1, String password2, boolean autoScreenName,
- String screenName, String emailAddress, long facebookId,
- String openId, java.util.Locale locale, String firstName,
- String middleName, String lastName, long prefixId, long suffixId,
- boolean male, int birthdayMonth, int birthdayDay, int birthdayYear,
- String jobTitle, long[] groupIds, long[] organizationIds,
- long[] roleIds, long[] userGroupIds, boolean sendEmail,
- com.liferay.portal.kernel.service.ServiceContext serviceContext)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "addUser", _addUserParameterTypes8);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, companyId, autoPassword, password1, password2,
- autoScreenName, screenName, emailAddress, facebookId, openId,
- locale, firstName, middleName, lastName, prefixId, suffixId,
- male, birthdayMonth, birthdayDay, birthdayYear, jobTitle,
- groupIds, organizationIds, roleIds, userGroupIds, sendEmail,
- serviceContext);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (com.liferay.portal.kernel.model.User)returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static com.liferay.portal.kernel.model.User addUser(
- HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
- String password1, String password2, boolean autoScreenName,
- String screenName, String emailAddress, long facebookId,
- String openId, java.util.Locale locale, String firstName,
- String middleName, String lastName, long prefixId, long suffixId,
- boolean male, int birthdayMonth, int birthdayDay, int birthdayYear,
- String jobTitle, long[] groupIds, long[] organizationIds,
- long[] roleIds, long[] userGroupIds,
- java.util.List<com.liferay.portal.kernel.model.Address> addresses,
- java.util.List<com.liferay.portal.kernel.model.EmailAddress>
- emailAddresses,
- java.util.List<com.liferay.portal.kernel.model.Phone> phones,
- java.util.List<com.liferay.portal.kernel.model.Website> websites,
- java.util.List
- <com.liferay.announcements.kernel.model.AnnouncementsDelivery>
- announcementsDelivers,
- boolean sendEmail,
- com.liferay.portal.kernel.service.ServiceContext serviceContext)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "addUser", _addUserParameterTypes9);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, companyId, autoPassword, password1, password2,
- autoScreenName, screenName, emailAddress, facebookId, openId,
- locale, firstName, middleName, lastName, prefixId, suffixId,
- male, birthdayMonth, birthdayDay, birthdayYear, jobTitle,
- groupIds, organizationIds, roleIds, userGroupIds, addresses,
- emailAddresses, phones, websites, announcementsDelivers,
- sendEmail, serviceContext);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (com.liferay.portal.kernel.model.User)returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static void addUserGroupUsers(
- HttpPrincipal httpPrincipal, long userGroupId, long[] userIds)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "addUserGroupUsers",
- _addUserGroupUsersParameterTypes10);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, userGroupId, userIds);
- try {
- TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static com.liferay.portal.kernel.model.User addUserWithWorkflow(
- HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
- String password1, String password2, boolean autoScreenName,
- String screenName, String emailAddress, java.util.Locale locale,
- String firstName, String middleName, String lastName, long prefixId,
- long suffixId, boolean male, int birthdayMonth, int birthdayDay,
- int birthdayYear, String jobTitle, long[] groupIds,
- long[] organizationIds, long[] roleIds, long[] userGroupIds,
- boolean sendEmail,
- com.liferay.portal.kernel.service.ServiceContext serviceContext)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "addUserWithWorkflow",
- _addUserWithWorkflowParameterTypes11);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, companyId, autoPassword, password1, password2,
- autoScreenName, screenName, emailAddress, locale, firstName,
- middleName, lastName, prefixId, suffixId, male, birthdayMonth,
- birthdayDay, birthdayYear, jobTitle, groupIds, organizationIds,
- roleIds, userGroupIds, sendEmail, serviceContext);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (com.liferay.portal.kernel.model.User)returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static com.liferay.portal.kernel.model.User addUserWithWorkflow(
- HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
- String password1, String password2, boolean autoScreenName,
- String screenName, String emailAddress, java.util.Locale locale,
- String firstName, String middleName, String lastName, long prefixId,
- long suffixId, boolean male, int birthdayMonth, int birthdayDay,
- int birthdayYear, String jobTitle, long[] groupIds,
- long[] organizationIds, long[] roleIds, long[] userGroupIds,
- java.util.List<com.liferay.portal.kernel.model.Address> addresses,
- java.util.List<com.liferay.portal.kernel.model.EmailAddress>
- emailAddresses,
- java.util.List<com.liferay.portal.kernel.model.Phone> phones,
- java.util.List<com.liferay.portal.kernel.model.Website> websites,
- java.util.List
- <com.liferay.announcements.kernel.model.AnnouncementsDelivery>
- announcementsDelivers,
- boolean sendEmail,
- com.liferay.portal.kernel.service.ServiceContext serviceContext)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "addUserWithWorkflow",
- _addUserWithWorkflowParameterTypes12);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, companyId, autoPassword, password1, password2,
- autoScreenName, screenName, emailAddress, locale, firstName,
- middleName, lastName, prefixId, suffixId, male, birthdayMonth,
- birthdayDay, birthdayYear, jobTitle, groupIds, organizationIds,
- roleIds, userGroupIds, addresses, emailAddresses, phones,
- websites, announcementsDelivers, sendEmail, serviceContext);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (com.liferay.portal.kernel.model.User)returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static com.liferay.portal.kernel.model.User addUserWithWorkflow(
- HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
- String password1, String password2, boolean autoScreenName,
- String screenName, String emailAddress, long facebookId,
- String openId, java.util.Locale locale, String firstName,
- String middleName, String lastName, long prefixId, long suffixId,
- boolean male, int birthdayMonth, int birthdayDay, int birthdayYear,
- String jobTitle, long[] groupIds, long[] organizationIds,
- long[] roleIds, long[] userGroupIds, boolean sendEmail,
- com.liferay.portal.kernel.service.ServiceContext serviceContext)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "addUserWithWorkflow",
- _addUserWithWorkflowParameterTypes13);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, companyId, autoPassword, password1, password2,
- autoScreenName, screenName, emailAddress, facebookId, openId,
- locale, firstName, middleName, lastName, prefixId, suffixId,
- male, birthdayMonth, birthdayDay, birthdayYear, jobTitle,
- groupIds, organizationIds, roleIds, userGroupIds, sendEmail,
- serviceContext);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (com.liferay.portal.kernel.model.User)returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static com.liferay.portal.kernel.model.User addUserWithWorkflow(
- HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
- String password1, String password2, boolean autoScreenName,
- String screenName, String emailAddress, long facebookId,
- String openId, java.util.Locale locale, String firstName,
- String middleName, String lastName, long prefixId, long suffixId,
- boolean male, int birthdayMonth, int birthdayDay, int birthdayYear,
- String jobTitle, long[] groupIds, long[] organizationIds,
- long[] roleIds, long[] userGroupIds,
- java.util.List<com.liferay.portal.kernel.model.Address> addresses,
- java.util.List<com.liferay.portal.kernel.model.EmailAddress>
- emailAddresses,
- java.util.List<com.liferay.portal.kernel.model.Phone> phones,
- java.util.List<com.liferay.portal.kernel.model.Website> websites,
- java.util.List
- <com.liferay.announcements.kernel.model.AnnouncementsDelivery>
- announcementsDelivers,
- boolean sendEmail,
- com.liferay.portal.kernel.service.ServiceContext serviceContext)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "addUserWithWorkflow",
- _addUserWithWorkflowParameterTypes14);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, companyId, autoPassword, password1, password2,
- autoScreenName, screenName, emailAddress, facebookId, openId,
- locale, firstName, middleName, lastName, prefixId, suffixId,
- male, birthdayMonth, birthdayDay, birthdayYear, jobTitle,
- groupIds, organizationIds, roleIds, userGroupIds, addresses,
- emailAddresses, phones, websites, announcementsDelivers,
- sendEmail, serviceContext);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (com.liferay.portal.kernel.model.User)returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static void deletePortrait(HttpPrincipal httpPrincipal, long userId)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "deletePortrait",
- _deletePortraitParameterTypes15);
- MethodHandler methodHandler = new MethodHandler(methodKey, userId);
- try {
- TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static void deleteRoleUser(
- HttpPrincipal httpPrincipal, long roleId, long userId)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "deleteRoleUser",
- _deleteRoleUserParameterTypes16);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, roleId, userId);
- try {
- TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static void deleteUser(HttpPrincipal httpPrincipal, long userId)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "deleteUser",
- _deleteUserParameterTypes17);
- MethodHandler methodHandler = new MethodHandler(methodKey, userId);
- try {
- TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static java.util.List<com.liferay.portal.kernel.model.User>
- getCompanyUsers(
- HttpPrincipal httpPrincipal, long companyId, int start, int end)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getCompanyUsers",
- _getCompanyUsersParameterTypes18);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, companyId, start, end);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (java.util.List<com.liferay.portal.kernel.model.User>)
- returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static int getCompanyUsersCount(
- HttpPrincipal httpPrincipal, long companyId)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getCompanyUsersCount",
- _getCompanyUsersCountParameterTypes19);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, companyId);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return ((Integer)returnObj).intValue();
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static com.liferay.portal.kernel.model.User getCurrentUser(
- HttpPrincipal httpPrincipal)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getCurrentUser",
- _getCurrentUserParameterTypes20);
- MethodHandler methodHandler = new MethodHandler(methodKey);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (com.liferay.portal.kernel.model.User)returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static long[] getGroupUserIds(
- HttpPrincipal httpPrincipal, long groupId)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getGroupUserIds",
- _getGroupUserIdsParameterTypes21);
- MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (long[])returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static java.util.List<com.liferay.portal.kernel.model.User>
- getGroupUsers(HttpPrincipal httpPrincipal, long groupId)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getGroupUsers",
- _getGroupUsersParameterTypes22);
- MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (java.util.List<com.liferay.portal.kernel.model.User>)
- returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static java.util.List<com.liferay.portal.kernel.model.User>
- getGroupUsers(
- HttpPrincipal httpPrincipal, long groupId, int status,
- int start, int end,
- com.liferay.portal.kernel.util.OrderByComparator
- <com.liferay.portal.kernel.model.User> orderByComparator)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getGroupUsers",
- _getGroupUsersParameterTypes23);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, groupId, status, start, end, orderByComparator);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (java.util.List<com.liferay.portal.kernel.model.User>)
- returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static java.util.List<com.liferay.portal.kernel.model.User>
- getGroupUsers(
- HttpPrincipal httpPrincipal, long groupId, int status,
- com.liferay.portal.kernel.util.OrderByComparator
- <com.liferay.portal.kernel.model.User> orderByComparator)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getGroupUsers",
- _getGroupUsersParameterTypes24);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, groupId, status, orderByComparator);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (java.util.List<com.liferay.portal.kernel.model.User>)
- returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static int getGroupUsersCount(
- HttpPrincipal httpPrincipal, long groupId, int status)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getGroupUsersCount",
- _getGroupUsersCountParameterTypes25);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, groupId, status);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return ((Integer)returnObj).intValue();
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static java.util.List<com.liferay.portal.kernel.model.User>
- getGtCompanyUsers(
- HttpPrincipal httpPrincipal, long gtUserId, long companyId,
- int size)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getGtCompanyUsers",
- _getGtCompanyUsersParameterTypes26);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, gtUserId, companyId, size);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (java.util.List<com.liferay.portal.kernel.model.User>)
- returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static java.util.List<com.liferay.portal.kernel.model.User>
- getGtOrganizationUsers(
- HttpPrincipal httpPrincipal, long gtUserId, long organizationId,
- int size)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getGtOrganizationUsers",
- _getGtOrganizationUsersParameterTypes27);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, gtUserId, organizationId, size);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (java.util.List<com.liferay.portal.kernel.model.User>)
- returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static java.util.List<com.liferay.portal.kernel.model.User>
- getGtUserGroupUsers(
- HttpPrincipal httpPrincipal, long gtUserId, long userGroupId,
- int size)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getGtUserGroupUsers",
- _getGtUserGroupUsersParameterTypes28);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, gtUserId, userGroupId, size);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (java.util.List<com.liferay.portal.kernel.model.User>)
- returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static int getOrganizationsAndUserGroupsUsersCount(
- HttpPrincipal httpPrincipal, long[] organizationIds,
- long[] userGroupIds)
- throws com.liferay.portal.kernel.security.auth.PrincipalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class,
- "getOrganizationsAndUserGroupsUsersCount",
- _getOrganizationsAndUserGroupsUsersCountParameterTypes29);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, organizationIds, userGroupIds);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.security.auth.
- PrincipalException) {
- throw (com.liferay.portal.kernel.security.auth.
- PrincipalException)exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return ((Integer)returnObj).intValue();
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static long[] getOrganizationUserIds(
- HttpPrincipal httpPrincipal, long organizationId)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getOrganizationUserIds",
- _getOrganizationUserIdsParameterTypes30);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, organizationId);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (long[])returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static java.util.List<com.liferay.portal.kernel.model.User>
- getOrganizationUsers(
- HttpPrincipal httpPrincipal, long organizationId)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getOrganizationUsers",
- _getOrganizationUsersParameterTypes31);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, organizationId);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (java.util.List<com.liferay.portal.kernel.model.User>)
- returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static java.util.List<com.liferay.portal.kernel.model.User>
- getOrganizationUsers(
- HttpPrincipal httpPrincipal, long organizationId, int status,
- int start, int end,
- com.liferay.portal.kernel.util.OrderByComparator
- <com.liferay.portal.kernel.model.User> orderByComparator)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getOrganizationUsers",
- _getOrganizationUsersParameterTypes32);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, organizationId, status, start, end,
- orderByComparator);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (java.util.List<com.liferay.portal.kernel.model.User>)
- returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static java.util.List<com.liferay.portal.kernel.model.User>
- getOrganizationUsers(
- HttpPrincipal httpPrincipal, long organizationId, int status,
- com.liferay.portal.kernel.util.OrderByComparator
- <com.liferay.portal.kernel.model.User> orderByComparator)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getOrganizationUsers",
- _getOrganizationUsersParameterTypes33);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, organizationId, status, orderByComparator);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (java.util.List<com.liferay.portal.kernel.model.User>)
- returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static int getOrganizationUsersCount(
- HttpPrincipal httpPrincipal, long organizationId, int status)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getOrganizationUsersCount",
- _getOrganizationUsersCountParameterTypes34);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, organizationId, status);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return ((Integer)returnObj).intValue();
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static long[] getRoleUserIds(
- HttpPrincipal httpPrincipal, long roleId)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getRoleUserIds",
- _getRoleUserIdsParameterTypes35);
- MethodHandler methodHandler = new MethodHandler(methodKey, roleId);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (long[])returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- public static com.liferay.portal.kernel.model.User getUserByEmailAddress(
- HttpPrincipal httpPrincipal, long companyId, String emailAddress)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- MethodKey methodKey = new MethodKey(
- UserServiceUtil.class, "getUserByEmailAddress",
- _getUserByEmailAddressParameterTypes36);
- MethodHandler methodHandler = new MethodHandler(
- methodKey, companyId, emailAddress);
- Object returnObj = null;
- try {
- returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
- }
- catch (Exception exception) {
- if (exception instanceof
- com.liferay.portal.kernel.exception.PortalException) {
- throw (com.liferay.portal.kernel.exception.PortalException)
- exception;
- }
- throw new com.liferay.portal.kernel.exception.SystemException(
- exception);
- }
- return (com.liferay.portal.kernel.model.User)returnObj;
- }
- catch (com.liferay.portal.kernel.exception.SystemException
- systemException) {
- _log.error(systemException, systemException);
- throw systemException;
- }
- }
- p