com.liferay.portal.service
Class UserLocalServiceUtil

java.lang.Object
  extended by com.liferay.portal.service.UserLocalServiceUtil

public class UserLocalServiceUtil
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class provides static methods for the com.liferay.portal.service.UserLocalService bean. The static methods of this class calls the same methods of the bean instance. It's convenient to be able to just write one line to call a method on a bean instead of writing a lookup call and a method call.

Author:
Brian Wing Shun Chan
See Also:
UserLocalService

Constructor Summary
UserLocalServiceUtil()
           
 
Method Summary
static void addGroupUsers(long groupId, long[] userIds)
           
static void addOrganizationUsers(long organizationId, long[] userIds)
           
static void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
           
static void addRoleUsers(long roleId, long[] userIds)
           
static User addUser(long creatorUserId, long companyId, boolean autoPassword, java.lang.String password1, java.lang.String password2, boolean autoScreenName, java.lang.String screenName, java.lang.String emailAddress, java.lang.String openId, java.util.Locale locale, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, java.lang.String jobTitle, long[] groupIds, long[] organizationIds, long[] roleIds, long[] userGroupIds, boolean sendEmail, ServiceContext serviceContext)
           
static User addUser(User user)
           
static void addUserGroupUsers(long userGroupId, long[] userIds)
           
static int authenticateByEmailAddress(long companyId, java.lang.String emailAddress, java.lang.String password, java.util.Map<java.lang.String,java.lang.String[]> headerMap, java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
           
static int authenticateByScreenName(long companyId, java.lang.String screenName, java.lang.String password, java.util.Map<java.lang.String,java.lang.String[]> headerMap, java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
           
static int authenticateByUserId(long companyId, long userId, java.lang.String password, java.util.Map<java.lang.String,java.lang.String[]> headerMap, java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
           
static long authenticateForBasic(long companyId, java.lang.String authType, java.lang.String login, java.lang.String password)
           
static boolean authenticateForJAAS(long userId, java.lang.String encPassword)
           
static void checkLockout(User user)
           
static void checkLoginFailure(User user)
           
static void checkLoginFailureByEmailAddress(long companyId, java.lang.String emailAddress)
           
static void checkLoginFailureById(long userId)
           
static void checkLoginFailureByScreenName(long companyId, java.lang.String screenName)
           
static void checkPasswordExpired(User user)
           
static void clearOrganizationUsers(long organizationId)
           
static void clearUserGroupUsers(long userGroupId)
           
static User createUser(long userId)
           
static com.liferay.portal.kernel.util.KeyValuePair decryptUserId(long companyId, java.lang.String name, java.lang.String password)
           
static void deletePasswordPolicyUser(long passwordPolicyId, long userId)
           
static void deletePortrait(long userId)
           
static void deleteRoleUser(long roleId, long userId)
           
static void deleteUser(long userId)
           
static void deleteUser(User user)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static java.lang.String encryptUserId(java.lang.String name)
           
static User getDefaultUser(long companyId)
           
static long getDefaultUserId(long companyId)
           
static long[] getGroupUserIds(long groupId)
           
static java.util.List<User> getGroupUsers(long groupId)
           
static int getGroupUsersCount(long groupId)
           
static int getGroupUsersCount(long groupId, boolean active)
           
static java.util.List<User> getNoAnnouncementsDeliveries(java.lang.String type)
           
static long[] getOrganizationUserIds(long organizationId)
           
static java.util.List<User> getOrganizationUsers(long organizationId)
           
static int getOrganizationUsersCount(long organizationId)
           
static int getOrganizationUsersCount(long organizationId, boolean active)
           
static java.util.List<User> getPermissionUsers(long companyId, long groupId, java.lang.String name, java.lang.String primKey, java.lang.String actionId, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, java.lang.String emailAddress, boolean andOperator, int start, int end)
           
static int getPermissionUsersCount(long companyId, long groupId, java.lang.String name, java.lang.String primKey, java.lang.String actionId, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, java.lang.String emailAddress, boolean andOperator)
           
static long[] getRoleUserIds(long roleId)
           
static java.util.List<User> getRoleUsers(long roleId)
           
static int getRoleUsersCount(long roleId)
           
static int getRoleUsersCount(long roleId, boolean active)
           
static UserLocalService getService()
           
static java.util.List<User> getSocialUsers(long userId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<User> getSocialUsers(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<User> getSocialUsers(long userId1, long userId2, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<User> getSocialUsers(long userId1, long userId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getSocialUsersCount(long userId)
           
static int getSocialUsersCount(long userId, int type)
           
static int getSocialUsersCount(long userId1, long userId2)
           
static int getSocialUsersCount(long userId1, long userId2, int type)
           
static User getUser(long userId)
           
static User getUserByContactId(long contactId)
           
static User getUserByEmailAddress(long companyId, java.lang.String emailAddress)
           
static User getUserById(long userId)
           
static User getUserById(long companyId, long userId)
           
static User getUserByOpenId(java.lang.String openId)
           
static User getUserByPortraitId(long portraitId)
           
static User getUserByScreenName(long companyId, java.lang.String screenName)
           
static User getUserByUuid(java.lang.String uuid)
           
static java.util.List<User> getUserGroupUsers(long userGroupId)
           
static int getUserGroupUsersCount(long userGroupId)
           
static int getUserGroupUsersCount(long userGroupId, boolean active)
           
static long getUserIdByEmailAddress(long companyId, java.lang.String emailAddress)
           
static long getUserIdByScreenName(long companyId, java.lang.String screenName)
           
static java.util.List<User> getUsers(int start, int end)
           
static int getUsersCount()
           
static boolean hasGroupUser(long groupId, long userId)
           
static boolean hasOrganizationUser(long organizationId, long userId)
           
static boolean hasPasswordPolicyUser(long passwordPolicyId, long userId)
           
static boolean hasRoleUser(long roleId, long userId)
           
static boolean hasUserGroupUser(long userGroupId, long userId)
           
static boolean isPasswordExpired(User user)
           
static boolean isPasswordExpiringSoon(User user)
           
static void reIndex(long userId)
           
static void reIndex(java.lang.String[] ids)
           
static java.util.List<User> search(long companyId, java.lang.String keywords, java.lang.Boolean active, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.kernel.search.Hits search(long companyId, java.lang.String keywords, java.lang.Boolean active, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int start, int end, com.liferay.portal.kernel.search.Sort sort)
           
static java.util.List<User> search(long companyId, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, java.lang.String screenName, java.lang.String emailAddress, java.lang.Boolean active, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, boolean andSearch, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.kernel.search.Hits search(long companyId, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, java.lang.String screenName, java.lang.String emailAddress, java.lang.Boolean active, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, boolean andSearch, int start, int end, com.liferay.portal.kernel.search.Sort sort)
           
static int searchCount(long companyId, java.lang.String keywords, java.lang.Boolean active, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
           
static int searchCount(long companyId, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, java.lang.String screenName, java.lang.String emailAddress, java.lang.Boolean active, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, boolean andSearch)
           
static void sendPassword(long companyId, java.lang.String emailAddress, java.lang.String remoteAddr, java.lang.String remoteHost, java.lang.String userAgent, java.lang.String fromName, java.lang.String fromAddress, java.lang.String subject, java.lang.String body)
           
static void setRoleUsers(long roleId, long[] userIds)
           
 void setService(UserLocalService service)
           
static void setUserGroupUsers(long userGroupId, long[] userIds)
           
static void unsetGroupUsers(long groupId, long[] userIds)
           
static void unsetOrganizationUsers(long organizationId, long[] userIds)
           
static void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
           
static void unsetRoleUsers(long roleId, java.util.List<User> users)
           
static void unsetRoleUsers(long roleId, long[] userIds)
           
static void unsetUserGroupUsers(long userGroupId, long[] userIds)
           
static User updateActive(long userId, boolean active)
           
static User updateAgreedToTermsOfUse(long userId, boolean agreedToTermsOfUse)
           
static User updateCreateDate(long userId, java.util.Date createDate)
           
static User updateEmailAddress(long userId, java.lang.String password, java.lang.String emailAddress1, java.lang.String emailAddress2)
           
static void updateGroups(long userId, long[] newGroupIds)
           
static User updateLastLogin(long userId, java.lang.String loginIP)
           
static User updateLockout(User user, boolean lockout)
           
static User updateLockoutByEmailAddress(long companyId, java.lang.String emailAddress, boolean lockout)
           
static User updateLockoutById(long userId, boolean lockout)
           
static User updateLockoutByScreenName(long companyId, java.lang.String screenName, boolean lockout)
           
static User updateModifiedDate(long userId, java.util.Date modifiedDate)
           
static void updateOpenId(long userId, java.lang.String openId)
           
static void updateOrganizations(long userId, long[] newOrganizationIds)
           
static User updatePassword(long userId, java.lang.String password1, java.lang.String password2, boolean passwordReset)
           
static User updatePassword(long userId, java.lang.String password1, java.lang.String password2, boolean passwordReset, boolean silentUpdate)
           
static User updatePasswordManually(long userId, java.lang.String password, boolean passwordEncrypted, boolean passwordReset, java.util.Date passwordModifiedDate)
           
static void updatePasswordReset(long userId, boolean passwordReset)
           
static void updatePortrait(long userId, byte[] bytes)
           
static void updateReminderQuery(long userId, java.lang.String question, java.lang.String answer)
           
static void updateScreenName(long userId, java.lang.String screenName)
           
static User updateUser(long userId, java.lang.String oldPassword, java.lang.String newPassword1, java.lang.String newPassword2, boolean passwordReset, java.lang.String reminderQueryQuestion, java.lang.String reminderQueryAnswer, java.lang.String screenName, java.lang.String emailAddress, java.lang.String openId, java.lang.String languageId, java.lang.String timeZoneId, java.lang.String greeting, java.lang.String comments, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, java.lang.String smsSn, java.lang.String aimSn, java.lang.String facebookSn, java.lang.String icqSn, java.lang.String jabberSn, java.lang.String msnSn, java.lang.String mySpaceSn, java.lang.String skypeSn, java.lang.String twitterSn, java.lang.String ymSn, java.lang.String jobTitle, long[] groupIds, long[] organizationIds, long[] roleIds, java.util.List<UserGroupRole> userGroupRoles, long[] userGroupIds, ServiceContext serviceContext)
           
static User updateUser(User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserLocalServiceUtil

public UserLocalServiceUtil()
Method Detail

addUser

public static User addUser(User user)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createUser

public static User createUser(long userId)

deleteUser

public static void deleteUser(long userId)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteUser

public static void deleteUser(User user)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUser

public static User getUser(long userId)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUsers

public static java.util.List<User> getUsers(int start,
                                            int end)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUsersCount

public static int getUsersCount()
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateUser

public static User updateUser(User user)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addGroupUsers

public static void addGroupUsers(long groupId,
                                 long[] userIds)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addOrganizationUsers

public static void addOrganizationUsers(long organizationId,
                                        long[] userIds)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addPasswordPolicyUsers

public static void addPasswordPolicyUsers(long passwordPolicyId,
                                          long[] userIds)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addRoleUsers

public static void addRoleUsers(long roleId,
                                long[] userIds)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addUserGroupUsers

public static void addUserGroupUsers(long userGroupId,
                                     long[] userIds)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addUser

public static User addUser(long creatorUserId,
                           long companyId,
                           boolean autoPassword,
                           java.lang.String password1,
                           java.lang.String password2,
                           boolean autoScreenName,
                           java.lang.String screenName,
                           java.lang.String emailAddress,
                           java.lang.String openId,
                           java.util.Locale locale,
                           java.lang.String firstName,
                           java.lang.String middleName,
                           java.lang.String lastName,
                           int prefixId,
                           int suffixId,
                           boolean male,
                           int birthdayMonth,
                           int birthdayDay,
                           int birthdayYear,
                           java.lang.String jobTitle,
                           long[] groupIds,
                           long[] organizationIds,
                           long[] roleIds,
                           long[] userGroupIds,
                           boolean sendEmail,
                           ServiceContext serviceContext)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

authenticateByEmailAddress

public static int authenticateByEmailAddress(long companyId,
                                             java.lang.String emailAddress,
                                             java.lang.String password,
                                             java.util.Map<java.lang.String,java.lang.String[]> headerMap,
                                             java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
                                      throws com.liferay.portal.PortalException,
                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

authenticateByScreenName

public static int authenticateByScreenName(long companyId,
                                           java.lang.String screenName,
                                           java.lang.String password,
                                           java.util.Map<java.lang.String,java.lang.String[]> headerMap,
                                           java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

authenticateByUserId

public static int authenticateByUserId(long companyId,
                                       long userId,
                                       java.lang.String password,
                                       java.util.Map<java.lang.String,java.lang.String[]> headerMap,
                                       java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

authenticateForBasic

public static long authenticateForBasic(long companyId,
                                        java.lang.String authType,
                                        java.lang.String login,
                                        java.lang.String password)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

authenticateForJAAS

public static boolean authenticateForJAAS(long userId,
                                          java.lang.String encPassword)

checkLockout

public static void checkLockout(User user)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

checkLoginFailure

public static void checkLoginFailure(User user)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

checkLoginFailureByEmailAddress

public static void checkLoginFailureByEmailAddress(long companyId,
                                                   java.lang.String emailAddress)
                                            throws com.liferay.portal.PortalException,
                                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

checkLoginFailureById

public static void checkLoginFailureById(long userId)
                                  throws com.liferay.portal.PortalException,
                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

checkLoginFailureByScreenName

public static void checkLoginFailureByScreenName(long companyId,
                                                 java.lang.String screenName)
                                          throws com.liferay.portal.PortalException,
                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

checkPasswordExpired

public static void checkPasswordExpired(User user)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

clearOrganizationUsers

public static void clearOrganizationUsers(long organizationId)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

clearUserGroupUsers

public static void clearUserGroupUsers(long userGroupId)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

decryptUserId

public static com.liferay.portal.kernel.util.KeyValuePair decryptUserId(long companyId,
                                                                        java.lang.String name,
                                                                        java.lang.String password)
                                                                 throws com.liferay.portal.PortalException,
                                                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deletePasswordPolicyUser

public static void deletePasswordPolicyUser(long passwordPolicyId,
                                            long userId)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deletePortrait

public static void deletePortrait(long userId)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteRoleUser

public static void deleteRoleUser(long roleId,
                                  long userId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

encryptUserId

public static java.lang.String encryptUserId(java.lang.String name)
                                      throws com.liferay.portal.PortalException,
                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getDefaultUser

public static User getDefaultUser(long companyId)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getDefaultUserId

public static long getDefaultUserId(long companyId)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getGroupUserIds

public static long[] getGroupUserIds(long groupId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupUsers

public static java.util.List<User> getGroupUsers(long groupId)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupUsersCount

public static int getGroupUsersCount(long groupId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupUsersCount

public static int getGroupUsersCount(long groupId,
                                     boolean active)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getNoAnnouncementsDeliveries

public static java.util.List<User> getNoAnnouncementsDeliveries(java.lang.String type)
                                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizationUserIds

public static long[] getOrganizationUserIds(long organizationId)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizationUsers

public static java.util.List<User> getOrganizationUsers(long organizationId)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizationUsersCount

public static int getOrganizationUsersCount(long organizationId)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizationUsersCount

public static int getOrganizationUsersCount(long organizationId,
                                            boolean active)
                                     throws com.liferay.portal.PortalException,
                                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPermissionUsers

public static java.util.List<User> getPermissionUsers(long companyId,
                                                      long groupId,
                                                      java.lang.String name,
                                                      java.lang.String primKey,
                                                      java.lang.String actionId,
                                                      java.lang.String firstName,
                                                      java.lang.String middleName,
                                                      java.lang.String lastName,
                                                      java.lang.String emailAddress,
                                                      boolean andOperator,
                                                      int start,
                                                      int end)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPermissionUsersCount

public static int getPermissionUsersCount(long companyId,
                                          long groupId,
                                          java.lang.String name,
                                          java.lang.String primKey,
                                          java.lang.String actionId,
                                          java.lang.String firstName,
                                          java.lang.String middleName,
                                          java.lang.String lastName,
                                          java.lang.String emailAddress,
                                          boolean andOperator)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getRoleUserIds

public static long[] getRoleUserIds(long roleId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getRoleUsers

public static java.util.List<User> getRoleUsers(long roleId)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getRoleUsersCount

public static int getRoleUsersCount(long roleId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getRoleUsersCount

public static int getRoleUsersCount(long roleId,
                                    boolean active)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getSocialUsers

public static java.util.List<User> getSocialUsers(long userId,
                                                  int start,
                                                  int end,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.PortalException,
                                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getSocialUsers

public static java.util.List<User> getSocialUsers(long userId,
                                                  int type,
                                                  int start,
                                                  int end,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.PortalException,
                                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getSocialUsers

public static java.util.List<User> getSocialUsers(long userId1,
                                                  long userId2,
                                                  int start,
                                                  int end,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.PortalException,
                                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getSocialUsers

public static java.util.List<User> getSocialUsers(long userId1,
                                                  long userId2,
                                                  int type,
                                                  int start,
                                                  int end,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.PortalException,
                                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getSocialUsersCount

public static int getSocialUsersCount(long userId)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getSocialUsersCount

public static int getSocialUsersCount(long userId,
                                      int type)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getSocialUsersCount

public static int getSocialUsersCount(long userId1,
                                      long userId2)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getSocialUsersCount

public static int getSocialUsersCount(long userId1,
                                      long userId2,
                                      int type)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserGroupUsers

public static java.util.List<User> getUserGroupUsers(long userGroupId)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserGroupUsersCount

public static int getUserGroupUsersCount(long userGroupId)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserGroupUsersCount

public static int getUserGroupUsersCount(long userGroupId,
                                         boolean active)
                                  throws com.liferay.portal.PortalException,
                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserByContactId

public static User getUserByContactId(long contactId)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserByEmailAddress

public static User getUserByEmailAddress(long companyId,
                                         java.lang.String emailAddress)
                                  throws com.liferay.portal.PortalException,
                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserById

public static User getUserById(long userId)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserById

public static User getUserById(long companyId,
                               long userId)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserByOpenId

public static User getUserByOpenId(java.lang.String openId)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserByPortraitId

public static User getUserByPortraitId(long portraitId)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserByScreenName

public static User getUserByScreenName(long companyId,
                                       java.lang.String screenName)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserByUuid

public static User getUserByUuid(java.lang.String uuid)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserIdByEmailAddress

public static long getUserIdByEmailAddress(long companyId,
                                           java.lang.String emailAddress)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserIdByScreenName

public static long getUserIdByScreenName(long companyId,
                                         java.lang.String screenName)
                                  throws com.liferay.portal.PortalException,
                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

hasGroupUser

public static boolean hasGroupUser(long groupId,
                                   long userId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasOrganizationUser

public static boolean hasOrganizationUser(long organizationId,
                                          long userId)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasPasswordPolicyUser

public static boolean hasPasswordPolicyUser(long passwordPolicyId,
                                            long userId)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasRoleUser

public static boolean hasRoleUser(long roleId,
                                  long userId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasUserGroupUser

public static boolean hasUserGroupUser(long userGroupId,
                                       long userId)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

isPasswordExpired

public static boolean isPasswordExpired(User user)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

isPasswordExpiringSoon

public static boolean isPasswordExpiringSoon(User user)
                                      throws com.liferay.portal.PortalException,
                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

reIndex

public static void reIndex(long userId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

reIndex

public static void reIndex(java.lang.String[] ids)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

public static com.liferay.portal.kernel.search.Hits search(long companyId,
                                                           java.lang.String keywords,
                                                           java.lang.Boolean active,
                                                           java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                                           int start,
                                                           int end,
                                                           com.liferay.portal.kernel.search.Sort sort)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

public static com.liferay.portal.kernel.search.Hits search(long companyId,
                                                           java.lang.String firstName,
                                                           java.lang.String middleName,
                                                           java.lang.String lastName,
                                                           java.lang.String screenName,
                                                           java.lang.String emailAddress,
                                                           java.lang.Boolean active,
                                                           java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                                           boolean andSearch,
                                                           int start,
                                                           int end,
                                                           com.liferay.portal.kernel.search.Sort sort)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

public static java.util.List<User> search(long companyId,
                                          java.lang.String keywords,
                                          java.lang.Boolean active,
                                          java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                          int start,
                                          int end,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

public static java.util.List<User> search(long companyId,
                                          java.lang.String firstName,
                                          java.lang.String middleName,
                                          java.lang.String lastName,
                                          java.lang.String screenName,
                                          java.lang.String emailAddress,
                                          java.lang.Boolean active,
                                          java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                          boolean andSearch,
                                          int start,
                                          int end,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

searchCount

public static int searchCount(long companyId,
                              java.lang.String keywords,
                              java.lang.Boolean active,
                              java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

searchCount

public static int searchCount(long companyId,
                              java.lang.String firstName,
                              java.lang.String middleName,
                              java.lang.String lastName,
                              java.lang.String screenName,
                              java.lang.String emailAddress,
                              java.lang.Boolean active,
                              java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                              boolean andSearch)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

sendPassword

public static void sendPassword(long companyId,
                                java.lang.String emailAddress,
                                java.lang.String remoteAddr,
                                java.lang.String remoteHost,
                                java.lang.String userAgent,
                                java.lang.String fromName,
                                java.lang.String fromAddress,
                                java.lang.String subject,
                                java.lang.String body)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

setRoleUsers

public static void setRoleUsers(long roleId,
                                long[] userIds)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

setUserGroupUsers

public static void setUserGroupUsers(long userGroupId,
                                     long[] userIds)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

unsetGroupUsers

public static void unsetGroupUsers(long groupId,
                                   long[] userIds)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

unsetOrganizationUsers

public static void unsetOrganizationUsers(long organizationId,
                                          long[] userIds)
                                   throws com.liferay.portal.PortalException,
                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

unsetPasswordPolicyUsers

public static void unsetPasswordPolicyUsers(long passwordPolicyId,
                                            long[] userIds)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

unsetRoleUsers

public static void unsetRoleUsers(long roleId,
                                  long[] userIds)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

unsetRoleUsers

public static void unsetRoleUsers(long roleId,
                                  java.util.List<User> users)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

unsetUserGroupUsers

public static void unsetUserGroupUsers(long userGroupId,
                                       long[] userIds)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateActive

public static User updateActive(long userId,
                                boolean active)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateAgreedToTermsOfUse

public static User updateAgreedToTermsOfUse(long userId,
                                            boolean agreedToTermsOfUse)
                                     throws com.liferay.portal.PortalException,
                                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateCreateDate

public static User updateCreateDate(long userId,
                                    java.util.Date createDate)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateEmailAddress

public static User updateEmailAddress(long userId,
                                      java.lang.String password,
                                      java.lang.String emailAddress1,
                                      java.lang.String emailAddress2)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateGroups

public static void updateGroups(long userId,
                                long[] newGroupIds)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateLastLogin

public static User updateLastLogin(long userId,
                                   java.lang.String loginIP)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateLockout

public static User updateLockout(User user,
                                 boolean lockout)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateLockoutByEmailAddress

public static User updateLockoutByEmailAddress(long companyId,
                                               java.lang.String emailAddress,
                                               boolean lockout)
                                        throws com.liferay.portal.PortalException,
                                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateLockoutById

public static User updateLockoutById(long userId,
                                     boolean lockout)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateLockoutByScreenName

public static User updateLockoutByScreenName(long companyId,
                                             java.lang.String screenName,
                                             boolean lockout)
                                      throws com.liferay.portal.PortalException,
                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateModifiedDate

public static User updateModifiedDate(long userId,
                                      java.util.Date modifiedDate)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateOpenId

public static void updateOpenId(long userId,
                                java.lang.String openId)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateOrganizations

public static void updateOrganizations(long userId,
                                       long[] newOrganizationIds)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updatePassword

public static User updatePassword(long userId,
                                  java.lang.String password1,
                                  java.lang.String password2,
                                  boolean passwordReset)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updatePassword

public static User updatePassword(long userId,
                                  java.lang.String password1,
                                  java.lang.String password2,
                                  boolean passwordReset,
                                  boolean silentUpdate)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updatePasswordManually

public static User updatePasswordManually(long userId,
                                          java.lang.String password,
                                          boolean passwordEncrypted,
                                          boolean passwordReset,
                                          java.util.Date passwordModifiedDate)
                                   throws com.liferay.portal.PortalException,
                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updatePasswordReset

public static void updatePasswordReset(long userId,
                                       boolean passwordReset)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updatePortrait

public static void updatePortrait(long userId,
                                  byte[] bytes)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateReminderQuery

public static void updateReminderQuery(long userId,
                                       java.lang.String question,
                                       java.lang.String answer)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateScreenName

public static void updateScreenName(long userId,
                                    java.lang.String screenName)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateUser

public static User updateUser(long userId,
                              java.lang.String oldPassword,
                              java.lang.String newPassword1,
                              java.lang.String newPassword2,
                              boolean passwordReset,
                              java.lang.String reminderQueryQuestion,
                              java.lang.String reminderQueryAnswer,
                              java.lang.String screenName,
                              java.lang.String emailAddress,
                              java.lang.String openId,
                              java.lang.String languageId,
                              java.lang.String timeZoneId,
                              java.lang.String greeting,
                              java.lang.String comments,
                              java.lang.String firstName,
                              java.lang.String middleName,
                              java.lang.String lastName,
                              int prefixId,
                              int suffixId,
                              boolean male,
                              int birthdayMonth,
                              int birthdayDay,
                              int birthdayYear,
                              java.lang.String smsSn,
                              java.lang.String aimSn,
                              java.lang.String facebookSn,
                              java.lang.String icqSn,
                              java.lang.String jabberSn,
                              java.lang.String msnSn,
                              java.lang.String mySpaceSn,
                              java.lang.String skypeSn,
                              java.lang.String twitterSn,
                              java.lang.String ymSn,
                              java.lang.String jobTitle,
                              long[] groupIds,
                              long[] organizationIds,
                              long[] roleIds,
                              java.util.List<UserGroupRole> userGroupRoles,
                              long[] userGroupIds,
                              ServiceContext serviceContext)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getService

public static UserLocalService getService()

setService

public void setService(UserLocalService service)