Class UserLocalServiceBaseImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.UserLocalServiceBaseImpl
All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.User>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.UserLocalService
Direct Known Subclasses:
UserLocalServiceImpl

public abstract class UserLocalServiceBaseImpl extends com.liferay.portal.kernel.service.BaseLocalServiceImpl implements com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.UserLocalService
Provides the base implementation for the user local service.

This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in UserLocalServiceImpl.

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.liferay.counter.kernel.service.CounterLocalService
     
    protected com.liferay.portal.kernel.service.persistence.GroupPersistence
     
    protected com.liferay.portal.kernel.service.persistence.OrganizationPersistence
     
    protected com.liferay.portal.kernel.service.persistence.RolePersistence
     
    protected com.liferay.portal.kernel.service.persistence.TeamPersistence
     
    protected com.liferay.portal.kernel.service.persistence.UserFinder
     
    protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence
     
    protected com.liferay.portal.kernel.service.UserLocalService
     
    protected com.liferay.portal.kernel.service.persistence.UserPersistence
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addGroupUser(long groupId, long userId)
     
    boolean
    addGroupUser(long groupId, com.liferay.portal.kernel.model.User user)
     
    boolean
    addGroupUsers(long groupId, long[] userIds)
     
    boolean
    addGroupUsers(long groupId, List<com.liferay.portal.kernel.model.User> users)
     
    boolean
    addOrganizationUser(long organizationId, long userId)
     
    boolean
    addOrganizationUser(long organizationId, com.liferay.portal.kernel.model.User user)
     
    boolean
    addOrganizationUsers(long organizationId, long[] userIds)
     
    boolean
    addOrganizationUsers(long organizationId, List<com.liferay.portal.kernel.model.User> users)
     
    boolean
    addRoleUser(long roleId, long userId)
     
    boolean
    addRoleUser(long roleId, com.liferay.portal.kernel.model.User user)
     
    boolean
    addRoleUsers(long roleId, long[] userIds)
     
    boolean
    addRoleUsers(long roleId, List<com.liferay.portal.kernel.model.User> users)
     
    boolean
    addTeamUser(long teamId, long userId)
     
    boolean
    addTeamUser(long teamId, com.liferay.portal.kernel.model.User user)
     
    boolean
    addTeamUsers(long teamId, long[] userIds)
     
    boolean
    addTeamUsers(long teamId, List<com.liferay.portal.kernel.model.User> users)
     
    com.liferay.portal.kernel.model.User
    addUser(com.liferay.portal.kernel.model.User user)
    Adds the user to the database.
    boolean
    addUserGroupUser(long userGroupId, long userId)
     
    boolean
    addUserGroupUser(long userGroupId, com.liferay.portal.kernel.model.User user)
     
    boolean
    addUserGroupUsers(long userGroupId, long[] userIds)
     
    boolean
    addUserGroupUsers(long userGroupId, List<com.liferay.portal.kernel.model.User> users)
     
    void
     
    void
    clearGroupUsers(long groupId)
     
    void
    clearOrganizationUsers(long organizationId)
     
    void
    clearRoleUsers(long roleId)
     
    void
    clearTeamUsers(long teamId)
     
    void
    clearUserGroupUsers(long userGroupId)
     
    com.liferay.portal.kernel.model.PersistedModel
     
    com.liferay.portal.kernel.model.User
    createUser(long userId)
    Creates a new user with the primary key.
    void
    deleteGroupUser(long groupId, long userId)
     
    void
    deleteGroupUser(long groupId, com.liferay.portal.kernel.model.User user)
     
    void
    deleteGroupUsers(long groupId, long[] userIds)
     
    void
    deleteGroupUsers(long groupId, List<com.liferay.portal.kernel.model.User> users)
     
    void
    deleteOrganizationUser(long organizationId, long userId)
     
    void
    deleteOrganizationUser(long organizationId, com.liferay.portal.kernel.model.User user)
     
    void
    deleteOrganizationUsers(long organizationId, long[] userIds)
     
    void
    deleteOrganizationUsers(long organizationId, List<com.liferay.portal.kernel.model.User> users)
     
    com.liferay.portal.kernel.model.PersistedModel
    deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
     
    void
    deleteRoleUser(long roleId, long userId)
     
    void
    deleteRoleUser(long roleId, com.liferay.portal.kernel.model.User user)
     
    void
    deleteRoleUsers(long roleId, long[] userIds)
     
    void
    deleteRoleUsers(long roleId, List<com.liferay.portal.kernel.model.User> users)
     
    void
    deleteTeamUser(long teamId, long userId)
     
    void
    deleteTeamUser(long teamId, com.liferay.portal.kernel.model.User user)
     
    void
    deleteTeamUsers(long teamId, long[] userIds)
     
    void
    deleteTeamUsers(long teamId, List<com.liferay.portal.kernel.model.User> users)
     
    com.liferay.portal.kernel.model.User
    deleteUser(long userId)
    Deletes the user with the primary key from the database.
    com.liferay.portal.kernel.model.User
    deleteUser(com.liferay.portal.kernel.model.User user)
    Deletes the user from the database.
    void
    deleteUserGroupUser(long userGroupId, long userId)
     
    void
    deleteUserGroupUser(long userGroupId, com.liferay.portal.kernel.model.User user)
     
    void
    deleteUserGroupUsers(long userGroupId, long[] userIds)
     
    void
    deleteUserGroupUsers(long userGroupId, List<com.liferay.portal.kernel.model.User> users)
     
    void
     
    <T> T
    dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
     
    int
    dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
     
    com.liferay.portal.kernel.dao.orm.DynamicQuery
     
    <T> List<T>
    dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
    Performs a dynamic query on the database and returns the matching rows.
    <T> List<T>
    dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
    Performs a dynamic query on the database and returns a range of the matching rows.
    <T> List<T>
    dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
    Performs a dynamic query on the database and returns an ordered range of the matching rows.
    long
    dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
    Returns the number of rows matching the dynamic query.
    long
    dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
    Returns the number of rows matching the dynamic query.
    com.liferay.portal.kernel.model.User
    fetchUser(long userId)
     
    com.liferay.portal.kernel.model.User
    fetchUserByExternalReferenceCode(String externalReferenceCode, long companyId)
     
    com.liferay.portal.kernel.model.User
    fetchUserByUuidAndCompanyId(String uuid, long companyId)
    Returns the user with the matching UUID and company.
    com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
     
    com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.User>
     
    com.liferay.counter.kernel.service.CounterLocalService
    Returns the counter local service.
    com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.User>
     
    com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
    getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
     
    long[]
    getGroupPrimaryKeys(long userId)
    Returns the groupIds of the groups associated with the user.
    List<com.liferay.portal.kernel.model.User>
    getGroupUsers(long groupId)
     
    List<com.liferay.portal.kernel.model.User>
    getGroupUsers(long groupId, int start, int end)
     
    List<com.liferay.portal.kernel.model.User>
    getGroupUsers(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
     
    int
    getGroupUsersCount(long groupId)
     
    com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
     
    Class<com.liferay.portal.kernel.model.User>
     
    protected String
     
    long[]
    Returns the organizationIds of the organizations associated with the user.
    List<com.liferay.portal.kernel.model.User>
    getOrganizationUsers(long organizationId)
     
    List<com.liferay.portal.kernel.model.User>
    getOrganizationUsers(long organizationId, int start, int end)
     
    List<com.liferay.portal.kernel.model.User>
    getOrganizationUsers(long organizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
     
    int
    getOrganizationUsersCount(long organizationId)
     
    Returns the OSGi service identifier.
    com.liferay.portal.kernel.model.PersistedModel
     
    long[]
    getRolePrimaryKeys(long userId)
    Returns the roleIds of the roles associated with the user.
    List<com.liferay.portal.kernel.model.User>
    getRoleUsers(long roleId)
     
    List<com.liferay.portal.kernel.model.User>
    getRoleUsers(long roleId, int start, int end)
     
    List<com.liferay.portal.kernel.model.User>
    getRoleUsers(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
     
    int
    getRoleUsersCount(long roleId)
     
    long[]
    getTeamPrimaryKeys(long userId)
    Returns the teamIds of the teams associated with the user.
    List<com.liferay.portal.kernel.model.User>
    getTeamUsers(long teamId)
     
    List<com.liferay.portal.kernel.model.User>
    getTeamUsers(long teamId, int start, int end)
     
    List<com.liferay.portal.kernel.model.User>
    getTeamUsers(long teamId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
     
    int
    getTeamUsersCount(long teamId)
     
    com.liferay.portal.kernel.model.User
    getUser(long userId)
    Returns the user with the primary key.
    com.liferay.portal.kernel.model.User
    getUserByExternalReferenceCode(String externalReferenceCode, long companyId)
     
    com.liferay.portal.kernel.model.User
    getUserByUuidAndCompanyId(String uuid, long companyId)
    Returns the user with the matching UUID and company.
    com.liferay.portal.kernel.service.persistence.UserFinder
    Returns the user finder.
    long[]
    Returns the userGroupIds of the user groups associated with the user.
    List<com.liferay.portal.kernel.model.User>
    getUserGroupUsers(long userGroupId)
     
    List<com.liferay.portal.kernel.model.User>
    getUserGroupUsers(long userGroupId, int start, int end)
     
    List<com.liferay.portal.kernel.model.User>
    getUserGroupUsers(long userGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
     
    int
    getUserGroupUsersCount(long userGroupId)
     
    com.liferay.portal.kernel.service.UserLocalService
    Returns the user local service.
    com.liferay.portal.kernel.service.persistence.UserPersistence
    Returns the user persistence.
    List<com.liferay.portal.kernel.model.User>
    getUsers(int start, int end)
    Returns a range of all the users.
    int
    Returns the number of users.
    boolean
    hasGroupUser(long groupId, long userId)
     
    boolean
    hasGroupUsers(long groupId)
     
    boolean
    hasOrganizationUser(long organizationId, long userId)
     
    boolean
    hasOrganizationUsers(long organizationId)
     
    boolean
    hasRoleUser(long roleId, long userId)
     
    boolean
    hasRoleUsers(long roleId)
     
    boolean
    hasTeamUser(long teamId, long userId)
     
    boolean
    hasTeamUsers(long teamId)
     
    boolean
    hasUserGroupUser(long userGroupId, long userId)
     
    boolean
    hasUserGroupUsers(long userGroupId)
     
    protected void
    initActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery)
     
    protected void
    Performs a SQL query.
    void
    setCounterLocalService(com.liferay.counter.kernel.service.CounterLocalService counterLocalService)
    Sets the counter local service.
    void
    setGroupUsers(long groupId, long[] userIds)
     
    void
    setOrganizationUsers(long organizationId, long[] userIds)
     
    void
    setRoleUsers(long roleId, long[] userIds)
     
    void
    setTeamUsers(long teamId, long[] userIds)
     
    void
    setUserFinder(com.liferay.portal.kernel.service.persistence.UserFinder userFinder)
    Sets the user finder.
    void
    setUserGroupUsers(long userGroupId, long[] userIds)
     
    void
    setUserLocalService(com.liferay.portal.kernel.service.UserLocalService userLocalService)
    Sets the user local service.
    void
    setUserPersistence(com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence)
    Sets the user persistence.
    com.liferay.portal.kernel.model.User
    updateUser(com.liferay.portal.kernel.model.User user)
    Updates the user in the database or adds it if it does not yet exist.
    <R, E extends Throwable>
    R
    updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.User>,R,E> updateUnsafeFunction)
     

    Methods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl

    getClassLoader, getLocalizationMap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService

    fetchPersistedModel

    Methods inherited from interface com.liferay.portal.kernel.service.UserLocalService

    addDefaultAdminUser, addDefaultGroups, addDefaultRoles, addDefaultServiceAccountUser, addDefaultUserGroups, addOrUpdateUser, addPasswordPolicyUsers, addUser, addUserWithWorkflow, authenticateByEmailAddress, authenticateByScreenName, authenticateByUserId, authenticateForBasic, authenticateForDigest, checkLockout, checkLoginFailure, checkLoginFailureByEmailAddress, checkLoginFailureById, checkLoginFailureByScreenName, checkPasswordExpired, completeUserRegistration, deletePortrait, encryptUserId, fetchGuestUser, fetchUserByContactId, fetchUserByEmailAddress, fetchUserByFacebookId, fetchUserByGoogleUserId, fetchUserById, fetchUserByOpenId, fetchUserByPortraitId, fetchUserByScreenName, getCompanyUsers, getCompanyUsersCount, getDefaultUser, getDefaultUserId, getGroupUserIds, getGroupUsers, getGroupUsers, getGroupUsersCount, getGuestUser, getGuestUserId, getInheritedRoleUsers, getNoAnnouncementsDeliveries, getNoGroups, getOrganizationsAndUserGroupsUsersCount, getOrganizationUserIds, getOrganizationUsers, getOrganizationUsers, getOrganizationUsersCount, getRoleUserIds, getRoleUserIds, getRoleUsersCount, getSocialUsers, getSocialUsers, getSocialUsers, getSocialUsersCount, getSocialUsersCount, getSocialUsersCount, getUserByContactId, getUserByEmailAddress, getUserByFacebookId, getUserByGoogleUserId, getUserById, getUserById, getUserByOpenId, getUserByPortraitId, getUserByScreenName, getUserGroupUsersCount, getUserIdByEmailAddress, getUserIdByScreenName, getUsers, getUsersByRoleId, getUsersByRoleName, getUsersCount, hasPasswordPolicyUser, hasRoleUser, isPasswordExpired, loadGetGuestUser, search, search, search, search, search, search, searchBySocial, searchBySocial, searchBySocial, searchBySocial, searchCount, searchCount, searchCounts, searchUsers, searchUsers, searchUsers, searchUsers, sendEmailAddressVerification, sendEmailUserCreationAttempt, sendPassword, sendPasswordByEmailAddress, sendPasswordByScreenName, sendPasswordByUserId, sendPasswordLockout, unsetGroupTeamsUsers, unsetGroupUsers, unsetOrganizationUsers, unsetPasswordPolicyUsers, unsetRoleUsers, unsetRoleUsers, unsetTeamUsers, unsetUserGroupUsers, updateAgreedToTermsOfUse, updateAsset, updateCreateDate, updateEmailAddress, updateEmailAddress, updateEmailAddressVerified, updateExternalReferenceCode, updateExternalReferenceCode, updateFacebookId, updateGoogleUserId, updateGroups, updateIncompleteUser, updateJobTitle, updateLanguageId, updateLastLogin, updateLastLogin, updateLockout, updateLockoutByEmailAddress, updateLockoutById, updateLockoutByScreenName, updateModifiedDate, updateOpenId, updateOrganizations, updatePassword, updatePassword, updatePasswordManually, updatePasswordReset, updatePortrait, updateReminderQuery, updateScreenName, updateStatus, updateStatus, updateUser, validateMaxUsers, verifyEmailAddress
  • Field Details

    • userLocalService

      @BeanReference(type=com.liferay.portal.kernel.service.UserLocalService.class) protected com.liferay.portal.kernel.service.UserLocalService userLocalService
    • userPersistence

      @BeanReference(type=com.liferay.portal.kernel.service.persistence.UserPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence
    • userFinder

      @BeanReference(type=com.liferay.portal.kernel.service.persistence.UserFinder.class) protected com.liferay.portal.kernel.service.persistence.UserFinder userFinder
    • counterLocalService

      @BeanReference(type=com.liferay.counter.kernel.service.CounterLocalService.class) protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService
    • groupPersistence

      @BeanReference(type=com.liferay.portal.kernel.service.persistence.GroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.GroupPersistence groupPersistence
    • organizationPersistence

      @BeanReference(type=com.liferay.portal.kernel.service.persistence.OrganizationPersistence.class) protected com.liferay.portal.kernel.service.persistence.OrganizationPersistence organizationPersistence
    • rolePersistence

      @BeanReference(type=com.liferay.portal.kernel.service.persistence.RolePersistence.class) protected com.liferay.portal.kernel.service.persistence.RolePersistence rolePersistence
    • teamPersistence

      @BeanReference(type=com.liferay.portal.kernel.service.persistence.TeamPersistence.class) protected com.liferay.portal.kernel.service.persistence.TeamPersistence teamPersistence
    • userGroupPersistence

      @BeanReference(type=com.liferay.portal.kernel.service.persistence.UserGroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence userGroupPersistence
  • Constructor Details

    • UserLocalServiceBaseImpl

      public UserLocalServiceBaseImpl()
  • Method Details

    • addUser

      @Indexable(type=REINDEX) public com.liferay.portal.kernel.model.User addUser(com.liferay.portal.kernel.model.User user)
      Adds the user to the database. Also notifies the appropriate model listeners.

      Important: Inspect UserLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      addUser in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      user - the user
      Returns:
      the user that was added
    • createUser

      @Transactional(enabled=false) public com.liferay.portal.kernel.model.User createUser(long userId)
      Creates a new user with the primary key. Does not add the user to the database.
      Specified by:
      createUser in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      userId - the primary key for the new user
      Returns:
      the new user
    • deleteUser

      @Indexable(type=DELETE) public com.liferay.portal.kernel.model.User deleteUser(long userId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the user with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect UserLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteUser in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      userId - the primary key of the user
      Returns:
      the user that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be found
    • deleteUser

      @Indexable(type=DELETE) public com.liferay.portal.kernel.model.User deleteUser(com.liferay.portal.kernel.model.User user) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the user from the database. Also notifies the appropriate model listeners.

      Important: Inspect UserLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteUser in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      user - the user
      Returns:
      the user that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.UserLocalService
    • dslQueryCount

      public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.UserLocalService
    • dynamicQuery

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface com.liferay.portal.kernel.service.UserLocalService
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Specified by:
      dynamicQuery in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      Performs a dynamic query on the database and returns a range of the matching rows.

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.UserModelImpl.

      Specified by:
      dynamicQuery in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      Returns:
      the range of matching rows
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
      Performs a dynamic query on the database and returns an ordered range of the matching rows.

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.UserModelImpl.

      Specified by:
      dynamicQuery in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching rows
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchUser

      public com.liferay.portal.kernel.model.User fetchUser(long userId)
      Specified by:
      fetchUser in interface com.liferay.portal.kernel.service.UserLocalService
    • fetchUserByUuidAndCompanyId

      public com.liferay.portal.kernel.model.User fetchUserByUuidAndCompanyId(String uuid, long companyId)
      Returns the user with the matching UUID and company.
      Specified by:
      fetchUserByUuidAndCompanyId in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      uuid - the user's UUID
      companyId - the primary key of the company
      Returns:
      the matching user, or null if a matching user could not be found
    • fetchUserByExternalReferenceCode

      public com.liferay.portal.kernel.model.User fetchUserByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchUserByExternalReferenceCode in interface com.liferay.portal.kernel.service.UserLocalService
    • getUserByExternalReferenceCode

      public com.liferay.portal.kernel.model.User getUserByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getUserByExternalReferenceCode in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUser

      public com.liferay.portal.kernel.model.User getUser(long userId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the user with the primary key.
      Specified by:
      getUser in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      userId - the primary key of the user
      Returns:
      the user
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be found
    • getActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
      Specified by:
      getActionableDynamicQuery in interface com.liferay.portal.kernel.service.UserLocalService
    • getIndexableActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
      Specified by:
      getIndexableActionableDynamicQuery in interface com.liferay.portal.kernel.service.UserLocalService
    • initActionableDynamicQuery

      protected void initActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery)
    • getExportActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
      Specified by:
      getExportActionableDynamicQuery in interface com.liferay.portal.kernel.service.UserLocalService
    • createPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePersistedModel

      public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getBasePersistence

      public com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.User> getBasePersistence()
      Specified by:
      getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • getPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserByUuidAndCompanyId

      public com.liferay.portal.kernel.model.User getUserByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the user with the matching UUID and company.
      Specified by:
      getUserByUuidAndCompanyId in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      uuid - the user's UUID
      companyId - the primary key of the company
      Returns:
      the matching user
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a matching user could not be found
    • getUsers

      public List<com.liferay.portal.kernel.model.User> getUsers(int start, int end)
      Returns a range of all the users.

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.UserModelImpl.

      Specified by:
      getUsers in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      start - the lower bound of the range of users
      end - the upper bound of the range of users (not inclusive)
      Returns:
      the range of users
    • getUsersCount

      public int getUsersCount()
      Returns the number of users.
      Specified by:
      getUsersCount in interface com.liferay.portal.kernel.service.UserLocalService
      Returns:
      the number of users
    • updateUser

      @Indexable(type=REINDEX) public com.liferay.portal.kernel.model.User updateUser(com.liferay.portal.kernel.model.User user)
      Updates the user in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect UserLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      updateUser in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      user - the user
      Returns:
      the user that was updated
    • addGroupUser

      public boolean addGroupUser(long groupId, long userId)
      Specified by:
      addGroupUser in interface com.liferay.portal.kernel.service.UserLocalService
    • addGroupUser

      public boolean addGroupUser(long groupId, com.liferay.portal.kernel.model.User user)
      Specified by:
      addGroupUser in interface com.liferay.portal.kernel.service.UserLocalService
    • addGroupUsers

      public boolean addGroupUsers(long groupId, long[] userIds) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addGroupUsers

      public boolean addGroupUsers(long groupId, List<com.liferay.portal.kernel.model.User> users) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • clearGroupUsers

      public void clearGroupUsers(long groupId)
      Specified by:
      clearGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • deleteGroupUser

      public void deleteGroupUser(long groupId, long userId)
      Specified by:
      deleteGroupUser in interface com.liferay.portal.kernel.service.UserLocalService
    • deleteGroupUser

      public void deleteGroupUser(long groupId, com.liferay.portal.kernel.model.User user)
      Specified by:
      deleteGroupUser in interface com.liferay.portal.kernel.service.UserLocalService
    • deleteGroupUsers

      public void deleteGroupUsers(long groupId, long[] userIds)
      Specified by:
      deleteGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • deleteGroupUsers

      public void deleteGroupUsers(long groupId, List<com.liferay.portal.kernel.model.User> users)
      Specified by:
      deleteGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getGroupPrimaryKeys

      public long[] getGroupPrimaryKeys(long userId)
      Returns the groupIds of the groups associated with the user.
      Specified by:
      getGroupPrimaryKeys in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      userId - the userId of the user
      Returns:
      long[] the groupIds of groups associated with the user
    • getGroupUsers

      public List<com.liferay.portal.kernel.model.User> getGroupUsers(long groupId)
      Specified by:
      getGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getGroupUsers

      public List<com.liferay.portal.kernel.model.User> getGroupUsers(long groupId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getGroupUsers

      public List<com.liferay.portal.kernel.model.User> getGroupUsers(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
      Specified by:
      getGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getGroupUsersCount

      public int getGroupUsersCount(long groupId)
      Specified by:
      getGroupUsersCount in interface com.liferay.portal.kernel.service.UserLocalService
    • hasGroupUser

      public boolean hasGroupUser(long groupId, long userId)
      Specified by:
      hasGroupUser in interface com.liferay.portal.kernel.service.UserLocalService
    • hasGroupUsers

      public boolean hasGroupUsers(long groupId)
      Specified by:
      hasGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • setGroupUsers

      public void setGroupUsers(long groupId, long[] userIds)
      Specified by:
      setGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • addOrganizationUser

      public boolean addOrganizationUser(long organizationId, long userId)
      Specified by:
      addOrganizationUser in interface com.liferay.portal.kernel.service.UserLocalService
    • addOrganizationUser

      public boolean addOrganizationUser(long organizationId, com.liferay.portal.kernel.model.User user)
      Specified by:
      addOrganizationUser in interface com.liferay.portal.kernel.service.UserLocalService
    • addOrganizationUsers

      public boolean addOrganizationUsers(long organizationId, long[] userIds) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addOrganizationUsers

      public boolean addOrganizationUsers(long organizationId, List<com.liferay.portal.kernel.model.User> users) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • clearOrganizationUsers

      public void clearOrganizationUsers(long organizationId)
      Specified by:
      clearOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • deleteOrganizationUser

      public void deleteOrganizationUser(long organizationId, long userId)
      Specified by:
      deleteOrganizationUser in interface com.liferay.portal.kernel.service.UserLocalService
    • deleteOrganizationUser

      public void deleteOrganizationUser(long organizationId, com.liferay.portal.kernel.model.User user)
      Specified by:
      deleteOrganizationUser in interface com.liferay.portal.kernel.service.UserLocalService
    • deleteOrganizationUsers

      public void deleteOrganizationUsers(long organizationId, long[] userIds)
      Specified by:
      deleteOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • deleteOrganizationUsers

      public void deleteOrganizationUsers(long organizationId, List<com.liferay.portal.kernel.model.User> users)
      Specified by:
      deleteOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getOrganizationPrimaryKeys

      public long[] getOrganizationPrimaryKeys(long userId)
      Returns the organizationIds of the organizations associated with the user.
      Specified by:
      getOrganizationPrimaryKeys in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      userId - the userId of the user
      Returns:
      long[] the organizationIds of organizations associated with the user
    • getOrganizationUsers

      public List<com.liferay.portal.kernel.model.User> getOrganizationUsers(long organizationId)
      Specified by:
      getOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getOrganizationUsers

      public List<com.liferay.portal.kernel.model.User> getOrganizationUsers(long organizationId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOrganizationUsers

      public List<com.liferay.portal.kernel.model.User> getOrganizationUsers(long organizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
      Specified by:
      getOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getOrganizationUsersCount

      public int getOrganizationUsersCount(long organizationId)
      Specified by:
      getOrganizationUsersCount in interface com.liferay.portal.kernel.service.UserLocalService
    • hasOrganizationUser

      public boolean hasOrganizationUser(long organizationId, long userId)
      Specified by:
      hasOrganizationUser in interface com.liferay.portal.kernel.service.UserLocalService
    • hasOrganizationUsers

      public boolean hasOrganizationUsers(long organizationId)
      Specified by:
      hasOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • setOrganizationUsers

      public void setOrganizationUsers(long organizationId, long[] userIds)
      Specified by:
      setOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • addRoleUser

      public boolean addRoleUser(long roleId, long userId)
      Specified by:
      addRoleUser in interface com.liferay.portal.kernel.service.UserLocalService
    • addRoleUser

      public boolean addRoleUser(long roleId, com.liferay.portal.kernel.model.User user)
      Specified by:
      addRoleUser in interface com.liferay.portal.kernel.service.UserLocalService
    • addRoleUsers

      public boolean addRoleUsers(long roleId, long[] userIds) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addRoleUsers in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addRoleUsers

      public boolean addRoleUsers(long roleId, List<com.liferay.portal.kernel.model.User> users) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addRoleUsers in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • clearRoleUsers

      public void clearRoleUsers(long roleId)
      Specified by:
      clearRoleUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • deleteRoleUser

      public void deleteRoleUser(long roleId, long userId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteRoleUser in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteRoleUser

      public void deleteRoleUser(long roleId, com.liferay.portal.kernel.model.User user) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteRoleUser in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteRoleUsers

      public void deleteRoleUsers(long roleId, long[] userIds)
      Specified by:
      deleteRoleUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • deleteRoleUsers

      public void deleteRoleUsers(long roleId, List<com.liferay.portal.kernel.model.User> users)
      Specified by:
      deleteRoleUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getRolePrimaryKeys

      public long[] getRolePrimaryKeys(long userId)
      Returns the roleIds of the roles associated with the user.
      Specified by:
      getRolePrimaryKeys in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      userId - the userId of the user
      Returns:
      long[] the roleIds of roles associated with the user
    • getRoleUsers

      public List<com.liferay.portal.kernel.model.User> getRoleUsers(long roleId)
      Specified by:
      getRoleUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getRoleUsers

      public List<com.liferay.portal.kernel.model.User> getRoleUsers(long roleId, int start, int end)
      Specified by:
      getRoleUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getRoleUsers

      public List<com.liferay.portal.kernel.model.User> getRoleUsers(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
      Specified by:
      getRoleUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getRoleUsersCount

      public int getRoleUsersCount(long roleId)
      Specified by:
      getRoleUsersCount in interface com.liferay.portal.kernel.service.UserLocalService
    • hasRoleUser

      public boolean hasRoleUser(long roleId, long userId)
      Specified by:
      hasRoleUser in interface com.liferay.portal.kernel.service.UserLocalService
    • hasRoleUsers

      public boolean hasRoleUsers(long roleId)
      Specified by:
      hasRoleUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • setRoleUsers

      public void setRoleUsers(long roleId, long[] userIds) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      setRoleUsers in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addTeamUser

      public boolean addTeamUser(long teamId, long userId)
      Specified by:
      addTeamUser in interface com.liferay.portal.kernel.service.UserLocalService
    • addTeamUser

      public boolean addTeamUser(long teamId, com.liferay.portal.kernel.model.User user)
      Specified by:
      addTeamUser in interface com.liferay.portal.kernel.service.UserLocalService
    • addTeamUsers

      public boolean addTeamUsers(long teamId, long[] userIds) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addTeamUsers in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addTeamUsers

      public boolean addTeamUsers(long teamId, List<com.liferay.portal.kernel.model.User> users) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addTeamUsers in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • clearTeamUsers

      public void clearTeamUsers(long teamId)
      Specified by:
      clearTeamUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • deleteTeamUser

      public void deleteTeamUser(long teamId, long userId)
      Specified by:
      deleteTeamUser in interface com.liferay.portal.kernel.service.UserLocalService
    • deleteTeamUser

      public void deleteTeamUser(long teamId, com.liferay.portal.kernel.model.User user)
      Specified by:
      deleteTeamUser in interface com.liferay.portal.kernel.service.UserLocalService
    • deleteTeamUsers

      public void deleteTeamUsers(long teamId, long[] userIds)
      Specified by:
      deleteTeamUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • deleteTeamUsers

      public void deleteTeamUsers(long teamId, List<com.liferay.portal.kernel.model.User> users)
      Specified by:
      deleteTeamUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getTeamPrimaryKeys

      public long[] getTeamPrimaryKeys(long userId)
      Returns the teamIds of the teams associated with the user.
      Specified by:
      getTeamPrimaryKeys in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      userId - the userId of the user
      Returns:
      long[] the teamIds of teams associated with the user
    • getTeamUsers

      public List<com.liferay.portal.kernel.model.User> getTeamUsers(long teamId)
      Specified by:
      getTeamUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getTeamUsers

      public List<com.liferay.portal.kernel.model.User> getTeamUsers(long teamId, int start, int end)
      Specified by:
      getTeamUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getTeamUsers

      public List<com.liferay.portal.kernel.model.User> getTeamUsers(long teamId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
      Specified by:
      getTeamUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getTeamUsersCount

      public int getTeamUsersCount(long teamId)
      Specified by:
      getTeamUsersCount in interface com.liferay.portal.kernel.service.UserLocalService
    • hasTeamUser

      public boolean hasTeamUser(long teamId, long userId)
      Specified by:
      hasTeamUser in interface com.liferay.portal.kernel.service.UserLocalService
    • hasTeamUsers

      public boolean hasTeamUsers(long teamId)
      Specified by:
      hasTeamUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • setTeamUsers

      public void setTeamUsers(long teamId, long[] userIds)
      Specified by:
      setTeamUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • addUserGroupUser

      public boolean addUserGroupUser(long userGroupId, long userId)
      Specified by:
      addUserGroupUser in interface com.liferay.portal.kernel.service.UserLocalService
    • addUserGroupUser

      public boolean addUserGroupUser(long userGroupId, com.liferay.portal.kernel.model.User user)
      Specified by:
      addUserGroupUser in interface com.liferay.portal.kernel.service.UserLocalService
    • addUserGroupUsers

      public boolean addUserGroupUsers(long userGroupId, long[] userIds) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addUserGroupUsers

      public boolean addUserGroupUsers(long userGroupId, List<com.liferay.portal.kernel.model.User> users) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • clearUserGroupUsers

      public void clearUserGroupUsers(long userGroupId)
      Specified by:
      clearUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • deleteUserGroupUser

      public void deleteUserGroupUser(long userGroupId, long userId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteUserGroupUser in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteUserGroupUser

      public void deleteUserGroupUser(long userGroupId, com.liferay.portal.kernel.model.User user) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteUserGroupUser in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteUserGroupUsers

      public void deleteUserGroupUsers(long userGroupId, long[] userIds)
      Specified by:
      deleteUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • deleteUserGroupUsers

      public void deleteUserGroupUsers(long userGroupId, List<com.liferay.portal.kernel.model.User> users)
      Specified by:
      deleteUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getUserGroupPrimaryKeys

      public long[] getUserGroupPrimaryKeys(long userId)
      Returns the userGroupIds of the user groups associated with the user.
      Specified by:
      getUserGroupPrimaryKeys in interface com.liferay.portal.kernel.service.UserLocalService
      Parameters:
      userId - the userId of the user
      Returns:
      long[] the userGroupIds of user groups associated with the user
    • getUserGroupUsers

      public List<com.liferay.portal.kernel.model.User> getUserGroupUsers(long userGroupId)
      Specified by:
      getUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getUserGroupUsers

      public List<com.liferay.portal.kernel.model.User> getUserGroupUsers(long userGroupId, int start, int end)
      Specified by:
      getUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getUserGroupUsers

      public List<com.liferay.portal.kernel.model.User> getUserGroupUsers(long userGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
      Specified by:
      getUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • getUserGroupUsersCount

      public int getUserGroupUsersCount(long userGroupId)
      Specified by:
      getUserGroupUsersCount in interface com.liferay.portal.kernel.service.UserLocalService
    • hasUserGroupUser

      public boolean hasUserGroupUser(long userGroupId, long userId)
      Specified by:
      hasUserGroupUser in interface com.liferay.portal.kernel.service.UserLocalService
    • hasUserGroupUsers

      public boolean hasUserGroupUsers(long userGroupId)
      Specified by:
      hasUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
    • setUserGroupUsers

      public void setUserGroupUsers(long userGroupId, long[] userIds) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      setUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserLocalService

      public com.liferay.portal.kernel.service.UserLocalService getUserLocalService()
      Returns the user local service.
      Returns:
      the user local service
    • setUserLocalService

      public void setUserLocalService(com.liferay.portal.kernel.service.UserLocalService userLocalService)
      Sets the user local service.
      Parameters:
      userLocalService - the user local service
    • getUserPersistence

      public com.liferay.portal.kernel.service.persistence.UserPersistence getUserPersistence()
      Returns the user persistence.
      Returns:
      the user persistence
    • setUserPersistence

      public void setUserPersistence(com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence)
      Sets the user persistence.
      Parameters:
      userPersistence - the user persistence
    • getUserFinder

      public com.liferay.portal.kernel.service.persistence.UserFinder getUserFinder()
      Returns the user finder.
      Returns:
      the user finder
    • setUserFinder

      public void setUserFinder(com.liferay.portal.kernel.service.persistence.UserFinder userFinder)
      Sets the user finder.
      Parameters:
      userFinder - the user finder
    • getCounterLocalService

      public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService()
      Returns the counter local service.
      Returns:
      the counter local service
    • setCounterLocalService

      public void setCounterLocalService(com.liferay.counter.kernel.service.CounterLocalService counterLocalService)
      Sets the counter local service.
      Parameters:
      counterLocalService - the counter local service
    • afterPropertiesSet

      public void afterPropertiesSet()
    • destroy

      public void destroy()
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
      Specified by:
      getOSGiServiceIdentifier in interface com.liferay.portal.kernel.service.UserLocalService
      Returns:
      the OSGi service identifier
    • getCTPersistence

      public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.User> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.User>
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.UserLocalService
    • getModelClass

      public Class<com.liferay.portal.kernel.model.User> getModelClass()
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.User>
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.UserLocalService
    • updateWithUnsafeFunction

      public <R, E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.User>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.User>
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.UserLocalService
      Throws:
      E extends Throwable
    • getModelClassName

      protected String getModelClassName()
    • runSQL

      protected void runSQL(String sql)
      Performs a SQL query.
      Parameters:
      sql - the sql query