Class TeamLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.TeamLocalServiceBaseImpl
com.liferay.portal.service.impl.TeamLocalServiceImpl
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

public class TeamLocalServiceImpl extends TeamLocalServiceBaseImpl
Author:
Brian Wing Shun Chan
  • Constructor Details

    • TeamLocalServiceImpl

      public TeamLocalServiceImpl()
  • Method Details

    • addTeam

      public com.liferay.portal.kernel.model.Team addTeam(long userId, long groupId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteTeam

      public com.liferay.portal.kernel.model.Team deleteTeam(long teamId) throws com.liferay.portal.kernel.exception.PortalException
      Description copied from class: TeamLocalServiceBaseImpl
      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
      Overrides:
      deleteTeam in class TeamLocalServiceBaseImpl
      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

      @SystemEvent(type=1) public com.liferay.portal.kernel.model.Team deleteTeam(com.liferay.portal.kernel.model.Team team) throws com.liferay.portal.kernel.exception.PortalException
      Description copied from class: TeamLocalServiceBaseImpl
      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
      Overrides:
      deleteTeam in class TeamLocalServiceBaseImpl
      Parameters:
      team - the team
      Returns:
      the team that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteTeams

      public void deleteTeams(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchTeam

      public com.liferay.portal.kernel.model.Team fetchTeam(long groupId, String name)
    • getGroupTeams

      public List<com.liferay.portal.kernel.model.Team> getGroupTeams(long groupId)
    • getGroupTeamsCount

      public int getGroupTeamsCount(long groupId)
    • getTeam

      public com.liferay.portal.kernel.model.Team getTeam(long groupId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserOrUserGroupTeams

      public List<com.liferay.portal.kernel.model.Team> getUserOrUserGroupTeams(long groupId, long userId)
    • getUserTeams

      public List<com.liferay.portal.kernel.model.Team> getUserTeams(long userId, long groupId)
    • search

      public List<com.liferay.portal.kernel.model.Team> search(long groupId, String name, String description, LinkedHashMap<String,Object> params, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    • searchCount

      public int searchCount(long groupId, String name, String description, LinkedHashMap<String,Object> params)
    • updateTeam

      public com.liferay.portal.kernel.model.Team updateTeam(long teamId, String name, String description) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • validate

      protected void validate(long teamId, long groupId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException