com.liferay.portal.service.impl
Class UserLocalServiceImpl

java.lang.Object
  extended bycom.liferay.portal.service.base.UserLocalServiceBaseImpl
      extended bycom.liferay.portal.service.impl.UserLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.service.UserLocalService

public class UserLocalServiceImpl
extends UserLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan, Scott Lee

Constructor Summary
UserLocalServiceImpl()
           
 
Method Summary
 void addGroupUsers(long groupId, long[] userIds)
           
 void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
           
 void addRoleUsers(long roleId, long[] userIds)
           
 com.liferay.portal.model.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.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 organizationId, long locationId, boolean sendEmail)
           
 void addUserGroupUsers(long userGroupId, long[] userIds)
           
protected  int authenticate(long companyId, java.lang.String login, java.lang.String password, java.lang.String authType, java.util.Map headerMap, java.util.Map parameterMap)
           
 int authenticateByEmailAddress(long companyId, java.lang.String emailAddress, java.lang.String password, java.util.Map headerMap, java.util.Map parameterMap)
           
 int authenticateByScreenName(long companyId, java.lang.String screenName, java.lang.String password, java.util.Map headerMap, java.util.Map parameterMap)
           
 int authenticateByUserId(long companyId, long userId, java.lang.String password, java.util.Map headerMap, java.util.Map parameterMap)
           
 boolean authenticateForJAAS(long userId, java.lang.String encPwd)
           
 void checkLockout(com.liferay.portal.model.User user)
           
 void checkLoginFailure(com.liferay.portal.model.User user)
           
 void checkLoginFailureByEmailAddress(long companyId, java.lang.String emailAddress)
           
 void checkLoginFailureById(long userId)
           
 void checkLoginFailureByScreenName(long companyId, java.lang.String screenName)
           
 void checkPasswordExpired(com.liferay.portal.model.User user)
           
 void clearUserGroupUsers(long userGroupId)
           
 com.liferay.portal.kernel.util.KeyValuePair decryptUserId(long companyId, java.lang.String name, java.lang.String password)
           
 void deletePasswordPolicyUser(long passwordPolicyId, long userId)
           
 void deleteRoleUser(long roleId, long userId)
           
 void deleteUser(long userId)
           
 java.lang.String encryptUserId(java.lang.String name)
           
 com.liferay.portal.model.User getDefaultUser(long companyId)
           
 long getDefaultUserId(long companyId)
           
 java.util.List getGroupUsers(long groupId)
           
 java.util.List 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 begin, int end)
           
 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)
           
 java.util.List getRoleUsers(long roleId)
           
 com.liferay.portal.model.User getUserByContactId(long contactId)
           
 com.liferay.portal.model.User getUserByEmailAddress(long companyId, java.lang.String emailAddress)
           
 com.liferay.portal.model.User getUserById(long userId)
           
 com.liferay.portal.model.User getUserById(long companyId, long userId)
           
 com.liferay.portal.model.User getUserByPortraitId(long portraitId)
           
 com.liferay.portal.model.User getUserByScreenName(long companyId, java.lang.String screenName)
           
 java.util.List getUserGroupUsers(long userGroupId)
           
 long getUserIdByEmailAddress(long companyId, java.lang.String emailAddress)
           
 long getUserIdByScreenName(long companyId, java.lang.String screenName)
           
 boolean hasGroupUser(long groupId, long userId)
           
 boolean hasPasswordPolicyUser(long passwordPolicyId, long userId)
           
 boolean hasRoleUser(long roleId, long userId)
           
 boolean hasUserGroupUser(long userGroupId, long userId)
           
 boolean isPasswordExpired(com.liferay.portal.model.User user)
           
 boolean isPasswordExpiringSoon(com.liferay.portal.model.User user)
           
 java.util.List search(long companyId, java.lang.String keywords, java.lang.Boolean active, java.util.LinkedHashMap params, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List 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 params, boolean andSearch, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int searchCount(long companyId, java.lang.String keywords, java.lang.Boolean active, java.util.LinkedHashMap params)
           
 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 params, boolean andSearch)
           
protected  void sendEmail(com.liferay.portal.model.User user, java.lang.String password)
           
 void sendPassword(long companyId, java.lang.String emailAddress, java.lang.String remoteAddr, java.lang.String remoteHost, java.lang.String userAgent)
           
 void setGroupUsers(long groupId, long[] userIds)
           
 void setRoleUsers(long roleId, long[] userIds)
           
 void setUserGroupUsers(long userGroupId, long[] userIds)
           
 void unsetGroupUsers(long groupId, long[] userIds)
           
 void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
           
 void unsetRoleUsers(long roleId, long[] userIds)
           
 void unsetUserGroupUsers(long userGroupId, long[] userIds)
           
 com.liferay.portal.model.User updateActive(long userId, boolean active)
           
 com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId, boolean agreedToTermsOfUse)
           
 com.liferay.portal.model.User updateCreateDate(long userId, java.util.Date createDate)
           
 com.liferay.portal.model.User updateLastLogin(long userId, java.lang.String loginIP)
           
 com.liferay.portal.model.User updateLockout(com.liferay.portal.model.User user, boolean lockout)
           
 com.liferay.portal.model.User updateLockoutByEmailAddress(long companyId, java.lang.String emailAddress, boolean lockout)
           
 com.liferay.portal.model.User updateLockoutById(long userId, boolean lockout)
           
 com.liferay.portal.model.User updateLockoutByScreenName(long companyId, java.lang.String screenName, boolean lockout)
           
 com.liferay.portal.model.User updateModifiedDate(long userId, java.util.Date modifiedDate)
           
 void updateOrganizations(long userId, long organizationId, long locationId)
           
 com.liferay.portal.model.User updatePassword(long userId, java.lang.String password1, java.lang.String password2, boolean passwordReset)
           
 com.liferay.portal.model.User updatePassword(long userId, java.lang.String password1, java.lang.String password2, boolean passwordReset, boolean silentUpdate)
           
 com.liferay.portal.model.User updatePasswordManually(long userId, java.lang.String password, boolean passwordEncrypted, boolean passwordReset, java.util.Date passwordModifiedDate)
           
 void updatePasswordReset(long userId, boolean passwordReset)
           
 void updatePortrait(long userId, byte[] bytes)
           
 com.liferay.portal.model.User updateUser(long userId, java.lang.String password, java.lang.String screenName, java.lang.String emailAddress, 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 icqSn, java.lang.String jabberSn, java.lang.String msnSn, java.lang.String skypeSn, java.lang.String ymSn, java.lang.String jobTitle, long organizationId, long locationId)
           
protected  void validate(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 firstName, java.lang.String lastName, long organizationId, long locationId)
           
protected  void validate(long userId, java.lang.String screenName, java.lang.String emailAddress, java.lang.String firstName, java.lang.String lastName, java.lang.String smsSn)
           
protected  void validateEmailAddress(java.lang.String emailAddress)
           
protected  void validateOrganizations(long companyId, long organizationId, long locationId)
           
protected  void validatePassword(long companyId, long userId, java.lang.String password1, java.lang.String password2)
           
protected  void validateScreenName(long companyId, java.lang.String screenName)
           
 
Methods inherited from class com.liferay.portal.service.base.UserLocalServiceBaseImpl
addUser, dynamicQuery, dynamicQuery, updateUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserLocalServiceImpl

public UserLocalServiceImpl()
Method Detail

addGroupUsers

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

addPasswordPolicyUsers

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

addRoleUsers

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

addUserGroupUsers

public 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 com.liferay.portal.model.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.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 organizationId,
                                             long locationId,
                                             boolean sendEmail)
                                      throws com.liferay.portal.PortalException,
                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

authenticateByEmailAddress

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

authenticateByScreenName

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

authenticateByUserId

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

authenticateForJAAS

public boolean authenticateForJAAS(long userId,
                                   java.lang.String encPwd)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

checkLockout

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

checkLoginFailure

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

checkLoginFailureByEmailAddress

public 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 void checkLoginFailureById(long userId)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

checkLoginFailureByScreenName

public 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 void checkPasswordExpired(com.liferay.portal.model.User user)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

clearUserGroupUsers

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

decryptUserId

public 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 void deletePasswordPolicyUser(long passwordPolicyId,
                                     long userId)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteRoleUser

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

deleteUser

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

encryptUserId

public 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 com.liferay.portal.model.User getDefaultUser(long companyId)
                                             throws com.liferay.portal.PortalException,
                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getDefaultUserId

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

getGroupUsers

public java.util.List getGroupUsers(long groupId)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPermissionUsers

public java.util.List 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 begin,
                                         int end)
                                  throws com.liferay.portal.PortalException,
                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPermissionUsersCount

public 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.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getRoleUsers

public java.util.List getRoleUsers(long roleId)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserGroupUsers

public java.util.List getUserGroupUsers(long userGroupId)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserByContactId

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

getUserByEmailAddress

public com.liferay.portal.model.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 com.liferay.portal.model.User getUserById(long userId)
                                          throws com.liferay.portal.PortalException,
                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserById

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

getUserByPortraitId

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

getUserByScreenName

public com.liferay.portal.model.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

getUserIdByEmailAddress

public 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 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 boolean hasGroupUser(long groupId,
                            long userId)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

hasPasswordPolicyUser

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

hasRoleUser

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

hasUserGroupUser

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

isPasswordExpired

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

isPasswordExpiringSoon

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

search

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

search

public java.util.List 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 params,
                             boolean andSearch,
                             int begin,
                             int end,
                             com.liferay.portal.kernel.util.OrderByComparator obc)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

searchCount

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

searchCount

public 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 params,
                       boolean andSearch)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

sendPassword

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

setGroupUsers

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

setRoleUsers

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

setUserGroupUsers

public 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 void unsetGroupUsers(long groupId,
                            long[] userIds)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

unsetPasswordPolicyUsers

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

unsetRoleUsers

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

unsetUserGroupUsers

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

updateActive

public com.liferay.portal.model.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 com.liferay.portal.model.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 com.liferay.portal.model.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

updateLastLogin

public com.liferay.portal.model.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 com.liferay.portal.model.User updateLockout(com.liferay.portal.model.User user,
                                                   boolean lockout)
                                            throws com.liferay.portal.PortalException,
                                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateLockoutByEmailAddress

public com.liferay.portal.model.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 com.liferay.portal.model.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 com.liferay.portal.model.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 com.liferay.portal.model.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

updateOrganizations

public void updateOrganizations(long userId,
                                long organizationId,
                                long locationId)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updatePassword

public com.liferay.portal.model.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 com.liferay.portal.model.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 com.liferay.portal.model.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 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 void updatePortrait(long userId,
                           byte[] bytes)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateUser

public com.liferay.portal.model.User updateUser(long userId,
                                                java.lang.String password,
                                                java.lang.String screenName,
                                                java.lang.String emailAddress,
                                                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 icqSn,
                                                java.lang.String jabberSn,
                                                java.lang.String msnSn,
                                                java.lang.String skypeSn,
                                                java.lang.String ymSn,
                                                java.lang.String jobTitle,
                                                long organizationId,
                                                long locationId)
                                         throws com.liferay.portal.PortalException,
                                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

authenticate

protected int authenticate(long companyId,
                           java.lang.String login,
                           java.lang.String password,
                           java.lang.String authType,
                           java.util.Map headerMap,
                           java.util.Map parameterMap)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

sendEmail

protected void sendEmail(com.liferay.portal.model.User user,
                         java.lang.String password)
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validate

protected void validate(long userId,
                        java.lang.String screenName,
                        java.lang.String emailAddress,
                        java.lang.String firstName,
                        java.lang.String lastName,
                        java.lang.String smsSn)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validate

protected void validate(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 firstName,
                        java.lang.String lastName,
                        long organizationId,
                        long locationId)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validateEmailAddress

protected void validateEmailAddress(java.lang.String emailAddress)
                             throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

validateOrganizations

protected void validateOrganizations(long companyId,
                                     long organizationId,
                                     long locationId)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validatePassword

protected void validatePassword(long companyId,
                                long userId,
                                java.lang.String password1,
                                java.lang.String password2)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validateScreenName

protected void validateScreenName(long companyId,
                                  java.lang.String screenName)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException