Class UserGroupLocalServiceBaseImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.UserGroupLocalServiceBaseImpl
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.UserGroup>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.UserGroupLocalService
Direct Known Subclasses:
UserGroupLocalServiceImpl

public abstract class UserGroupLocalServiceBaseImpl extends com.liferay.portal.kernel.service.BaseLocalServiceImpl implements com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.UserGroupLocalService
Provides the base implementation for the user group 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 UserGroupLocalServiceImpl.

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.TeamPersistence
     
    protected com.liferay.portal.kernel.service.persistence.UserGroupFinder
     
    protected com.liferay.portal.kernel.service.UserGroupLocalService
     
    protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence
     
    protected com.liferay.portal.kernel.service.persistence.UserPersistence
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addGroupUserGroup(long groupId, long userGroupId)
     
    boolean
    addGroupUserGroup(long groupId, com.liferay.portal.kernel.model.UserGroup userGroup)
     
    boolean
    addGroupUserGroups(long groupId, long[] userGroupIds)
     
    boolean
    addGroupUserGroups(long groupId, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
     
    boolean
    addTeamUserGroup(long teamId, long userGroupId)
     
    boolean
    addTeamUserGroup(long teamId, com.liferay.portal.kernel.model.UserGroup userGroup)
     
    boolean
    addTeamUserGroups(long teamId, long[] userGroupIds)
     
    boolean
    addTeamUserGroups(long teamId, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
     
    com.liferay.portal.kernel.model.UserGroup
    addUserGroup(com.liferay.portal.kernel.model.UserGroup userGroup)
    Adds the user group to the database.
    boolean
    addUserUserGroup(long userId, long userGroupId)
     
    boolean
    addUserUserGroup(long userId, com.liferay.portal.kernel.model.UserGroup userGroup)
     
    boolean
    addUserUserGroups(long userId, long[] userGroupIds)
     
    boolean
    addUserUserGroups(long userId, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
     
    void
     
    void
    clearGroupUserGroups(long groupId)
     
    void
    clearTeamUserGroups(long teamId)
     
    void
    clearUserUserGroups(long userId)
     
    com.liferay.portal.kernel.model.PersistedModel
     
    com.liferay.portal.kernel.model.UserGroup
    createUserGroup(long userGroupId)
    Creates a new user group with the primary key.
    void
    deleteGroupUserGroup(long groupId, long userGroupId)
     
    void
    deleteGroupUserGroup(long groupId, com.liferay.portal.kernel.model.UserGroup userGroup)
     
    void
    deleteGroupUserGroups(long groupId, long[] userGroupIds)
     
    void
    deleteGroupUserGroups(long groupId, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
     
    com.liferay.portal.kernel.model.PersistedModel
    deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
     
    void
    deleteTeamUserGroup(long teamId, long userGroupId)
     
    void
    deleteTeamUserGroup(long teamId, com.liferay.portal.kernel.model.UserGroup userGroup)
     
    void
    deleteTeamUserGroups(long teamId, long[] userGroupIds)
     
    void
    deleteTeamUserGroups(long teamId, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
     
    com.liferay.portal.kernel.model.UserGroup
    deleteUserGroup(long userGroupId)
    Deletes the user group with the primary key from the database.
    com.liferay.portal.kernel.model.UserGroup
    deleteUserGroup(com.liferay.portal.kernel.model.UserGroup userGroup)
    Deletes the user group from the database.
    void
    deleteUserUserGroup(long userId, long userGroupId)
     
    void
    deleteUserUserGroup(long userId, com.liferay.portal.kernel.model.UserGroup userGroup)
     
    void
    deleteUserUserGroups(long userId, long[] userGroupIds)
     
    void
    deleteUserUserGroups(long userId, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
     
    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.UserGroup
    fetchUserGroup(long userGroupId)
     
    com.liferay.portal.kernel.model.UserGroup
    fetchUserGroupByExternalReferenceCode(String externalReferenceCode, long companyId)
     
    com.liferay.portal.kernel.model.UserGroup
    Returns the user group 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.UserGroup>
     
    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.UserGroup>
     
    com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
    getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
     
    long[]
    getGroupPrimaryKeys(long userGroupId)
    Returns the groupIds of the groups associated with the user group.
    List<com.liferay.portal.kernel.model.UserGroup>
    getGroupUserGroups(long groupId)
     
    List<com.liferay.portal.kernel.model.UserGroup>
    getGroupUserGroups(long groupId, int start, int end)
     
    List<com.liferay.portal.kernel.model.UserGroup>
    getGroupUserGroups(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator)
     
    int
     
    com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
     
    Class<com.liferay.portal.kernel.model.UserGroup>
     
    protected String
     
    Returns the OSGi service identifier.
    com.liferay.portal.kernel.model.PersistedModel
     
    long[]
    getTeamPrimaryKeys(long userGroupId)
    Returns the teamIds of the teams associated with the user group.
    List<com.liferay.portal.kernel.model.UserGroup>
    getTeamUserGroups(long teamId)
     
    List<com.liferay.portal.kernel.model.UserGroup>
    getTeamUserGroups(long teamId, int start, int end)
     
    List<com.liferay.portal.kernel.model.UserGroup>
    getTeamUserGroups(long teamId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator)
     
    int
     
    com.liferay.portal.kernel.model.UserGroup
    getUserGroup(long userGroupId)
    Returns the user group with the primary key.
    com.liferay.portal.kernel.model.UserGroup
    getUserGroupByExternalReferenceCode(String externalReferenceCode, long companyId)
     
    com.liferay.portal.kernel.model.UserGroup
    getUserGroupByUuidAndCompanyId(String uuid, long companyId)
    Returns the user group with the matching UUID and company.
    com.liferay.portal.kernel.service.persistence.UserGroupFinder
    Returns the user group finder.
    com.liferay.portal.kernel.service.UserGroupLocalService
    Returns the user group local service.
    com.liferay.portal.kernel.service.persistence.UserGroupPersistence
    Returns the user group persistence.
    List<com.liferay.portal.kernel.model.UserGroup>
    getUserGroups(int start, int end)
    Returns a range of all the user groups.
    int
    Returns the number of user groups.
    long[]
    getUserPrimaryKeys(long userGroupId)
    Returns the userIds of the users associated with the user group.
    List<com.liferay.portal.kernel.model.UserGroup>
    getUserUserGroups(long userId)
     
    List<com.liferay.portal.kernel.model.UserGroup>
    getUserUserGroups(long userId, int start, int end)
     
    List<com.liferay.portal.kernel.model.UserGroup>
    getUserUserGroups(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator)
     
    int
     
    boolean
    hasGroupUserGroup(long groupId, long userGroupId)
     
    boolean
    hasGroupUserGroups(long groupId)
     
    boolean
    hasTeamUserGroup(long teamId, long userGroupId)
     
    boolean
    hasTeamUserGroups(long teamId)
     
    boolean
    hasUserUserGroup(long userId, long userGroupId)
     
    boolean
    hasUserUserGroups(long userId)
     
    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
    setGroupUserGroups(long groupId, long[] userGroupIds)
     
    void
    setTeamUserGroups(long teamId, long[] userGroupIds)
     
    void
    setUserGroupFinder(com.liferay.portal.kernel.service.persistence.UserGroupFinder userGroupFinder)
    Sets the user group finder.
    void
    setUserGroupLocalService(com.liferay.portal.kernel.service.UserGroupLocalService userGroupLocalService)
    Sets the user group local service.
    void
    setUserGroupPersistence(com.liferay.portal.kernel.service.persistence.UserGroupPersistence userGroupPersistence)
    Sets the user group persistence.
    void
    setUserUserGroups(long userId, long[] userGroupIds)
     
    com.liferay.portal.kernel.model.UserGroup
    updateUserGroup(com.liferay.portal.kernel.model.UserGroup userGroup)
    Updates the user group 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.UserGroup>,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.UserGroupLocalService

    addOrUpdateUserGroup, addUserGroup, deleteUserGroups, fetchUserGroup, getGroupUserUserGroups, getUserGroup, getUserGroups, getUserGroups, getUserGroups, getUserGroups, getUserGroupsCount, search, search, search, search, searchCount, searchCount, searchUserGroups, searchUserGroups, unsetGroupUserGroups, unsetTeamUserGroups, updateExternalReferenceCode, updateUserGroup
  • Field Details

    • userGroupLocalService

      @BeanReference(type=com.liferay.portal.kernel.service.UserGroupLocalService.class) protected com.liferay.portal.kernel.service.UserGroupLocalService userGroupLocalService
    • userGroupPersistence

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

      @BeanReference(type=com.liferay.portal.kernel.service.persistence.UserGroupFinder.class) protected com.liferay.portal.kernel.service.persistence.UserGroupFinder userGroupFinder
    • 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
    • teamPersistence

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

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

    • UserGroupLocalServiceBaseImpl

      public UserGroupLocalServiceBaseImpl()
  • Method Details

    • addUserGroup

      @Indexable(type=REINDEX) public com.liferay.portal.kernel.model.UserGroup addUserGroup(com.liferay.portal.kernel.model.UserGroup userGroup)
      Adds the user group to the database. Also notifies the appropriate model listeners.

      Important: Inspect UserGroupLocalServiceImpl 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:
      addUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
      Parameters:
      userGroup - the user group
      Returns:
      the user group that was added
    • createUserGroup

      @Transactional(enabled=false) public com.liferay.portal.kernel.model.UserGroup createUserGroup(long userGroupId)
      Creates a new user group with the primary key. Does not add the user group to the database.
      Specified by:
      createUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
      Parameters:
      userGroupId - the primary key for the new user group
      Returns:
      the new user group
    • deleteUserGroup

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

      Important: Inspect UserGroupLocalServiceImpl 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:
      deleteUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
      Parameters:
      userGroupId - the primary key of the user group
      Returns:
      the user group that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a user group with the primary key could not be found
    • deleteUserGroup

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

      Important: Inspect UserGroupLocalServiceImpl 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:
      deleteUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
      Parameters:
      userGroup - the user group
      Returns:
      the user group 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.UserGroupLocalService
    • 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.UserGroupLocalService
    • dynamicQuery

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • 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.UserGroupLocalService
      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.UserGroupModelImpl.

      Specified by:
      dynamicQuery in interface com.liferay.portal.kernel.service.UserGroupLocalService
      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.UserGroupModelImpl.

      Specified by:
      dynamicQuery in interface com.liferay.portal.kernel.service.UserGroupLocalService
      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.UserGroupLocalService
      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.UserGroupLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchUserGroup

      public com.liferay.portal.kernel.model.UserGroup fetchUserGroup(long userGroupId)
      Specified by:
      fetchUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • fetchUserGroupByUuidAndCompanyId

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

      public com.liferay.portal.kernel.model.UserGroup fetchUserGroupByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchUserGroupByExternalReferenceCode in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • getUserGroupByExternalReferenceCode

      public com.liferay.portal.kernel.model.UserGroup getUserGroupByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getUserGroupByExternalReferenceCode in interface com.liferay.portal.kernel.service.UserGroupLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserGroup

      public com.liferay.portal.kernel.model.UserGroup getUserGroup(long userGroupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the user group with the primary key.
      Specified by:
      getUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
      Parameters:
      userGroupId - the primary key of the user group
      Returns:
      the user group
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a user group 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.UserGroupLocalService
    • getIndexableActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
      Specified by:
      getIndexableActionableDynamicQuery in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • 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.UserGroupLocalService
    • 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.UserGroupLocalService
      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.UserGroupLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getBasePersistence

      public com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.UserGroup> 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.UserGroupLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserGroupByUuidAndCompanyId

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

      public List<com.liferay.portal.kernel.model.UserGroup> getUserGroups(int start, int end)
      Returns a range of all the user groups.

      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.UserGroupModelImpl.

      Specified by:
      getUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
      Parameters:
      start - the lower bound of the range of user groups
      end - the upper bound of the range of user groups (not inclusive)
      Returns:
      the range of user groups
    • getUserGroupsCount

      public int getUserGroupsCount()
      Returns the number of user groups.
      Specified by:
      getUserGroupsCount in interface com.liferay.portal.kernel.service.UserGroupLocalService
      Returns:
      the number of user groups
    • updateUserGroup

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

      Important: Inspect UserGroupLocalServiceImpl 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:
      updateUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
      Parameters:
      userGroup - the user group
      Returns:
      the user group that was updated
    • addGroupUserGroup

      public boolean addGroupUserGroup(long groupId, long userGroupId)
      Specified by:
      addGroupUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • addGroupUserGroup

      public boolean addGroupUserGroup(long groupId, com.liferay.portal.kernel.model.UserGroup userGroup)
      Specified by:
      addGroupUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • addGroupUserGroups

      public boolean addGroupUserGroups(long groupId, long[] userGroupIds)
      Specified by:
      addGroupUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • addGroupUserGroups

      public boolean addGroupUserGroups(long groupId, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
      Specified by:
      addGroupUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • clearGroupUserGroups

      public void clearGroupUserGroups(long groupId)
      Specified by:
      clearGroupUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • deleteGroupUserGroup

      public void deleteGroupUserGroup(long groupId, long userGroupId)
      Specified by:
      deleteGroupUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • deleteGroupUserGroup

      public void deleteGroupUserGroup(long groupId, com.liferay.portal.kernel.model.UserGroup userGroup)
      Specified by:
      deleteGroupUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • deleteGroupUserGroups

      public void deleteGroupUserGroups(long groupId, long[] userGroupIds)
      Specified by:
      deleteGroupUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • deleteGroupUserGroups

      public void deleteGroupUserGroups(long groupId, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
      Specified by:
      deleteGroupUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • getGroupPrimaryKeys

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

      public List<com.liferay.portal.kernel.model.UserGroup> getGroupUserGroups(long groupId)
      Specified by:
      getGroupUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • getGroupUserGroups

      public List<com.liferay.portal.kernel.model.UserGroup> getGroupUserGroups(long groupId, int start, int end)
      Specified by:
      getGroupUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • getGroupUserGroups

      public List<com.liferay.portal.kernel.model.UserGroup> getGroupUserGroups(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator)
      Specified by:
      getGroupUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • getGroupUserGroupsCount

      public int getGroupUserGroupsCount(long groupId)
      Specified by:
      getGroupUserGroupsCount in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • hasGroupUserGroup

      public boolean hasGroupUserGroup(long groupId, long userGroupId)
      Specified by:
      hasGroupUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • hasGroupUserGroups

      public boolean hasGroupUserGroups(long groupId)
      Specified by:
      hasGroupUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • setGroupUserGroups

      public void setGroupUserGroups(long groupId, long[] userGroupIds)
      Specified by:
      setGroupUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • addTeamUserGroup

      public boolean addTeamUserGroup(long teamId, long userGroupId)
      Specified by:
      addTeamUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • addTeamUserGroup

      public boolean addTeamUserGroup(long teamId, com.liferay.portal.kernel.model.UserGroup userGroup)
      Specified by:
      addTeamUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • addTeamUserGroups

      public boolean addTeamUserGroups(long teamId, long[] userGroupIds)
      Specified by:
      addTeamUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • addTeamUserGroups

      public boolean addTeamUserGroups(long teamId, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
      Specified by:
      addTeamUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • clearTeamUserGroups

      public void clearTeamUserGroups(long teamId)
      Specified by:
      clearTeamUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • deleteTeamUserGroup

      public void deleteTeamUserGroup(long teamId, long userGroupId)
      Specified by:
      deleteTeamUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • deleteTeamUserGroup

      public void deleteTeamUserGroup(long teamId, com.liferay.portal.kernel.model.UserGroup userGroup)
      Specified by:
      deleteTeamUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • deleteTeamUserGroups

      public void deleteTeamUserGroups(long teamId, long[] userGroupIds)
      Specified by:
      deleteTeamUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • deleteTeamUserGroups

      public void deleteTeamUserGroups(long teamId, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
      Specified by:
      deleteTeamUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • getTeamPrimaryKeys

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

      public List<com.liferay.portal.kernel.model.UserGroup> getTeamUserGroups(long teamId)
      Specified by:
      getTeamUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • getTeamUserGroups

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

      public List<com.liferay.portal.kernel.model.UserGroup> getTeamUserGroups(long teamId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator)
      Specified by:
      getTeamUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • getTeamUserGroupsCount

      public int getTeamUserGroupsCount(long teamId)
      Specified by:
      getTeamUserGroupsCount in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • hasTeamUserGroup

      public boolean hasTeamUserGroup(long teamId, long userGroupId)
      Specified by:
      hasTeamUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • hasTeamUserGroups

      public boolean hasTeamUserGroups(long teamId)
      Specified by:
      hasTeamUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • setTeamUserGroups

      public void setTeamUserGroups(long teamId, long[] userGroupIds)
      Specified by:
      setTeamUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • addUserUserGroup

      public boolean addUserUserGroup(long userId, long userGroupId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addUserUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addUserUserGroup

      public boolean addUserUserGroup(long userId, com.liferay.portal.kernel.model.UserGroup userGroup) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addUserUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addUserUserGroups

      public boolean addUserUserGroups(long userId, long[] userGroupIds) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addUserUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addUserUserGroups

      public boolean addUserUserGroups(long userId, List<com.liferay.portal.kernel.model.UserGroup> userGroups) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addUserUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • clearUserUserGroups

      public void clearUserUserGroups(long userId)
      Specified by:
      clearUserUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • deleteUserUserGroup

      public void deleteUserUserGroup(long userId, long userGroupId)
      Specified by:
      deleteUserUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • deleteUserUserGroup

      public void deleteUserUserGroup(long userId, com.liferay.portal.kernel.model.UserGroup userGroup)
      Specified by:
      deleteUserUserGroup in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • deleteUserUserGroups

      public void deleteUserUserGroups(long userId, long[] userGroupIds)
      Specified by:
      deleteUserUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • deleteUserUserGroups

      public void deleteUserUserGroups(long userId, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
      Specified by:
      deleteUserUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • getUserPrimaryKeys

      public long[] getUserPrimaryKeys(long userGroupId)
      Returns the userIds of the users associated with the user group.
      Specified by:
      getUserPrimaryKeys in interface com.liferay.portal.kernel.service.UserGroupLocalService
      Parameters:
      userGroupId - the userGroupId of the user group
      Returns:
      long[] the userIds of users associated with the user group
    • getUserUserGroups

      public List<com.liferay.portal.kernel.model.UserGroup> getUserUserGroups(long userId)
      Specified by:
      getUserUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • getUserUserGroups

      public List<com.liferay.portal.kernel.model.UserGroup> getUserUserGroups(long userId, int start, int end)
      Specified by:
      getUserUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • getUserUserGroups

      public List<com.liferay.portal.kernel.model.UserGroup> getUserUserGroups(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator)
      Specified by:
      getUserUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • getUserUserGroupsCount

      public int getUserUserGroupsCount(long userId)
      Specified by:
      getUserUserGroupsCount in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • hasUserUserGroup

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

      public boolean hasUserUserGroups(long userId)
      Specified by:
      hasUserUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • setUserUserGroups

      public void setUserUserGroups(long userId, long[] userGroupIds) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      setUserUserGroups in interface com.liferay.portal.kernel.service.UserGroupLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserGroupLocalService

      public com.liferay.portal.kernel.service.UserGroupLocalService getUserGroupLocalService()
      Returns the user group local service.
      Returns:
      the user group local service
    • setUserGroupLocalService

      public void setUserGroupLocalService(com.liferay.portal.kernel.service.UserGroupLocalService userGroupLocalService)
      Sets the user group local service.
      Parameters:
      userGroupLocalService - the user group local service
    • getUserGroupPersistence

      public com.liferay.portal.kernel.service.persistence.UserGroupPersistence getUserGroupPersistence()
      Returns the user group persistence.
      Returns:
      the user group persistence
    • setUserGroupPersistence

      public void setUserGroupPersistence(com.liferay.portal.kernel.service.persistence.UserGroupPersistence userGroupPersistence)
      Sets the user group persistence.
      Parameters:
      userGroupPersistence - the user group persistence
    • getUserGroupFinder

      public com.liferay.portal.kernel.service.persistence.UserGroupFinder getUserGroupFinder()
      Returns the user group finder.
      Returns:
      the user group finder
    • setUserGroupFinder

      public void setUserGroupFinder(com.liferay.portal.kernel.service.persistence.UserGroupFinder userGroupFinder)
      Sets the user group finder.
      Parameters:
      userGroupFinder - the user group 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.UserGroupLocalService
      Returns:
      the OSGi service identifier
    • getCTPersistence

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

      public Class<com.liferay.portal.kernel.model.UserGroup> getModelClass()
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.UserGroup>
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.UserGroupLocalService
    • 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.UserGroup>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.UserGroup>
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.UserGroupLocalService
      Throws:
      E extends Throwable
    • getModelClassName

      protected String getModelClassName()
    • runSQL

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