com.liferay.portal.service
Class UserServiceWrapper

java.lang.Object
  extended by com.liferay.portal.service.UserServiceWrapper
All Implemented Interfaces:
UserService

public class UserServiceWrapper
extends java.lang.Object
implements UserService

View Source

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

This class is a wrapper for UserService.

Author:
Brian Wing Shun Chan
See Also:
UserService
Generated:

Constructor Summary
UserServiceWrapper(UserService userService)
           
 
Method Summary
 void addGroupUsers(long groupId, long[] userIds)
           
 void addOrganizationUsers(long organizationId, long[] userIds)
           
 void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
           
 void addRoleUsers(long roleId, long[] userIds)
           
 User addUser(long companyId, boolean autoPassword, java.lang.String password1, java.lang.String password2, boolean autoScreenName, java.lang.String screenName, java.lang.String emailAddress, java.util.Locale locale, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, java.lang.String jobTitle, long[] organizationIds, boolean sendEmail)
           
 void addUserGroupUsers(long userGroupId, long[] userIds)
           
 void deleteRoleUser(long roleId, long userId)
           
 void deleteUser(long userId)
           
 long getDefaultUserId(long companyId)
           
 long[] getGroupUserIds(long groupId)
           
 long[] getOrganizationUserIds(long organizationId)
           
 long[] getRoleUserIds(long roleId)
           
 User getUserByEmailAddress(long companyId, java.lang.String emailAddress)
           
 User getUserById(long userId)
           
 User getUserByScreenName(long companyId, java.lang.String screenName)
           
 long getUserIdByEmailAddress(long companyId, java.lang.String emailAddress)
           
 long getUserIdByScreenName(long companyId, java.lang.String screenName)
           
 UserService getWrappedUserService()
           
 boolean hasGroupUser(long groupId, long userId)
           
 boolean hasRoleUser(long roleId, long userId)
           
 boolean hasRoleUser(long companyId, java.lang.String name, long userId, boolean inherited)
           
 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, long[] userIds)
           
 void unsetUserGroupUsers(long userGroupId, long[] userIds)
           
 User updateActive(long userId, boolean active)
           
 User updateAgreedToTermsOfUse(long userId, boolean agreedToTermsOfUse)
           
 User updateLockout(long userId, boolean lockout)
           
 void updateOpenId(long userId, java.lang.String openId)
           
 void updateOrganizations(long userId, long[] organizationIds)
           
 User updatePassword(long userId, java.lang.String password1, java.lang.String password2, boolean passwordReset)
           
 void updatePortrait(long userId, byte[] bytes)
           
 void updateScreenName(long userId, java.lang.String screenName)
           
 User updateUser(long userId, java.lang.String oldPassword, boolean passwordReset, java.lang.String screenName, java.lang.String emailAddress, java.lang.String languageId, java.lang.String timeZoneId, java.lang.String greeting, java.lang.String comments, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, java.lang.String smsSn, java.lang.String aimSn, java.lang.String facebookSn, java.lang.String icqSn, java.lang.String jabberSn, java.lang.String msnSn, java.lang.String mySpaceSn, java.lang.String skypeSn, java.lang.String twitterSn, java.lang.String ymSn, java.lang.String jobTitle, long[] organizationIds)
           
 User updateUser(long userId, java.lang.String oldPassword, java.lang.String newPassword1, java.lang.String newPassword2, boolean passwordReset, java.lang.String screenName, java.lang.String emailAddress, java.lang.String languageId, java.lang.String timeZoneId, java.lang.String greeting, java.lang.String comments, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, java.lang.String smsSn, java.lang.String aimSn, java.lang.String facebookSn, java.lang.String icqSn, java.lang.String jabberSn, java.lang.String msnSn, java.lang.String mySpaceSn, java.lang.String skypeSn, java.lang.String twitterSn, java.lang.String ymSn, java.lang.String jobTitle, long[] organizationIds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserServiceWrapper

public UserServiceWrapper(UserService userService)
Method Detail

addGroupUsers

public void addGroupUsers(long groupId,
                          long[] userIds)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException,
                          java.rmi.RemoteException
Specified by:
addGroupUsers in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

addOrganizationUsers

public void addOrganizationUsers(long organizationId,
                                 long[] userIds)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException,
                                 java.rmi.RemoteException
Specified by:
addOrganizationUsers in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

addPasswordPolicyUsers

public void addPasswordPolicyUsers(long passwordPolicyId,
                                   long[] userIds)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException,
                                   java.rmi.RemoteException
Specified by:
addPasswordPolicyUsers in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

addRoleUsers

public void addRoleUsers(long roleId,
                         long[] userIds)
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException,
                         java.rmi.RemoteException
Specified by:
addRoleUsers in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

addUserGroupUsers

public void addUserGroupUsers(long userGroupId,
                              long[] userIds)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException,
                              java.rmi.RemoteException
Specified by:
addUserGroupUsers in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

addUser

public User addUser(long companyId,
                    boolean autoPassword,
                    java.lang.String password1,
                    java.lang.String password2,
                    boolean autoScreenName,
                    java.lang.String screenName,
                    java.lang.String emailAddress,
                    java.util.Locale locale,
                    java.lang.String firstName,
                    java.lang.String middleName,
                    java.lang.String lastName,
                    int prefixId,
                    int suffixId,
                    boolean male,
                    int birthdayMonth,
                    int birthdayDay,
                    int birthdayYear,
                    java.lang.String jobTitle,
                    long[] organizationIds,
                    boolean sendEmail)
             throws com.liferay.portal.PortalException,
                    com.liferay.portal.SystemException,
                    java.rmi.RemoteException
Specified by:
addUser in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

deleteRoleUser

public void deleteRoleUser(long roleId,
                           long userId)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException,
                           java.rmi.RemoteException
Specified by:
deleteRoleUser in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

deleteUser

public void deleteUser(long userId)
                throws com.liferay.portal.PortalException,
                       com.liferay.portal.SystemException,
                       java.rmi.RemoteException
Specified by:
deleteUser in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getDefaultUserId

public long getDefaultUserId(long companyId)
                      throws com.liferay.portal.PortalException,
                             com.liferay.portal.SystemException,
                             java.rmi.RemoteException
Specified by:
getDefaultUserId in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getGroupUserIds

public long[] getGroupUserIds(long groupId)
                       throws com.liferay.portal.SystemException,
                              java.rmi.RemoteException
Specified by:
getGroupUserIds in interface UserService
Throws:
com.liferay.portal.SystemException
java.rmi.RemoteException

getOrganizationUserIds

public long[] getOrganizationUserIds(long organizationId)
                              throws com.liferay.portal.SystemException,
                                     java.rmi.RemoteException
Specified by:
getOrganizationUserIds in interface UserService
Throws:
com.liferay.portal.SystemException
java.rmi.RemoteException

getRoleUserIds

public long[] getRoleUserIds(long roleId)
                      throws com.liferay.portal.SystemException,
                             java.rmi.RemoteException
Specified by:
getRoleUserIds in interface UserService
Throws:
com.liferay.portal.SystemException
java.rmi.RemoteException

getUserByEmailAddress

public User getUserByEmailAddress(long companyId,
                                  java.lang.String emailAddress)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException,
                                  java.rmi.RemoteException
Specified by:
getUserByEmailAddress in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getUserById

public User getUserById(long userId)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException,
                        java.rmi.RemoteException
Specified by:
getUserById in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getUserByScreenName

public User getUserByScreenName(long companyId,
                                java.lang.String screenName)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException,
                                java.rmi.RemoteException
Specified by:
getUserByScreenName in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getUserIdByEmailAddress

public long getUserIdByEmailAddress(long companyId,
                                    java.lang.String emailAddress)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException,
                                    java.rmi.RemoteException
Specified by:
getUserIdByEmailAddress in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getUserIdByScreenName

public long getUserIdByScreenName(long companyId,
                                  java.lang.String screenName)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException,
                                  java.rmi.RemoteException
Specified by:
getUserIdByScreenName in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

hasGroupUser

public boolean hasGroupUser(long groupId,
                            long userId)
                     throws com.liferay.portal.SystemException,
                            java.rmi.RemoteException
Specified by:
hasGroupUser in interface UserService
Throws:
com.liferay.portal.SystemException
java.rmi.RemoteException

hasRoleUser

public boolean hasRoleUser(long roleId,
                           long userId)
                    throws com.liferay.portal.SystemException,
                           java.rmi.RemoteException
Specified by:
hasRoleUser in interface UserService
Throws:
com.liferay.portal.SystemException
java.rmi.RemoteException

hasRoleUser

public boolean hasRoleUser(long companyId,
                           java.lang.String name,
                           long userId,
                           boolean inherited)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException,
                           java.rmi.RemoteException
Specified by:
hasRoleUser in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

setRoleUsers

public void setRoleUsers(long roleId,
                         long[] userIds)
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException,
                         java.rmi.RemoteException
Specified by:
setRoleUsers in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

setUserGroupUsers

public void setUserGroupUsers(long userGroupId,
                              long[] userIds)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException,
                              java.rmi.RemoteException
Specified by:
setUserGroupUsers in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

unsetGroupUsers

public void unsetGroupUsers(long groupId,
                            long[] userIds)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException,
                            java.rmi.RemoteException
Specified by:
unsetGroupUsers in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

unsetOrganizationUsers

public void unsetOrganizationUsers(long organizationId,
                                   long[] userIds)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException,
                                   java.rmi.RemoteException
Specified by:
unsetOrganizationUsers in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

unsetPasswordPolicyUsers

public void unsetPasswordPolicyUsers(long passwordPolicyId,
                                     long[] userIds)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException,
                                     java.rmi.RemoteException
Specified by:
unsetPasswordPolicyUsers in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

unsetRoleUsers

public void unsetRoleUsers(long roleId,
                           long[] userIds)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException,
                           java.rmi.RemoteException
Specified by:
unsetRoleUsers in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

unsetUserGroupUsers

public void unsetUserGroupUsers(long userGroupId,
                                long[] userIds)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException,
                                java.rmi.RemoteException
Specified by:
unsetUserGroupUsers in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

updateActive

public User updateActive(long userId,
                         boolean active)
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException,
                         java.rmi.RemoteException
Specified by:
updateActive in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

updateAgreedToTermsOfUse

public User updateAgreedToTermsOfUse(long userId,
                                     boolean agreedToTermsOfUse)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException,
                                     java.rmi.RemoteException
Specified by:
updateAgreedToTermsOfUse in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

updateLockout

public User updateLockout(long userId,
                          boolean lockout)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException,
                          java.rmi.RemoteException
Specified by:
updateLockout in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

updateOpenId

public void updateOpenId(long userId,
                         java.lang.String openId)
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException,
                         java.rmi.RemoteException
Specified by:
updateOpenId in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

updateOrganizations

public void updateOrganizations(long userId,
                                long[] organizationIds)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException,
                                java.rmi.RemoteException
Specified by:
updateOrganizations in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

updatePassword

public User updatePassword(long userId,
                           java.lang.String password1,
                           java.lang.String password2,
                           boolean passwordReset)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException,
                           java.rmi.RemoteException
Specified by:
updatePassword in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

updatePortrait

public void updatePortrait(long userId,
                           byte[] bytes)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException,
                           java.rmi.RemoteException
Specified by:
updatePortrait in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

updateScreenName

public void updateScreenName(long userId,
                             java.lang.String screenName)
                      throws com.liferay.portal.PortalException,
                             com.liferay.portal.SystemException,
                             java.rmi.RemoteException
Specified by:
updateScreenName in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

updateUser

public User updateUser(long userId,
                       java.lang.String oldPassword,
                       boolean passwordReset,
                       java.lang.String screenName,
                       java.lang.String emailAddress,
                       java.lang.String languageId,
                       java.lang.String timeZoneId,
                       java.lang.String greeting,
                       java.lang.String comments,
                       java.lang.String firstName,
                       java.lang.String middleName,
                       java.lang.String lastName,
                       int prefixId,
                       int suffixId,
                       boolean male,
                       int birthdayMonth,
                       int birthdayDay,
                       int birthdayYear,
                       java.lang.String smsSn,
                       java.lang.String aimSn,
                       java.lang.String facebookSn,
                       java.lang.String icqSn,
                       java.lang.String jabberSn,
                       java.lang.String msnSn,
                       java.lang.String mySpaceSn,
                       java.lang.String skypeSn,
                       java.lang.String twitterSn,
                       java.lang.String ymSn,
                       java.lang.String jobTitle,
                       long[] organizationIds)
                throws com.liferay.portal.PortalException,
                       com.liferay.portal.SystemException,
                       java.rmi.RemoteException
Specified by:
updateUser in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

updateUser

public User updateUser(long userId,
                       java.lang.String oldPassword,
                       java.lang.String newPassword1,
                       java.lang.String newPassword2,
                       boolean passwordReset,
                       java.lang.String screenName,
                       java.lang.String emailAddress,
                       java.lang.String languageId,
                       java.lang.String timeZoneId,
                       java.lang.String greeting,
                       java.lang.String comments,
                       java.lang.String firstName,
                       java.lang.String middleName,
                       java.lang.String lastName,
                       int prefixId,
                       int suffixId,
                       boolean male,
                       int birthdayMonth,
                       int birthdayDay,
                       int birthdayYear,
                       java.lang.String smsSn,
                       java.lang.String aimSn,
                       java.lang.String facebookSn,
                       java.lang.String icqSn,
                       java.lang.String jabberSn,
                       java.lang.String msnSn,
                       java.lang.String mySpaceSn,
                       java.lang.String skypeSn,
                       java.lang.String twitterSn,
                       java.lang.String ymSn,
                       java.lang.String jobTitle,
                       long[] organizationIds)
                throws com.liferay.portal.PortalException,
                       com.liferay.portal.SystemException,
                       java.rmi.RemoteException
Specified by:
updateUser in interface UserService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getWrappedUserService

public UserService getWrappedUserService()