com.liferay.portal.service.impl
Class UserServiceImpl
java.lang.Object
com.liferay.portal.service.impl.PrincipalBean
com.liferay.portal.service.impl.UserServiceImpl
- All Implemented Interfaces:
- com.liferay.portal.service.UserService
- public class UserServiceImpl
- extends PrincipalBean
- implements com.liferay.portal.service.UserService
View Source
- Author:
- Brian Wing Shun Chan, Brian Myunghun Kim, Scott Lee
Method Summary |
void |
addGroupUsers(long groupId,
long[] userIds)
|
void |
addPasswordPolicyUsers(long passwordPolicyId,
long[] userIds)
|
void |
addRoleUsers(long roleId,
long[] userIds)
|
com.liferay.portal.model.User |
addUser(long companyId,
boolean autoPassword,
java.lang.String password1,
java.lang.String password2,
boolean autoScreenName,
java.lang.String screenName,
java.lang.String emailAddress,
java.util.Locale locale,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
int prefixId,
int suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
java.lang.String jobTitle,
long organizationId,
long locationId,
boolean sendEmail)
|
void |
addUserGroupUsers(long userGroupId,
long[] userIds)
|
protected void |
checkPermission(long userId,
long organizationId,
long locationId,
java.lang.String actionId)
|
protected void |
checkPermission(long userId,
java.lang.String actionId)
|
protected void |
checkUnsetPermission(long groupId,
long[] userIds)
|
protected void |
checkUpdatePermission(long groupId,
long[] userIds)
|
void |
deleteRoleUser(long roleId,
long userId)
|
void |
deleteUser(long userId)
|
long |
getDefaultUserId(long companyId)
|
java.util.List |
getGroupUsers(long groupId)
|
java.util.List |
getRoleUsers(long roleId)
|
com.liferay.portal.model.User |
getUserByEmailAddress(long companyId,
java.lang.String emailAddress)
|
com.liferay.portal.model.User |
getUserById(long userId)
|
com.liferay.portal.model.User |
getUserByScreenName(long companyId,
java.lang.String screenName)
|
boolean |
hasGroupUser(long groupId,
long userId)
|
boolean |
hasRoleUser(long roleId,
long userId)
|
void |
setGroupUsers(long groupId,
long[] userIds)
|
void |
setRoleUsers(long roleId,
long[] userIds)
|
void |
setUserGroupUsers(long userGroupId,
long[] userIds)
|
void |
unsetGroupUsers(long groupId,
long[] userIds)
|
void |
unsetPasswordPolicyUsers(long passwordPolicyId,
long[] userIds)
|
void |
unsetRoleUsers(long roleId,
long[] userIds)
|
void |
unsetUserGroupUsers(long userGroupId,
long[] userIds)
|
com.liferay.portal.model.User |
updateActive(long userId,
boolean active)
|
com.liferay.portal.model.User |
updateAgreedToTermsOfUse(long userId,
boolean agreedToTermsOfUse)
|
com.liferay.portal.model.User |
updateLockout(long userId,
boolean lockout)
|
void |
updateOrganizations(long userId,
long organizationId,
long locationId)
|
com.liferay.portal.model.User |
updatePassword(long userId,
java.lang.String password1,
java.lang.String password2,
boolean passwordReset)
|
void |
updatePortrait(long userId,
byte[] bytes)
|
com.liferay.portal.model.User |
updateUser(long userId,
java.lang.String password,
java.lang.String screenName,
java.lang.String emailAddress,
java.lang.String languageId,
java.lang.String timeZoneId,
java.lang.String greeting,
java.lang.String comments,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
int prefixId,
int suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
java.lang.String smsSn,
java.lang.String aimSn,
java.lang.String icqSn,
java.lang.String jabberSn,
java.lang.String msnSn,
java.lang.String skypeSn,
java.lang.String ymSn,
java.lang.String jobTitle,
long organizationId,
long locationId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserServiceImpl
public UserServiceImpl()
addGroupUsers
public void addGroupUsers(long groupId,
long[] userIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addGroupUsers
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addPasswordPolicyUsers
public void addPasswordPolicyUsers(long passwordPolicyId,
long[] userIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addPasswordPolicyUsers
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addRoleUsers
public void addRoleUsers(long roleId,
long[] userIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addRoleUsers
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addUserGroupUsers
public void addUserGroupUsers(long userGroupId,
long[] userIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addUserGroupUsers
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addUser
public com.liferay.portal.model.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 organizationId,
long locationId,
boolean sendEmail)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addUser
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteRoleUser
public void deleteRoleUser(long roleId,
long userId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
deleteRoleUser
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteUser
public void deleteUser(long userId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
deleteUser
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getDefaultUserId
public long getDefaultUserId(long companyId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getDefaultUserId
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getGroupUsers
public java.util.List getGroupUsers(long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getGroupUsers
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getRoleUsers
public java.util.List getRoleUsers(long roleId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getRoleUsers
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getUserByEmailAddress
public com.liferay.portal.model.User getUserByEmailAddress(long companyId,
java.lang.String emailAddress)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getUserByEmailAddress
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getUserById
public com.liferay.portal.model.User getUserById(long userId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getUserById
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getUserByScreenName
public com.liferay.portal.model.User getUserByScreenName(long companyId,
java.lang.String screenName)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getUserByScreenName
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
hasGroupUser
public boolean hasGroupUser(long groupId,
long userId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
hasGroupUser
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
hasRoleUser
public boolean hasRoleUser(long roleId,
long userId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
hasRoleUser
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
setGroupUsers
public void setGroupUsers(long groupId,
long[] userIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
setGroupUsers
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
setRoleUsers
public void setRoleUsers(long roleId,
long[] userIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
setRoleUsers
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
setUserGroupUsers
public void setUserGroupUsers(long userGroupId,
long[] userIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
setUserGroupUsers
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
unsetGroupUsers
public void unsetGroupUsers(long groupId,
long[] userIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
unsetGroupUsers
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
unsetPasswordPolicyUsers
public void unsetPasswordPolicyUsers(long passwordPolicyId,
long[] userIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
unsetPasswordPolicyUsers
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
unsetRoleUsers
public void unsetRoleUsers(long roleId,
long[] userIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
unsetRoleUsers
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
unsetUserGroupUsers
public void unsetUserGroupUsers(long userGroupId,
long[] userIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
unsetUserGroupUsers
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateActive
public com.liferay.portal.model.User updateActive(long userId,
boolean active)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
updateActive
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateAgreedToTermsOfUse
public com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId,
boolean agreedToTermsOfUse)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
updateAgreedToTermsOfUse
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateLockout
public com.liferay.portal.model.User updateLockout(long userId,
boolean lockout)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
updateLockout
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateOrganizations
public void updateOrganizations(long userId,
long organizationId,
long locationId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
updateOrganizations
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updatePassword
public com.liferay.portal.model.User updatePassword(long userId,
java.lang.String password1,
java.lang.String password2,
boolean passwordReset)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
updatePassword
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updatePortrait
public void updatePortrait(long userId,
byte[] bytes)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
updatePortrait
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateUser
public com.liferay.portal.model.User updateUser(long userId,
java.lang.String password,
java.lang.String screenName,
java.lang.String emailAddress,
java.lang.String languageId,
java.lang.String timeZoneId,
java.lang.String greeting,
java.lang.String comments,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
int prefixId,
int suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
java.lang.String smsSn,
java.lang.String aimSn,
java.lang.String icqSn,
java.lang.String jabberSn,
java.lang.String msnSn,
java.lang.String skypeSn,
java.lang.String ymSn,
java.lang.String jobTitle,
long organizationId,
long locationId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
updateUser
in interface com.liferay.portal.service.UserService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
checkPermission
protected void checkPermission(long userId,
java.lang.String actionId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
checkPermission
protected void checkPermission(long userId,
long organizationId,
long locationId,
java.lang.String actionId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
checkUnsetPermission
protected void checkUnsetPermission(long groupId,
long[] userIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
checkUpdatePermission
protected void checkUpdatePermission(long groupId,
long[] userIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException