Liferay 6.0.5

com.liferay.portal.service
Interface UserLocalService

All Known Implementing Classes:
UserLocalServiceBaseImpl, UserLocalServiceImpl, UserLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface UserLocalService

The interface for the user local service.

Never modify or reference this interface directly. Always use UserLocalServiceUtil to access the user local service. Add custom service methods to UserLocalServiceImpl and rerun ServiceBuilder to automatically copy the method declarations to this interface.

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.

See Also:
UserLocalServiceUtil, UserLocalServiceBaseImpl, UserLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 void addDefaultGroups(long userId)
           
 void addDefaultRoles(long userId)
           
 void addDefaultUserGroups(long userId)
           
 void addGroupUsers(long groupId, long[] userIds)
           
 void addOrganizationUsers(long organizationId, long[] userIds)
           
 void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
           
 void addRoleUsers(long roleId, long[] userIds)
           
 void addTeamUsers(long teamId, long[] userIds)
           
 User addUser(long creatorUserId, long companyId, boolean autoPassword, String password1, String password2, boolean autoScreenName, String screenName, String emailAddress, long facebookId, String openId, Locale locale, String firstName, String middleName, String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, String jobTitle, long[] groupIds, long[] organizationIds, long[] roleIds, long[] userGroupIds, boolean sendEmail, ServiceContext serviceContext)
           
 User addUser(User user)
          Adds the user to the database.
 void addUserGroupUsers(long userGroupId, long[] userIds)
           
 int authenticateByEmailAddress(long companyId, String emailAddress, String password, Map<String,String[]> headerMap, Map<String,String[]> parameterMap)
           
 int authenticateByScreenName(long companyId, String screenName, String password, Map<String,String[]> headerMap, Map<String,String[]> parameterMap)
           
 int authenticateByUserId(long companyId, long userId, String password, Map<String,String[]> headerMap, Map<String,String[]> parameterMap)
           
 long authenticateForBasic(long companyId, String authType, String login, String password)
           
 long authenticateForDigest(long companyId, String username, String realm, String nonce, String method, String uri, String response)
           
 boolean authenticateForJAAS(long userId, String encPassword)
           
 void checkLockout(User user)
           
 void checkLoginFailure(User user)
           
 void checkLoginFailureByEmailAddress(long companyId, String emailAddress)
           
 void checkLoginFailureById(long userId)
           
 void checkLoginFailureByScreenName(long companyId, String screenName)
           
 void checkPasswordExpired(User user)
           
 User createUser(long userId)
          Creates a new user with the primary key.
 KeyValuePair decryptUserId(long companyId, String name, String password)
           
 void deletePortrait(long userId)
           
 void deleteRoleUser(long roleId, long userId)
           
 void deleteUser(long userId)
          Deletes the user with the primary key from the database.
 void deleteUser(User user)
          Deletes the user from the database.
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
 String encryptUserId(String name)
           
 List<User> getCompanyUsers(long companyId, int start, int end)
           
 int getCompanyUsersCount(long companyId)
           
 User getDefaultUser(long companyId)
           
 long getDefaultUserId(long companyId)
           
 long[] getGroupUserIds(long groupId)
           
 List<User> getGroupUsers(long groupId)
           
 int getGroupUsersCount(long groupId)
           
 int getGroupUsersCount(long groupId, boolean active)
           
 List<User> getNoAnnouncementsDeliveries(String type)
           
 List<User> getNoContacts()
           
 List<User> getNoGroups()
           
 long[] getOrganizationUserIds(long organizationId)
           
 List<User> getOrganizationUsers(long organizationId)
           
 int getOrganizationUsersCount(long organizationId)
           
 int getOrganizationUsersCount(long organizationId, boolean active)
           
 long[] getRoleUserIds(long roleId)
           
 List<User> getRoleUsers(long roleId)
           
 List<User> getRoleUsers(long roleId, int start, int end)
           
 int getRoleUsersCount(long roleId)
           
 int getRoleUsersCount(long roleId, boolean active)
           
 List<User> getSocialUsers(long userId, int type, int start, int end, OrderByComparator obc)
           
 List<User> getSocialUsers(long userId, int start, int end, OrderByComparator obc)
           
 List<User> getSocialUsers(long userId1, long userId2, int type, int start, int end, OrderByComparator obc)
           
 List<User> getSocialUsers(long userId1, long userId2, int start, int end, 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)
          Gets the user with the primary key.
 User getUserByContactId(long contactId)
           
 User getUserByEmailAddress(long companyId, String emailAddress)
           
 User getUserByFacebookId(long companyId, long facebookId)
           
 User getUserById(long userId)
           
 User getUserById(long companyId, long userId)
           
 User getUserByOpenId(long companyId, String openId)
           
 User getUserByPortraitId(long portraitId)
           
 User getUserByScreenName(long companyId, String screenName)
           
 User getUserByUuid(String uuid)
           
 List<User> getUserGroupUsers(long userGroupId)
           
 int getUserGroupUsersCount(long userGroupId)
           
 int getUserGroupUsersCount(long userGroupId, boolean active)
           
 long getUserIdByEmailAddress(long companyId, String emailAddress)
           
 long getUserIdByScreenName(long companyId, String screenName)
           
 List<User> getUsers(int start, int end)
          Gets a range of all the users.
 int getUsersCount()
          Gets the number of users.
 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 hasRoleUser(long companyId, String name, long userId, boolean inherited)
          Returns true if the user has the role.
 boolean hasTeamUser(long teamId, long userId)
           
 boolean hasUserGroupUser(long userGroupId, long userId)
           
 boolean isPasswordExpired(User user)
           
 boolean isPasswordExpiringSoon(User user)
           
 List<User> search(long companyId, String keywords, Boolean active, LinkedHashMap<String,Object> params, int start, int end, OrderByComparator obc)
           
 Hits search(long companyId, String keywords, Boolean active, LinkedHashMap<String,Object> params, int start, int end, Sort sort)
           
 List<User> search(long companyId, String firstName, String middleName, String lastName, String screenName, String emailAddress, Boolean active, LinkedHashMap<String,Object> params, boolean andSearch, int start, int end, OrderByComparator obc)
           
 Hits search(long companyId, String firstName, String middleName, String lastName, String screenName, String emailAddress, Boolean active, LinkedHashMap<String,Object> params, boolean andSearch, int start, int end, Sort sort)
           
 int searchCount(long companyId, String keywords, Boolean active, LinkedHashMap<String,Object> params)
           
 int searchCount(long companyId, String firstName, String middleName, String lastName, String screenName, String emailAddress, Boolean active, LinkedHashMap<String,Object> params, boolean andSearch)
           
 void sendPassword(long companyId, String emailAddress, String remoteAddr, String remoteHost, String userAgent, String fromName, String fromAddress, String subject, String body, ServiceContext serviceContext)
           
 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, List<User> users)
           
 void unsetRoleUsers(long roleId, long[] userIds)
           
 void unsetTeamUsers(long teamId, long[] userIds)
           
 void unsetUserGroupUsers(long userGroupId, long[] userIds)
           
 User updateActive(long userId, boolean active)
           
 User updateAgreedToTermsOfUse(long userId, boolean agreedToTermsOfUse)
           
 void updateAsset(long userId, User user, long[] assetCategoryIds, String[] assetTagNames)
           
 User updateCreateDate(long userId, Date createDate)
           
 User updateEmailAddress(long userId, String password, String emailAddress1, String emailAddress2)
           
 void updateGroups(long userId, long[] newGroupIds)
           
 User updateLastLogin(long userId, String loginIP)
           
 User updateLockout(User user, boolean lockout)
           
 User updateLockoutByEmailAddress(long companyId, String emailAddress, boolean lockout)
           
 User updateLockoutById(long userId, boolean lockout)
           
 User updateLockoutByScreenName(long companyId, String screenName, boolean lockout)
           
 User updateModifiedDate(long userId, Date modifiedDate)
           
 void updateOpenId(long userId, String openId)
           
 void updateOrganizations(long userId, long[] newOrganizationIds)
           
 User updatePassword(long userId, String password1, String password2, boolean passwordReset)
           
 User updatePassword(long userId, String password1, String password2, boolean passwordReset, boolean silentUpdate)
           
 User updatePasswordManually(long userId, String password, boolean passwordEncrypted, boolean passwordReset, Date passwordModifiedDate)
           
 void updatePasswordReset(long userId, boolean passwordReset)
           
 void updatePortrait(long userId, byte[] bytes)
           
 void updateReminderQuery(long userId, String question, String answer)
           
 void updateScreenName(long userId, String screenName)
           
 User updateUser(long userId, String oldPassword, String newPassword1, String newPassword2, boolean passwordReset, String reminderQueryQuestion, String reminderQueryAnswer, String screenName, String emailAddress, long facebookId, String openId, String languageId, String timeZoneId, String greeting, String comments, String firstName, String middleName, String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, String smsSn, String aimSn, String facebookSn, String icqSn, String jabberSn, String msnSn, String mySpaceSn, String skypeSn, String twitterSn, String ymSn, String jobTitle, long[] groupIds, long[] organizationIds, long[] roleIds, List<UserGroupRole> userGroupRoles, long[] userGroupIds, ServiceContext serviceContext)
           
 User updateUser(User user)
          Updates the user in the database.
 User updateUser(User user, boolean merge)
          Updates the user in the database.
 

Method Detail

addUser

User addUser(User user)
             throws SystemException
Adds the user to the database. Also notifies the appropriate model listeners.

Parameters:
user - the user to add
Returns:
the user that was added
Throws:
SystemException - if a system exception occurred

createUser

User createUser(long userId)
Creates a new user with the primary key. Does not add the user to the database.

Parameters:
userId - the primary key for the new user
Returns:
the new user

deleteUser

void deleteUser(long userId)
                throws PortalException,
                       SystemException
Deletes the user with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
userId - the primary key of the user to delete
Throws:
PortalException - if a user with the primary key could not be found
SystemException - if a system exception occurred

deleteUser

void deleteUser(User user)
                throws SystemException
Deletes the user from the database. Also notifies the appropriate model listeners.

Parameters:
user - the user to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery,
                  int start,
                  int end)
                  throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery,
                  int start,
                  int end,
                  OrderByComparator orderByComparator)
                  throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Counts the number of rows that match the dynamic query.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getUser

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User getUser(long userId)
             throws PortalException,
                    SystemException
Gets the user with the primary key.

Parameters:
userId - the primary key of the user to get
Returns:
the user
Throws:
PortalException - if a user with the primary key could not be found
SystemException - if a system exception occurred

getUsers

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<User> getUsers(int start,
                                                             int end)
                    throws SystemException
Gets a range of all the users.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
Returns:
the range of users
Throws:
SystemException - if a system exception occurred

getUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getUsersCount()
                  throws SystemException
Gets the number of users.

Returns:
the number of users
Throws:
SystemException - if a system exception occurred

updateUser

User updateUser(User user)
                throws SystemException
Updates the user in the database. Also notifies the appropriate model listeners.

Parameters:
user - the user to update
Returns:
the user that was updated
Throws:
SystemException - if a system exception occurred

updateUser

User updateUser(User user,
                boolean merge)
                throws SystemException
Updates the user in the database. Also notifies the appropriate model listeners.

Parameters:
user - the user to update
merge - whether to merge the user with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the user that was updated
Throws:
SystemException - if a system exception occurred

addDefaultGroups

void addDefaultGroups(long userId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

addDefaultRoles

void addDefaultRoles(long userId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

addDefaultUserGroups

void addDefaultUserGroups(long userId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addGroupUsers

void addGroupUsers(long groupId,
                   long[] userIds)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

addOrganizationUsers

void addOrganizationUsers(long organizationId,
                          long[] userIds)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addPasswordPolicyUsers

void addPasswordPolicyUsers(long passwordPolicyId,
                            long[] userIds)
                            throws SystemException
Throws:
SystemException

addRoleUsers

void addRoleUsers(long roleId,
                  long[] userIds)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

addTeamUsers

void addTeamUsers(long teamId,
                  long[] userIds)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

addUser

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

addUserGroupUsers

void addUserGroupUsers(long userGroupId,
                       long[] userIds)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

authenticateByEmailAddress

int authenticateByEmailAddress(long companyId,
                               String emailAddress,
                               String password,
                               Map<String,String[]> headerMap,
                               Map<String,String[]> parameterMap)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

authenticateByScreenName

int authenticateByScreenName(long companyId,
                             String screenName,
                             String password,
                             Map<String,String[]> headerMap,
                             Map<String,String[]> parameterMap)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

authenticateByUserId

int authenticateByUserId(long companyId,
                         long userId,
                         String password,
                         Map<String,String[]> headerMap,
                         Map<String,String[]> parameterMap)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

authenticateForBasic

long authenticateForBasic(long companyId,
                          String authType,
                          String login,
                          String password)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

authenticateForDigest

long authenticateForDigest(long companyId,
                           String username,
                           String realm,
                           String nonce,
                           String method,
                           String uri,
                           String response)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

authenticateForJAAS

boolean authenticateForJAAS(long userId,
                            String encPassword)

checkLockout

void checkLockout(User user)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

checkLoginFailure

void checkLoginFailure(User user)
                       throws SystemException
Throws:
SystemException

checkLoginFailureByEmailAddress

void checkLoginFailureByEmailAddress(long companyId,
                                     String emailAddress)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

checkLoginFailureById

void checkLoginFailureById(long userId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

checkLoginFailureByScreenName

void checkLoginFailureByScreenName(long companyId,
                                   String screenName)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

checkPasswordExpired

void checkPasswordExpired(User user)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

decryptUserId

KeyValuePair decryptUserId(long companyId,
                           String name,
                           String password)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

deletePortrait

void deletePortrait(long userId)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

deleteRoleUser

void deleteRoleUser(long roleId,
                    long userId)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

encryptUserId

String encryptUserId(String name)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

getCompanyUsers

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<User> getCompanyUsers(long companyId,
                                                                    int start,
                                                                    int end)
                           throws SystemException
Throws:
SystemException

getCompanyUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCompanyUsersCount(long companyId)
                         throws SystemException
Throws:
SystemException

getDefaultUser

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

getDefaultUserId

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

getGroupUserIds

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

getGroupUsers

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<User> getGroupUsers(long groupId)
                         throws SystemException
Throws:
SystemException

getGroupUsersCount

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

getGroupUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupUsersCount(long groupId,
                                                                boolean active)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getNoAnnouncementsDeliveries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<User> getNoAnnouncementsDeliveries(String type)
                                        throws SystemException
Throws:
SystemException

getNoContacts

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<User> getNoContacts()
                         throws SystemException
Throws:
SystemException

getNoGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<User> getNoGroups()
                       throws SystemException
Throws:
SystemException

getOrganizationUserIds

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

getOrganizationUsers

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<User> getOrganizationUsers(long organizationId)
                                throws SystemException
Throws:
SystemException

getOrganizationUsersCount

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

getOrganizationUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getOrganizationUsersCount(long organizationId,
                                                                       boolean active)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getRoleUserIds

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

getRoleUsers

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<User> getRoleUsers(long roleId)
                        throws SystemException
Throws:
SystemException

getRoleUsers

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<User> getRoleUsers(long roleId,
                                                                 int start,
                                                                 int end)
                        throws SystemException
Throws:
SystemException

getRoleUsersCount

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

getRoleUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getRoleUsersCount(long roleId,
                                                               boolean active)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

getSocialUsers

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<User> getSocialUsers(long userId,
                                                                   int type,
                                                                   int start,
                                                                   int end,
                                                                   OrderByComparator obc)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getSocialUsers

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<User> getSocialUsers(long userId,
                                                                   int start,
                                                                   int end,
                                                                   OrderByComparator obc)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getSocialUsers

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<User> getSocialUsers(long userId1,
                                                                   long userId2,
                                                                   int type,
                                                                   int start,
                                                                   int end,
                                                                   OrderByComparator obc)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getSocialUsers

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<User> getSocialUsers(long userId1,
                                                                   long userId2,
                                                                   int start,
                                                                   int end,
                                                                   OrderByComparator obc)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getSocialUsersCount

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

getSocialUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getSocialUsersCount(long userId,
                                                                 int type)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getSocialUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getSocialUsersCount(long userId1,
                                                                 long userId2)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getSocialUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getSocialUsersCount(long userId1,
                                                                 long userId2,
                                                                 int type)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getUserByContactId

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

getUserByEmailAddress

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User getUserByEmailAddress(long companyId,
                                                                    String emailAddress)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getUserByFacebookId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User getUserByFacebookId(long companyId,
                                                                  long facebookId)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getUserById

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

getUserById

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User getUserById(long companyId,
                                                          long userId)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

getUserByOpenId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User getUserByOpenId(long companyId,
                                                              String openId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

getUserByPortraitId

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

getUserByScreenName

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User getUserByScreenName(long companyId,
                                                                  String screenName)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getUserByUuid

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User getUserByUuid(String uuid)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

getUserGroupUsers

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<User> getUserGroupUsers(long userGroupId)
                             throws SystemException
Throws:
SystemException

getUserGroupUsersCount

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

getUserGroupUsersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getUserGroupUsersCount(long userGroupId,
                                                                    boolean active)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getUserIdByEmailAddress

@Transactional(propagation=SUPPORTS,
               readOnly=true)
long getUserIdByEmailAddress(long companyId,
                                                                      String emailAddress)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getUserIdByScreenName

@Transactional(propagation=SUPPORTS,
               readOnly=true)
long getUserIdByScreenName(long companyId,
                                                                    String screenName)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

hasGroupUser

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasGroupUser(long groupId,
                                                              long userId)
                     throws SystemException
Throws:
SystemException

hasOrganizationUser

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasOrganizationUser(long organizationId,
                                                                     long userId)
                            throws SystemException
Throws:
SystemException

hasPasswordPolicyUser

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasPasswordPolicyUser(long passwordPolicyId,
                                                                       long userId)
                              throws SystemException
Throws:
SystemException

hasRoleUser

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasRoleUser(long roleId,
                                                             long userId)
                    throws SystemException
Throws:
SystemException

hasRoleUser

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasRoleUser(long companyId,
                                                             String name,
                                                             long userId,
                                                             boolean inherited)
                    throws PortalException,
                           SystemException
Returns true if the user has the role.

Returns:
true if the user has the role
Throws:
PortalException
SystemException

hasTeamUser

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasTeamUser(long teamId,
                                                             long userId)
                    throws SystemException
Throws:
SystemException

hasUserGroupUser

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasUserGroupUser(long userGroupId,
                                                                  long userId)
                         throws SystemException
Throws:
SystemException

isPasswordExpired

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean isPasswordExpired(User user)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

isPasswordExpiringSoon

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean isPasswordExpiringSoon(User user)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<User> search(long companyId,
                                                           String keywords,
                                                           Boolean active,
                                                           LinkedHashMap<String,Object> params,
                                                           int start,
                                                           int end,
                                                           OrderByComparator obc)
                  throws SystemException
Throws:
SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Hits search(long companyId,
                                                     String keywords,
                                                     Boolean active,
                                                     LinkedHashMap<String,Object> params,
                                                     int start,
                                                     int end,
                                                     Sort sort)
            throws SystemException
Throws:
SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<User> search(long companyId,
                                                           String firstName,
                                                           String middleName,
                                                           String lastName,
                                                           String screenName,
                                                           String emailAddress,
                                                           Boolean active,
                                                           LinkedHashMap<String,Object> params,
                                                           boolean andSearch,
                                                           int start,
                                                           int end,
                                                           OrderByComparator obc)
                  throws SystemException
Throws:
SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Hits search(long companyId,
                                                     String firstName,
                                                     String middleName,
                                                     String lastName,
                                                     String screenName,
                                                     String emailAddress,
                                                     Boolean active,
                                                     LinkedHashMap<String,Object> params,
                                                     boolean andSearch,
                                                     int start,
                                                     int end,
                                                     Sort sort)
            throws SystemException
Throws:
SystemException

searchCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int searchCount(long companyId,
                                                         String keywords,
                                                         Boolean active,
                                                         LinkedHashMap<String,Object> params)
                throws SystemException
Throws:
SystemException

searchCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int searchCount(long companyId,
                                                         String firstName,
                                                         String middleName,
                                                         String lastName,
                                                         String screenName,
                                                         String emailAddress,
                                                         Boolean active,
                                                         LinkedHashMap<String,Object> params,
                                                         boolean andSearch)
                throws SystemException
Throws:
SystemException

sendPassword

void sendPassword(long companyId,
                  String emailAddress,
                  String remoteAddr,
                  String remoteHost,
                  String userAgent,
                  String fromName,
                  String fromAddress,
                  String subject,
                  String body,
                  ServiceContext serviceContext)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

setRoleUsers

void setRoleUsers(long roleId,
                  long[] userIds)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

setUserGroupUsers

void setUserGroupUsers(long userGroupId,
                       long[] userIds)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

unsetGroupUsers

void unsetGroupUsers(long groupId,
                     long[] userIds)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

unsetOrganizationUsers

void unsetOrganizationUsers(long organizationId,
                            long[] userIds)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

unsetPasswordPolicyUsers

void unsetPasswordPolicyUsers(long passwordPolicyId,
                              long[] userIds)
                              throws SystemException
Throws:
SystemException

unsetRoleUsers

void unsetRoleUsers(long roleId,
                    List<User> users)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

unsetRoleUsers

void unsetRoleUsers(long roleId,
                    long[] userIds)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

unsetTeamUsers

void unsetTeamUsers(long teamId,
                    long[] userIds)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

unsetUserGroupUsers

void unsetUserGroupUsers(long userGroupId,
                         long[] userIds)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

updateActive

User updateActive(long userId,
                  boolean active)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

updateAgreedToTermsOfUse

User updateAgreedToTermsOfUse(long userId,
                              boolean agreedToTermsOfUse)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

updateAsset

void updateAsset(long userId,
                 User user,
                 long[] assetCategoryIds,
                 String[] assetTagNames)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

updateCreateDate

User updateCreateDate(long userId,
                      Date createDate)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

updateEmailAddress

User updateEmailAddress(long userId,
                        String password,
                        String emailAddress1,
                        String emailAddress2)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

updateGroups

void updateGroups(long userId,
                  long[] newGroupIds)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

updateLastLogin

User updateLastLogin(long userId,
                     String loginIP)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

updateLockout

User updateLockout(User user,
                   boolean lockout)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

updateLockoutByEmailAddress

User updateLockoutByEmailAddress(long companyId,
                                 String emailAddress,
                                 boolean lockout)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

updateLockoutById

User updateLockoutById(long userId,
                       boolean lockout)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

updateLockoutByScreenName

User updateLockoutByScreenName(long companyId,
                               String screenName,
                               boolean lockout)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

updateModifiedDate

User updateModifiedDate(long userId,
                        Date modifiedDate)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

updateOpenId

void updateOpenId(long userId,
                  String openId)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

updateOrganizations

void updateOrganizations(long userId,
                         long[] newOrganizationIds)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

updatePassword

User updatePassword(long userId,
                    String password1,
                    String password2,
                    boolean passwordReset)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

updatePassword

User updatePassword(long userId,
                    String password1,
                    String password2,
                    boolean passwordReset,
                    boolean silentUpdate)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

updatePasswordManually

User updatePasswordManually(long userId,
                            String password,
                            boolean passwordEncrypted,
                            boolean passwordReset,
                            Date passwordModifiedDate)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

updatePasswordReset

void updatePasswordReset(long userId,
                         boolean passwordReset)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

updatePortrait

void updatePortrait(long userId,
                    byte[] bytes)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

updateReminderQuery

void updateReminderQuery(long userId,
                         String question,
                         String answer)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

updateScreenName

void updateScreenName(long userId,
                      String screenName)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

updateUser

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

Liferay 6.0.5