Class TeamLocalServiceBaseImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.TeamLocalServiceBaseImpl
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.Team>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.TeamLocalService
Direct Known Subclasses:
TeamLocalServiceImpl

public abstract class TeamLocalServiceBaseImpl extends com.liferay.portal.kernel.service.BaseLocalServiceImpl implements com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.TeamLocalService
Provides the base implementation for the team 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 TeamLocalServiceImpl.

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.TeamFinder
     
    protected com.liferay.portal.kernel.service.TeamLocalService
     
    protected com.liferay.portal.kernel.service.persistence.TeamPersistence
     
    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
    com.liferay.portal.kernel.model.Team
    addTeam(com.liferay.portal.kernel.model.Team team)
    Adds the team to the database.
    boolean
    addUserGroupTeam(long userGroupId, long teamId)
     
    boolean
    addUserGroupTeam(long userGroupId, com.liferay.portal.kernel.model.Team team)
     
    boolean
    addUserGroupTeams(long userGroupId, long[] teamIds)
     
    boolean
    addUserGroupTeams(long userGroupId, List<com.liferay.portal.kernel.model.Team> teams)
     
    boolean
    addUserTeam(long userId, long teamId)
     
    boolean
    addUserTeam(long userId, com.liferay.portal.kernel.model.Team team)
     
    boolean
    addUserTeams(long userId, long[] teamIds)
     
    boolean
    addUserTeams(long userId, List<com.liferay.portal.kernel.model.Team> teams)
     
    void
     
    void
    clearUserGroupTeams(long userGroupId)
     
    void
    clearUserTeams(long userId)
     
    com.liferay.portal.kernel.model.PersistedModel
     
    com.liferay.portal.kernel.model.Team
    createTeam(long teamId)
    Creates a new team with the primary key.
    com.liferay.portal.kernel.model.PersistedModel
    deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
     
    com.liferay.portal.kernel.model.Team
    deleteTeam(long teamId)
    Deletes the team with the primary key from the database.
    com.liferay.portal.kernel.model.Team
    deleteTeam(com.liferay.portal.kernel.model.Team team)
    Deletes the team from the database.
    void
    deleteUserGroupTeam(long userGroupId, long teamId)
     
    void
    deleteUserGroupTeam(long userGroupId, com.liferay.portal.kernel.model.Team team)
     
    void
    deleteUserGroupTeams(long userGroupId, long[] teamIds)
     
    void
    deleteUserGroupTeams(long userGroupId, List<com.liferay.portal.kernel.model.Team> teams)
     
    void
    deleteUserTeam(long userId, long teamId)
     
    void
    deleteUserTeam(long userId, com.liferay.portal.kernel.model.Team team)
     
    void
    deleteUserTeams(long userId, long[] teamIds)
     
    void
    deleteUserTeams(long userId, List<com.liferay.portal.kernel.model.Team> teams)
     
    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.Team
    fetchTeam(long teamId)
     
    com.liferay.portal.kernel.model.Team
    fetchTeamByUuidAndGroupId(String uuid, long groupId)
    Returns the team matching the UUID and group.
    com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
     
    com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
     
    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.Team>
     
    com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
    getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
     
    com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
     
    Class<com.liferay.portal.kernel.model.Team>
     
    protected String
     
    Returns the OSGi service identifier.
    com.liferay.portal.kernel.model.PersistedModel
     
    com.liferay.portal.kernel.model.Team
    getTeam(long teamId)
    Returns the team with the primary key.
    com.liferay.portal.kernel.model.Team
    getTeamByUuidAndGroupId(String uuid, long groupId)
    Returns the team matching the UUID and group.
    com.liferay.portal.kernel.service.persistence.TeamFinder
    Returns the team finder.
    com.liferay.portal.kernel.service.TeamLocalService
    Returns the team local service.
    com.liferay.portal.kernel.service.persistence.TeamPersistence
    Returns the team persistence.
    List<com.liferay.portal.kernel.model.Team>
    getTeams(int start, int end)
    Returns a range of all the teams.
    List<com.liferay.portal.kernel.model.Team>
    getTeamsByUuidAndCompanyId(String uuid, long companyId)
    Returns all the teams matching the UUID and company.
    List<com.liferay.portal.kernel.model.Team>
    getTeamsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns a range of teams matching the UUID and company.
    int
    Returns the number of teams.
    long[]
    Returns the userGroupIds of the user groups associated with the team.
    List<com.liferay.portal.kernel.model.Team>
    getUserGroupTeams(long userGroupId)
     
    List<com.liferay.portal.kernel.model.Team>
    getUserGroupTeams(long userGroupId, int start, int end)
     
    List<com.liferay.portal.kernel.model.Team>
    getUserGroupTeams(long userGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
     
    int
    getUserGroupTeamsCount(long userGroupId)
     
    long[]
    getUserPrimaryKeys(long teamId)
    Returns the userIds of the users associated with the team.
    List<com.liferay.portal.kernel.model.Team>
    getUserTeams(long userId)
     
    List<com.liferay.portal.kernel.model.Team>
    getUserTeams(long userId, int start, int end)
     
    List<com.liferay.portal.kernel.model.Team>
    getUserTeams(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
     
    int
    getUserTeamsCount(long userId)
     
    boolean
    hasUserGroupTeam(long userGroupId, long teamId)
     
    boolean
    hasUserGroupTeams(long userGroupId)
     
    boolean
    hasUserTeam(long userId, long teamId)
     
    boolean
    hasUserTeams(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
    setTeamFinder(com.liferay.portal.kernel.service.persistence.TeamFinder teamFinder)
    Sets the team finder.
    void
    setTeamLocalService(com.liferay.portal.kernel.service.TeamLocalService teamLocalService)
    Sets the team local service.
    void
    setTeamPersistence(com.liferay.portal.kernel.service.persistence.TeamPersistence teamPersistence)
    Sets the team persistence.
    void
    setUserGroupTeams(long userGroupId, long[] teamIds)
     
    void
    setUserTeams(long userId, long[] teamIds)
     
    com.liferay.portal.kernel.model.Team
    updateTeam(com.liferay.portal.kernel.model.Team team)
    Updates the team 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.Team>,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.TeamLocalService

    addTeam, deleteTeams, fetchTeam, getGroupTeams, getGroupTeamsCount, getTeam, getUserOrUserGroupTeams, getUserTeams, search, searchCount, updateTeam
  • Field Details

    • teamLocalService

      @BeanReference(type=com.liferay.portal.kernel.service.TeamLocalService.class) protected com.liferay.portal.kernel.service.TeamLocalService teamLocalService
    • teamPersistence

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

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

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

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

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

    • TeamLocalServiceBaseImpl

      public TeamLocalServiceBaseImpl()
  • Method Details

    • addTeam

      @Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Team addTeam(com.liferay.portal.kernel.model.Team team)
      Adds the team to the database. Also notifies the appropriate model listeners.

      Important: Inspect TeamLocalServiceImpl 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:
      addTeam in interface com.liferay.portal.kernel.service.TeamLocalService
      Parameters:
      team - the team
      Returns:
      the team that was added
    • createTeam

      @Transactional(enabled=false) public com.liferay.portal.kernel.model.Team createTeam(long teamId)
      Creates a new team with the primary key. Does not add the team to the database.
      Specified by:
      createTeam in interface com.liferay.portal.kernel.service.TeamLocalService
      Parameters:
      teamId - the primary key for the new team
      Returns:
      the new team
    • deleteTeam

      @Indexable(type=DELETE) public com.liferay.portal.kernel.model.Team deleteTeam(long teamId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the team with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect TeamLocalServiceImpl 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:
      deleteTeam in interface com.liferay.portal.kernel.service.TeamLocalService
      Parameters:
      teamId - the primary key of the team
      Returns:
      the team that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a team with the primary key could not be found
    • deleteTeam

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

      Important: Inspect TeamLocalServiceImpl 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:
      deleteTeam in interface com.liferay.portal.kernel.service.TeamLocalService
      Parameters:
      team - the team
      Returns:
      the team 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.TeamLocalService
    • 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.TeamLocalService
    • dynamicQuery

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

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

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

      public com.liferay.portal.kernel.model.Team fetchTeam(long teamId)
      Specified by:
      fetchTeam in interface com.liferay.portal.kernel.service.TeamLocalService
    • fetchTeamByUuidAndGroupId

      public com.liferay.portal.kernel.model.Team fetchTeamByUuidAndGroupId(String uuid, long groupId)
      Returns the team matching the UUID and group.
      Specified by:
      fetchTeamByUuidAndGroupId in interface com.liferay.portal.kernel.service.TeamLocalService
      Parameters:
      uuid - the team's UUID
      groupId - the primary key of the group
      Returns:
      the matching team, or null if a matching team could not be found
    • getTeam

      public com.liferay.portal.kernel.model.Team getTeam(long teamId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the team with the primary key.
      Specified by:
      getTeam in interface com.liferay.portal.kernel.service.TeamLocalService
      Parameters:
      teamId - the primary key of the team
      Returns:
      the team
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a team 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.TeamLocalService
    • getIndexableActionableDynamicQuery

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

      public com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team> 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.TeamLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getTeamsByUuidAndCompanyId

      public List<com.liferay.portal.kernel.model.Team> getTeamsByUuidAndCompanyId(String uuid, long companyId)
      Returns all the teams matching the UUID and company.
      Specified by:
      getTeamsByUuidAndCompanyId in interface com.liferay.portal.kernel.service.TeamLocalService
      Parameters:
      uuid - the UUID of the teams
      companyId - the primary key of the company
      Returns:
      the matching teams, or an empty list if no matches were found
    • getTeamsByUuidAndCompanyId

      public List<com.liferay.portal.kernel.model.Team> getTeamsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
      Returns a range of teams matching the UUID and company.
      Specified by:
      getTeamsByUuidAndCompanyId in interface com.liferay.portal.kernel.service.TeamLocalService
      Parameters:
      uuid - the UUID of the teams
      companyId - the primary key of the company
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the range of matching teams, or an empty list if no matches were found
    • getTeamByUuidAndGroupId

      public com.liferay.portal.kernel.model.Team getTeamByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the team matching the UUID and group.
      Specified by:
      getTeamByUuidAndGroupId in interface com.liferay.portal.kernel.service.TeamLocalService
      Parameters:
      uuid - the team's UUID
      groupId - the primary key of the group
      Returns:
      the matching team
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a matching team could not be found
    • getTeams

      public List<com.liferay.portal.kernel.model.Team> getTeams(int start, int end)
      Returns a range of all the teams.

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

      Specified by:
      getTeams in interface com.liferay.portal.kernel.service.TeamLocalService
      Parameters:
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      Returns:
      the range of teams
    • getTeamsCount

      public int getTeamsCount()
      Returns the number of teams.
      Specified by:
      getTeamsCount in interface com.liferay.portal.kernel.service.TeamLocalService
      Returns:
      the number of teams
    • updateTeam

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

      Important: Inspect TeamLocalServiceImpl 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:
      updateTeam in interface com.liferay.portal.kernel.service.TeamLocalService
      Parameters:
      team - the team
      Returns:
      the team that was updated
    • addUserTeam

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

      public boolean addUserTeam(long userId, com.liferay.portal.kernel.model.Team team)
      Specified by:
      addUserTeam in interface com.liferay.portal.kernel.service.TeamLocalService
    • addUserTeams

      public boolean addUserTeams(long userId, long[] teamIds)
      Specified by:
      addUserTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • addUserTeams

      public boolean addUserTeams(long userId, List<com.liferay.portal.kernel.model.Team> teams)
      Specified by:
      addUserTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • clearUserTeams

      public void clearUserTeams(long userId)
      Specified by:
      clearUserTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • deleteUserTeam

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

      public void deleteUserTeam(long userId, com.liferay.portal.kernel.model.Team team)
      Specified by:
      deleteUserTeam in interface com.liferay.portal.kernel.service.TeamLocalService
    • deleteUserTeams

      public void deleteUserTeams(long userId, long[] teamIds)
      Specified by:
      deleteUserTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • deleteUserTeams

      public void deleteUserTeams(long userId, List<com.liferay.portal.kernel.model.Team> teams)
      Specified by:
      deleteUserTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • getUserPrimaryKeys

      public long[] getUserPrimaryKeys(long teamId)
      Returns the userIds of the users associated with the team.
      Specified by:
      getUserPrimaryKeys in interface com.liferay.portal.kernel.service.TeamLocalService
      Parameters:
      teamId - the teamId of the team
      Returns:
      long[] the userIds of users associated with the team
    • getUserTeams

      public List<com.liferay.portal.kernel.model.Team> getUserTeams(long userId)
      Specified by:
      getUserTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • getUserTeams

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

      public List<com.liferay.portal.kernel.model.Team> getUserTeams(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
      Specified by:
      getUserTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • getUserTeamsCount

      public int getUserTeamsCount(long userId)
      Specified by:
      getUserTeamsCount in interface com.liferay.portal.kernel.service.TeamLocalService
    • hasUserTeam

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

      public boolean hasUserTeams(long userId)
      Specified by:
      hasUserTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • setUserTeams

      public void setUserTeams(long userId, long[] teamIds)
      Specified by:
      setUserTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • addUserGroupTeam

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

      public boolean addUserGroupTeam(long userGroupId, com.liferay.portal.kernel.model.Team team)
      Specified by:
      addUserGroupTeam in interface com.liferay.portal.kernel.service.TeamLocalService
    • addUserGroupTeams

      public boolean addUserGroupTeams(long userGroupId, long[] teamIds)
      Specified by:
      addUserGroupTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • addUserGroupTeams

      public boolean addUserGroupTeams(long userGroupId, List<com.liferay.portal.kernel.model.Team> teams)
      Specified by:
      addUserGroupTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • clearUserGroupTeams

      public void clearUserGroupTeams(long userGroupId)
      Specified by:
      clearUserGroupTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • deleteUserGroupTeam

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

      public void deleteUserGroupTeam(long userGroupId, com.liferay.portal.kernel.model.Team team)
      Specified by:
      deleteUserGroupTeam in interface com.liferay.portal.kernel.service.TeamLocalService
    • deleteUserGroupTeams

      public void deleteUserGroupTeams(long userGroupId, long[] teamIds)
      Specified by:
      deleteUserGroupTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • deleteUserGroupTeams

      public void deleteUserGroupTeams(long userGroupId, List<com.liferay.portal.kernel.model.Team> teams)
      Specified by:
      deleteUserGroupTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • getUserGroupPrimaryKeys

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

      public List<com.liferay.portal.kernel.model.Team> getUserGroupTeams(long userGroupId)
      Specified by:
      getUserGroupTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • getUserGroupTeams

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

      public List<com.liferay.portal.kernel.model.Team> getUserGroupTeams(long userGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
      Specified by:
      getUserGroupTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • getUserGroupTeamsCount

      public int getUserGroupTeamsCount(long userGroupId)
      Specified by:
      getUserGroupTeamsCount in interface com.liferay.portal.kernel.service.TeamLocalService
    • hasUserGroupTeam

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

      public boolean hasUserGroupTeams(long userGroupId)
      Specified by:
      hasUserGroupTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • setUserGroupTeams

      public void setUserGroupTeams(long userGroupId, long[] teamIds)
      Specified by:
      setUserGroupTeams in interface com.liferay.portal.kernel.service.TeamLocalService
    • getTeamLocalService

      public com.liferay.portal.kernel.service.TeamLocalService getTeamLocalService()
      Returns the team local service.
      Returns:
      the team local service
    • setTeamLocalService

      public void setTeamLocalService(com.liferay.portal.kernel.service.TeamLocalService teamLocalService)
      Sets the team local service.
      Parameters:
      teamLocalService - the team local service
    • getTeamPersistence

      public com.liferay.portal.kernel.service.persistence.TeamPersistence getTeamPersistence()
      Returns the team persistence.
      Returns:
      the team persistence
    • setTeamPersistence

      public void setTeamPersistence(com.liferay.portal.kernel.service.persistence.TeamPersistence teamPersistence)
      Sets the team persistence.
      Parameters:
      teamPersistence - the team persistence
    • getTeamFinder

      public com.liferay.portal.kernel.service.persistence.TeamFinder getTeamFinder()
      Returns the team finder.
      Returns:
      the team finder
    • setTeamFinder

      public void setTeamFinder(com.liferay.portal.kernel.service.persistence.TeamFinder teamFinder)
      Sets the team finder.
      Parameters:
      teamFinder - the team 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.TeamLocalService
      Returns:
      the OSGi service identifier
    • getCTPersistence

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

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

      protected String getModelClassName()
    • runSQL

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