Liferay 6.0.5

com.liferay.portal.service
Class UserLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portal.service.UserLocalServiceWrapper
All Implemented Interfaces:
UserLocalService

public class UserLocalServiceWrapper
extends Object
implements UserLocalService

This class is a wrapper for UserLocalService.

See Also:
UserLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
UserLocalServiceWrapper(UserLocalService userLocalService)
           
 
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.
 UserLocalService getWrappedUserLocalService()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserLocalServiceWrapper

public UserLocalServiceWrapper(UserLocalService userLocalService)
Method Detail

addUser

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

Specified by:
addUser in interface UserLocalService
Parameters:
user - the user to add
Returns:
the user that was added
Throws:
SystemException - if a system exception occurred

createUser

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

Specified by:
createUser in interface UserLocalService
Parameters:
userId - the primary key for the new user
Returns:
the new user

deleteUser

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

Specified by:
deleteUser in interface UserLocalService
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

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

Specified by:
deleteUser in interface UserLocalService
Parameters:
user - the user to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

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

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

dynamicQuery

public 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.

Specified by:
dynamicQuery in interface UserLocalService
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

public 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.

Specified by:
dynamicQuery in interface UserLocalService
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

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

Specified by:
dynamicQueryCount in interface UserLocalService
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

public User getUser(long userId)
             throws PortalException,
                    SystemException
Gets the user with the primary key.

Specified by:
getUser in interface UserLocalService
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

public 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.

Specified by:
getUsers in interface UserLocalService
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

public int getUsersCount()
                  throws SystemException
Gets the number of users.

Specified by:
getUsersCount in interface UserLocalService
Returns:
the number of users
Throws:
SystemException - if a system exception occurred

updateUser

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

Specified by:
updateUser in interface UserLocalService
Parameters:
user - the user to update
Returns:
the user that was updated
Throws:
SystemException - if a system exception occurred

updateUser

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

Specified by:
updateUser in interface UserLocalService
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

public void addDefaultGroups(long userId)
                      throws PortalException,
                             SystemException
Specified by:
addDefaultGroups in interface UserLocalService
Throws:
PortalException
SystemException

addDefaultRoles

public void addDefaultRoles(long userId)
                     throws PortalException,
                            SystemException
Specified by:
addDefaultRoles in interface UserLocalService
Throws:
PortalException
SystemException

addDefaultUserGroups

public void addDefaultUserGroups(long userId)
                          throws PortalException,
                                 SystemException
Specified by:
addDefaultUserGroups in interface UserLocalService
Throws:
PortalException
SystemException

addGroupUsers

public void addGroupUsers(long groupId,
                          long[] userIds)
                   throws PortalException,
                          SystemException
Specified by:
addGroupUsers in interface UserLocalService
Throws:
PortalException
SystemException

addOrganizationUsers

public void addOrganizationUsers(long organizationId,
                                 long[] userIds)
                          throws PortalException,
                                 SystemException
Specified by:
addOrganizationUsers in interface UserLocalService
Throws:
PortalException
SystemException

addPasswordPolicyUsers

public void addPasswordPolicyUsers(long passwordPolicyId,
                                   long[] userIds)
                            throws SystemException
Specified by:
addPasswordPolicyUsers in interface UserLocalService
Throws:
SystemException

addRoleUsers

public void addRoleUsers(long roleId,
                         long[] userIds)
                  throws PortalException,
                         SystemException
Specified by:
addRoleUsers in interface UserLocalService
Throws:
PortalException
SystemException

addTeamUsers

public void addTeamUsers(long teamId,
                         long[] userIds)
                  throws PortalException,
                         SystemException
Specified by:
addTeamUsers in interface UserLocalService
Throws:
PortalException
SystemException

addUser

public 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
Specified by:
addUser in interface UserLocalService
Throws:
PortalException
SystemException

addUserGroupUsers

public void addUserGroupUsers(long userGroupId,
                              long[] userIds)
                       throws PortalException,
                              SystemException
Specified by:
addUserGroupUsers in interface UserLocalService
Throws:
PortalException
SystemException

authenticateByEmailAddress

public int authenticateByEmailAddress(long companyId,
                                      String emailAddress,
                                      String password,
                                      Map<String,String[]> headerMap,
                                      Map<String,String[]> parameterMap)
                               throws PortalException,
                                      SystemException
Specified by:
authenticateByEmailAddress in interface UserLocalService
Throws:
PortalException
SystemException

authenticateByScreenName

public int authenticateByScreenName(long companyId,
                                    String screenName,
                                    String password,
                                    Map<String,String[]> headerMap,
                                    Map<String,String[]> parameterMap)
                             throws PortalException,
                                    SystemException
Specified by:
authenticateByScreenName in interface UserLocalService
Throws:
PortalException
SystemException

authenticateByUserId

public int authenticateByUserId(long companyId,
                                long userId,
                                String password,
                                Map<String,String[]> headerMap,
                                Map<String,String[]> parameterMap)
                         throws PortalException,
                                SystemException
Specified by:
authenticateByUserId in interface UserLocalService
Throws:
PortalException
SystemException

authenticateForBasic

public long authenticateForBasic(long companyId,
                                 String authType,
                                 String login,
                                 String password)
                          throws PortalException,
                                 SystemException
Specified by:
authenticateForBasic in interface UserLocalService
Throws:
PortalException
SystemException

authenticateForDigest

public long authenticateForDigest(long companyId,
                                  String username,
                                  String realm,
                                  String nonce,
                                  String method,
                                  String uri,
                                  String response)
                           throws PortalException,
                                  SystemException
Specified by:
authenticateForDigest in interface UserLocalService
Throws:
PortalException
SystemException

authenticateForJAAS

public boolean authenticateForJAAS(long userId,
                                   String encPassword)
Specified by:
authenticateForJAAS in interface UserLocalService

checkLockout

public void checkLockout(User user)
                  throws PortalException,
                         SystemException
Specified by:
checkLockout in interface UserLocalService
Throws:
PortalException
SystemException

checkLoginFailure

public void checkLoginFailure(User user)
                       throws SystemException
Specified by:
checkLoginFailure in interface UserLocalService
Throws:
SystemException

checkLoginFailureByEmailAddress

public void checkLoginFailureByEmailAddress(long companyId,
                                            String emailAddress)
                                     throws PortalException,
                                            SystemException
Specified by:
checkLoginFailureByEmailAddress in interface UserLocalService
Throws:
PortalException
SystemException

checkLoginFailureById

public void checkLoginFailureById(long userId)
                           throws PortalException,
                                  SystemException
Specified by:
checkLoginFailureById in interface UserLocalService
Throws:
PortalException
SystemException

checkLoginFailureByScreenName

public void checkLoginFailureByScreenName(long companyId,
                                          String screenName)
                                   throws PortalException,
                                          SystemException
Specified by:
checkLoginFailureByScreenName in interface UserLocalService
Throws:
PortalException
SystemException

checkPasswordExpired

public void checkPasswordExpired(User user)
                          throws PortalException,
                                 SystemException
Specified by:
checkPasswordExpired in interface UserLocalService
Throws:
PortalException
SystemException

decryptUserId

public KeyValuePair decryptUserId(long companyId,
                                  String name,
                                  String password)
                           throws PortalException,
                                  SystemException
Specified by:
decryptUserId in interface UserLocalService
Throws:
PortalException
SystemException

deletePortrait

public void deletePortrait(long userId)
                    throws PortalException,
                           SystemException
Specified by:
deletePortrait in interface UserLocalService
Throws:
PortalException
SystemException

deleteRoleUser

public void deleteRoleUser(long roleId,
                           long userId)
                    throws PortalException,
                           SystemException
Specified by:
deleteRoleUser in interface UserLocalService
Throws:
PortalException
SystemException

encryptUserId

public String encryptUserId(String name)
                     throws PortalException,
                            SystemException
Specified by:
encryptUserId in interface UserLocalService
Throws:
PortalException
SystemException

getCompanyUsers

public List<User> getCompanyUsers(long companyId,
                                  int start,
                                  int end)
                           throws SystemException
Specified by:
getCompanyUsers in interface UserLocalService
Throws:
SystemException

getCompanyUsersCount

public int getCompanyUsersCount(long companyId)
                         throws SystemException
Specified by:
getCompanyUsersCount in interface UserLocalService
Throws:
SystemException

getDefaultUser

public User getDefaultUser(long companyId)
                    throws PortalException,
                           SystemException
Specified by:
getDefaultUser in interface UserLocalService
Throws:
PortalException
SystemException

getDefaultUserId

public long getDefaultUserId(long companyId)
                      throws PortalException,
                             SystemException
Specified by:
getDefaultUserId in interface UserLocalService
Throws:
PortalException
SystemException

getGroupUserIds

public long[] getGroupUserIds(long groupId)
                       throws SystemException
Specified by:
getGroupUserIds in interface UserLocalService
Throws:
SystemException

getGroupUsers

public List<User> getGroupUsers(long groupId)
                         throws SystemException
Specified by:
getGroupUsers in interface UserLocalService
Throws:
SystemException

getGroupUsersCount

public int getGroupUsersCount(long groupId)
                       throws SystemException
Specified by:
getGroupUsersCount in interface UserLocalService
Throws:
SystemException

getGroupUsersCount

public int getGroupUsersCount(long groupId,
                              boolean active)
                       throws PortalException,
                              SystemException
Specified by:
getGroupUsersCount in interface UserLocalService
Throws:
PortalException
SystemException

getNoAnnouncementsDeliveries

public List<User> getNoAnnouncementsDeliveries(String type)
                                        throws SystemException
Specified by:
getNoAnnouncementsDeliveries in interface UserLocalService
Throws:
SystemException

getNoContacts

public List<User> getNoContacts()
                         throws SystemException
Specified by:
getNoContacts in interface UserLocalService
Throws:
SystemException

getNoGroups

public List<User> getNoGroups()
                       throws SystemException
Specified by:
getNoGroups in interface UserLocalService
Throws:
SystemException

getOrganizationUserIds

public long[] getOrganizationUserIds(long organizationId)
                              throws SystemException
Specified by:
getOrganizationUserIds in interface UserLocalService
Throws:
SystemException

getOrganizationUsers

public List<User> getOrganizationUsers(long organizationId)
                                throws SystemException
Specified by:
getOrganizationUsers in interface UserLocalService
Throws:
SystemException

getOrganizationUsersCount

public int getOrganizationUsersCount(long organizationId)
                              throws SystemException
Specified by:
getOrganizationUsersCount in interface UserLocalService
Throws:
SystemException

getOrganizationUsersCount

public int getOrganizationUsersCount(long organizationId,
                                     boolean active)
                              throws PortalException,
                                     SystemException
Specified by:
getOrganizationUsersCount in interface UserLocalService
Throws:
PortalException
SystemException

getRoleUserIds

public long[] getRoleUserIds(long roleId)
                      throws SystemException
Specified by:
getRoleUserIds in interface UserLocalService
Throws:
SystemException

getRoleUsers

public List<User> getRoleUsers(long roleId)
                        throws SystemException
Specified by:
getRoleUsers in interface UserLocalService
Throws:
SystemException

getRoleUsers

public List<User> getRoleUsers(long roleId,
                               int start,
                               int end)
                        throws SystemException
Specified by:
getRoleUsers in interface UserLocalService
Throws:
SystemException

getRoleUsersCount

public int getRoleUsersCount(long roleId)
                      throws SystemException
Specified by:
getRoleUsersCount in interface UserLocalService
Throws:
SystemException

getRoleUsersCount

public int getRoleUsersCount(long roleId,
                             boolean active)
                      throws PortalException,
                             SystemException
Specified by:
getRoleUsersCount in interface UserLocalService
Throws:
PortalException
SystemException

getSocialUsers

public List<User> getSocialUsers(long userId,
                                 int type,
                                 int start,
                                 int end,
                                 OrderByComparator obc)
                          throws PortalException,
                                 SystemException
Specified by:
getSocialUsers in interface UserLocalService
Throws:
PortalException
SystemException

getSocialUsers

public List<User> getSocialUsers(long userId,
                                 int start,
                                 int end,
                                 OrderByComparator obc)
                          throws PortalException,
                                 SystemException
Specified by:
getSocialUsers in interface UserLocalService
Throws:
PortalException
SystemException

getSocialUsers

public List<User> getSocialUsers(long userId1,
                                 long userId2,
                                 int type,
                                 int start,
                                 int end,
                                 OrderByComparator obc)
                          throws PortalException,
                                 SystemException
Specified by:
getSocialUsers in interface UserLocalService
Throws:
PortalException
SystemException

getSocialUsers

public List<User> getSocialUsers(long userId1,
                                 long userId2,
                                 int start,
                                 int end,
                                 OrderByComparator obc)
                          throws PortalException,
                                 SystemException
Specified by:
getSocialUsers in interface UserLocalService
Throws:
PortalException
SystemException

getSocialUsersCount

public int getSocialUsersCount(long userId)
                        throws PortalException,
                               SystemException
Specified by:
getSocialUsersCount in interface UserLocalService
Throws:
PortalException
SystemException

getSocialUsersCount

public int getSocialUsersCount(long userId,
                               int type)
                        throws PortalException,
                               SystemException
Specified by:
getSocialUsersCount in interface UserLocalService
Throws:
PortalException
SystemException

getSocialUsersCount

public int getSocialUsersCount(long userId1,
                               long userId2)
                        throws PortalException,
                               SystemException
Specified by:
getSocialUsersCount in interface UserLocalService
Throws:
PortalException
SystemException

getSocialUsersCount

public int getSocialUsersCount(long userId1,
                               long userId2,
                               int type)
                        throws PortalException,
                               SystemException
Specified by:
getSocialUsersCount in interface UserLocalService
Throws:
PortalException
SystemException

getUserByContactId

public User getUserByContactId(long contactId)
                        throws PortalException,
                               SystemException
Specified by:
getUserByContactId in interface UserLocalService
Throws:
PortalException
SystemException

getUserByEmailAddress

public User getUserByEmailAddress(long companyId,
                                  String emailAddress)
                           throws PortalException,
                                  SystemException
Specified by:
getUserByEmailAddress in interface UserLocalService
Throws:
PortalException
SystemException

getUserByFacebookId

public User getUserByFacebookId(long companyId,
                                long facebookId)
                         throws PortalException,
                                SystemException
Specified by:
getUserByFacebookId in interface UserLocalService
Throws:
PortalException
SystemException

getUserById

public User getUserById(long userId)
                 throws PortalException,
                        SystemException
Specified by:
getUserById in interface UserLocalService
Throws:
PortalException
SystemException

getUserById

public User getUserById(long companyId,
                        long userId)
                 throws PortalException,
                        SystemException
Specified by:
getUserById in interface UserLocalService
Throws:
PortalException
SystemException

getUserByOpenId

public User getUserByOpenId(long companyId,
                            String openId)
                     throws PortalException,
                            SystemException
Specified by:
getUserByOpenId in interface UserLocalService
Throws:
PortalException
SystemException

getUserByPortraitId

public User getUserByPortraitId(long portraitId)
                         throws PortalException,
                                SystemException
Specified by:
getUserByPortraitId in interface UserLocalService
Throws:
PortalException
SystemException

getUserByScreenName

public User getUserByScreenName(long companyId,
                                String screenName)
                         throws PortalException,
                                SystemException
Specified by:
getUserByScreenName in interface UserLocalService
Throws:
PortalException
SystemException

getUserByUuid

public User getUserByUuid(String uuid)
                   throws PortalException,
                          SystemException
Specified by:
getUserByUuid in interface UserLocalService
Throws:
PortalException
SystemException

getUserGroupUsers

public List<User> getUserGroupUsers(long userGroupId)
                             throws SystemException
Specified by:
getUserGroupUsers in interface UserLocalService
Throws:
SystemException

getUserGroupUsersCount

public int getUserGroupUsersCount(long userGroupId)
                           throws SystemException
Specified by:
getUserGroupUsersCount in interface UserLocalService
Throws:
SystemException

getUserGroupUsersCount

public int getUserGroupUsersCount(long userGroupId,
                                  boolean active)
                           throws PortalException,
                                  SystemException
Specified by:
getUserGroupUsersCount in interface UserLocalService
Throws:
PortalException
SystemException

getUserIdByEmailAddress

public long getUserIdByEmailAddress(long companyId,
                                    String emailAddress)
                             throws PortalException,
                                    SystemException
Specified by:
getUserIdByEmailAddress in interface UserLocalService
Throws:
PortalException
SystemException

getUserIdByScreenName

public long getUserIdByScreenName(long companyId,
                                  String screenName)
                           throws PortalException,
                                  SystemException
Specified by:
getUserIdByScreenName in interface UserLocalService
Throws:
PortalException
SystemException

hasGroupUser

public boolean hasGroupUser(long groupId,
                            long userId)
                     throws SystemException
Specified by:
hasGroupUser in interface UserLocalService
Throws:
SystemException

hasOrganizationUser

public boolean hasOrganizationUser(long organizationId,
                                   long userId)
                            throws SystemException
Specified by:
hasOrganizationUser in interface UserLocalService
Throws:
SystemException

hasPasswordPolicyUser

public boolean hasPasswordPolicyUser(long passwordPolicyId,
                                     long userId)
                              throws SystemException
Specified by:
hasPasswordPolicyUser in interface UserLocalService
Throws:
SystemException

hasRoleUser

public boolean hasRoleUser(long roleId,
                           long userId)
                    throws SystemException
Specified by:
hasRoleUser in interface UserLocalService
Throws:
SystemException

hasRoleUser

public boolean hasRoleUser(long companyId,
                           String name,
                           long userId,
                           boolean inherited)
                    throws PortalException,
                           SystemException
Returns true if the user has the role.

Specified by:
hasRoleUser in interface UserLocalService
Returns:
true if the user has the role
Throws:
PortalException
SystemException

hasTeamUser

public boolean hasTeamUser(long teamId,
                           long userId)
                    throws SystemException
Specified by:
hasTeamUser in interface UserLocalService
Throws:
SystemException

hasUserGroupUser

public boolean hasUserGroupUser(long userGroupId,
                                long userId)
                         throws SystemException
Specified by:
hasUserGroupUser in interface UserLocalService
Throws:
SystemException

isPasswordExpired

public boolean isPasswordExpired(User user)
                          throws PortalException,
                                 SystemException
Specified by:
isPasswordExpired in interface UserLocalService
Throws:
PortalException
SystemException

isPasswordExpiringSoon

public boolean isPasswordExpiringSoon(User user)
                               throws PortalException,
                                      SystemException
Specified by:
isPasswordExpiringSoon in interface UserLocalService
Throws:
PortalException
SystemException

search

public List<User> search(long companyId,
                         String keywords,
                         Boolean active,
                         LinkedHashMap<String,Object> params,
                         int start,
                         int end,
                         OrderByComparator obc)
                  throws SystemException
Specified by:
search in interface UserLocalService
Throws:
SystemException

search

public Hits search(long companyId,
                   String keywords,
                   Boolean active,
                   LinkedHashMap<String,Object> params,
                   int start,
                   int end,
                   Sort sort)
            throws SystemException
Specified by:
search in interface UserLocalService
Throws:
SystemException

search

public 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
Specified by:
search in interface UserLocalService
Throws:
SystemException

search

public 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
Specified by:
search in interface UserLocalService
Throws:
SystemException

searchCount

public int searchCount(long companyId,
                       String keywords,
                       Boolean active,
                       LinkedHashMap<String,Object> params)
                throws SystemException
Specified by:
searchCount in interface UserLocalService
Throws:
SystemException

searchCount

public int searchCount(long companyId,
                       String firstName,
                       String middleName,
                       String lastName,
                       String screenName,
                       String emailAddress,
                       Boolean active,
                       LinkedHashMap<String,Object> params,
                       boolean andSearch)
                throws SystemException
Specified by:
searchCount in interface UserLocalService
Throws:
SystemException

sendPassword

public 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
Specified by:
sendPassword in interface UserLocalService
Throws:
PortalException
SystemException

setRoleUsers

public void setRoleUsers(long roleId,
                         long[] userIds)
                  throws PortalException,
                         SystemException
Specified by:
setRoleUsers in interface UserLocalService
Throws:
PortalException
SystemException

setUserGroupUsers

public void setUserGroupUsers(long userGroupId,
                              long[] userIds)
                       throws PortalException,
                              SystemException
Specified by:
setUserGroupUsers in interface UserLocalService
Throws:
PortalException
SystemException

unsetGroupUsers

public void unsetGroupUsers(long groupId,
                            long[] userIds)
                     throws PortalException,
                            SystemException
Specified by:
unsetGroupUsers in interface UserLocalService
Throws:
PortalException
SystemException

unsetOrganizationUsers

public void unsetOrganizationUsers(long organizationId,
                                   long[] userIds)
                            throws PortalException,
                                   SystemException
Specified by:
unsetOrganizationUsers in interface UserLocalService
Throws:
PortalException
SystemException

unsetPasswordPolicyUsers

public void unsetPasswordPolicyUsers(long passwordPolicyId,
                                     long[] userIds)
                              throws SystemException
Specified by:
unsetPasswordPolicyUsers in interface UserLocalService
Throws:
SystemException

unsetRoleUsers

public void unsetRoleUsers(long roleId,
                           List<User> users)
                    throws PortalException,
                           SystemException
Specified by:
unsetRoleUsers in interface UserLocalService
Throws:
PortalException
SystemException

unsetRoleUsers

public void unsetRoleUsers(long roleId,
                           long[] userIds)
                    throws PortalException,
                           SystemException
Specified by:
unsetRoleUsers in interface UserLocalService
Throws:
PortalException
SystemException

unsetTeamUsers

public void unsetTeamUsers(long teamId,
                           long[] userIds)
                    throws PortalException,
                           SystemException
Specified by:
unsetTeamUsers in interface UserLocalService
Throws:
PortalException
SystemException

unsetUserGroupUsers

public void unsetUserGroupUsers(long userGroupId,
                                long[] userIds)
                         throws PortalException,
                                SystemException
Specified by:
unsetUserGroupUsers in interface UserLocalService
Throws:
PortalException
SystemException

updateActive

public User updateActive(long userId,
                         boolean active)
                  throws PortalException,
                         SystemException
Specified by:
updateActive in interface UserLocalService
Throws:
PortalException
SystemException

updateAgreedToTermsOfUse

public User updateAgreedToTermsOfUse(long userId,
                                     boolean agreedToTermsOfUse)
                              throws PortalException,
                                     SystemException
Specified by:
updateAgreedToTermsOfUse in interface UserLocalService
Throws:
PortalException
SystemException

updateAsset

public void updateAsset(long userId,
                        User user,
                        long[] assetCategoryIds,
                        String[] assetTagNames)
                 throws PortalException,
                        SystemException
Specified by:
updateAsset in interface UserLocalService
Throws:
PortalException
SystemException

updateCreateDate

public User updateCreateDate(long userId,
                             Date createDate)
                      throws PortalException,
                             SystemException
Specified by:
updateCreateDate in interface UserLocalService
Throws:
PortalException
SystemException

updateEmailAddress

public User updateEmailAddress(long userId,
                               String password,
                               String emailAddress1,
                               String emailAddress2)
                        throws PortalException,
                               SystemException
Specified by:
updateEmailAddress in interface UserLocalService
Throws:
PortalException
SystemException

updateGroups

public void updateGroups(long userId,
                         long[] newGroupIds)
                  throws PortalException,
                         SystemException
Specified by:
updateGroups in interface UserLocalService
Throws:
PortalException
SystemException

updateLastLogin

public User updateLastLogin(long userId,
                            String loginIP)
                     throws PortalException,
                            SystemException
Specified by:
updateLastLogin in interface UserLocalService
Throws:
PortalException
SystemException

updateLockout

public User updateLockout(User user,
                          boolean lockout)
                   throws PortalException,
                          SystemException
Specified by:
updateLockout in interface UserLocalService
Throws:
PortalException
SystemException

updateLockoutByEmailAddress

public User updateLockoutByEmailAddress(long companyId,
                                        String emailAddress,
                                        boolean lockout)
                                 throws PortalException,
                                        SystemException
Specified by:
updateLockoutByEmailAddress in interface UserLocalService
Throws:
PortalException
SystemException

updateLockoutById

public User updateLockoutById(long userId,
                              boolean lockout)
                       throws PortalException,
                              SystemException
Specified by:
updateLockoutById in interface UserLocalService
Throws:
PortalException
SystemException

updateLockoutByScreenName

public User updateLockoutByScreenName(long companyId,
                                      String screenName,
                                      boolean lockout)
                               throws PortalException,
                                      SystemException
Specified by:
updateLockoutByScreenName in interface UserLocalService
Throws:
PortalException
SystemException

updateModifiedDate

public User updateModifiedDate(long userId,
                               Date modifiedDate)
                        throws PortalException,
                               SystemException
Specified by:
updateModifiedDate in interface UserLocalService
Throws:
PortalException
SystemException

updateOpenId

public void updateOpenId(long userId,
                         String openId)
                  throws PortalException,
                         SystemException
Specified by:
updateOpenId in interface UserLocalService
Throws:
PortalException
SystemException

updateOrganizations

public void updateOrganizations(long userId,
                                long[] newOrganizationIds)
                         throws PortalException,
                                SystemException
Specified by:
updateOrganizations in interface UserLocalService
Throws:
PortalException
SystemException

updatePassword

public User updatePassword(long userId,
                           String password1,
                           String password2,
                           boolean passwordReset)
                    throws PortalException,
                           SystemException
Specified by:
updatePassword in interface UserLocalService
Throws:
PortalException
SystemException

updatePassword

public User updatePassword(long userId,
                           String password1,
                           String password2,
                           boolean passwordReset,
                           boolean silentUpdate)
                    throws PortalException,
                           SystemException
Specified by:
updatePassword in interface UserLocalService
Throws:
PortalException
SystemException

updatePasswordManually

public User updatePasswordManually(long userId,
                                   String password,
                                   boolean passwordEncrypted,
                                   boolean passwordReset,
                                   Date passwordModifiedDate)
                            throws PortalException,
                                   SystemException
Specified by:
updatePasswordManually in interface UserLocalService
Throws:
PortalException
SystemException

updatePasswordReset

public void updatePasswordReset(long userId,
                                boolean passwordReset)
                         throws PortalException,
                                SystemException
Specified by:
updatePasswordReset in interface UserLocalService
Throws:
PortalException
SystemException

updatePortrait

public void updatePortrait(long userId,
                           byte[] bytes)
                    throws PortalException,
                           SystemException
Specified by:
updatePortrait in interface UserLocalService
Throws:
PortalException
SystemException

updateReminderQuery

public void updateReminderQuery(long userId,
                                String question,
                                String answer)
                         throws PortalException,
                                SystemException
Specified by:
updateReminderQuery in interface UserLocalService
Throws:
PortalException
SystemException

updateScreenName

public void updateScreenName(long userId,
                             String screenName)
                      throws PortalException,
                             SystemException
Specified by:
updateScreenName in interface UserLocalService
Throws:
PortalException
SystemException

updateUser

public 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
Specified by:
updateUser in interface UserLocalService
Throws:
PortalException
SystemException

getWrappedUserLocalService

public UserLocalService getWrappedUserLocalService()

Liferay 6.0.5