public class UserServiceImpl extends UserServiceBaseImpl
counterLocalService, groupPersistence, organizationPersistence, rolePersistence, teamPersistence, userFinder, userGroupPersistence, userLocalService, userPersistence, userService| Constructor and Description |
|---|
UserServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupUsers(long groupId,
long[] userIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds the users to the group.
|
void |
addOrganizationUsers(long organizationId,
long[] userIds)
Adds the users to the organization.
|
com.liferay.portal.kernel.model.User |
addOrUpdateUser(String externalReferenceCode,
long creatorUserId,
long companyId,
boolean autoPassword,
String password1,
String password2,
boolean autoScreenName,
String screenName,
String emailAddress,
Locale locale,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
List<com.liferay.portal.kernel.model.Address> addresses,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
List<com.liferay.portal.kernel.model.Phone> phones,
List<com.liferay.portal.kernel.model.Website> websites,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
addPasswordPolicyUsers(long passwordPolicyId,
long[] userIds)
Assigns the password policy to the users, removing any other currently
assigned password policies.
|
void |
addRoleUsers(long roleId,
long[] userIds)
Adds the users to the role.
|
void |
addTeamUsers(long teamId,
long[] userIds)
Adds the users to the team.
|
com.liferay.portal.kernel.model.User |
addUser(long companyId,
boolean autoPassword,
String password1,
String password2,
boolean autoScreenName,
String screenName,
String emailAddress,
Locale locale,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a user.
|
com.liferay.portal.kernel.model.User |
addUser(long companyId,
boolean autoPassword,
String password1,
String password2,
boolean autoScreenName,
String screenName,
String emailAddress,
Locale locale,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
List<com.liferay.portal.kernel.model.Address> addresses,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
List<com.liferay.portal.kernel.model.Phone> phones,
List<com.liferay.portal.kernel.model.Website> websites,
List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> announcementsDelivers,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a user with additional parameters.
|
com.liferay.portal.kernel.model.User |
addUser(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,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
|
com.liferay.portal.kernel.model.User |
addUser(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,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
List<com.liferay.portal.kernel.model.Address> addresses,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
List<com.liferay.portal.kernel.model.Phone> phones,
List<com.liferay.portal.kernel.model.Website> websites,
List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> announcementsDelivers,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
|
void |
addUserGroupUsers(long userGroupId,
long[] userIds)
Adds the users to the user group.
|
com.liferay.portal.kernel.model.User |
addUserWithWorkflow(long companyId,
boolean autoPassword,
String password1,
String password2,
boolean autoScreenName,
String screenName,
String emailAddress,
Locale locale,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a user with workflow.
|
com.liferay.portal.kernel.model.User |
addUserWithWorkflow(long companyId,
boolean autoPassword,
String password1,
String password2,
boolean autoScreenName,
String screenName,
String emailAddress,
Locale locale,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
List<com.liferay.portal.kernel.model.Address> addresses,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
List<com.liferay.portal.kernel.model.Phone> phones,
List<com.liferay.portal.kernel.model.Website> websites,
List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> announcementsDelivers,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a user with workflow and additional parameters.
|
com.liferay.portal.kernel.model.User |
addUserWithWorkflow(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,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
|
com.liferay.portal.kernel.model.User |
addUserWithWorkflow(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,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
List<com.liferay.portal.kernel.model.Address> addresses,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
List<com.liferay.portal.kernel.model.Phone> phones,
List<com.liferay.portal.kernel.model.Website> websites,
List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> announcementsDelivers,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
|
protected void |
checkAddUserPermission(long creatorUserId,
long companyId,
String emailAddress,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected long[] |
checkGroups(long userId,
long[] groupIds) |
protected void |
checkMembership(long[] userIds,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds) |
protected long[] |
checkOrganizations(long userId,
long[] organizationIds) |
protected long[] |
checkRoles(long userId,
long[] roleIds) |
protected long[] |
checkUserGroupIds(long userId,
long[] userGroupIds) |
protected List<com.liferay.portal.kernel.model.UserGroupRole> |
checkUserGroupRoles(long userId,
List<com.liferay.portal.kernel.model.UserGroupRole> userGroupRoles) |
void |
deletePortrait(long userId)
Deletes the user's portrait image.
|
void |
deleteRoleUser(long roleId,
long userId)
Removes the user from the role.
|
void |
deleteUser(long userId)
Deletes the user.
|
List<com.liferay.portal.kernel.model.User> |
getCompanyUsers(long companyId,
int start,
int end) |
int |
getCompanyUsersCount(long companyId) |
com.liferay.portal.kernel.model.User |
getCurrentUser() |
long[] |
getGroupUserIds(long groupId)
Returns the primary keys of all the users belonging to the group.
|
List<com.liferay.portal.kernel.model.User> |
getGroupUsers(long groupId)
Returns all the users belonging to the group.
|
List<com.liferay.portal.kernel.model.User> |
getGroupUsers(long groupId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
Returns the users belonging to a group.
|
List<com.liferay.portal.kernel.model.User> |
getGroupUsers(long groupId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
Returns the users belonging to a group.
|
int |
getGroupUsersCount(long groupId,
int status)
Returns the number of users with the status belonging to the group.
|
List<com.liferay.portal.kernel.model.User> |
getGtCompanyUsers(long gtUserId,
long companyId,
int size) |
List<com.liferay.portal.kernel.model.User> |
getGtOrganizationUsers(long gtUserId,
long organizationId,
int size) |
List<com.liferay.portal.kernel.model.User> |
getGtUserGroupUsers(long gtUserId,
long userGroupId,
int size) |
int |
getOrganizationsAndUserGroupsUsersCount(long[] organizationIds,
long[] userGroupIds) |
long[] |
getOrganizationUserIds(long organizationId)
Returns the primary keys of all the users belonging to the organization.
|
List<com.liferay.portal.kernel.model.User> |
getOrganizationUsers(long organizationId)
Returns all the users belonging to the organization.
|
List<com.liferay.portal.kernel.model.User> |
getOrganizationUsers(long organizationId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
Returns the users belonging to the organization with the status.
|
List<com.liferay.portal.kernel.model.User> |
getOrganizationUsers(long organizationId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
Returns the users belonging to the organization with the status.
|
int |
getOrganizationUsersCount(long organizationId,
int status)
Returns the number of users with the status belonging to the
organization.
|
long[] |
getRoleUserIds(long roleId)
Returns the primary keys of all the users belonging to the role.
|
com.liferay.portal.kernel.model.User |
getUserByEmailAddress(long companyId,
String emailAddress)
Returns the user with the email address.
|
com.liferay.portal.kernel.model.User |
getUserByExternalReferenceCode(long companyId,
String externalReferenceCode)
Returns the user with the external reference code.
|
com.liferay.portal.kernel.model.User |
getUserById(long userId)
Returns the user with the primary key.
|
com.liferay.portal.kernel.model.User |
getUserByScreenName(long companyId,
String screenName)
Returns the user with the screen name.
|
List<com.liferay.portal.kernel.model.User> |
getUserGroupUsers(long userGroupId) |
List<com.liferay.portal.kernel.model.User> |
getUserGroupUsers(long userGroupId,
int start,
int end) |
long |
getUserIdByEmailAddress(long companyId,
String emailAddress)
Returns the primary key of the user with the email address.
|
long |
getUserIdByScreenName(long companyId,
String screenName)
Returns the primary key of the user with the screen name.
|
boolean |
hasGroupUser(long groupId,
long userId)
Returns
true if the user is a member of the group. |
boolean |
hasRoleUser(long roleId,
long userId)
Returns
true if the user is a member of the role. |
boolean |
hasRoleUser(long companyId,
String name,
long userId,
boolean inherited)
Returns
true if the user has the role with the name,
optionally through inheritance. |
protected void |
propagateMembership(long[] userIds,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds) |
boolean |
sendPasswordByEmailAddress(long companyId,
String emailAddress)
Sends a password notification email to the user matching the email
address.
|
boolean |
sendPasswordByScreenName(long companyId,
String screenName)
Sends a password notification email to the user matching the screen name.
|
boolean |
sendPasswordByUserId(long userId)
Sends a password notification email to the user matching the ID.
|
void |
setRoleUsers(long roleId,
long[] userIds)
Sets the users in the role, removing and adding users to the role as
necessary.
|
void |
setUserGroupUsers(long userGroupId,
long[] userIds)
Sets the users in the user group, removing and adding users to the user
group as necessary.
|
void |
unsetGroupTeamsUsers(long groupId,
long[] userIds)
Removes the users from the teams of a group.
|
void |
unsetGroupUsers(long groupId,
long[] userIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Removes the users from the group.
|
void |
unsetOrganizationUsers(long organizationId,
long[] userIds)
Removes the users from the organization.
|
void |
unsetPasswordPolicyUsers(long passwordPolicyId,
long[] userIds)
Removes the users from the password policy.
|
void |
unsetRoleUsers(long roleId,
long[] userIds)
Removes the users from the role.
|
void |
unsetTeamUsers(long teamId,
long[] userIds)
Removes the users from the team.
|
void |
unsetUserGroupUsers(long userGroupId,
long[] userIds)
Removes the users from the user group.
|
com.liferay.portal.kernel.model.User |
updateAgreedToTermsOfUse(long userId,
boolean agreedToTermsOfUse)
Updates the user's response to the terms of use agreement.
|
protected void |
updateAnnouncementsDeliveries(long userId,
List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> announcementsDeliveries) |
com.liferay.portal.kernel.model.User |
updateEmailAddress(long userId,
String password,
String emailAddress1,
String emailAddress2,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the user's email address.
|
com.liferay.portal.kernel.model.User |
updateIncompleteUser(long companyId,
boolean autoPassword,
String password1,
String password2,
boolean autoScreenName,
String screenName,
String emailAddress,
Locale locale,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
boolean updateUserInformation,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates a user account that was automatically created when a guest user
participated in an action (e.g. posting a comment) and only provided his
name and email address.
|
com.liferay.portal.kernel.model.User |
updateIncompleteUser(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,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
boolean updateUserInformation,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Athanasius (7.3.x), replaced by
#updateIncompleteUser(long, long, boolean, String, String,
boolean, String, String, Locale, String, String, String,
long, long, boolean, int, int, int, String, boolean, boolean,
ServiceContext) |
com.liferay.portal.kernel.model.User |
updateLockoutById(long userId,
boolean lockout)
Updates whether the user is locked out from logging in.
|
com.liferay.portal.kernel.model.User |
updateOpenId(long userId,
String openId)
Deprecated.
As of Athanasius (7.3.x), with no direct replacement
|
void |
updateOrganizations(long userId,
long[] organizationIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Sets the organizations that the user is in, removing and adding
organizations as necessary.
|
com.liferay.portal.kernel.model.User |
updatePassword(long userId,
String password1,
String password2,
boolean passwordReset)
Updates the user's password without tracking or validation of the change.
|
com.liferay.portal.kernel.model.User |
updatePortrait(long userId,
byte[] bytes)
Updates the user's portrait image.
|
com.liferay.portal.kernel.model.User |
updateReminderQuery(long userId,
String question,
String answer)
Updates the user's password reset question and answer.
|
com.liferay.portal.kernel.model.User |
updateScreenName(long userId,
String screenName)
Updates the user's screen name.
|
com.liferay.portal.kernel.model.User |
updateStatus(long userId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the user's workflow status.
|
com.liferay.portal.kernel.model.User |
updateUser(long userId,
String oldPassword,
String newPassword1,
String newPassword2,
boolean passwordReset,
String reminderQueryQuestion,
String reminderQueryAnswer,
String screenName,
String emailAddress,
boolean hasPortrait,
byte[] portraitBytes,
String languageId,
String timeZoneId,
String greeting,
String comments,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String smsSn,
String facebookSn,
String jabberSn,
String skypeSn,
String twitterSn,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
List<com.liferay.portal.kernel.model.UserGroupRole> userGroupRoles,
long[] userGroupIds,
List<com.liferay.portal.kernel.model.Address> addresses,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
List<com.liferay.portal.kernel.model.Phone> phones,
List<com.liferay.portal.kernel.model.Website> websites,
List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> announcementsDelivers,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the user with additional parameters.
|
com.liferay.portal.kernel.model.User |
updateUser(long userId,
String oldPassword,
String newPassword1,
String newPassword2,
boolean passwordReset,
String reminderQueryQuestion,
String reminderQueryAnswer,
String screenName,
String emailAddress,
long facebookId,
String openId,
boolean hasPortrait,
byte[] portraitBytes,
String languageId,
String timeZoneId,
String greeting,
String comments,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String smsSn,
String facebookSn,
String jabberSn,
String skypeSn,
String twitterSn,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
List<com.liferay.portal.kernel.model.UserGroupRole> userGroupRoles,
long[] userGroupIds,
List<com.liferay.portal.kernel.model.Address> addresses,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
List<com.liferay.portal.kernel.model.Phone> phones,
List<com.liferay.portal.kernel.model.Website> websites,
List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> announcementsDelivers,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Athanasius (7.3.x), replaced by
updateUser(long, String, String, String, boolean, String,
String, String, String, boolean, byte[], String, String,
String, String, String, String, String, long, long, boolean,
int, int, int, String, String, String, String, String,
String, long[], long[], long[], List, long[], List, List,
List, List, List, ServiceContext) |
com.liferay.portal.kernel.model.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,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String smsSn,
String facebookSn,
String jabberSn,
String skypeSn,
String twitterSn,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
List<com.liferay.portal.kernel.model.UserGroupRole> userGroupRoles,
long[] userGroupIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Athanasius (7.3.x), replaced by
updateUser(long, String, String, String, boolean, String,
String, String, String, String, String, String, String,
String, String, String, long, long, boolean, int, int, int,
String, String, String, String, String, String, long[],
long[], long[], List, long[], ServiceContext) |
com.liferay.portal.kernel.model.User |
updateUser(long userId,
String oldPassword,
String newPassword1,
String newPassword2,
boolean passwordReset,
String reminderQueryQuestion,
String reminderQueryAnswer,
String screenName,
String emailAddress,
String languageId,
String timeZoneId,
String greeting,
String comments,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String smsSn,
String facebookSn,
String jabberSn,
String skypeSn,
String twitterSn,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
List<com.liferay.portal.kernel.model.UserGroupRole> userGroupRoles,
long[] userGroupIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the user.
|
protected void |
validateEmailAddress(com.liferay.portal.kernel.model.User user,
String emailAddress) |
protected void |
validateOrganizationUsers(long[] userIds) |
protected void |
validateUpdatePermission(com.liferay.portal.kernel.model.User user,
String screenName,
String emailAddress,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
boolean male,
String jobTitle) |
afterPropertiesSet, destroy, getCounterLocalService, getModelClass, getModelClassName, getOSGiServiceIdentifier, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setCounterLocalService, setUserFinder, setUserLocalService, setUserPersistence, setUserServicepublic void addGroupUsers(long groupId,
long[] userIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupuserIds - the primary keys of the usersserviceContext - the service context to be applied (optionally
null)com.liferay.portal.kernel.exception.PortalExceptionpublic void addOrganizationUsers(long organizationId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
organizationId - the primary key of the organizationuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User addOrUpdateUser(String externalReferenceCode,
long creatorUserId,
long companyId,
boolean autoPassword,
String password1,
String password2,
boolean autoScreenName,
String screenName,
String emailAddress,
Locale locale,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
List<com.liferay.portal.kernel.model.Address> addresses,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
List<com.liferay.portal.kernel.model.Phone> phones,
List<com.liferay.portal.kernel.model.Website> websites,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic void addPasswordPolicyUsers(long passwordPolicyId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
passwordPolicyId - the primary key of the password policyuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalExceptionpublic void addRoleUsers(long roleId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
roleId - the primary key of the roleuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalExceptionpublic void addTeamUsers(long teamId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
teamId - the primary key of the teamuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User addUser(long companyId,
boolean autoPassword,
String password1,
String password2,
boolean autoScreenName,
String screenName,
String emailAddress,
Locale locale,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
This method handles the creation and bookkeeping of the user including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, etc.
companyId - the primary key of the user's companyautoPassword - whether a password should be automatically generated
for the userpassword1 - the user's passwordpassword2 - the user's password confirmationautoScreenName - whether a screen name should be automatically
generated for the userscreenName - the user's screen nameemailAddress - the user's email addresslocale - the user's localefirstName - the user's first namemiddleName - the user's middle namelastName - the user's last nameprefixId - the user's name prefix IDsuffixId - the user's name suffix IDmale - whether the user is malebirthdayMonth - the user's birthday month (0-based, meaning 0 for
January)birthdayDay - the user's birthday daybirthdayYear - the user's birthday yearjobTitle - the user's job titlegroupIds - the primary keys of the user's groupsorganizationIds - the primary keys of the user's organizationsroleIds - the primary keys of the roles this user possessesuserGroupIds - the primary keys of the user's user groupssendEmail - whether to send the user an email notification about
their new accountserviceContext - the service context to be applied (optionally
null). Can set the UUID (with the uuid
attribute), asset category IDs, asset tag names, and expando
bridge attributes for the user.com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User addUser(long companyId,
boolean autoPassword,
String password1,
String password2,
boolean autoScreenName,
String screenName,
String emailAddress,
Locale locale,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
List<com.liferay.portal.kernel.model.Address> addresses,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
List<com.liferay.portal.kernel.model.Phone> phones,
List<com.liferay.portal.kernel.model.Website> websites,
List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> announcementsDelivers,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
This method handles the creation and bookkeeping of the user including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, etc.
companyId - the primary key of the user's companyautoPassword - whether a password should be automatically generated
for the userpassword1 - the user's passwordpassword2 - the user's password confirmationautoScreenName - whether a screen name should be automatically
generated for the userscreenName - the user's screen nameemailAddress - the user's email addresslocale - the user's localefirstName - the user's first namemiddleName - the user's middle namelastName - the user's last nameprefixId - the user's name prefix IDsuffixId - the user's name suffix IDmale - whether the user is malebirthdayMonth - the user's birthday month (0-based, meaning 0 for
January)birthdayDay - the user's birthday daybirthdayYear - the user's birthday yearjobTitle - the user's job titlegroupIds - the primary keys of the user's groupsorganizationIds - the primary keys of the user's organizationsroleIds - the primary keys of the roles this user possessesuserGroupIds - the primary keys of the user's user groupsaddresses - the user's addressesemailAddresses - the user's email addressesphones - the user's phone numberswebsites - the user's websitesannouncementsDelivers - the announcements deliveriessendEmail - whether to send the user an email notification about
their new accountserviceContext - the service context to be applied (optionally
null). Can set the UUID (with the uuid
attribute), asset category IDs, asset tag names, and expando
bridge attributes for the user.com.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portal.kernel.model.User addUser(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,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
addUser(long,
boolean, String, String, boolean, String, String, Locale,
String, String, String, long, long, boolean, int, int, int,
String, long[], long[], long[], long[], boolean,
ServiceContext)This method handles the creation and bookkeeping of the user including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, etc.
companyId - the primary key of the user's companyautoPassword - whether a password should be automatically
generated for the userpassword1 - the user's passwordpassword2 - the user's password confirmationautoScreenName - whether a screen name should be automatically
generated for the userscreenName - the user's screen nameemailAddress - the user's email addressfacebookId - the user's facebook IDopenId - the user's OpenIDlocale - the user's localefirstName - the user's first namemiddleName - the user's middle namelastName - the user's last nameprefixId - the user's name prefix IDsuffixId - the user's name suffix IDmale - whether the user is malebirthdayMonth - the user's birthday month (0-based, meaning 0
for January)birthdayDay - the user's birthday daybirthdayYear - the user's birthday yearjobTitle - the user's job titlegroupIds - the primary keys of the user's groupsorganizationIds - the primary keys of the user's organizationsroleIds - the primary keys of the roles this user possessesuserGroupIds - the primary keys of the user's user groupssendEmail - whether to send the user an email notification
about their new accountserviceContext - the service context to be applied (optionally
null). Can set the UUID (with the
uuid attribute), asset category IDs, asset tag
names, and expando bridge attributes for the user.com.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portal.kernel.model.User addUser(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,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
List<com.liferay.portal.kernel.model.Address> addresses,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
List<com.liferay.portal.kernel.model.Phone> phones,
List<com.liferay.portal.kernel.model.Website> websites,
List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> announcementsDelivers,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
addUser(long,
boolean, String, String, boolean, String, String, Locale,
String, String, String, long, long, boolean, int, int, int,
String, long[], long[], long[], long[], List, List, List,
List, List, boolean, ServiceContext)This method handles the creation and bookkeeping of the user including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, etc.
companyId - the primary key of the user's companyautoPassword - whether a password should be automatically
generated for the userpassword1 - the user's passwordpassword2 - the user's password confirmationautoScreenName - whether a screen name should be automatically
generated for the userscreenName - the user's screen nameemailAddress - the user's email addressfacebookId - the user's facebook IDopenId - the user's OpenIDlocale - the user's localefirstName - the user's first namemiddleName - the user's middle namelastName - the user's last nameprefixId - the user's name prefix IDsuffixId - the user's name suffix IDmale - whether the user is malebirthdayMonth - the user's birthday month (0-based, meaning 0
for January)birthdayDay - the user's birthday daybirthdayYear - the user's birthday yearjobTitle - the user's job titlegroupIds - the primary keys of the user's groupsorganizationIds - the primary keys of the user's organizationsroleIds - the primary keys of the roles this user possessesuserGroupIds - the primary keys of the user's user groupsaddresses - the user's addressesemailAddresses - the user's email addressesphones - the user's phone numberswebsites - the user's websitesannouncementsDelivers - the announcements deliveriessendEmail - whether to send the user an email notification
about their new accountserviceContext - the service context to be applied (optionally
null). Can set the UUID (with the
uuid attribute), asset category IDs, asset tag
names, and expando bridge attributes for the user.com.liferay.portal.kernel.exception.PortalExceptionpublic void addUserGroupUsers(long userGroupId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
userGroupId - the primary key of the user groupuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User addUserWithWorkflow(long companyId,
boolean autoPassword,
String password1,
String password2,
boolean autoScreenName,
String screenName,
String emailAddress,
Locale locale,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
This method handles the creation and bookkeeping of the user including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, etc.
companyId - the primary key of the user's companyautoPassword - whether a password should be automatically generated
for the userpassword1 - the user's passwordpassword2 - the user's password confirmationautoScreenName - whether a screen name should be automatically
generated for the userscreenName - the user's screen nameemailAddress - the user's email addresslocale - the user's localefirstName - the user's first namemiddleName - the user's middle namelastName - the user's last nameprefixId - the user's name prefix IDsuffixId - the user's name suffix IDmale - whether the user is malebirthdayMonth - the user's birthday month (0-based, meaning 0 for
January)birthdayDay - the user's birthday daybirthdayYear - the user's birthday yearjobTitle - the user's job titlegroupIds - the primary keys of the user's groupsorganizationIds - the primary keys of the user's organizationsroleIds - the primary keys of the roles this user possessesuserGroupIds - the primary keys of the user's user groupssendEmail - whether to send the user an email notification about
their new accountserviceContext - the service context to be applied (optionally
null). Can set the UUID (with the uuid
attribute), asset category IDs, asset tag names, and expando
bridge attributes for the user.com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User addUserWithWorkflow(long companyId,
boolean autoPassword,
String password1,
String password2,
boolean autoScreenName,
String screenName,
String emailAddress,
Locale locale,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
List<com.liferay.portal.kernel.model.Address> addresses,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
List<com.liferay.portal.kernel.model.Phone> phones,
List<com.liferay.portal.kernel.model.Website> websites,
List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> announcementsDelivers,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
This method handles the creation and bookkeeping of the user including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, etc.
companyId - the primary key of the user's companyautoPassword - whether a password should be automatically generated
for the userpassword1 - the user's passwordpassword2 - the user's password confirmationautoScreenName - whether a screen name should be automatically
generated for the userscreenName - the user's screen nameemailAddress - the user's email addresslocale - the user's localefirstName - the user's first namemiddleName - the user's middle namelastName - the user's last nameprefixId - the user's name prefix IDsuffixId - the user's name suffix IDmale - whether the user is malebirthdayMonth - the user's birthday month (0-based, meaning 0 for
January)birthdayDay - the user's birthday daybirthdayYear - the user's birthday yearjobTitle - the user's job titlegroupIds - the primary keys of the user's groupsorganizationIds - the primary keys of the user's organizationsroleIds - the primary keys of the roles this user possessesuserGroupIds - the primary keys of the user's user groupsaddresses - the user's addressesemailAddresses - the user's email addressesphones - the user's phone numberswebsites - the user's websitesannouncementsDelivers - the announcements deliveriessendEmail - whether to send the user an email notification about
their new accountserviceContext - the service context to be applied (optionally
null). Can set the UUID (with the uuid
attribute), asset category IDs, asset tag names, and expando
bridge attributes for the user.com.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portal.kernel.model.User addUserWithWorkflow(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,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
addUserWithWorkflow(long, boolean, String, String, boolean,
String, String, Locale, String, String, String, long, long,
boolean, int, int, int, String, long[], long[], long[],
long[], boolean, ServiceContext)This method handles the creation and bookkeeping of the user including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, etc.
companyId - the primary key of the user's companyautoPassword - whether a password should be automatically
generated for the userpassword1 - the user's passwordpassword2 - the user's password confirmationautoScreenName - whether a screen name should be automatically
generated for the userscreenName - the user's screen nameemailAddress - the user's email addressfacebookId - the user's facebook IDopenId - the user's OpenIDlocale - the user's localefirstName - the user's first namemiddleName - the user's middle namelastName - the user's last nameprefixId - the user's name prefix IDsuffixId - the user's name suffix IDmale - whether the user is malebirthdayMonth - the user's birthday month (0-based, meaning 0
for January)birthdayDay - the user's birthday daybirthdayYear - the user's birthday yearjobTitle - the user's job titlegroupIds - the primary keys of the user's groupsorganizationIds - the primary keys of the user's organizationsroleIds - the primary keys of the roles this user possessesuserGroupIds - the primary keys of the user's user groupssendEmail - whether to send the user an email notification
about their new accountserviceContext - the service context to be applied (optionally
null). Can set the UUID (with the
uuid attribute), asset category IDs, asset tag
names, and expando bridge attributes for the user.com.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portal.kernel.model.User addUserWithWorkflow(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,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
List<com.liferay.portal.kernel.model.Address> addresses,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
List<com.liferay.portal.kernel.model.Phone> phones,
List<com.liferay.portal.kernel.model.Website> websites,
List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> announcementsDelivers,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
addUserWithWorkflow(long, boolean, String, String, boolean,
String, String, Locale, String, String, String, long, long,
boolean, int, int, int, String, long[], long[], long[],
long[], List, List, List, List, List, boolean, ServiceContext
)This method handles the creation and bookkeeping of the user including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, etc.
companyId - the primary key of the user's companyautoPassword - whether a password should be automatically
generated for the userpassword1 - the user's passwordpassword2 - the user's password confirmationautoScreenName - whether a screen name should be automatically
generated for the userscreenName - the user's screen nameemailAddress - the user's email addressfacebookId - the user's facebook IDopenId - the user's OpenIDlocale - the user's localefirstName - the user's first namemiddleName - the user's middle namelastName - the user's last nameprefixId - the user's name prefix IDsuffixId - the user's name suffix IDmale - whether the user is malebirthdayMonth - the user's birthday month (0-based, meaning 0
for January)birthdayDay - the user's birthday daybirthdayYear - the user's birthday yearjobTitle - the user's job titlegroupIds - the primary keys of the user's groupsorganizationIds - the primary keys of the user's organizationsroleIds - the primary keys of the roles this user possessesuserGroupIds - the primary keys of the user's user groupsaddresses - the user's addressesemailAddresses - the user's email addressesphones - the user's phone numberswebsites - the user's websitesannouncementsDelivers - the announcements deliveriessendEmail - whether to send the user an email notification
about their new accountserviceContext - the service context to be applied (optionally
null). Can set the UUID (with the
uuid attribute), asset category IDs, asset tag
names, and expando bridge attributes for the user.com.liferay.portal.kernel.exception.PortalExceptionpublic void deletePortrait(long userId)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the usercom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteRoleUser(long roleId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException
roleId - the primary key of the roleuserId - the primary key of the usercom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteUser(long userId)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the usercom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.model.User> getCompanyUsers(long companyId,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic int getCompanyUsersCount(long companyId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User getCurrentUser()
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic long[] getGroupUserIds(long groupId)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupcom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.model.User> getGroupUsers(long groupId)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupcom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.model.User> getGroupUsers(long groupId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupstatus - the workflow statusstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the users by
(optionally null)com.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.model.User> getGroupUsers(long groupId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupstatus - the workflow statusorderByComparator - the comparator to order the users by
(optionally null)com.liferay.portal.kernel.exception.PortalExceptionpublic int getGroupUsersCount(long groupId,
int status)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupstatus - the workflow statuscom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.model.User> getGtCompanyUsers(long gtUserId,
long companyId,
int size)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.model.User> getGtOrganizationUsers(long gtUserId,
long organizationId,
int size)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.model.User> getGtUserGroupUsers(long gtUserId,
long userGroupId,
int size)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic int getOrganizationsAndUserGroupsUsersCount(long[] organizationIds,
long[] userGroupIds)
throws com.liferay.portal.kernel.security.auth.PrincipalException
com.liferay.portal.kernel.security.auth.PrincipalExceptionpublic long[] getOrganizationUserIds(long organizationId)
throws com.liferay.portal.kernel.exception.PortalException
organizationId - the primary key of the organizationcom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.model.User> getOrganizationUsers(long organizationId)
throws com.liferay.portal.kernel.exception.PortalException
organizationId - the primary key of the organizationcom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.model.User> getOrganizationUsers(long organizationId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException
organizationId - the primary key of the organizationstatus - the workflow statusstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the users by
(optionally null)com.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.model.User> getOrganizationUsers(long organizationId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException
organizationId - the primary key of the organizationstatus - the workflow statusorderByComparator - the comparator to order the users by
(optionally null)com.liferay.portal.kernel.exception.PortalExceptionpublic int getOrganizationUsersCount(long organizationId,
int status)
throws com.liferay.portal.kernel.exception.PortalException
organizationId - the primary key of the organizationstatus - the workflow statuscom.liferay.portal.kernel.exception.PortalExceptionpublic long[] getRoleUserIds(long roleId)
throws com.liferay.portal.kernel.exception.PortalException
roleId - the primary key of the rolecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User getUserByEmailAddress(long companyId,
String emailAddress)
throws com.liferay.portal.kernel.exception.PortalException
companyId - the primary key of the user's companyemailAddress - the user's email addresscom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User getUserByExternalReferenceCode(long companyId,
String externalReferenceCode)
throws com.liferay.portal.kernel.exception.PortalException
companyId - the primary key of the user's companyexternalReferenceCode - the user's external reference codecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User getUserById(long userId)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the usercom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User getUserByScreenName(long companyId,
String screenName)
throws com.liferay.portal.kernel.exception.PortalException
companyId - the primary key of the user's companyscreenName - the user's screen namecom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.model.User> getUserGroupUsers(long userGroupId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.model.User> getUserGroupUsers(long userGroupId,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic long getUserIdByEmailAddress(long companyId,
String emailAddress)
throws com.liferay.portal.kernel.exception.PortalException
companyId - the primary key of the user's companyemailAddress - the user's email addresscom.liferay.portal.kernel.exception.PortalExceptionpublic long getUserIdByScreenName(long companyId,
String screenName)
throws com.liferay.portal.kernel.exception.PortalException
companyId - the primary key of the user's companyscreenName - the user's screen namecom.liferay.portal.kernel.exception.PortalExceptionpublic boolean hasGroupUser(long groupId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException
true if the user is a member of the group.groupId - the primary key of the groupuserId - the primary key of the usertrue if the user is a member of the group;
false otherwisecom.liferay.portal.kernel.exception.PortalExceptionpublic boolean hasRoleUser(long roleId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException
true if the user is a member of the role.roleId - the primary key of the roleuserId - the primary key of the usertrue if the user is a member of the role;
false otherwisecom.liferay.portal.kernel.exception.PortalExceptionpublic boolean hasRoleUser(long companyId,
String name,
long userId,
boolean inherited)
throws com.liferay.portal.kernel.exception.PortalException
true if the user has the role with the name,
optionally through inheritance.companyId - the primary key of the role's companyname - the name of the role (must be a regular role, not an
organization, site or provider role)userId - the primary key of the userinherited - whether to include roles inherited from organizations,
sites, etc.true if the user has the role; false
otherwisecom.liferay.portal.kernel.exception.PortalException@JSONWebService(mode=IGNORE)
public boolean sendPasswordByEmailAddress(long companyId,
String emailAddress)
throws com.liferay.portal.kernel.exception.PortalException
The content of the notification email is specified with the
admin.email.password portal property keys. They can be
overridden via a portal-ext.properties file or modified
through the Portal Settings UI.
companyId - the primary key of the user's companyemailAddress - the user's email addresstrue if the notification email includes a new
password; false if the notification email only
contains a reset linkcom.liferay.portal.kernel.exception.PortalException@JSONWebService(mode=IGNORE)
public boolean sendPasswordByScreenName(long companyId,
String screenName)
throws com.liferay.portal.kernel.exception.PortalException
The content of the notification email is specified with the
admin.email.password portal property keys. They can be
overridden via a portal-ext.properties file or modified
through the Portal Settings UI.
companyId - the primary key of the user's companyscreenName - the user's screen nametrue if the notification email includes a new
password; false if the notification email only
contains a reset linkcom.liferay.portal.kernel.exception.PortalException@JSONWebService(mode=IGNORE)
public boolean sendPasswordByUserId(long userId)
throws com.liferay.portal.kernel.exception.PortalException
The content of the notification email is specified with the
admin.email.password portal property keys. They can be
overridden via a portal-ext.properties file or modified
through the Portal Settings UI.
userId - the user's primary keytrue if the notification email includes a new
password; false if the notification email only
contains a reset linkcom.liferay.portal.kernel.exception.PortalExceptionpublic void setRoleUsers(long roleId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
roleId - the primary key of the roleuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalExceptionpublic void setUserGroupUsers(long userGroupId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
userGroupId - the primary key of the user groupuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalExceptionpublic void unsetGroupTeamsUsers(long groupId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalExceptionpublic void unsetGroupUsers(long groupId,
long[] userIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupuserIds - the primary keys of the usersserviceContext - the service context to be applied (optionally
null)com.liferay.portal.kernel.exception.PortalExceptionpublic void unsetOrganizationUsers(long organizationId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
organizationId - the primary key of the organizationuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalExceptionpublic void unsetPasswordPolicyUsers(long passwordPolicyId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
passwordPolicyId - the primary key of the password policyuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalExceptionpublic void unsetRoleUsers(long roleId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
roleId - the primary key of the roleuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalExceptionpublic void unsetTeamUsers(long teamId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
teamId - the primary key of the teamuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalExceptionpublic void unsetUserGroupUsers(long userGroupId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
userGroupId - the primary key of the user groupuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalException@CTAware(onProduction=true)
public com.liferay.portal.kernel.model.User updateAgreedToTermsOfUse(long userId,
boolean agreedToTermsOfUse)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the useragreedToTermsOfUse - whether the user has agree to the terms of usecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User updateEmailAddress(long userId,
String password,
String emailAddress1,
String emailAddress2,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the userpassword - the user's passwordemailAddress1 - the user's new email addressemailAddress2 - the user's new email address confirmationserviceContext - the service context to be applied. Must set the
portal URL, main path, primary key of the layout, remote address,
remote host, and agent for the user.com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User updateIncompleteUser(long companyId,
boolean autoPassword,
String password1,
String password2,
boolean autoScreenName,
String screenName,
String emailAddress,
Locale locale,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
boolean updateUserInformation,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
companyId - the primary key of the user's companyautoPassword - whether a password should be automatically generated
for the userpassword1 - the user's passwordpassword2 - the user's password confirmationautoScreenName - whether a screen name should be automatically
generated for the userscreenName - the user's screen nameemailAddress - the user's email addresslocale - the user's localefirstName - the user's first namemiddleName - the user's middle namelastName - the user's last nameprefixId - the user's name prefix IDsuffixId - the user's name suffix IDmale - whether the user is malebirthdayMonth - the user's birthday month (0-based, meaning 0 for
January)birthdayDay - the user's birthday daybirthdayYear - the user's birthday yearjobTitle - the user's job titleupdateUserInformation - whether to update the user's informationsendEmail - whether to send the user an email notification about
their new accountserviceContext - the service context to be applied (optionally
null). Can set the expando bridge attributes for the
user.com.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portal.kernel.model.User updateIncompleteUser(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,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String jobTitle,
boolean updateUserInformation,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
#updateIncompleteUser(long, long, boolean, String, String,
boolean, String, String, Locale, String, String, String,
long, long, boolean, int, int, int, String, boolean, boolean,
ServiceContext)companyId - the primary key of the user's companyautoPassword - whether a password should be automatically
generated for the userpassword1 - the user's passwordpassword2 - the user's password confirmationautoScreenName - whether a screen name should be automatically
generated for the userscreenName - the user's screen nameemailAddress - the user's email addressfacebookId - the user's facebook IDopenId - the user's OpenIDlocale - the user's localefirstName - the user's first namemiddleName - the user's middle namelastName - the user's last nameprefixId - the user's name prefix IDsuffixId - the user's name suffix IDmale - whether the user is malebirthdayMonth - the user's birthday month (0-based, meaning 0
for January)birthdayDay - the user's birthday daybirthdayYear - the user's birthday yearjobTitle - the user's job titleupdateUserInformation - whether to update the user's
informationsendEmail - whether to send the user an email notification
about their new accountserviceContext - the service context to be applied (optionally
null). Can set the expando bridge attributes for
the user.com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User updateLockoutById(long userId,
boolean lockout)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the userlockout - whether the user is locked outcom.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portal.kernel.model.User updateOpenId(long userId,
String openId)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the useropenId - the new OpenIDcom.liferay.portal.kernel.exception.PortalExceptionpublic void updateOrganizations(long userId,
long[] organizationIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the userorganizationIds - the primary keys of the organizationsserviceContext - the service context to be applied. Must set whether
user indexing is enabled.com.liferay.portal.kernel.exception.PortalException@CTAware(onProduction=true)
public com.liferay.portal.kernel.model.User updatePassword(long userId,
String password1,
String password2,
boolean passwordReset)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the userpassword1 - the user's new passwordpassword2 - the user's new password confirmationpasswordReset - whether the user should be asked to reset their
password the next time they log incom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User updatePortrait(long userId,
byte[] bytes)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the userbytes - the new portrait image datacom.liferay.portal.kernel.exception.PortalException@CTAware(onProduction=true)
public com.liferay.portal.kernel.model.User updateReminderQuery(long userId,
String question,
String answer)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the userquestion - the user's new password reset questionanswer - the user's new password reset answercom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User updateScreenName(long userId,
String screenName)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the userscreenName - the user's new screen namecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User updateStatus(long userId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the userstatus - the user's new workflow statusserviceContext - the service context to be applied. You can specify
an unencrypted custom password (used by an LDAP listener) for the
user via attribute passwordUnencrypted.com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User updateUser(long userId,
String oldPassword,
String newPassword1,
String newPassword2,
boolean passwordReset,
String reminderQueryQuestion,
String reminderQueryAnswer,
String screenName,
String emailAddress,
boolean hasPortrait,
byte[] portraitBytes,
String languageId,
String timeZoneId,
String greeting,
String comments,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String smsSn,
String facebookSn,
String jabberSn,
String skypeSn,
String twitterSn,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
List<com.liferay.portal.kernel.model.UserGroupRole> userGroupRoles,
long[] userGroupIds,
List<com.liferay.portal.kernel.model.Address> addresses,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
List<com.liferay.portal.kernel.model.Phone> phones,
List<com.liferay.portal.kernel.model.Website> websites,
List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> announcementsDelivers,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the useroldPassword - the user's old passwordnewPassword1 - the user's new password (optionally
null)newPassword2 - the user's new password confirmation (optionally
null)passwordReset - whether the user should be asked to reset their
password the next time they loginreminderQueryQuestion - the user's new password reset questionreminderQueryAnswer - the user's new password reset answerscreenName - the user's new screen nameemailAddress - the user's new email addresshasPortrait - if the user has a custom portrait imageportraitBytes - the new portrait image datalanguageId - the user's new language IDtimeZoneId - the user's new time zone IDgreeting - the user's new greetingcomments - the user's new commentsfirstName - the user's new first namemiddleName - the user's new middle namelastName - the user's new last nameprefixId - the user's new name prefix IDsuffixId - the user's new name suffix IDmale - whether user is malebirthdayMonth - the user's new birthday month (0-based, meaning 0
for January)birthdayDay - the user's new birthday daybirthdayYear - the user's birthday yearsmsSn - the user's new SMS screen namefacebookSn - the user's new Facebook screen namejabberSn - the user's new Jabber screen nameskypeSn - the user's new Skype screen nametwitterSn - the user's new Twitter screen namejobTitle - the user's new job titlegroupIds - the primary keys of the user's groupsorganizationIds - the primary keys of the user's organizationsroleIds - the primary keys of the user's rolesuserGroupRoles - the user user's group rolesuserGroupIds - the primary keys of the user's user groupsaddresses - the user's addressesemailAddresses - the user's email addressesphones - the user's phone numberswebsites - the user's websitesannouncementsDelivers - the announcements deliveriesserviceContext - the service context to be applied (optionally
null). Can set the UUID (with the uuid
attribute), asset category IDs, asset tag names, and expando
bridge attributes for the user.com.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portal.kernel.model.User updateUser(long userId,
String oldPassword,
String newPassword1,
String newPassword2,
boolean passwordReset,
String reminderQueryQuestion,
String reminderQueryAnswer,
String screenName,
String emailAddress,
long facebookId,
String openId,
boolean hasPortrait,
byte[] portraitBytes,
String languageId,
String timeZoneId,
String greeting,
String comments,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String smsSn,
String facebookSn,
String jabberSn,
String skypeSn,
String twitterSn,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
List<com.liferay.portal.kernel.model.UserGroupRole> userGroupRoles,
long[] userGroupIds,
List<com.liferay.portal.kernel.model.Address> addresses,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
List<com.liferay.portal.kernel.model.Phone> phones,
List<com.liferay.portal.kernel.model.Website> websites,
List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> announcementsDelivers,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
updateUser(long, String, String, String, boolean, String,
String, String, String, boolean, byte[], String, String,
String, String, String, String, String, long, long, boolean,
int, int, int, String, String, String, String, String,
String, long[], long[], long[], List, long[], List, List,
List, List, List, ServiceContext)userId - the primary key of the useroldPassword - the user's old passwordnewPassword1 - the user's new password (optionally
null)newPassword2 - the user's new password confirmation (optionally
null)passwordReset - whether the user should be asked to reset their
password the next time they loginreminderQueryQuestion - the user's new password reset questionreminderQueryAnswer - the user's new password reset answerscreenName - the user's new screen nameemailAddress - the user's new email addresshasPortrait - if the user has a custom portrait imageportraitBytes - the new portrait image datalanguageId - the user's new language IDtimeZoneId - the user's new time zone IDgreeting - the user's new greetingcomments - the user's new commentsfirstName - the user's new first namemiddleName - the user's new middle namelastName - the user's new last nameprefixId - the user's new name prefix IDsuffixId - the user's new name suffix IDmale - whether user is malebirthdayMonth - the user's new birthday month (0-based, meaning
0 for January)birthdayDay - the user's new birthday daybirthdayYear - the user's birthday yearsmsSn - the user's new SMS screen namefacebookSn - the user's new Facebook screen namejabberSn - the user's new Jabber screen nameskypeSn - the user's new Skype screen nametwitterSn - the user's new Twitter screen namejobTitle - the user's new job titlegroupIds - the primary keys of the user's groupsorganizationIds - the primary keys of the user's organizationsroleIds - the primary keys of the user's rolesuserGroupRoles - the user user's group rolesuserGroupIds - the primary keys of the user's user groupsaddresses - the user's addressesemailAddresses - the user's email addressesphones - the user's phone numberswebsites - the user's websitesannouncementsDelivers - the announcements deliveriesserviceContext - the service context to be applied (optionally
null). Can set the UUID (with the
uuid attribute), asset category IDs, asset tag
names, and expando bridge attributes for the user.com.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portal.kernel.model.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,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String smsSn,
String facebookSn,
String jabberSn,
String skypeSn,
String twitterSn,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
List<com.liferay.portal.kernel.model.UserGroupRole> userGroupRoles,
long[] userGroupIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
updateUser(long, String, String, String, boolean, String,
String, String, String, String, String, String, String,
String, String, String, long, long, boolean, int, int, int,
String, String, String, String, String, String, long[],
long[], long[], List, long[], ServiceContext)userId - the primary key of the useroldPassword - the user's old passwordnewPassword1 - the user's new password (optionally
null)newPassword2 - the user's new password confirmation (optionally
null)passwordReset - whether the user should be asked to reset their
password the next time they loginreminderQueryQuestion - the user's new password reset questionreminderQueryAnswer - the user's new password reset answerscreenName - the user's new screen nameemailAddress - the user's new email addresslanguageId - the user's new language IDtimeZoneId - the user's new time zone IDgreeting - the user's new greetingcomments - the user's new commentsfirstName - the user's new first namemiddleName - the user's new middle namelastName - the user's new last nameprefixId - the user's new name prefix IDsuffixId - the user's new name suffix IDmale - whether user is malebirthdayMonth - the user's new birthday month (0-based, meaning
0 for January)birthdayDay - the user's new birthday daybirthdayYear - the user's birthday yearsmsSn - the user's new SMS screen namefacebookSn - the user's new Facebook screen namejabberSn - the user's new Jabber screen nameskypeSn - the user's new Skype screen nametwitterSn - the user's new Twitter screen namejobTitle - the user's new job titlegroupIds - the primary keys of the user's groupsorganizationIds - the primary keys of the user's organizationsroleIds - the primary keys of the user's rolesuserGroupRoles - the user user's group rolesuserGroupIds - the primary keys of the user's user groupsserviceContext - the service context to be applied (optionally
null). Can set the UUID (with the
uuid attribute), asset category IDs, asset tag
names, and expando bridge attributes for the user.com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User updateUser(long userId,
String oldPassword,
String newPassword1,
String newPassword2,
boolean passwordReset,
String reminderQueryQuestion,
String reminderQueryAnswer,
String screenName,
String emailAddress,
String languageId,
String timeZoneId,
String greeting,
String comments,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String smsSn,
String facebookSn,
String jabberSn,
String skypeSn,
String twitterSn,
String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
List<com.liferay.portal.kernel.model.UserGroupRole> userGroupRoles,
long[] userGroupIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the useroldPassword - the user's old passwordnewPassword1 - the user's new password (optionally
null)newPassword2 - the user's new password confirmation (optionally
null)passwordReset - whether the user should be asked to reset their
password the next time they loginreminderQueryQuestion - the user's new password reset questionreminderQueryAnswer - the user's new password reset answerscreenName - the user's new screen nameemailAddress - the user's new email addresslanguageId - the user's new language IDtimeZoneId - the user's new time zone IDgreeting - the user's new greetingcomments - the user's new commentsfirstName - the user's new first namemiddleName - the user's new middle namelastName - the user's new last nameprefixId - the user's new name prefix IDsuffixId - the user's new name suffix IDmale - whether user is malebirthdayMonth - the user's new birthday month (0-based, meaning 0
for January)birthdayDay - the user's new birthday daybirthdayYear - the user's birthday yearsmsSn - the user's new SMS screen namefacebookSn - the user's new Facebook screen namejabberSn - the user's new Jabber screen nameskypeSn - the user's new Skype screen nametwitterSn - the user's new Twitter screen namejobTitle - the user's new job titlegroupIds - the primary keys of the user's groupsorganizationIds - the primary keys of the user's organizationsroleIds - the primary keys of the user's rolesuserGroupRoles - the user user's group rolesuserGroupIds - the primary keys of the user's user groupsserviceContext - the service context to be applied (optionally
null). Can set the UUID (with the uuid
attribute), asset category IDs, asset tag names, and expando
bridge attributes for the user.com.liferay.portal.kernel.exception.PortalExceptionprotected void checkAddUserPermission(long creatorUserId,
long companyId,
String emailAddress,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected long[] checkGroups(long userId,
long[] groupIds)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void checkMembership(long[] userIds,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected long[] checkOrganizations(long userId,
long[] organizationIds)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected long[] checkRoles(long userId,
long[] roleIds)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected long[] checkUserGroupIds(long userId,
long[] userGroupIds)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected List<com.liferay.portal.kernel.model.UserGroupRole> checkUserGroupRoles(long userId,
List<com.liferay.portal.kernel.model.UserGroupRole> userGroupRoles)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void propagateMembership(long[] userIds,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void updateAnnouncementsDeliveries(long userId,
List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> announcementsDeliveries)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void validateEmailAddress(com.liferay.portal.kernel.model.User user,
String emailAddress)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void validateOrganizationUsers(long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void validateUpdatePermission(com.liferay.portal.kernel.model.User user,
String screenName,
String emailAddress,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
boolean male,
String jobTitle)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException