public class UserServiceImpl extends UserServiceBaseImpl
accountLocalService, accountPersistence, accountService, addressLocalService, addressPersistence, addressService, announcementsDeliveryLocalService, announcementsDeliveryPersistence, announcementsDeliveryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, backgroundTaskLocalService, backgroundTaskPersistence, backgroundTaskService, blogsStatsUserFinder, blogsStatsUserLocalService, blogsStatsUserPersistence, browserTrackerLocalService, browserTrackerPersistence, classNameLocalService, classNamePersistence, classNameService, clusterGroupLocalService, clusterGroupPersistence, cmisRepositoryLocalService, companyLocalService, companyPersistence, companyService, contactLocalService, contactPersistence, contactService, counterLocalService, countryPersistence, countryService, dlFileRankFinder, dlFileRankLocalService, dlFileRankPersistence, emailAddressLocalService, emailAddressPersistence, emailAddressService, expandoRowLocalService, expandoRowPersistence, groupFinder, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, imageService, layoutBranchLocalService, layoutBranchPersistence, layoutBranchService, layoutFinder, layoutFriendlyURLLocalService, layoutFriendlyURLPersistence, layoutLocalService, layoutPersistence, layoutPrototypeLocalService, layoutPrototypePersistence, layoutPrototypeService, layoutRevisionLocalService, layoutRevisionPersistence, layoutRevisionService, layoutService, layoutSetBranchLocalService, layoutSetBranchPersistence, layoutSetBranchService, layoutSetLocalService, layoutSetPersistence, layoutSetPrototypeLocalService, layoutSetPrototypePersistence, layoutSetPrototypeService, layoutSetService, layoutTemplateLocalService, listTypePersistence, listTypeService, lockFinder, lockLocalService, lockPersistence, mailService, mbBanLocalService, mbBanPersistence, mbBanService, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, mbStatsUserLocalService, mbStatsUserPersistence, mbThreadFlagLocalService, mbThreadFlagPersistence, membershipRequestLocalService, membershipRequestPersistence, membershipRequestService, organizationFinder, organizationLocalService, organizationPersistence, organizationService, orgGroupRolePersistence, orgLaborLocalService, orgLaborPersistence, orgLaborService, passwordPolicyFinder, passwordPolicyLocalService, passwordPolicyPersistence, passwordPolicyRelLocalService, passwordPolicyRelPersistence, passwordPolicyService, passwordTrackerLocalService, passwordTrackerPersistence, permissionService, phoneLocalService, phonePersistence, phoneService, pluginSettingLocalService, pluginSettingPersistence, pluginSettingService, portalLocalService, portalPreferencesLocalService, portalPreferencesPersistence, portalService, portletItemLocalService, portletItemPersistence, portletLocalService, portletPersistence, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, portletService, quartzLocalService, regionPersistence, regionService, releaseLocalService, releasePersistence, repositoryEntryLocalService, repositoryEntryPersistence, repositoryLocalService, repositoryPersistence, repositoryService, resourceActionLocalService, resourceActionPersistence, resourceBlockFinder, resourceBlockLocalService, resourceBlockPermissionLocalService, resourceBlockPermissionPersistence, resourceBlockPersistence, resourceBlockService, resourceLocalService, resourcePermissionFinder, resourcePermissionLocalService, resourcePermissionPersistence, resourcePermissionService, resourceTypePermissionFinder, resourceTypePermissionLocalService, resourceTypePermissionPersistence, roleFinder, roleLocalService, rolePersistence, roleService, serviceComponentLocalService, serviceComponentPersistence, shardLocalService, shardPersistence, shoppingCartLocalService, shoppingCartPersistence, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, socialActivityService, socialRequestLocalService, socialRequestPersistence, socialRequestService, stagingLocalService, stagingService, subscriptionLocalService, subscriptionPersistence, systemEventLocalService, systemEventPersistence, teamFinder, teamLocalService, teamPersistence, teamService, themeLocalService, themeService, ticketLocalService, ticketPersistence, userFinder, userGroupFinder, userGroupGroupRoleLocalService, userGroupGroupRolePersistence, userGroupGroupRoleService, userGroupLocalService, userGroupPersistence, userGroupRoleFinder, userGroupRoleLocalService, userGroupRolePersistence, userGroupRoleService, userGroupService, userIdMapperLocalService, userIdMapperPersistence, userLocalService, userNotificationDeliveryLocalService, userNotificationDeliveryPersistence, userNotificationEventLocalService, userNotificationEventPersistence, userPersistence, userService, userTrackerLocalService, userTrackerPathLocalService, userTrackerPathPersistence, userTrackerPersistence, virtualHostLocalService, virtualHostPersistence, webDAVPropsLocalService, webDAVPropsPersistence, websiteLocalService, websitePersistence, websiteService, workflowDefinitionLinkLocalService, workflowDefinitionLinkPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence| Constructor and Description |
|---|
UserServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupUsers(long groupId,
long[] userIds,
com.liferay.portal.service.ServiceContext serviceContext)
Adds the users to the group.
|
void |
addOrganizationUsers(long organizationId,
long[] userIds)
Adds the users to the organization.
|
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.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,
long facebookId,
java.lang.String openId,
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[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
boolean sendEmail,
com.liferay.portal.service.ServiceContext serviceContext)
Adds a user.
|
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,
long facebookId,
java.lang.String openId,
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[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
java.util.List<com.liferay.portal.model.Address> addresses,
java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
java.util.List<com.liferay.portal.model.Phone> phones,
java.util.List<com.liferay.portal.model.Website> websites,
java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
boolean sendEmail,
com.liferay.portal.service.ServiceContext serviceContext)
Adds a user with additional parameters.
|
void |
addUserGroupUsers(long userGroupId,
long[] userIds)
Adds the users to the user group.
|
com.liferay.portal.model.User |
addUserWithWorkflow(long companyId,
boolean autoPassword,
java.lang.String password1,
java.lang.String password2,
boolean autoScreenName,
java.lang.String screenName,
java.lang.String emailAddress,
long facebookId,
java.lang.String openId,
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[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
boolean sendEmail,
com.liferay.portal.service.ServiceContext serviceContext)
Adds a user with workflow.
|
com.liferay.portal.model.User |
addUserWithWorkflow(long companyId,
boolean autoPassword,
java.lang.String password1,
java.lang.String password2,
boolean autoScreenName,
java.lang.String screenName,
java.lang.String emailAddress,
long facebookId,
java.lang.String openId,
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[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
java.util.List<com.liferay.portal.model.Address> addresses,
java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
java.util.List<com.liferay.portal.model.Phone> phones,
java.util.List<com.liferay.portal.model.Website> websites,
java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
boolean sendEmail,
com.liferay.portal.service.ServiceContext serviceContext)
Adds a user with workflow and additional parameters.
|
protected void |
checkAddUserPermission(long creatorUserId,
long companyId,
java.lang.String emailAddress,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
com.liferay.portal.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 java.util.List<com.liferay.portal.model.UserGroupRole> |
checkUserGroupRoles(long userId,
java.util.List<com.liferay.portal.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.
|
java.util.List<com.liferay.portal.model.User> |
getCompanyUsers(long companyId,
int start,
int end) |
int |
getCompanyUsersCount(long companyId) |
com.liferay.portal.model.User |
getCurrentUser() |
long[] |
getGroupUserIds(long groupId)
Returns the primary keys of all the users belonging to the group.
|
java.util.List<com.liferay.portal.model.User> |
getGroupUsers(long groupId)
Returns all the users belonging to the group.
|
long[] |
getOrganizationUserIds(long organizationId)
Returns the primary keys of all the users belonging to the organization.
|
java.util.List<com.liferay.portal.model.User> |
getOrganizationUsers(long organizationId)
Returns all the users belonging to the organization.
|
long[] |
getRoleUserIds(long roleId)
Returns the primary keys of all the users belonging to the role.
|
com.liferay.portal.model.User |
getUserByEmailAddress(long companyId,
java.lang.String emailAddress)
Returns the user with the email address.
|
com.liferay.portal.model.User |
getUserById(long userId)
Returns the user with the primary key.
|
com.liferay.portal.model.User |
getUserByScreenName(long companyId,
java.lang.String screenName)
Returns the user with the screen name.
|
java.util.List<com.liferay.portal.model.User> |
getUserGroupUsers(long userGroupId) |
long |
getUserIdByEmailAddress(long companyId,
java.lang.String emailAddress)
Returns the primary key of the user with the email address.
|
long |
getUserIdByScreenName(long companyId,
java.lang.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,
java.lang.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) |
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.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.model.User |
updateAgreedToTermsOfUse(long userId,
boolean agreedToTermsOfUse)
Updates the user's response to the terms of use agreement.
|
protected void |
updateAnnouncementsDeliveries(long userId,
java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDeliveries) |
com.liferay.portal.model.User |
updateEmailAddress(long userId,
java.lang.String password,
java.lang.String emailAddress1,
java.lang.String emailAddress2,
com.liferay.portal.service.ServiceContext serviceContext)
Updates the user's email address.
|
com.liferay.portal.model.User |
updateIncompleteUser(long companyId,
boolean autoPassword,
java.lang.String password1,
java.lang.String password2,
boolean autoScreenName,
java.lang.String screenName,
java.lang.String emailAddress,
long facebookId,
java.lang.String openId,
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,
boolean updateUserInformation,
boolean sendEmail,
com.liferay.portal.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.model.User |
updateLockoutById(long userId,
boolean lockout)
Updates whether the user is locked out from logging in.
|
com.liferay.portal.model.User |
updateOpenId(long userId,
java.lang.String openId)
Updates the user's OpenID.
|
void |
updateOrganizations(long userId,
long[] organizationIds,
com.liferay.portal.service.ServiceContext serviceContext)
Sets the organizations that the user is in, removing and adding
organizations as necessary.
|
com.liferay.portal.model.User |
updatePassword(long userId,
java.lang.String password1,
java.lang.String password2,
boolean passwordReset)
Updates the user's password without tracking or validation of the change.
|
com.liferay.portal.model.User |
updatePortrait(long userId,
byte[] bytes)
Updates the user's portrait image.
|
com.liferay.portal.model.User |
updateReminderQuery(long userId,
java.lang.String question,
java.lang.String answer)
Updates the user's password reset question and answer.
|
com.liferay.portal.model.User |
updateScreenName(long userId,
java.lang.String screenName)
Updates the user's screen name.
|
com.liferay.portal.model.User |
updateStatus(long userId,
int status)
Deprecated.
As of 7.0.0, replaced by
updateStatus(long, int,
ServiceContext) |
com.liferay.portal.model.User |
updateStatus(long userId,
int status,
com.liferay.portal.service.ServiceContext serviceContext)
Updates the user's workflow status.
|
com.liferay.portal.model.User |
updateUser(long userId,
java.lang.String oldPassword,
java.lang.String newPassword1,
java.lang.String newPassword2,
boolean passwordReset,
java.lang.String reminderQueryQuestion,
java.lang.String reminderQueryAnswer,
java.lang.String screenName,
java.lang.String emailAddress,
long facebookId,
java.lang.String openId,
java.lang.String languageId,
java.lang.String timeZoneId,
java.lang.String greeting,
java.lang.String comments,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
int prefixId,
int suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
java.lang.String smsSn,
java.lang.String aimSn,
java.lang.String facebookSn,
java.lang.String icqSn,
java.lang.String jabberSn,
java.lang.String msnSn,
java.lang.String mySpaceSn,
java.lang.String skypeSn,
java.lang.String twitterSn,
java.lang.String ymSn,
java.lang.String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
long[] userGroupIds,
java.util.List<com.liferay.portal.model.Address> addresses,
java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
java.util.List<com.liferay.portal.model.Phone> phones,
java.util.List<com.liferay.portal.model.Website> websites,
java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
com.liferay.portal.service.ServiceContext serviceContext)
Updates the user with additional parameters.
|
com.liferay.portal.model.User |
updateUser(long userId,
java.lang.String oldPassword,
java.lang.String newPassword1,
java.lang.String newPassword2,
boolean passwordReset,
java.lang.String reminderQueryQuestion,
java.lang.String reminderQueryAnswer,
java.lang.String screenName,
java.lang.String emailAddress,
long facebookId,
java.lang.String openId,
java.lang.String languageId,
java.lang.String timeZoneId,
java.lang.String greeting,
java.lang.String comments,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
int prefixId,
int suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
java.lang.String smsSn,
java.lang.String aimSn,
java.lang.String facebookSn,
java.lang.String icqSn,
java.lang.String jabberSn,
java.lang.String msnSn,
java.lang.String mySpaceSn,
java.lang.String skypeSn,
java.lang.String twitterSn,
java.lang.String ymSn,
java.lang.String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
long[] userGroupIds,
com.liferay.portal.service.ServiceContext serviceContext)
Updates the user.
|
protected void |
validateEmailAddress(com.liferay.portal.model.User user,
java.lang.String emailAddress) |
protected void |
validateOrganizationUsers(long[] userIds) |
protected void |
validateUpdatePermission(com.liferay.portal.model.User user,
java.lang.String screenName,
java.lang.String emailAddress,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
int prefixId,
int suffixId,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
boolean male,
java.lang.String jobTitle) |
afterPropertiesSet, destroy, getAccountLocalService, getAccountPersistence, getAccountService, getAddressLocalService, getAddressPersistence, getAddressService, getAnnouncementsDeliveryLocalService, getAnnouncementsDeliveryPersistence, getAnnouncementsDeliveryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getBackgroundTaskLocalService, getBackgroundTaskPersistence, getBackgroundTaskService, getBeanIdentifier, getBlogsStatsUserFinder, getBlogsStatsUserLocalService, getBlogsStatsUserPersistence, getBrowserTrackerLocalService, getBrowserTrackerPersistence, getClassNameLocalService, getClassNamePersistence, getClassNameService, getClusterGroupLocalService, getClusterGroupPersistence, getCMISRepositoryLocalService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getContactLocalService, getContactPersistence, getContactService, getCounterLocalService, getCountryPersistence, getCountryService, getDLFileRankFinder, getDLFileRankLocalService, getDLFileRankPersistence, getEmailAddressLocalService, getEmailAddressPersistence, getEmailAddressService, getExpandoRowLocalService, getExpandoRowPersistence, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getImageService, getLayoutBranchLocalService, getLayoutBranchPersistence, getLayoutBranchService, getLayoutFinder, getLayoutFriendlyURLLocalService, getLayoutFriendlyURLPersistence, getLayoutLocalService, getLayoutPersistence, getLayoutPrototypeLocalService, getLayoutPrototypePersistence, getLayoutPrototypeService, getLayoutRevisionLocalService, getLayoutRevisionPersistence, getLayoutRevisionService, getLayoutService, getLayoutSetBranchLocalService, getLayoutSetBranchPersistence, getLayoutSetBranchService, getLayoutSetLocalService, getLayoutSetPersistence, getLayoutSetPrototypeLocalService, getLayoutSetPrototypePersistence, getLayoutSetPrototypeService, getLayoutSetService, getLayoutTemplateLocalService, getListTypePersistence, getListTypeService, getLockFinder, getLockLocalService, getLockPersistence, getMailService, getMBBanLocalService, getMBBanPersistence, getMBBanService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getMBStatsUserLocalService, getMBStatsUserPersistence, getMBThreadFlagLocalService, getMBThreadFlagPersistence, getMembershipRequestLocalService, getMembershipRequestPersistence, getMembershipRequestService, getModelClass, getModelClassName, getOrganizationFinder, getOrganizationLocalService, getOrganizationPersistence, getOrganizationService, getOrgGroupRolePersistence, getOrgLaborLocalService, getOrgLaborPersistence, getOrgLaborService, getPasswordPolicyFinder, getPasswordPolicyLocalService, getPasswordPolicyPersistence, getPasswordPolicyRelLocalService, getPasswordPolicyRelPersistence, getPasswordPolicyService, getPasswordTrackerLocalService, getPasswordTrackerPersistence, getPermissionService, getPhoneLocalService, getPhonePersistence, getPhoneService, getPluginSettingLocalService, getPluginSettingPersistence, getPluginSettingService, getPortalLocalService, getPortalPreferencesLocalService, getPortalPreferencesPersistence, getPortalService, getPortletItemLocalService, getPortletItemPersistence, getPortletLocalService, getPortletPersistence, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getPortletService, getQuartzLocalService, getRegionPersistence, getRegionService, getReleaseLocalService, getReleasePersistence, getRepositoryEntryLocalService, getRepositoryEntryPersistence, getRepositoryLocalService, getRepositoryPersistence, getRepositoryService, getResourceActionLocalService, getResourceActionPersistence, getResourceBlockFinder, getResourceBlockLocalService, getResourceBlockPermissionLocalService, getResourceBlockPermissionPersistence, getResourceBlockPersistence, getResourceBlockService, getResourceLocalService, getResourcePermissionFinder, getResourcePermissionLocalService, getResourcePermissionPersistence, getResourcePermissionService, getResourceTypePermissionFinder, getResourceTypePermissionLocalService, getResourceTypePermissionPersistence, getRoleFinder, getRoleLocalService, getRolePersistence, getRoleService, getServiceComponentLocalService, getServiceComponentPersistence, getShardLocalService, getShardPersistence, getShoppingCartLocalService, getShoppingCartPersistence, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSocialActivityService, getSocialRequestLocalService, getSocialRequestPersistence, getSocialRequestService, getStagingLocalService, getStagingService, getSubscriptionLocalService, getSubscriptionPersistence, getSystemEventLocalService, getSystemEventPersistence, getTeamFinder, getTeamLocalService, getTeamPersistence, getTeamService, getThemeLocalService, getThemeService, getTicketLocalService, getTicketPersistence, getUserFinder, getUserGroupFinder, getUserGroupGroupRoleLocalService, getUserGroupGroupRolePersistence, getUserGroupGroupRoleService, getUserGroupLocalService, getUserGroupPersistence, getUserGroupRoleFinder, getUserGroupRoleLocalService, getUserGroupRolePersistence, getUserGroupRoleService, getUserGroupService, getUserIdMapperLocalService, getUserIdMapperPersistence, getUserLocalService, getUserNotificationDeliveryLocalService, getUserNotificationDeliveryPersistence, getUserNotificationEventLocalService, getUserNotificationEventPersistence, getUserPersistence, getUserService, getUserTrackerLocalService, getUserTrackerPathLocalService, getUserTrackerPathPersistence, getUserTrackerPersistence, getVirtualHostLocalService, getVirtualHostPersistence, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWebsiteLocalService, getWebsitePersistence, getWebsiteService, getWorkflowDefinitionLinkLocalService, getWorkflowDefinitionLinkPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAccountLocalService, setAccountPersistence, setAccountService, setAddressLocalService, setAddressPersistence, setAddressService, setAnnouncementsDeliveryLocalService, setAnnouncementsDeliveryPersistence, setAnnouncementsDeliveryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setBackgroundTaskLocalService, setBackgroundTaskPersistence, setBackgroundTaskService, setBeanIdentifier, setBlogsStatsUserFinder, setBlogsStatsUserLocalService, setBlogsStatsUserPersistence, setBrowserTrackerLocalService, setBrowserTrackerPersistence, setClassNameLocalService, setClassNamePersistence, setClassNameService, setClusterGroupLocalService, setClusterGroupPersistence, setCMISRepositoryLocalService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setContactLocalService, setContactPersistence, setContactService, setCounterLocalService, setCountryPersistence, setCountryService, setDLFileRankFinder, setDLFileRankLocalService, setDLFileRankPersistence, setEmailAddressLocalService, setEmailAddressPersistence, setEmailAddressService, setExpandoRowLocalService, setExpandoRowPersistence, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setImageService, setLayoutBranchLocalService, setLayoutBranchPersistence, setLayoutBranchService, setLayoutFinder, setLayoutFriendlyURLLocalService, setLayoutFriendlyURLPersistence, setLayoutLocalService, setLayoutPersistence, setLayoutPrototypeLocalService, setLayoutPrototypePersistence, setLayoutPrototypeService, setLayoutRevisionLocalService, setLayoutRevisionPersistence, setLayoutRevisionService, setLayoutService, setLayoutSetBranchLocalService, setLayoutSetBranchPersistence, setLayoutSetBranchService, setLayoutSetLocalService, setLayoutSetPersistence, setLayoutSetPrototypeLocalService, setLayoutSetPrototypePersistence, setLayoutSetPrototypeService, setLayoutSetService, setLayoutTemplateLocalService, setListTypePersistence, setListTypeService, setLockFinder, setLockLocalService, setLockPersistence, setMailService, setMBBanLocalService, setMBBanPersistence, setMBBanService, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setMBStatsUserLocalService, setMBStatsUserPersistence, setMBThreadFlagLocalService, setMBThreadFlagPersistence, setMembershipRequestLocalService, setMembershipRequestPersistence, setMembershipRequestService, setOrganizationFinder, setOrganizationLocalService, setOrganizationPersistence, setOrganizationService, setOrgGroupRolePersistence, setOrgLaborLocalService, setOrgLaborPersistence, setOrgLaborService, setPasswordPolicyFinder, setPasswordPolicyLocalService, setPasswordPolicyPersistence, setPasswordPolicyRelLocalService, setPasswordPolicyRelPersistence, setPasswordPolicyService, setPasswordTrackerLocalService, setPasswordTrackerPersistence, setPermissionService, setPhoneLocalService, setPhonePersistence, setPhoneService, setPluginSettingLocalService, setPluginSettingPersistence, setPluginSettingService, setPortalLocalService, setPortalPreferencesLocalService, setPortalPreferencesPersistence, setPortalService, setPortletItemLocalService, setPortletItemPersistence, setPortletLocalService, setPortletPersistence, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setPortletService, setQuartzLocalService, setRegionPersistence, setRegionService, setReleaseLocalService, setReleasePersistence, setRepositoryEntryLocalService, setRepositoryEntryPersistence, setRepositoryLocalService, setRepositoryPersistence, setRepositoryService, setResourceActionLocalService, setResourceActionPersistence, setResourceBlockFinder, setResourceBlockLocalService, setResourceBlockPermissionLocalService, setResourceBlockPermissionPersistence, setResourceBlockPersistence, setResourceBlockService, setResourceLocalService, setResourcePermissionFinder, setResourcePermissionLocalService, setResourcePermissionPersistence, setResourcePermissionService, setResourceTypePermissionFinder, setResourceTypePermissionLocalService, setResourceTypePermissionPersistence, setRoleFinder, setRoleLocalService, setRolePersistence, setRoleService, setServiceComponentLocalService, setServiceComponentPersistence, setShardLocalService, setShardPersistence, setShoppingCartLocalService, setShoppingCartPersistence, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSocialActivityService, setSocialRequestLocalService, setSocialRequestPersistence, setSocialRequestService, setStagingLocalService, setStagingService, setSubscriptionLocalService, setSubscriptionPersistence, setSystemEventLocalService, setSystemEventPersistence, setTeamFinder, setTeamLocalService, setTeamPersistence, setTeamService, setThemeLocalService, setThemeService, setTicketLocalService, setTicketPersistence, setUserFinder, setUserGroupFinder, setUserGroupGroupRoleLocalService, setUserGroupGroupRolePersistence, setUserGroupGroupRoleService, setUserGroupLocalService, setUserGroupPersistence, setUserGroupRoleFinder, setUserGroupRoleLocalService, setUserGroupRolePersistence, setUserGroupRoleService, setUserGroupService, setUserIdMapperLocalService, setUserIdMapperPersistence, setUserLocalService, setUserNotificationDeliveryLocalService, setUserNotificationDeliveryPersistence, setUserNotificationEventLocalService, setUserNotificationEventPersistence, setUserPersistence, setUserService, setUserTrackerLocalService, setUserTrackerPathLocalService, setUserTrackerPathPersistence, setUserTrackerPersistence, setVirtualHostLocalService, setVirtualHostPersistence, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWebsiteLocalService, setWebsitePersistence, setWebsiteService, setWorkflowDefinitionLinkLocalService, setWorkflowDefinitionLinkPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistencepublic void addGroupUsers(long groupId,
long[] userIds,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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.PortalException - if a group or user with the primary key could not
be found, if the user did not have permission to assign group
members, or if the operation was not allowed by the membership
policycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addOrganizationUsers(long organizationId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
organizationId - the primary key of the organizationuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalException - if an organization or user with the primary key
could not be found, if the user did not have permission to assign
organization members, if current user did not have an
organization in common with a given user, or if the operation was
not allowed by the membership policycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addPasswordPolicyUsers(long passwordPolicyId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
passwordPolicyId - the primary key of the password policyuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalException - if the user did not have permission to assign
policy memberscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addRoleUsers(long roleId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
roleId - the primary key of the roleuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalException - if a role or user with the primary key could not
be found, if the user did not have permission to assign role
members, or if the operation was not allowed by the membership
policycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addTeamUsers(long teamId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
teamId - the primary key of the teamuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalException - if a team or user with the primary key could not
be found or if the user did not have permission to assign team
memberscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic 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,
long facebookId,
java.lang.String openId,
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[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
boolean sendEmail,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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 - if the user's information was invalid, if the
operation was not allowed by the membership policy, if the
creator did not have permission to add users, or if the email
address was reservedcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic 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,
long facebookId,
java.lang.String openId,
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[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
java.util.List<com.liferay.portal.model.Address> addresses,
java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
java.util.List<com.liferay.portal.model.Phone> phones,
java.util.List<com.liferay.portal.model.Website> websites,
java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
boolean sendEmail,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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.PortalException - if the user's information was invalid, if the
creator did not have permission to add users, if the email
address was reserved, if the operation was not allowed by the
membership policy, or if some other portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addUserGroupUsers(long userGroupId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userGroupId - the primary key of the user groupuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalException - if a user group or user with the primary could
could not be found, if the current user did not have permission
to assign group members, or if the operation was not allowed by
the membership policycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User addUserWithWorkflow(long companyId,
boolean autoPassword,
java.lang.String password1,
java.lang.String password2,
boolean autoScreenName,
java.lang.String screenName,
java.lang.String emailAddress,
long facebookId,
java.lang.String openId,
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[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
boolean sendEmail,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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 - if the user's information was invalid, if the
operation was not allowed by the membership policy, if the
creator did not have permission to add users, or if the email
address was reservedcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User addUserWithWorkflow(long companyId,
boolean autoPassword,
java.lang.String password1,
java.lang.String password2,
boolean autoScreenName,
java.lang.String screenName,
java.lang.String emailAddress,
long facebookId,
java.lang.String openId,
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[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
java.util.List<com.liferay.portal.model.Address> addresses,
java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
java.util.List<com.liferay.portal.model.Phone> phones,
java.util.List<com.liferay.portal.model.Website> websites,
java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
boolean sendEmail,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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.PortalException - if the user's information was invalid, if the
operation was not allowed by the membership policy, if the
creator did not have permission to add users, if the email
address was reserved, or if some other portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void deletePortrait(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the usercom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be
found, if the user's portrait could not be found, or if the
current user did not have permission to update the usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void deleteRoleUser(long roleId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
roleId - the primary key of the roleuserId - the primary key of the usercom.liferay.portal.kernel.exception.PortalException - if a role or user with the primary key could not
be found, or if the current user did not have permission to
assign role memberscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void deleteUser(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the usercom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be found
or if the current user did not have permission to delete the usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.User> getCompanyUsers(long companyId,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic int getCompanyUsersCount(long companyId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.model.User getCurrentUser()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic long[] getGroupUserIds(long groupId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
groupId - the primary key of the groupcom.liferay.portal.kernel.exception.PortalException - if the current user did not have permission to
view group assignmentscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.User> getGroupUsers(long groupId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
groupId - the primary key of the groupcom.liferay.portal.kernel.exception.PortalException - if the current user did not have permission to
view group assignmentscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic long[] getOrganizationUserIds(long organizationId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
organizationId - the primary key of the organizationcom.liferay.portal.kernel.exception.PortalException - if the current user did not have permission to
view organization assignmentscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.User> getOrganizationUsers(long organizationId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
organizationId - the primary key of the organizationcom.liferay.portal.kernel.exception.PortalException - if the current user did not have permission to
view organization assignmentscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic long[] getRoleUserIds(long roleId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
roleId - the primary key of the rolecom.liferay.portal.kernel.exception.PortalException - if the current user did not have permission to
view role memberscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User getUserByEmailAddress(long companyId,
java.lang.String emailAddress)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the user's companyemailAddress - the user's email addresscom.liferay.portal.kernel.exception.PortalException - if a user with the email address could not be
found or if the current user did not have permission to view the
usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User getUserById(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the usercom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be found
or if the current user did not have permission to view the usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User getUserByScreenName(long companyId,
java.lang.String screenName)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the user's companyscreenName - the user's screen namecom.liferay.portal.kernel.exception.PortalException - if a user with the screen name could not be found
or if the current user did not have permission to view the usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.User> getUserGroupUsers(long userGroupId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic long getUserIdByEmailAddress(long companyId,
java.lang.String emailAddress)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the user's companyemailAddress - the user's email addresscom.liferay.portal.kernel.exception.PortalException - if a user with the email address could not be
foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic long getUserIdByScreenName(long companyId,
java.lang.String screenName)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the user's companyscreenName - the user's screen namecom.liferay.portal.kernel.exception.PortalException - if a user with the screen name could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic boolean hasGroupUser(long groupId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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.PortalException - if the current user did not have permission to
view the user or group memberscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic boolean hasRoleUser(long roleId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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.PortalException - if the current user did not have permission to
view the user or role memberscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic boolean hasRoleUser(long companyId,
java.lang.String name,
long userId,
boolean inherited)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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 - if a role with the name could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void setRoleUsers(long roleId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
roleId - the primary key of the roleuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalException - if the current user did not have permission to
assign role members or if the operation was not allowed by the
membership policycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void setUserGroupUsers(long userGroupId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userGroupId - the primary key of the user groupuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalException - if the current user did not have permission to
assign group memberscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void unsetGroupTeamsUsers(long groupId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
groupId - the primary key of the groupuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalException - if the current user did not have permission to
modify user group assignmentscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void unsetGroupUsers(long groupId,
long[] userIds,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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.PortalException - if the current user did not have permission to
modify group assignments or if the operation was not allowed by
the membership policycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void unsetOrganizationUsers(long organizationId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
organizationId - the primary key of the organizationuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalException - if the current user did not have permission to
modify organization assignments or if the operation was not
allowed by the membership policycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void unsetPasswordPolicyUsers(long passwordPolicyId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
passwordPolicyId - the primary key of the password policyuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalException - if the current user did not have permission to
modify policy assignmentscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void unsetRoleUsers(long roleId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
roleId - the primary key of the roleuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalException - if the current user did not have permission to
modify role assignments or if the operation was not allowed by
the membership policycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void unsetTeamUsers(long teamId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
teamId - the primary key of the teamuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalException - if the current user did not have permission to
modify team assignmentscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void unsetUserGroupUsers(long userGroupId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userGroupId - the primary key of the user groupuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalException - if the current user did not have permission to
modify user group assignments or if the operation was not allowed
by the membership policycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId,
boolean agreedToTermsOfUse)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the useragreedToTermsOfUse - whether the user has agree to the terms of usecom.liferay.portal.kernel.exception.PortalException - if the current user did not have permission to
update the user's agreement to terms-of-usecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateEmailAddress(long userId,
java.lang.String password,
java.lang.String emailAddress1,
java.lang.String emailAddress2,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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.PortalException - if a user with the primary key could not be found
or if the current user did not have permission to update the usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateIncompleteUser(long companyId,
boolean autoPassword,
java.lang.String password1,
java.lang.String password2,
boolean autoScreenName,
java.lang.String screenName,
java.lang.String emailAddress,
long facebookId,
java.lang.String openId,
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,
boolean updateUserInformation,
boolean sendEmail,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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.PortalException - if the user's information was invalid or if the
email address was reservedcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateLockoutById(long userId,
boolean lockout)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the userlockout - whether the user is locked outcom.liferay.portal.kernel.exception.PortalException - if the user did not have permission to lock out
the usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateOpenId(long userId,
java.lang.String openId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the useropenId - the new OpenIDcom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be found
or if the current user did not have permission to update the usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void updateOrganizations(long userId,
long[] organizationIds,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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 - if a user with the primary key could not be found
or if the current user did not have permission to update the usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updatePassword(long userId,
java.lang.String password1,
java.lang.String password2,
boolean passwordReset)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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.PortalException - if a user with the primary key could not be found
or if the current user did not have permission to update the usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updatePortrait(long userId,
byte[] bytes)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the userbytes - the new portrait image datacom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be
found, if the new portrait was invalid, or if the current user
did not have permission to update the usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateReminderQuery(long userId,
java.lang.String question,
java.lang.String answer)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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.PortalException - if a user with the primary key could not be
found, if the new question or answer were invalid, or if the
current user did not have permission to update the usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateScreenName(long userId,
java.lang.String screenName)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the userscreenName - the user's new screen namecom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be
found, if the new screen name was invalid, or if the current user
did not have permission to update the usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurred@Deprecated
public com.liferay.portal.model.User updateStatus(long userId,
int status)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
updateStatus(long, int,
ServiceContext)userId - the primary key of the userstatus - the user's new workflow statuscom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be
found, if the current user was updating her own status to
anything but WorkflowConstants.STATUS_APPROVED,
or if the current user did not have permission to update the
user's workflow status.com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateStatus(long userId,
int status,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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.PortalException - if a user with the primary key could not be
found, if the current user was updating her own status to
anything but WorkflowConstants.STATUS_APPROVED,
or if the current user did not have permission to update the
user's workflow status.com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateUser(long userId,
java.lang.String oldPassword,
java.lang.String newPassword1,
java.lang.String newPassword2,
boolean passwordReset,
java.lang.String reminderQueryQuestion,
java.lang.String reminderQueryAnswer,
java.lang.String screenName,
java.lang.String emailAddress,
long facebookId,
java.lang.String openId,
java.lang.String languageId,
java.lang.String timeZoneId,
java.lang.String greeting,
java.lang.String comments,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
int prefixId,
int suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
java.lang.String smsSn,
java.lang.String aimSn,
java.lang.String facebookSn,
java.lang.String icqSn,
java.lang.String jabberSn,
java.lang.String msnSn,
java.lang.String mySpaceSn,
java.lang.String skypeSn,
java.lang.String twitterSn,
java.lang.String ymSn,
java.lang.String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
long[] userGroupIds,
java.util.List<com.liferay.portal.model.Address> addresses,
java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
java.util.List<com.liferay.portal.model.Phone> phones,
java.util.List<com.liferay.portal.model.Website> websites,
java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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 addressfacebookId - the user's new Facebook IDopenId - the user's new OpenIDlanguageId - 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 nameaimSn - the user's new AIM screen namefacebookSn - the user's new Facebook screen nameicqSn - the user's new ICQ screen namejabberSn - the user's new Jabber screen namemsnSn - the user's new MSN screen namemySpaceSn - the user's new MySpace screen nameskypeSn - the user's new Skype screen nametwitterSn - the user's new Twitter screen nameymSn - the user's new Yahoo! Messenger 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 - if a user with the primary key could not be
found, if the new information was invalid, if the current user
did not have permission to update the user, or if the operation
was not allowed by the membership policycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateUser(long userId,
java.lang.String oldPassword,
java.lang.String newPassword1,
java.lang.String newPassword2,
boolean passwordReset,
java.lang.String reminderQueryQuestion,
java.lang.String reminderQueryAnswer,
java.lang.String screenName,
java.lang.String emailAddress,
long facebookId,
java.lang.String openId,
java.lang.String languageId,
java.lang.String timeZoneId,
java.lang.String greeting,
java.lang.String comments,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
int prefixId,
int suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
java.lang.String smsSn,
java.lang.String aimSn,
java.lang.String facebookSn,
java.lang.String icqSn,
java.lang.String jabberSn,
java.lang.String msnSn,
java.lang.String mySpaceSn,
java.lang.String skypeSn,
java.lang.String twitterSn,
java.lang.String ymSn,
java.lang.String jobTitle,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
long[] userGroupIds,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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 addressfacebookId - the user's new Facebook IDopenId - the user's new OpenIDlanguageId - 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 nameaimSn - the user's new AIM screen namefacebookSn - the user's new Facebook screen nameicqSn - the user's new ICQ screen namejabberSn - the user's new Jabber screen namemsnSn - the user's new MSN screen namemySpaceSn - the user's new MySpace screen nameskypeSn - the user's new Skype screen nametwitterSn - the user's new Twitter screen nameymSn - the user's new Yahoo! Messenger 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.PortalException - if a user with the primary key could not be
found, if the new information was invalid, if the current user
did not have permission to update the user, or if the operation
was not allowed by the membership policycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected void checkAddUserPermission(long creatorUserId,
long companyId,
java.lang.String emailAddress,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected long[] checkGroups(long userId,
long[] groupIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected void checkMembership(long[] userIds,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected long[] checkOrganizations(long userId,
long[] organizationIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected long[] checkRoles(long userId,
long[] roleIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected long[] checkUserGroupIds(long userId,
long[] userGroupIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected java.util.List<com.liferay.portal.model.UserGroupRole> checkUserGroupRoles(long userId,
java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected void propagateMembership(long[] userIds,
long[] groupIds,
long[] organizationIds,
long[] roleIds,
long[] userGroupIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected void updateAnnouncementsDeliveries(long userId,
java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDeliveries)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected void validateEmailAddress(com.liferay.portal.model.User user,
java.lang.String emailAddress)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected void validateOrganizationUsers(long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected void validateUpdatePermission(com.liferay.portal.model.User user,
java.lang.String screenName,
java.lang.String emailAddress,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
int prefixId,
int suffixId,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
boolean male,
java.lang.String jobTitle)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException