Package com.liferay.portal.service.impl
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
- Author:
- Brian Wing Shun Chan
-
Field Summary
Fields inherited from class com.liferay.portal.service.base.TeamLocalServiceBaseImpl
counterLocalService, teamFinder, teamLocalService, teamPersistence, userGroupPersistence, userPersistence
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.model.Team
addTeam
(long userId, long groupId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) 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
deleteTeams
(long groupId) com.liferay.portal.kernel.model.Team
List<com.liferay.portal.kernel.model.Team>
getGroupTeams
(long groupId) int
getGroupTeamsCount
(long groupId) com.liferay.portal.kernel.model.Team
List<com.liferay.portal.kernel.model.Team>
getUserOrUserGroupTeams
(long groupId, long userId) List<com.liferay.portal.kernel.model.Team>
getUserTeams
(long userId, long groupId) 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) int
searchCount
(long groupId, String name, String description, LinkedHashMap<String, Object> params) com.liferay.portal.kernel.model.Team
updateTeam
(long teamId, String name, String description) protected void
Methods inherited from class com.liferay.portal.service.base.TeamLocalServiceBaseImpl
addTeam, addUserGroupTeam, addUserGroupTeam, addUserGroupTeams, addUserGroupTeams, addUserTeam, addUserTeam, addUserTeams, addUserTeams, afterPropertiesSet, clearUserGroupTeams, clearUserTeams, createPersistedModel, createTeam, deletePersistedModel, deleteUserGroupTeam, deleteUserGroupTeam, deleteUserGroupTeams, deleteUserGroupTeams, deleteUserTeam, deleteUserTeam, deleteUserTeams, deleteUserTeams, destroy, dslQuery, dslQueryCount, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchTeam, fetchTeamByUuidAndGroupId, getActionableDynamicQuery, getBasePersistence, getCounterLocalService, getCTPersistence, getExportActionableDynamicQuery, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getTeam, getTeamByUuidAndGroupId, getTeamFinder, getTeamLocalService, getTeamPersistence, getTeams, getTeamsByUuidAndCompanyId, getTeamsByUuidAndCompanyId, getTeamsCount, getUserGroupPrimaryKeys, getUserGroupTeams, getUserGroupTeams, getUserGroupTeams, getUserGroupTeamsCount, getUserPrimaryKeys, getUserTeams, getUserTeams, getUserTeams, getUserTeamsCount, hasUserGroupTeam, hasUserGroupTeams, hasUserTeam, hasUserTeams, initActionableDynamicQuery, runSQL, setCounterLocalService, setTeamFinder, setTeamLocalService, setTeamPersistence, setUserGroupTeams, setUserTeams, updateTeam, updateWithUnsafeFunction
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
-
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 interfacecom.liferay.portal.kernel.service.TeamLocalService
- Overrides:
deleteTeam
in classTeamLocalServiceBaseImpl
- 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 interfacecom.liferay.portal.kernel.service.TeamLocalService
- Overrides:
deleteTeam
in classTeamLocalServiceBaseImpl
- 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
-
getGroupTeams
-
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
-
search
-
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
-