public class UserLocalServiceImpl extends UserLocalServiceBaseImpl
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, persistedModelLocalServiceRegistry, 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 |
|---|
UserLocalServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.portal.model.User |
addDefaultAdminUser(long companyId,
java.lang.String screenName,
java.lang.String emailAddress,
java.util.Locale locale,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName)
Adds a default admin user for the company.
|
void |
addDefaultGroups(long userId)
Adds the user to the default groups, unless the user is already in these
groups.
|
void |
addDefaultRoles(long userId)
Adds the user to the default roles, unless the user already has these
roles.
|
protected void |
addDefaultRolesAndTeams(long groupId,
long[] userIds) |
void |
addDefaultUserGroups(long userId)
Adds the user to the default user groups, unless the user is already in
these user groups.
|
void |
addGroupUsers(long groupId,
long[] userIds)
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 creatorUserId,
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.
|
void |
addUserGroupUsers(long userGroupId,
long[] userIds)
Adds the users to the user group.
|
com.liferay.portal.model.User |
addUserWithWorkflow(long creatorUserId,
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.
|
void |
afterPropertiesSet() |
protected int |
authenticate(long companyId,
java.lang.String login,
java.lang.String password,
java.lang.String authType,
java.util.Map<java.lang.String,java.lang.String[]> headerMap,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Attempts to authenticate the user by their login and password, while
using the AuthPipeline.
|
int |
authenticateByEmailAddress(long companyId,
java.lang.String emailAddress,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String[]> headerMap,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Attempts to authenticate the user by their email address and password,
while using the AuthPipeline.
|
int |
authenticateByScreenName(long companyId,
java.lang.String screenName,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String[]> headerMap,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Attempts to authenticate the user by their screen name and password,
while using the AuthPipeline.
|
int |
authenticateByUserId(long companyId,
long userId,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String[]> headerMap,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Attempts to authenticate the user by their primary key and password,
while using the AuthPipeline.
|
long |
authenticateForBasic(long companyId,
java.lang.String authType,
java.lang.String login,
java.lang.String password)
Attempts to authenticate the user using HTTP basic access authentication,
without using the AuthPipeline.
|
long |
authenticateForDigest(long companyId,
java.lang.String username,
java.lang.String realm,
java.lang.String nonce,
java.lang.String method,
java.lang.String uri,
java.lang.String response)
Attempts to authenticate the user using HTTP digest access
authentication, without using the AuthPipeline.
|
boolean |
authenticateForJAAS(long userId,
java.lang.String encPassword)
Attempts to authenticate the user using JAAS credentials, without using
the AuthPipeline.
|
void |
checkLockout(com.liferay.portal.model.User user)
Checks if the user is currently locked out based on the password policy,
and performs maintenance on the user's lockout and failed login data.
|
void |
checkLoginFailure(com.liferay.portal.model.User user)
Adds a failed login attempt to the user and updates the user's last
failed login date.
|
void |
checkLoginFailureByEmailAddress(long companyId,
java.lang.String emailAddress)
Adds a failed login attempt to the user with the email address and
updates the user's last failed login date.
|
void |
checkLoginFailureById(long userId)
Adds a failed login attempt to the user and updates the user's last
failed login date.
|
void |
checkLoginFailureByScreenName(long companyId,
java.lang.String screenName)
Adds a failed login attempt to the user with the screen name and updates
the user's last failed login date.
|
void |
checkPasswordExpired(com.liferay.portal.model.User user)
Checks if the user's password is expired based on the password policy,
and performs maintenance on the user's grace login and password reset
data.
|
void |
clearOrganizationUsers(long organizationId)
Removes all the users from the organization.
|
void |
clearUserGroupUsers(long userGroupId)
Removes all the users from the user group.
|
void |
completeUserRegistration(com.liferay.portal.model.User user,
com.liferay.portal.service.ServiceContext serviceContext)
Completes the user's registration by generating a password and sending
the confirmation email.
|
com.liferay.portal.kernel.util.KeyValuePair |
decryptUserId(long companyId,
java.lang.String name,
java.lang.String password)
Decrypts the user's primary key and password from their encrypted forms.
|
void |
deletePortrait(long userId)
Deletes the user's portrait image.
|
void |
deleteRoleUser(long roleId,
long userId)
Removes the user from the role.
|
com.liferay.portal.model.User |
deleteUser(long userId)
Deletes the user.
|
com.liferay.portal.model.User |
deleteUser(com.liferay.portal.model.User user)
Deletes the user.
|
void |
deleteUserGroupUser(long userGroupId,
long userId)
Removes the user from the user group.
|
java.lang.String |
encryptUserId(java.lang.String name)
Encrypts the primary key of the user.
|
com.liferay.portal.model.User |
fetchUserByEmailAddress(long companyId,
java.lang.String emailAddress)
Returns the user with the email address.
|
com.liferay.portal.model.User |
fetchUserByFacebookId(long companyId,
long facebookId)
Returns the user with the Facebook ID.
|
com.liferay.portal.model.User |
fetchUserById(long userId)
Returns the user with the primary key.
|
com.liferay.portal.model.User |
fetchUserByOpenId(long companyId,
java.lang.String openId)
Returns the user with the OpenID.
|
com.liferay.portal.model.User |
fetchUserByScreenName(long companyId,
java.lang.String screenName)
Returns the user with the screen name.
|
protected java.util.Date |
getBirthday(int birthdayMonth,
int birthdayDay,
int birthdayYear) |
java.util.List<com.liferay.portal.model.User> |
getCompanyUsers(long companyId,
int start,
int end)
Returns a range of all the users belonging to the company.
|
int |
getCompanyUsersCount(long companyId)
Returns the number of users belonging to the company.
|
com.liferay.portal.model.User |
getDefaultUser(long companyId)
Returns the default user for the company.
|
long |
getDefaultUserId(long companyId)
Returns the primary key of the default user for the company.
|
long[] |
getGroupUserIds(long groupId)
Returns the primary keys of all the users belonging to the group.
|
int |
getGroupUsersCount(long groupId,
int status)
Returns the number of users with the status belonging to the group.
|
java.util.List<com.liferay.portal.model.User> |
getInheritedRoleUsers(long roleId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
protected java.lang.String |
getLogin(java.lang.String login) |
java.util.List<com.liferay.portal.model.User> |
getNoAnnouncementsDeliveries(java.lang.String type)
Returns all the users who have not had any announcements of the type
delivered, excluding the default user.
|
java.util.List<com.liferay.portal.model.User> |
getNoContacts()
Returns all the users who do not have any contacts.
|
java.util.List<com.liferay.portal.model.User> |
getNoGroups()
Returns all the users who do not belong to any groups, excluding the
default user.
|
long[] |
getOrganizationUserIds(long organizationId)
Returns the primary keys of all the users belonging to the organization.
|
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.
|
int |
getRoleUsersCount(long roleId,
int status)
Returns the number of users with the status belonging to the role.
|
java.util.List<com.liferay.portal.model.User> |
getSocialUsers(long userId,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
Returns an ordered range of all the users with a social relation of the
type with the user.
|
java.util.List<com.liferay.portal.model.User> |
getSocialUsers(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
Returns an ordered range of all the users with a social relation with the
user.
|
java.util.List<com.liferay.portal.model.User> |
getSocialUsers(long userId1,
long userId2,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
Returns an ordered range of all the users with a mutual social relation
of the type with both of the given users.
|
java.util.List<com.liferay.portal.model.User> |
getSocialUsers(long userId1,
long userId2,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
Returns an ordered range of all the users with a mutual social relation
with both of the given users.
|
int |
getSocialUsersCount(long userId)
Returns the number of users with a social relation with the user.
|
int |
getSocialUsersCount(long userId,
int type)
Returns the number of users with a social relation of the type with the
user.
|
int |
getSocialUsersCount(long userId1,
long userId2)
Returns the number of users with a mutual social relation with both of
the given users.
|
int |
getSocialUsersCount(long userId1,
long userId2,
int type)
Returns the number of users with a mutual social relation of the type
with both of the given users.
|
com.liferay.portal.model.User |
getUserByContactId(long contactId)
Returns the user with the contact ID.
|
com.liferay.portal.model.User |
getUserByEmailAddress(long companyId,
java.lang.String emailAddress)
Returns the user with the email address.
|
com.liferay.portal.model.User |
getUserByFacebookId(long companyId,
long facebookId)
Returns the user with the Facebook ID.
|
com.liferay.portal.model.User |
getUserById(long userId)
Returns the user with the primary key.
|
com.liferay.portal.model.User |
getUserById(long companyId,
long userId)
Returns the user with the primary key from the company.
|
com.liferay.portal.model.User |
getUserByOpenId(long companyId,
java.lang.String openId)
Returns the user with the OpenID.
|
com.liferay.portal.model.User |
getUserByPortraitId(long portraitId)
Returns the user with the portrait ID.
|
com.liferay.portal.model.User |
getUserByScreenName(long companyId,
java.lang.String screenName)
Returns the user with the screen name.
|
com.liferay.portal.model.User |
getUserByUuid(java.lang.String uuid)
Deprecated.
As of 6.2.0, replaced by
getUserByUuidAndCompanyId(String, long) |
com.liferay.portal.model.User |
getUserByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the user with the UUID.
|
int |
getUserGroupUsersCount(long userGroupId,
int status)
Returns the number of users with the status belonging to the user group.
|
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.
|
protected long[] |
getUserIds(java.util.List<com.liferay.portal.model.User> users) |
boolean |
hasPasswordPolicyUser(long passwordPolicyId,
long userId)
Returns
true if the password policy has been assigned to the
user. |
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. |
boolean |
isPasswordExpired(com.liferay.portal.model.User user)
Returns
true if the user's password is expired. |
boolean |
isPasswordExpiringSoon(com.liferay.portal.model.User user)
Returns
true if the password policy is configured to warn
the user that his password is expiring and the remaining time until
expiration is equal or less than the configured warning time. |
com.liferay.portal.model.User |
loadGetDefaultUser(long companyId)
Returns the default user for the company.
|
protected void |
reindex(com.liferay.portal.model.User user) |
java.util.List<com.liferay.portal.model.User> |
search(long companyId,
java.lang.String keywords,
int status,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
Returns an ordered range of all the users who match the keywords and
status, without using the indexer.
|
com.liferay.portal.kernel.search.Hits |
search(long companyId,
java.lang.String keywords,
int status,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort)
Returns an ordered range of all the users who match the keywords and
status, using the indexer.
|
java.util.List<com.liferay.portal.model.User> |
search(long companyId,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
java.lang.String screenName,
java.lang.String emailAddress,
int status,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
boolean andSearch,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
Returns an ordered range of all the users with the status, and whose
first name, middle name, last name, screen name, and email address match
the keywords specified for them, without using the indexer.
|
com.liferay.portal.kernel.search.Hits |
search(long companyId,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
java.lang.String screenName,
java.lang.String emailAddress,
int status,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
boolean andSearch,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort)
Returns an ordered range of all the users with the status, and whose
first name, middle name, last name, screen name, and email address match
the keywords specified for them, using the indexer.
|
protected com.liferay.portal.kernel.search.Hits |
search(long companyId,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
java.lang.String fullName,
java.lang.String screenName,
java.lang.String emailAddress,
java.lang.String street,
java.lang.String city,
java.lang.String zip,
java.lang.String region,
java.lang.String country,
int status,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
boolean andSearch,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
int |
searchCount(long companyId,
java.lang.String keywords,
int status,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
Returns the number of users who match the keywords and status.
|
int |
searchCount(long companyId,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
java.lang.String screenName,
java.lang.String emailAddress,
int status,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
boolean andSearch)
Returns the number of users with the status, and whose first name, middle
name, last name, screen name, and email address match the keywords
specified for them.
|
protected void |
sendEmail(com.liferay.portal.model.User user,
java.lang.String password,
com.liferay.portal.service.ServiceContext serviceContext) |
void |
sendEmailAddressVerification(com.liferay.portal.model.User user,
java.lang.String emailAddress,
com.liferay.portal.service.ServiceContext serviceContext)
Sends an email address verification to the user.
|
void |
sendPassword(long companyId,
java.lang.String emailAddress,
java.lang.String fromName,
java.lang.String fromAddress,
java.lang.String subject,
java.lang.String body,
com.liferay.portal.service.ServiceContext serviceContext)
Sends the password email to the user with the email address.
|
protected void |
setEmailAddress(com.liferay.portal.model.User user,
java.lang.String password,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
java.lang.String emailAddress) |
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,
java.util.List<com.liferay.portal.model.User> users)
Removes the users from the role.
|
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 whether the user has agreed to the terms of use.
|
void |
updateAsset(long userId,
com.liferay.portal.model.User user,
long[] assetCategoryIds,
java.lang.String[] assetTagNames)
Updates the user's asset with the new asset categories and tag names,
removing and adding asset categories and tag names as necessary.
|
com.liferay.portal.model.User |
updateCreateDate(long userId,
java.util.Date createDate)
Updates the user's creation date.
|
com.liferay.portal.model.User |
updateEmailAddress(long userId,
java.lang.String password,
java.lang.String emailAddress1,
java.lang.String emailAddress2)
Updates the user's email address.
|
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 or sends verification email.
|
com.liferay.portal.model.User |
updateEmailAddressVerified(long userId,
boolean emailAddressVerified)
Updates whether the user has verified email address.
|
com.liferay.portal.model.User |
updateFacebookId(long userId,
long facebookId)
Updates the user's Facebook ID.
|
void |
updateGroups(long userId,
long[] newGroupIds,
com.liferay.portal.service.ServiceContext serviceContext)
Sets the groups the user is in, removing and adding groups as necessary.
|
protected void |
updateGroups(long userId,
long[] newGroupIds,
com.liferay.portal.service.ServiceContext serviceContext,
boolean indexingEnabled) |
com.liferay.portal.model.User |
updateIncompleteUser(long creatorUserId,
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 |
updateJobTitle(long userId,
java.lang.String jobTitle)
Updates the user's job title.
|
com.liferay.portal.model.User |
updateLastLogin(long userId,
java.lang.String loginIP)
Updates the user's last login with the current time and the IP address.
|
com.liferay.portal.model.User |
updateLockout(com.liferay.portal.model.User user,
boolean lockout)
Updates whether the user is locked out from logging in.
|
com.liferay.portal.model.User |
updateLockoutByEmailAddress(long companyId,
java.lang.String emailAddress,
boolean lockout)
Updates whether the user is locked out from logging in.
|
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 |
updateLockoutByScreenName(long companyId,
java.lang.String screenName,
boolean lockout)
Updates whether the user is locked out from logging in.
|
com.liferay.portal.model.User |
updateModifiedDate(long userId,
java.util.Date modifiedDate)
Updates the user's modified date.
|
com.liferay.portal.model.User |
updateOpenId(long userId,
java.lang.String openId)
Updates the user's OpenID.
|
protected void |
updateOrganizations(long userId,
long[] newOrganizationIds,
boolean indexingEnabled) |
void |
updateOrganizations(long userId,
long[] newOrganizationIds,
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 |
updatePassword(long userId,
java.lang.String password1,
java.lang.String password2,
boolean passwordReset,
boolean silentUpdate)
Updates the user's password, optionally with tracking and validation of
the change.
|
com.liferay.portal.model.User |
updatePasswordManually(long userId,
java.lang.String password,
boolean passwordEncrypted,
boolean passwordReset,
java.util.Date passwordModifiedDate)
Updates the user's password with manually input information.
|
com.liferay.portal.model.User |
updatePasswordReset(long userId,
boolean passwordReset)
Updates whether the user should be asked to reset their password the next
time they login.
|
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,
com.liferay.portal.service.ServiceContext serviceContext)
Updates the user.
|
protected void |
updateUserGroupRoles(com.liferay.portal.model.User user,
long[] groupIds,
long[] organizationIds,
java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
java.util.List<com.liferay.portal.model.UserGroupRole> previousUserGroupRoles) |
protected void |
validate(long companyId,
long userId,
boolean autoPassword,
java.lang.String password1,
java.lang.String password2,
boolean autoScreenName,
java.lang.String screenName,
java.lang.String emailAddress,
java.lang.String openId,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
long[] organizationIds) |
protected void |
validate(long userId,
java.lang.String screenName,
java.lang.String emailAddress,
java.lang.String openId,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
java.lang.String smsSn) |
protected void |
validateCompanyMaxUsers(long companyId) |
protected void |
validateEmailAddress(long companyId,
java.lang.String emailAddress) |
protected void |
validateEmailAddress(com.liferay.portal.model.User user,
java.lang.String emailAddress1,
java.lang.String emailAddress2) |
protected void |
validateFullName(long companyId,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName) |
protected void |
validateOpenId(long companyId,
long userId,
java.lang.String openId) |
protected void |
validatePassword(long companyId,
long userId,
java.lang.String password1,
java.lang.String password2) |
protected void |
validateReminderQuery(java.lang.String question,
java.lang.String answer) |
protected void |
validateScreenName(long companyId,
long userId,
java.lang.String screenName) |
void |
verifyEmailAddress(java.lang.String ticketKey)
Verifies the email address of the ticket.
|
addGroupUser, addGroupUser, addGroupUsers, addOrganizationUser, addOrganizationUser, addOrganizationUsers, addRoleUser, addRoleUser, addRoleUsers, addTeamUser, addTeamUser, addTeamUsers, addUser, addUserGroupUser, addUserGroupUser, addUserGroupUsers, clearGroupUsers, clearRoleUsers, clearTeamUsers, createUser, deleteGroupUser, deleteGroupUser, deleteGroupUsers, deleteGroupUsers, deleteOrganizationUser, deleteOrganizationUser, deleteOrganizationUsers, deleteOrganizationUsers, deleteRoleUser, deleteRoleUsers, deleteRoleUsers, deleteTeamUser, deleteTeamUser, deleteTeamUsers, deleteTeamUsers, deleteUserGroupUser, deleteUserGroupUsers, deleteUserGroupUsers, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchUser, fetchUserByUuidAndCompanyId, 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, getGroupUsers, getGroupUsers, getGroupUsers, getGroupUsersCount, 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, getOrganizationUsers, getOrganizationUsers, getOrganizationUsers, getOrganizationUsersCount, getOrgGroupRolePersistence, getOrgLaborLocalService, getOrgLaborPersistence, getOrgLaborService, getPasswordPolicyFinder, getPasswordPolicyLocalService, getPasswordPolicyPersistence, getPasswordPolicyRelLocalService, getPasswordPolicyRelPersistence, getPasswordPolicyService, getPasswordTrackerLocalService, getPasswordTrackerPersistence, getPermissionService, getPersistedModel, 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, getRoleUsers, getRoleUsers, getRoleUsers, getRoleUsersCount, getServiceComponentLocalService, getServiceComponentPersistence, getShardLocalService, getShardPersistence, getShoppingCartLocalService, getShoppingCartPersistence, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSocialActivityService, getSocialRequestLocalService, getSocialRequestPersistence, getSocialRequestService, getStagingLocalService, getStagingService, getSubscriptionLocalService, getSubscriptionPersistence, getSystemEventLocalService, getSystemEventPersistence, getTeamFinder, getTeamLocalService, getTeamPersistence, getTeamService, getTeamUsers, getTeamUsers, getTeamUsers, getTeamUsersCount, getThemeLocalService, getThemeService, getTicketLocalService, getTicketPersistence, getUser, getUserFinder, getUserGroupFinder, getUserGroupGroupRoleLocalService, getUserGroupGroupRolePersistence, getUserGroupGroupRoleService, getUserGroupLocalService, getUserGroupPersistence, getUserGroupRoleFinder, getUserGroupRoleLocalService, getUserGroupRolePersistence, getUserGroupRoleService, getUserGroupService, getUserGroupUsers, getUserGroupUsers, getUserGroupUsers, getUserGroupUsersCount, getUserIdMapperLocalService, getUserIdMapperPersistence, getUserLocalService, getUserNotificationDeliveryLocalService, getUserNotificationDeliveryPersistence, getUserNotificationEventLocalService, getUserNotificationEventPersistence, getUserPersistence, getUsers, getUsersCount, getUserService, getUserTrackerLocalService, getUserTrackerPathLocalService, getUserTrackerPathPersistence, getUserTrackerPersistence, getVirtualHostLocalService, getVirtualHostPersistence, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWebsiteLocalService, getWebsitePersistence, getWebsiteService, getWorkflowDefinitionLinkLocalService, getWorkflowDefinitionLinkPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, hasGroupUser, hasGroupUsers, hasOrganizationUser, hasOrganizationUsers, hasRoleUser, hasRoleUsers, hasTeamUser, hasTeamUsers, hasUserGroupUser, hasUserGroupUsers, 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, setGroupUsers, 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, setOrganizationUsers, 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, setTeamUsers, 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, setWorkflowInstanceLinkPersistence, updateUserpublic com.liferay.portal.model.User addDefaultAdminUser(long companyId,
java.lang.String screenName,
java.lang.String emailAddress,
java.util.Locale locale,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName)
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 nameemailAddress - the user's email addresslocale - the user's localefirstName - the user's first namemiddleName - the user's middle namelastName - the user's last namecom.liferay.portal.kernel.exception.PortalException - n if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addDefaultGroups(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
portal.properties with the key
admin.default.group.names.userId - the primary key of the usercom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addDefaultRoles(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
portal.properties with the key
admin.default.role.names.userId - the primary key of the usercom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addDefaultUserGroups(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
portal.properties with the property
admin.default.user.group.names.userId - the primary key of the usercom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addGroupUsers(long groupId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
addGroupUsers in interface com.liferay.portal.service.UserLocalServiceaddGroupUsers in class UserLocalServiceBaseImplgroupId - the primary key of the groupuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalException - if a group or user with the primary key could not
be foundcom.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
addOrganizationUsers in interface com.liferay.portal.service.UserLocalServiceaddOrganizationUsers in class UserLocalServiceBaseImplorganizationId - 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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addPasswordPolicyUsers(long passwordPolicyId,
long[] userIds)
throws com.liferay.portal.kernel.exception.SystemException
passwordPolicyId - the primary key of the password policyuserIds - the primary keys of the userscom.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
addRoleUsers in interface com.liferay.portal.service.UserLocalServiceaddRoleUsers in class UserLocalServiceBaseImplroleId - 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 foundcom.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
addTeamUsers in interface com.liferay.portal.service.UserLocalServiceaddTeamUsers in class UserLocalServiceBaseImplteamId - 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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User addUser(long creatorUserId,
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.
creatorUserId - the primary key of the creatorcompanyId - 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 invalidcom.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
addUserGroupUsers in interface com.liferay.portal.service.UserLocalServiceaddUserGroupUsers in class UserLocalServiceBaseImpluserGroupId - 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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User addUserWithWorkflow(long creatorUserId,
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.
creatorUserId - the primary key of the creatorcompanyId - 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 invalidcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void afterPropertiesSet()
afterPropertiesSet in class UserLocalServiceBaseImplpublic int authenticateByEmailAddress(long companyId,
java.lang.String emailAddress,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String[]> headerMap,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
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 addresspassword - the user's passwordheaderMap - the header map from the authentication requestparameterMap - the parameter map from the authentication requestresultsMap - the map of authentication results (may be nil). After
a succesful authentication the user's primary key will be placed
under the key userId.Authenticator.FAILURE
indicating that the user's credentials are invalid, Authenticator.SUCCESS
indicating a successful login, or Authenticator.DNE indicating
that a user with that login does not exist.com.liferay.portal.kernel.exception.PortalException - if emailAddress or
password was nullcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredAuthPipelinepublic int authenticateByScreenName(long companyId,
java.lang.String screenName,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String[]> headerMap,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
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 namepassword - the user's passwordheaderMap - the header map from the authentication requestparameterMap - the parameter map from the authentication requestresultsMap - the map of authentication results (may be nil). After
a succesful authentication the user's primary key will be placed
under the key userId.Authenticator.FAILURE
indicating that the user's credentials are invalid, Authenticator.SUCCESS
indicating a successful login, or Authenticator.DNE indicating
that a user with that login does not exist.com.liferay.portal.kernel.exception.PortalException - if screenName or
password was nullcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredAuthPipelinepublic int authenticateByUserId(long companyId,
long userId,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String[]> headerMap,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the user's companyuserId - the user's primary keypassword - the user's passwordheaderMap - the header map from the authentication requestparameterMap - the parameter map from the authentication requestresultsMap - the map of authentication results (may be nil). After
a succesful authentication the user's primary key will be placed
under the key userId.Authenticator.FAILURE
indicating that the user's credentials are invalid, Authenticator.SUCCESS
indicating a successful login, or Authenticator.DNE indicating
that a user with that login does not exist.com.liferay.portal.kernel.exception.PortalException - if userId or password
was nullcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredAuthPipeline@Transactional(propagation=SUPPORTS,
readOnly=true)
public long authenticateForBasic(long companyId,
java.lang.String authType,
java.lang.String login,
java.lang.String password)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
tunnel-web.
Authentication type specifies what login contains.The valid
values are:
CompanyConstants.AUTH_TYPE_EA - login is the
user's email address
CompanyConstants.AUTH_TYPE_SN - login is the
user's screen name
CompanyConstants.AUTH_TYPE_ID - login is the
user's primary key
companyId - the primary key of the user's companyauthType - the type of authentication to performlogin - either the user's email address, screen name, or primary
key depending on the value of authTypepassword - the user's passwordAuthenticator.FAILURE
indicating that the user's credentials are invalid, Authenticator.SUCCESS
indicating a successful login, or Authenticator.DNE indicating
that a user with that login does not exist.com.liferay.portal.kernel.exception.PortalException - if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurred@Transactional(propagation=SUPPORTS,
readOnly=true)
public long authenticateForDigest(long companyId,
java.lang.String username,
java.lang.String realm,
java.lang.String nonce,
java.lang.String method,
java.lang.String uri,
java.lang.String response)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
tunnel-web.companyId - the primary key of the user's companyusername - either the user's email address, screen name, or primary
keyrealm - unusednonce - the number used oncemethod - the request methoduri - the request URIresponse - the authentication response hash0 otherwisecom.liferay.portal.kernel.exception.PortalException - if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurred@Transactional(propagation=SUPPORTS,
readOnly=true)
public boolean authenticateForJAAS(long userId,
java.lang.String encPassword)
userId - the primary key of the userencPassword - the encrypted passwordtrue if authentication is successful;
false otherwisepublic void checkLockout(com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
user - the usercom.liferay.portal.kernel.exception.PortalException - if the user was determined to still be locked outcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void checkLoginFailure(com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.SystemException
user - the usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void checkLoginFailureByEmailAddress(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 void checkLoginFailureById(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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void checkLoginFailureByScreenName(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 void checkPasswordExpired(com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
user - the usercom.liferay.portal.kernel.exception.PortalException - if the user's password has expired and the grace
login limit has been exceededcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void clearOrganizationUsers(long organizationId)
throws com.liferay.portal.kernel.exception.SystemException
clearOrganizationUsers in interface com.liferay.portal.service.UserLocalServiceclearOrganizationUsers in class UserLocalServiceBaseImplorganizationId - the primary key of the organizationcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void clearUserGroupUsers(long userGroupId)
throws com.liferay.portal.kernel.exception.SystemException
clearUserGroupUsers in interface com.liferay.portal.service.UserLocalServiceclearUserGroupUsers in class UserLocalServiceBaseImpluserGroupId - the primary key of the user groupcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void completeUserRegistration(com.liferay.portal.model.User user,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
user - the userserviceContext - the service context to be applied. You can specify
an unencrypted custom password for the user via attribute
passwordUnencrypted. You automatically generate a
password for the user by setting attribute
autoPassword to true. You can send a
confirmation email to the user by setting attribute
sendEmail to true.com.liferay.portal.kernel.exception.PortalException - if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.kernel.util.KeyValuePair decryptUserId(long companyId,
java.lang.String name,
java.lang.String password)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the user's companyname - the encrypted primary key of the userpassword - the encrypted password of the usercom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be found
or if the user's password was incorrectcom.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
or if the user's portrait could not be foundcom.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
deleteRoleUser in interface com.liferay.portal.service.UserLocalServicedeleteRoleUser in class UserLocalServiceBaseImplroleId - 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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User deleteUser(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
deleteUser in interface com.liferay.portal.service.UserLocalServicedeleteUser in class UserLocalServiceBaseImpluserId - the primary key of the usercom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User deleteUser(com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
deleteUser in interface com.liferay.portal.service.UserLocalServicedeleteUser in class UserLocalServiceBaseImpluser - the usercom.liferay.portal.kernel.exception.PortalException - if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void deleteUserGroupUser(long userGroupId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
deleteUserGroupUser in interface com.liferay.portal.service.UserLocalServicedeleteUserGroupUser in class UserLocalServiceBaseImpluserGroupId - the primary key of the user groupuserId - the primary key of the usercom.liferay.portal.kernel.exception.PortalException - if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurred@Transactional(propagation=SUPPORTS,
readOnly=true)
public java.lang.String encryptUserId(java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
name - the primary key of the usercom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User fetchUserByEmailAddress(long companyId,
java.lang.String emailAddress)
throws com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the user's companyemailAddress - the user's email addressnull if a user
with the email address could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User fetchUserByFacebookId(long companyId,
long facebookId)
throws com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the user's companyfacebookId - the user's Facebook IDnull if a user
with the Facebook ID could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User fetchUserById(long userId)
throws com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the usernull if a user
with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User fetchUserByOpenId(long companyId,
java.lang.String openId)
throws com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the user's companyopenId - the user's OpenIDnull if a user with the
OpenID could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User fetchUserByScreenName(long companyId,
java.lang.String screenName)
throws com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the user's companyscreenName - the user's screen namenull if a user
with the screen name could not be foundcom.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.SystemException
Useful when paginating results. Returns a maximum of end -
start instances. start and end are not
primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end to QueryUtil.ALL_POS will return the full
result set.
companyId - the primary key of the companystart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int getCompanyUsersCount(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the companycom.liferay.portal.kernel.exception.SystemException - if a system exception occurred@Skip
public com.liferay.portal.model.User getDefaultUser(long companyId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the companycom.liferay.portal.kernel.exception.PortalException - if a default user for the company could not be
foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurred@Skip
public long getDefaultUserId(long companyId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the companycom.liferay.portal.kernel.exception.PortalException - if a default user for the company could not be
foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic long[] getGroupUserIds(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
groupId - the primary key of the groupcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int getGroupUsersCount(long groupId,
int status)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
groupId - the primary key of the groupstatus - the workflow statuscom.liferay.portal.kernel.exception.PortalException - if a group with the primary key could not be
foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.User> getInheritedRoleUsers(long roleId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portal.model.User> getNoAnnouncementsDeliveries(java.lang.String type)
throws com.liferay.portal.kernel.exception.SystemException
type - the type of announcementcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.User> getNoContacts()
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.User> getNoGroups()
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic long[] getOrganizationUserIds(long organizationId)
throws com.liferay.portal.kernel.exception.SystemException
organizationId - the primary key of the organizationcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int getOrganizationUsersCount(long organizationId,
int status)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
organizationId - the primary key of the organizationstatus - the workflow statuscom.liferay.portal.kernel.exception.PortalException - if an organization with the primary key could not
be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic long[] getRoleUserIds(long roleId)
throws com.liferay.portal.kernel.exception.SystemException
roleId - the primary key of the rolecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int getRoleUsersCount(long roleId,
int status)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
roleId - the primary key of the rolestatus - the workflow statuscom.liferay.portal.kernel.exception.PortalException - if an role with the primary key could not be
foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.User> getSocialUsers(long userId,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end -
start instances. start and end are not
primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end to QueryUtil.ALL_POS will return the full
result set.
userId - the primary key of the usertype - the type of social relation. The possible types can be found
in SocialRelationConstants.start - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)obc - the comparator to order the users by (optionally
null)com.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.User> getSocialUsers(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end -
start instances. start and end are not
primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end to QueryUtil.ALL_POS will return the full
result set.
userId - the primary key of the userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)obc - the comparator to order the users by (optionally
null)com.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.User> getSocialUsers(long userId1,
long userId2,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end -
start instances. start and end are not
primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end to QueryUtil.ALL_POS will return the full
result set.
userId1 - the primary key of the first useruserId2 - the primary key of the second usertype - the type of social relation. The possible types can be found
in SocialRelationConstants.start - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)obc - the comparator to order the users by (optionally
null)com.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.User> getSocialUsers(long userId1,
long userId2,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end -
start instances. start and end are not
primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end to QueryUtil.ALL_POS will return the full
result set.
userId1 - the primary key of the first useruserId2 - the primary key of the second userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)obc - the comparator to order the users by (optionally
null)com.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int getSocialUsersCount(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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int getSocialUsersCount(long userId,
int type)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the usertype - the type of social relation. The possible types can be found
in SocialRelationConstants.com.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int getSocialUsersCount(long userId1,
long userId2)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId1 - the primary key of the first useruserId2 - the primary key of the second usercom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int getSocialUsersCount(long userId1,
long userId2,
int type)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId1 - the primary key of the first useruserId2 - the primary key of the second usertype - the type of social relation. The possible types can be found
in SocialRelationConstants.com.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User getUserByContactId(long contactId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
contactId - the user's contact IDcom.liferay.portal.kernel.exception.PortalException - if a user with the contact ID could not be foundcom.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
foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User getUserByFacebookId(long companyId,
long facebookId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the user's companyfacebookId - the user's Facebook IDcom.liferay.portal.kernel.exception.PortalException - if a user with the Facebook ID could not be foundcom.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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User getUserById(long companyId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the user's companyuserId - the primary key of the usercom.liferay.portal.kernel.exception.PortalException - if a user with the primary key from the company
could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User getUserByOpenId(long companyId,
java.lang.String openId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the user's companyopenId - the user's OpenIDcom.liferay.portal.kernel.exception.PortalException - if a user with the OpenID could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User getUserByPortraitId(long portraitId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
portraitId - the user's portrait IDcom.liferay.portal.kernel.exception.PortalException - if a user with the portrait ID could not be foundcom.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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User getUserByUuid(java.lang.String uuid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getUserByUuidAndCompanyId(String, long)uuid - the user's UUIDcom.liferay.portal.kernel.exception.PortalException - if a user with the UUID could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User getUserByUuidAndCompanyId(java.lang.String uuid,
long companyId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getUserByUuidAndCompanyId in interface com.liferay.portal.service.UserLocalServicegetUserByUuidAndCompanyId in class UserLocalServiceBaseImpluuid - the user's UUIDcompanyId - the primary key of the user's companycom.liferay.portal.kernel.exception.PortalException - if a user with the UUID could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int getUserGroupUsersCount(long userGroupId,
int status)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userGroupId - the primary key of the user groupstatus - the workflow statuscom.liferay.portal.kernel.exception.PortalException - if a user group with the primary key could not be
foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic 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 hasPasswordPolicyUser(long passwordPolicyId,
long userId)
throws com.liferay.portal.kernel.exception.SystemException
true if the password policy has been assigned to the
user.passwordPolicyId - the primary key of the password policyuserId - the primary key of the usertrue if the password policy is assigned to the user;
false otherwisecom.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 boolean isPasswordExpired(com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
true if the user's password is expired.user - the usertrue if the user's password is expired;
false otherwisecom.liferay.portal.kernel.exception.PortalException - if the password policy for the user could not be
foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic boolean isPasswordExpiringSoon(com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
true if the password policy is configured to warn
the user that his password is expiring and the remaining time until
expiration is equal or less than the configured warning time.user - the usertrue if the user's password is expiring soon;
false otherwisecom.liferay.portal.kernel.exception.PortalException - if the password policy for the user could not be
foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User loadGetDefaultUser(long companyId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the companycom.liferay.portal.kernel.exception.PortalException - if the user could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.User> search(long companyId,
java.lang.String keywords,
int status,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
search(long, String, int, LinkedHashMap, int, int, Sort)
instead of this method wherever possible for performance reasons.
Useful when paginating results. Returns a maximum of end -
start instances. start and end are not
primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end to QueryUtil.ALL_POS will return the full
result set.
companyId - the primary key of the user's companykeywords - the keywords (space separated), which may occur in the
user's first name, middle name, last name, screen name, or email
addressstatus - the workflow statusparams - the finder parameters (optionally null). For
more information see UserFinder.start - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)obc - the comparator to order the users by (optionally
null)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredUserFinderpublic com.liferay.portal.kernel.search.Hits search(long companyId,
java.lang.String keywords,
int status,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end -
start instances. start and end are not
primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end to QueryUtil.ALL_POS will return the full
result set.
companyId - the primary key of the user's companykeywords - the keywords (space separated), which may occur in the
user's first name, middle name, last name, screen name, or email
addressstatus - the workflow statusparams - the indexer parameters (optionally null). For
more information see UserIndexer.start - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)sort - the field and direction to sort by (optionally
null)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredUserIndexerpublic java.util.List<com.liferay.portal.model.User> search(long companyId,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
java.lang.String screenName,
java.lang.String emailAddress,
int status,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
boolean andSearch,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
search(long, String,
String, String, String, String, int, LinkedHashMap, boolean, int, int,
Sort) instead of this method wherever possible for performance reasons.
Useful when paginating results. Returns a maximum of end -
start instances. start and end are not
primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end to QueryUtil.ALL_POS will return the full
result set.
companyId - the primary key of the user's companyfirstName - the first name keywords (space separated)middleName - the middle name keywordslastName - the last name keywordsscreenName - the screen name keywordsemailAddress - the email address keywordsstatus - the workflow statusparams - the finder parameters (optionally null). For
more information see UserFinder.andSearch - whether every field must match its keywords, or just
one field. For example, "users with the first name 'bob' and
last name 'smith'" vs "users with the first name 'bob'
or the last name 'smith'".start - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)obc - the comparator to order the users by (optionally
null)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredUserFinderpublic com.liferay.portal.kernel.search.Hits search(long companyId,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
java.lang.String screenName,
java.lang.String emailAddress,
int status,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
boolean andSearch,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end -
start instances. start and end are not
primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end to QueryUtil.ALL_POS will return the full
result set.
companyId - the primary key of the user's companyfirstName - the first name keywords (space separated)middleName - the middle name keywordslastName - the last name keywordsscreenName - the screen name keywordsemailAddress - the email address keywordsstatus - the workflow statusparams - the indexer parameters (optionally null). For
more information see UserIndexer.andSearch - whether every field must match its keywords, or just
one field. For example, "users with the first name 'bob' and
last name 'smith'" vs "users with the first name 'bob'
or the last name 'smith'".start - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)sort - the field and direction to sort by (optionally
null)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredUserIndexerpublic int searchCount(long companyId,
java.lang.String keywords,
int status,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
throws com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the user's companykeywords - the keywords (space separated), which may occur in the
user's first name, middle name, last name, screen name, or email
addressstatus - the workflow statusparams - the finder parameters (optionally null). For
more information see UserFinder.com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int searchCount(long companyId,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
java.lang.String screenName,
java.lang.String emailAddress,
int status,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
boolean andSearch)
throws com.liferay.portal.kernel.exception.SystemException
companyId - the primary key of the user's companyfirstName - the first name keywords (space separated)middleName - the middle name keywordslastName - the last name keywordsscreenName - the screen name keywordsemailAddress - the email address keywordsstatus - the workflow statusparams - the finder parameters (optionally null). For
more information see UserFinder.andSearch - whether every field must match its keywords, or just
one field. For example, "users with the first name 'bob' and
last name 'smith'" vs "users with the first name 'bob'
or the last name 'smith'".com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void sendEmailAddressVerification(com.liferay.portal.model.User user,
java.lang.String emailAddress,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
user - the verification email recipientemailAddress - the recipient's email addressserviceContext - 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 portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void sendPassword(long companyId,
java.lang.String emailAddress,
java.lang.String fromName,
java.lang.String fromAddress,
java.lang.String subject,
java.lang.String body,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
portal.properties with the
admin.email.password keys.companyId - the primary key of the user's companyemailAddress - the user's email addressfromName - the name of the individual that the email should be fromfromAddress - the address of the individual that the email should
be fromsubject - the email subject. If null, the subject
specified in portal.properties will be used.body - the email body. If null, the body specified in
portal.properties will be used.serviceContext - the service context to be appliedcom.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 void setRoleUsers(long roleId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
setRoleUsers in interface com.liferay.portal.service.UserLocalServicesetRoleUsers in class UserLocalServiceBaseImplroleId - the primary key of the roleuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalException - if a portal exception occurredcom.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
setUserGroupUsers in interface com.liferay.portal.service.UserLocalServicesetUserGroupUsers in class UserLocalServiceBaseImpluserGroupId - the primary key of the user groupuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.PortalException - if a portal exception occurredcom.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 a portal exception occurredcom.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 a portal exception occurredcom.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 a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void unsetPasswordPolicyUsers(long passwordPolicyId,
long[] userIds)
throws com.liferay.portal.kernel.exception.SystemException
passwordPolicyId - the primary key of the password policyuserIds - the primary keys of the userscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void unsetRoleUsers(long roleId,
java.util.List<com.liferay.portal.model.User> users)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
roleId - the primary key of the roleusers - the userscom.liferay.portal.kernel.exception.PortalException - if a portal exception occurredcom.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 a portal exception occurredcom.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 a portal exception occurredcom.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 a portal exception occurredcom.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 agreet to the terms of
usecom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void updateAsset(long userId,
com.liferay.portal.model.User user,
long[] assetCategoryIds,
java.lang.String[] assetTagNames)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the useruser - ID the primary key of the userassetCategoryIds - the primary key's of the new asset categoriesassetTagNames - the new asset tag namescom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateCreateDate(long userId,
java.util.Date createDate)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the usercreateDate - the new creation datecom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.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)
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 confirmationcom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateEmailAddressVerified(long userId,
boolean emailAddressVerified)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the useremailAddressVerified - whether the user has verified email addresscom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateFacebookId(long userId,
long facebookId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the userfacebookId - the user's new Facebook IDcom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void updateGroups(long userId,
long[] newGroupIds,
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 usernewGroupIds - the primary keys of the groupsserviceContext - the service context to be applied (optionally
null)com.liferay.portal.kernel.exception.PortalException - if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateIncompleteUser(long creatorUserId,
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
creatorUserId - the primary key of the creatorcompanyId - 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 expando bridge attributes for the
user.com.liferay.portal.kernel.exception.PortalException - if the user's information was invalidcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateJobTitle(long userId,
java.lang.String jobTitle)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the userjobTitle - the user's job titlecom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be found
or if a contact could not be found matching the user's contact IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateLastLogin(long userId,
java.lang.String loginIP)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the userloginIP - the IP address the user logged in fromcom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateLockout(com.liferay.portal.model.User user,
boolean lockout)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
user - the userlockout - whether the user is locked outcom.liferay.portal.kernel.exception.PortalException - if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateLockoutByEmailAddress(long companyId,
java.lang.String emailAddress,
boolean lockout)
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 addresslockout - whether the user is locked outcom.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 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 a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updateLockoutByScreenName(long companyId,
java.lang.String screenName,
boolean lockout)
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 namelockout - whether the user is locked outcom.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 com.liferay.portal.model.User updateModifiedDate(long userId,
java.util.Date modifiedDate)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the usermodifiedDate - the new modified datecom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void updateOrganizations(long userId,
long[] newOrganizationIds,
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 usernewOrganizationIds - 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 foundcom.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 foundcom.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,
boolean silentUpdate)
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 loginsilentUpdate - whether the password should be updated without being
tracked, or validated. Primarily used for password imports.com.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updatePasswordManually(long userId,
java.lang.String password,
boolean passwordEncrypted,
boolean passwordReset,
java.util.Date passwordModifiedDate)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the userpassword - the user's new passwordpasswordEncrypted - the user's new encrypted passwordpasswordReset - whether the user should be asked to reset their
password the next time they loginpasswordModifiedDate - the new password modified datecom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.User updatePasswordReset(long userId,
boolean passwordReset)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the userpasswordReset - whether the user should be asked to reset their
password the next time they logincom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.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
or if the new portrait was invalidcom.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
or if the new question or answer were invalidcom.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
or if the new screen name was invalidcom.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
foundcom.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 foundcom.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
or if the new information was invalidcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void verifyEmailAddress(java.lang.String ticketKey)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
ticketKey - the ticket keycom.liferay.portal.kernel.exception.PortalException - if a ticket matching the ticket key could not be
found, if the ticket has expired, if the ticket is an email
address ticket, or if the email address is invalidcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected void addDefaultRolesAndTeams(long groupId,
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 int authenticate(long companyId,
java.lang.String login,
java.lang.String password,
java.lang.String authType,
java.util.Map<java.lang.String,java.lang.String[]> headerMap,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
Authentication type specifies what login contains.The valid
values are:
CompanyConstants.AUTH_TYPE_EA - login is the
user's email address
CompanyConstants.AUTH_TYPE_SN - login is the
user's screen name
CompanyConstants.AUTH_TYPE_ID - login is the
user's primary key
companyId - the primary key of the user's companylogin - either the user's email address, screen name, or primary
key depending on the value of authTypepassword - the user's passwordauthType - the type of authentication to performheaderMap - the header map from the authentication requestparameterMap - the parameter map from the authentication requestresultsMap - the map of authentication results (may be nil). After
a succesful authentication the user's primary key will be placed
under the key userId.Authenticator.FAILURE
indicating that the user's credentials are invalid, Authenticator.SUCCESS
indicating a successful login, or Authenticator.DNE indicating
that a user with that login does not exist.com.liferay.portal.kernel.exception.PortalException - if login or password
was nullcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredAuthPipelineprotected java.util.Date getBirthday(int birthdayMonth,
int birthdayDay,
int birthdayYear)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected java.lang.String getLogin(java.lang.String login)
protected long[] getUserIds(java.util.List<com.liferay.portal.model.User> users)
protected void reindex(com.liferay.portal.model.User user)
protected com.liferay.portal.kernel.search.Hits search(long companyId,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
java.lang.String fullName,
java.lang.String screenName,
java.lang.String emailAddress,
java.lang.String street,
java.lang.String city,
java.lang.String zip,
java.lang.String region,
java.lang.String country,
int status,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
boolean andSearch,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionprotected void sendEmail(com.liferay.portal.model.User user,
java.lang.String password,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionprotected void setEmailAddress(com.liferay.portal.model.User user,
java.lang.String password,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
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 updateGroups(long userId,
long[] newGroupIds,
com.liferay.portal.service.ServiceContext serviceContext,
boolean indexingEnabled)
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 updateOrganizations(long userId,
long[] newOrganizationIds,
boolean indexingEnabled)
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 updateUserGroupRoles(com.liferay.portal.model.User user,
long[] groupIds,
long[] organizationIds,
java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
java.util.List<com.liferay.portal.model.UserGroupRole> previousUserGroupRoles)
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 validate(long companyId,
long userId,
boolean autoPassword,
java.lang.String password1,
java.lang.String password2,
boolean autoScreenName,
java.lang.String screenName,
java.lang.String emailAddress,
java.lang.String openId,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
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 void validate(long userId,
java.lang.String screenName,
java.lang.String emailAddress,
java.lang.String openId,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName,
java.lang.String smsSn)
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 validateCompanyMaxUsers(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.SystemExceptionprotected void validateEmailAddress(long companyId,
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 validateEmailAddress(com.liferay.portal.model.User user,
java.lang.String emailAddress1,
java.lang.String emailAddress2)
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 validateFullName(long companyId,
java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName)
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 validateOpenId(long companyId,
long userId,
java.lang.String openId)
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 validatePassword(long companyId,
long userId,
java.lang.String password1,
java.lang.String password2)
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 validateReminderQuery(java.lang.String question,
java.lang.String answer)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void validateScreenName(long companyId,
long userId,
java.lang.String screenName)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException