com.liferay.portal.service
Interface UserLocalService


@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface UserLocalService

View Source

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

This interface defines the service. The default implementation is com.liferay.portal.service.impl.UserLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
UserLocalServiceUtil

Method Summary
 void addGroupUsers(long groupId, long[] userIds)
           
 void addOrganizationUsers(long organizationId, long[] userIds)
           
 void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
           
 void addRoleUsers(long roleId, long[] userIds)
           
 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)
           
 User addUser(User user)
           
 void addUserGroupUsers(long userGroupId, long[] userIds)
           
 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)
           
 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)
           
 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)
           
 long authenticateForBasic(long companyId, java.lang.String authType, java.lang.String login, java.lang.String password)
           
 boolean authenticateForJAAS(long userId, java.lang.String encPassword)
           
 void checkLockout(User user)
           
 void checkLoginFailure(User user)
           
 void checkLoginFailureByEmailAddress(long companyId, java.lang.String emailAddress)
           
 void checkLoginFailureById(long userId)
           
 void checkLoginFailureByScreenName(long companyId, java.lang.String screenName)
           
 void checkPasswordExpired(User user)
           
 void clearOrganizationUsers(long organizationId)
           
 void clearUserGroupUsers(long userGroupId)
           
 User createUser(long userId)
           
 com.liferay.portal.kernel.util.KeyValuePair decryptUserId(long companyId, java.lang.String name, java.lang.String password)
           
 void deletePasswordPolicyUser(long passwordPolicyId, long userId)
           
 void deletePortrait(long userId)
           
 void deleteRoleUser(long roleId, long userId)
           
 void deleteUser(long userId)
           
 void deleteUser(User user)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 java.lang.String encryptUserId(java.lang.String name)
           
 User getDefaultUser(long companyId)
           
 long getDefaultUserId(long companyId)
           
 long[] getGroupUserIds(long groupId)
           
 java.util.List<User> getGroupUsers(long groupId)
           
 int getGroupUsersCount(long groupId)
           
 int getGroupUsersCount(long groupId, boolean active)
           
 java.util.List<User> getNoAnnouncementsDeliveries(java.lang.String type)
           
 long[] getOrganizationUserIds(long organizationId)
           
 java.util.List<User> getOrganizationUsers(long organizationId)
           
 int getOrganizationUsersCount(long organizationId)
           
 int getOrganizationUsersCount(long organizationId, boolean active)
           
 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)
           
 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)
           
 long[] getRoleUserIds(long roleId)
           
 java.util.List<User> getRoleUsers(long roleId)
           
 int getRoleUsersCount(long roleId)
           
 int getRoleUsersCount(long roleId, boolean active)
           
 java.util.List<User> getSocialUsers(long userId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<User> getSocialUsers(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<User> getSocialUsers(long userId1, long userId2, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<User> getSocialUsers(long userId1, long userId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getSocialUsersCount(long userId)
           
 int getSocialUsersCount(long userId, int type)
           
 int getSocialUsersCount(long userId1, long userId2)
           
 int getSocialUsersCount(long userId1, long userId2, int type)
           
 User getUser(long userId)
           
 User getUserByContactId(long contactId)
           
 User getUserByEmailAddress(long companyId, java.lang.String emailAddress)
           
 User getUserById(long userId)
           
 User getUserById(long companyId, long userId)
           
 User getUserByOpenId(java.lang.String openId)
           
 User getUserByPortraitId(long portraitId)
           
 User getUserByScreenName(long companyId, java.lang.String screenName)
           
 User getUserByUuid(java.lang.String uuid)
           
 java.util.List<User> getUserGroupUsers(long userGroupId)
           
 int getUserGroupUsersCount(long userGroupId)
           
 int getUserGroupUsersCount(long userGroupId, boolean active)
           
 long getUserIdByEmailAddress(long companyId, java.lang.String emailAddress)
           
 long getUserIdByScreenName(long companyId, java.lang.String screenName)
           
 java.util.List<User> getUsers(int start, int end)
           
 int getUsersCount()
           
 boolean hasGroupUser(long groupId, long userId)
           
 boolean hasOrganizationUser(long organizationId, long userId)
           
 boolean hasPasswordPolicyUser(long passwordPolicyId, long userId)
           
 boolean hasRoleUser(long roleId, long userId)
           
 boolean hasUserGroupUser(long userGroupId, long userId)
           
 boolean isPasswordExpired(User user)
           
 boolean isPasswordExpiringSoon(User user)
           
 void reIndex(long userId)
           
 void reIndex(java.lang.String[] ids)
           
 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)
           
 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)
           
 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)
           
 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)
           
 int searchCount(long companyId, java.lang.String keywords, java.lang.Boolean active, java.util.LinkedHashMap<java.lang.String,java.lang.Object> 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<java.lang.String,java.lang.Object> params, boolean andSearch)
           
 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)
           
 void setRoleUsers(long roleId, long[] userIds)
           
 void setUserGroupUsers(long userGroupId, long[] userIds)
           
 void unsetGroupUsers(long groupId, long[] userIds)
           
 void unsetOrganizationUsers(long organizationId, long[] userIds)
           
 void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
           
 void unsetRoleUsers(long roleId, java.util.List<User> users)
           
 void unsetRoleUsers(long roleId, long[] userIds)
           
 void unsetUserGroupUsers(long userGroupId, long[] userIds)
           
 User updateActive(long userId, boolean active)
           
 User updateAgreedToTermsOfUse(long userId, boolean agreedToTermsOfUse)
           
 User updateCreateDate(long userId, java.util.Date createDate)
           
 User updateEmailAddress(long userId, java.lang.String password, java.lang.String emailAddress1, java.lang.String emailAddress2)
           
 void updateGroups(long userId, long[] newGroupIds)
           
 User updateLastLogin(long userId, java.lang.String loginIP)
           
 User updateLockout(User user, boolean lockout)
           
 User updateLockoutByEmailAddress(long companyId, java.lang.String emailAddress, boolean lockout)
           
 User updateLockoutById(long userId, boolean lockout)
           
 User updateLockoutByScreenName(long companyId, java.lang.String screenName, boolean lockout)
           
 User updateModifiedDate(long userId, java.util.Date modifiedDate)
           
 void updateOpenId(long userId, java.lang.String openId)
           
 void updateOrganizations(long userId, long[] newOrganizationIds)
           
 User updatePassword(long userId, java.lang.String password1, java.lang.String password2, boolean passwordReset)
           
 User updatePassword(long userId, java.lang.String password1, java.lang.String password2, boolean passwordReset, boolean silentUpdate)
           
 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)
           
 void updateReminderQuery(long userId, java.lang.String question, java.lang.String answer)
           
 void updateScreenName(long userId, java.lang.String screenName)
           
 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)
           
 User updateUser(User user)
           
 

Method Detail

addUser

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

createUser

User createUser(long userId)

deleteUser

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

deleteUser

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

dynamicQuery

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

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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User getUser(long userId)
             throws com.liferay.portal.SystemException,
                    com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getUsers

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> getUsers(int start,
                                            int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getUsersCount()
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateUser

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

addGroupUsers

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

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

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

addRoleUsers

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

addUserGroupUsers

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

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

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

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

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

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

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

checkLockout

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

checkLoginFailure

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

checkLoginFailureByEmailAddress

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

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

checkLoginFailureByScreenName

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

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

clearOrganizationUsers

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

clearUserGroupUsers

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

decryptUserId

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

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

deletePortrait

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

deleteRoleUser

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

encryptUserId

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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User getDefaultUser(long companyId)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getDefaultUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
long getDefaultUserId(long companyId)
                      throws com.liferay.portal.PortalException,
                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getGroupUserIds

@Transactional(propagation=SUPPORTS,
               readOnly=true)
long[] getGroupUserIds(long groupId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupUsers

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> getGroupUsers(long groupId)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupUsersCount(long groupId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> getNoAnnouncementsDeliveries(java.lang.String type)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizationUserIds

@Transactional(propagation=SUPPORTS,
               readOnly=true)
long[] getOrganizationUserIds(long organizationId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizationUsers

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> getOrganizationUsers(long organizationId)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizationUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getOrganizationUsersCount(long organizationId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizationUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
long[] getRoleUserIds(long roleId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getRoleUsers

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> getRoleUsers(long roleId)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getRoleUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getRoleUsersCount(long roleId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getRoleUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getSocialUsersCount(long userId)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getSocialUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> getUserGroupUsers(long userGroupId)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserGroupUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getUserGroupUsersCount(long userGroupId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserGroupUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User getUserByContactId(long contactId)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserByEmailAddress

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User getUserById(long userId)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserById

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User getUserByPortraitId(long portraitId)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserByScreenName

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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

hasOrganizationUser

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

hasPasswordPolicyUser

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

hasRoleUser

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

hasUserGroupUser

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

isPasswordExpired

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

isPasswordExpiringSoon

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

reIndex

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

reIndex

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

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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

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

setUserGroupUsers

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

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

unsetOrganizationUsers

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

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

unsetRoleUsers

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

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

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

updateActive

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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