Java com.liferay.portal.kernel.service UserLocalServiceUtil fields, constructors, methods, implement or subclass

Example usage for Java com.liferay.portal.kernel.service UserLocalServiceUtil fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.liferay.portal.kernel.service UserLocalServiceUtil.

The text is from its open source code.

Method

voidaddGroupUser(long groupId, long userId)
voidaddGroupUser(long groupId, com.liferay.portal.kernel.model.User user)
voidaddGroupUsers(long groupId, java.util.List users)
voidaddGroupUsers(long groupId, long[] userIds)
voidaddOrganizationUser(long organizationId, long userId)
voidaddOrganizationUser(long organizationId, com.liferay.portal.kernel.model.User user)
voidaddOrganizationUsers(long organizationId, java.util.List users)
voidaddOrganizationUsers(long organizationId, long[] userIds)
voidaddTeamUser(long teamId, long userId)
voidaddTeamUser(long teamId, com.liferay.portal.kernel.model.User user)
com.liferay.portal.kernel.model.UseraddUser(long creatorUserId, long companyId, boolean autoPassword, String password1, String password2, boolean autoScreenName, String screenName, String emailAddress, long facebookId, String openId, java.util.Locale locale, String firstName, String middleName, String lastName, long prefixId, long suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, String jobTitle, long[] groupIds, long[] organizationIds, long[] roleIds, long[] userGroupIds, boolean sendEmail, ServiceContext serviceContext)
Adds a user.
com.liferay.portal.kernel.model.UseraddUserWithWorkflow(long creatorUserId, long companyId, boolean autoPassword, String password1, String password2, boolean autoScreenName, String screenName, String emailAddress, long facebookId, String openId, java.util.Locale locale, String firstName, String middleName, String lastName, long prefixId, long suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, String jobTitle, long[] groupIds, long[] organizationIds, long[] roleIds, long[] userGroupIds, boolean sendEmail, ServiceContext serviceContext)
Adds a user with workflow.
voiddeleteOrganizationUsers(long organizationId, java.util.List users)
voiddeleteOrganizationUsers(long organizationId, long[] userIds)
com.liferay.portal.kernel.model.UserdeleteUser(long userId)
Deletes the user with the primary key from the database.
com.liferay.portal.kernel.model.UserdeleteUser(com.liferay.portal.kernel.model.User user)
Deletes the user from the database.
com.liferay.portal.kernel.model.UserfetchUser(long userId)
com.liferay.portal.kernel.model.UserfetchUserByEmailAddress(long companyId, String emailAddress)
Returns the user with the email address.
com.liferay.portal.kernel.model.UserfetchUserById(long userId)
Returns the user with the primary key.
java.util.ListgetCompanyUsers(long companyId, int start, int end)
Returns a range of all the users belonging to the company.
intgetCompanyUsersCount(long companyId)
Returns the number of users belonging to the company.
com.liferay.portal.kernel.model.UsergetDefaultUser(long companyId)
Returns the default user for the company.
longgetDefaultUserId(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.
java.util.ListgetGroupUsers(long groupId)
long[]getOrganizationPrimaryKeys(long userId)
Returns the organizationIds of the organizations associated with the user.
java.util.ListgetOrganizationUsers(long organizationId)
long[]getRoleUserIds(long roleId)
Returns the primary keys of all the users belonging to the role.
UserLocalServicegetService()
java.util.ListgetSocialUsers(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.
java.util.ListgetSocialUsers(long userId, int socialRelationType, String socialRelationTypeComparator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
java.util.ListgetSocialUsers(long userId1, long userId2, int socialRelationType, 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.ListgetTeamUsers(long teamId)
com.liferay.portal.kernel.model.UsergetUser(long userId)
Returns the user with the primary key.
com.liferay.portal.kernel.model.UsergetUserByEmailAddress(long companyId, String emailAddress)
Returns the user with the email address.
com.liferay.portal.kernel.model.UsergetUserById(long userId)
Returns the user with the primary key.
com.liferay.portal.kernel.model.UsergetUserById(long companyId, long userId)
Returns the user with the primary key from the company.
com.liferay.portal.kernel.model.UsergetUserByScreenName(long companyId, String screenName)
Returns the user with the screen name.
com.liferay.portal.kernel.model.UsergetUserByUuidAndCompanyId(String uuid, long companyId)
Returns the user with the matching UUID and company.
java.util.ListgetUserGroupUsers(long userGroupId)
longgetUserIdByEmailAddress(long companyId, String emailAddress)
Returns the primary key of the user with the email address.
java.util.ListgetUsers(int start, int end)
Returns a range of all the users.
booleanhasOrganizationUser(long organizationId, long userId)
booleanhasPasswordPolicyUser(long passwordPolicyId, long userId)
Returns true if the password policy has been assigned to the user.
booleanhasRoleUser(long roleId, long userId)
booleanhasUserGroupUser(long userGroupId, long userId)
java.util.Listsearch(long companyId, String keywords, int status, java.util.LinkedHashMap 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.Hitssearch.Hits search(long companyId, String keywords, int status, java.util.LinkedHashMap 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.
com.liferay.portal.kernel.search.Hitssearch.Hits search(long companyId, String keywords, int status, java.util.LinkedHashMap params, int start, int end, com.liferay.portal.kernel.search.Sort[] sorts)
intsearchCount(long companyId, String keywords, int status, java.util.LinkedHashMap params)
Returns the number of users who match the keywords and status.
java.util.ListsearchSocial(long userId, int[] socialRelationTypes, String keywords, int start, int end)
java.util.ListsearchSocial(long companyId, long[] groupIds, String keywords, int start, int end)
booleansendPassword(long companyId, String emailAddress, String fromName, String fromAddress, String subject, String body, ServiceContext serviceContext)
Sends the password email to the user with the email address.
voidsetRoleUsers(long roleId, long[] userIds)
voidunsetOrganizationUsers(long organizationId, long[] userIds)
Removes the users from the organization.
com.liferay.portal.kernel.model.UserupdateAgreedToTermsOfUse(long userId, boolean agreedToTermsOfUse)
Updates whether the user has agreed to the terms of use.
voidupdateOrganizations(long userId, long[] newOrganizationIds, ServiceContext serviceContext)
Sets the organizations that the user is in, removing and adding organizations as necessary.
com.liferay.portal.kernel.model.UserupdatePasswordReset(long userId, boolean passwordReset)
Updates whether the user should be asked to reset their password the next time they login.
com.liferay.portal.kernel.model.UserupdateReminderQuery(long userId, String question, String answer)
Updates the user's password reset question and answer.
com.liferay.portal.kernel.model.UserupdateUser(com.liferay.portal.kernel.model.User user)
Updates the user in the database or adds it if it does not yet exist.
com.liferay.portal.kernel.model.UserupdateUser(long userId, String oldPassword, String newPassword1, String newPassword2, boolean passwordReset, String reminderQueryQuestion, String reminderQueryAnswer, String screenName, String emailAddress, long facebookId, String openId, boolean hasPortrait, byte[] portraitBytes, String languageId, String timeZoneId, String greeting, String comments, String firstName, String middleName, String lastName, long prefixId, long suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, String smsSn, String facebookSn, String jabberSn, String skypeSn, String twitterSn, String jobTitle, long[] groupIds, long[] organizationIds, long[] roleIds, java.util.List userGroupRoles, long[] userGroupIds, ServiceContext serviceContext)
Updates the user.