Class TeamLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService,CTService<Team>,PersistedModelLocalService,ServiceWrapper<TeamLocalService>,TeamLocalService
TeamLocalService.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTeam(long userId, long groupId, String name, String description, ServiceContext serviceContext) Adds the team to the database.booleanaddUserGroupTeam(long userGroupId, long teamId) booleanaddUserGroupTeam(long userGroupId, Team team) booleanaddUserGroupTeams(long userGroupId, long[] teamIds) booleanaddUserGroupTeams(long userGroupId, List<Team> teams) booleanaddUserTeam(long userId, long teamId) booleanaddUserTeam(long userId, Team team) booleanaddUserTeams(long userId, long[] teamIds) booleanaddUserTeams(long userId, List<Team> teams) voidclearUserGroupTeams(long userGroupId) voidclearUserTeams(long userId) createPersistedModel(Serializable primaryKeyObj) createTeam(long teamId) Creates a new team with the primary key.deletePersistedModel(PersistedModel persistedModel) deleteTeam(long teamId) Deletes the team with the primary key from the database.deleteTeam(Team team) Deletes the team from the database.voiddeleteTeams(long groupId) voiddeleteUserGroupTeam(long userGroupId, long teamId) voiddeleteUserGroupTeam(long userGroupId, Team team) voiddeleteUserGroupTeams(long userGroupId, long[] teamIds) voiddeleteUserGroupTeams(long userGroupId, List<Team> teams) voiddeleteUserTeam(long userId, long teamId) voiddeleteUserTeam(long userId, Team team) voiddeleteUserTeams(long userId, long[] teamIds) voiddeleteUserTeams(long userId, List<Team> teams) <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <T> List<T>dynamicQuery(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>dynamicQuery(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(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.longdynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.fetchTeam(long teamId) fetchTeamByUuidAndGroupId(String uuid, long groupId) Returns the team matching the UUID and group.getExportActionableDynamicQuery(PortletDataContext portletDataContext) getGroupTeams(long groupId) intgetGroupTeamsCount(long groupId) Returns the OSGi service identifier.getPersistedModel(Serializable primaryKeyObj) getTeam(long teamId) Returns the team with the primary key.getTeamByUuidAndGroupId(String uuid, long groupId) Returns the team matching the UUID and group.getTeams(int start, int end) Returns a range of all the teams.getTeamsByUuidAndCompanyId(String uuid, long companyId) Returns all the teams matching the UUID and company.getTeamsByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<Team> orderByComparator) Returns a range of teams matching the UUID and company.intReturns the number of teams.long[]getUserGroupPrimaryKeys(long teamId) Returns the userGroupIds of the user groups associated with the team.getUserGroupTeams(long userGroupId) getUserGroupTeams(long userGroupId, int start, int end) getUserGroupTeams(long userGroupId, int start, int end, OrderByComparator<Team> orderByComparator) intgetUserGroupTeamsCount(long userGroupId) getUserOrUserGroupTeams(long groupId, long userId) long[]getUserPrimaryKeys(long teamId) Returns the userIds of the users associated with the team.getUserTeams(long userId) getUserTeams(long userId, int start, int end) getUserTeams(long userId, int start, int end, OrderByComparator<Team> orderByComparator) getUserTeams(long userId, long groupId) intgetUserTeamsCount(long userId) booleanhasUserGroupTeam(long userGroupId, long teamId) booleanhasUserGroupTeams(long userGroupId) booleanhasUserTeam(long userId, long teamId) booleanhasUserTeams(long userId) search(long groupId, String name, String description, LinkedHashMap<String, Object> params, int start, int end, OrderByComparator<Team> orderByComparator) intsearchCount(long groupId, String name, String description, LinkedHashMap<String, Object> params) voidsetUserGroupTeams(long userGroupId, long[] teamIds) voidsetUserTeams(long userId, long[] teamIds) voidsetWrappedService(TeamLocalService teamLocalService) updateTeam(long teamId, String name, String description) updateTeam(Team team) Updates the team in the database or adds it if it does not yet exist.<R,E extends Throwable>
RupdateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Team>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
TeamLocalServiceWrapper
public TeamLocalServiceWrapper() -
TeamLocalServiceWrapper
-
-
Method Details
-
addTeam
public Team addTeam(long userId, long groupId, String name, String description, ServiceContext serviceContext) throws PortalException - Specified by:
addTeamin interfaceTeamLocalService- Throws:
PortalException
-
addTeam
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:
addTeamin interfaceTeamLocalService- Parameters:
team- the team- Returns:
- the team that was added
-
addUserGroupTeam
public boolean addUserGroupTeam(long userGroupId, long teamId) - Specified by:
addUserGroupTeamin interfaceTeamLocalService
-
addUserGroupTeam
- Specified by:
addUserGroupTeamin interfaceTeamLocalService
-
addUserGroupTeams
- Specified by:
addUserGroupTeamsin interfaceTeamLocalService
-
addUserGroupTeams
public boolean addUserGroupTeams(long userGroupId, long[] teamIds) - Specified by:
addUserGroupTeamsin interfaceTeamLocalService
-
addUserTeam
public boolean addUserTeam(long userId, long teamId) - Specified by:
addUserTeamin interfaceTeamLocalService
-
addUserTeam
- Specified by:
addUserTeamin interfaceTeamLocalService
-
addUserTeams
- Specified by:
addUserTeamsin interfaceTeamLocalService
-
addUserTeams
public boolean addUserTeams(long userId, long[] teamIds) - Specified by:
addUserTeamsin interfaceTeamLocalService
-
clearUserGroupTeams
public void clearUserGroupTeams(long userGroupId) - Specified by:
clearUserGroupTeamsin interfaceTeamLocalService
-
clearUserTeams
public void clearUserTeams(long userId) - Specified by:
clearUserTeamsin interfaceTeamLocalService
-
createPersistedModel
- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Specified by:
createPersistedModelin interfaceTeamLocalService- Throws:
PortalExceptionPortalException
-
createTeam
Creates a new team with the primary key. Does not add the team to the database.- Specified by:
createTeamin interfaceTeamLocalService- Parameters:
teamId- the primary key for the new team- Returns:
- the new team
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Specified by:
deletePersistedModelin interfaceTeamLocalService- Throws:
PortalExceptionPortalException
-
deleteTeam
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:
deleteTeamin interfaceTeamLocalService- Parameters:
teamId- the primary key of the team- Returns:
- the team that was removed
- Throws:
PortalException- if a team with the primary key could not be foundPortalException
-
deleteTeam
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:
deleteTeamin interfaceTeamLocalService- Parameters:
team- the team- Returns:
- the team that was removed
- Throws:
PortalExceptionPortalException
-
deleteTeams
- Specified by:
deleteTeamsin interfaceTeamLocalService- Throws:
PortalException
-
deleteUserGroupTeam
public void deleteUserGroupTeam(long userGroupId, long teamId) - Specified by:
deleteUserGroupTeamin interfaceTeamLocalService
-
deleteUserGroupTeam
- Specified by:
deleteUserGroupTeamin interfaceTeamLocalService
-
deleteUserGroupTeams
- Specified by:
deleteUserGroupTeamsin interfaceTeamLocalService
-
deleteUserGroupTeams
public void deleteUserGroupTeams(long userGroupId, long[] teamIds) - Specified by:
deleteUserGroupTeamsin interfaceTeamLocalService
-
deleteUserTeam
public void deleteUserTeam(long userId, long teamId) - Specified by:
deleteUserTeamin interfaceTeamLocalService
-
deleteUserTeam
- Specified by:
deleteUserTeamin interfaceTeamLocalService
-
deleteUserTeams
- Specified by:
deleteUserTeamsin interfaceTeamLocalService
-
deleteUserTeams
public void deleteUserTeams(long userId, long[] teamIds) - Specified by:
deleteUserTeamsin interfaceTeamLocalService
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfacePersistedModelLocalService- Specified by:
dslQueryin interfaceTeamLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacePersistedModelLocalService- Specified by:
dslQueryCountin interfaceTeamLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfaceTeamLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfaceTeamLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
Performs a dynamic query on the database and returns a range of the matching rows.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.TeamModelImpl.- Specified by:
dynamicQueryin interfaceTeamLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.TeamModelImpl.- Specified by:
dynamicQueryin interfaceTeamLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceTeamLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceTeamLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchTeam
- Specified by:
fetchTeamin interfaceTeamLocalService
-
fetchTeam
- Specified by:
fetchTeamin interfaceTeamLocalService
-
fetchTeamByUuidAndGroupId
Returns the team matching the UUID and group.- Specified by:
fetchTeamByUuidAndGroupIdin interfaceTeamLocalService- Parameters:
uuid- the team's UUIDgroupId- the primary key of the group- Returns:
- the matching team, or
nullif a matching team could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfaceTeamLocalService
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfaceTeamLocalService
-
getGroupTeams
- Specified by:
getGroupTeamsin interfaceTeamLocalService
-
getGroupTeamsCount
public int getGroupTeamsCount(long groupId) - Specified by:
getGroupTeamsCountin interfaceTeamLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfaceTeamLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceTeamLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Specified by:
getPersistedModelin interfaceTeamLocalService- Throws:
PortalExceptionPortalException
-
getTeam
Returns the team with the primary key.- Specified by:
getTeamin interfaceTeamLocalService- Parameters:
teamId- the primary key of the team- Returns:
- the team
- Throws:
PortalException- if a team with the primary key could not be foundPortalException
-
getTeam
- Specified by:
getTeamin interfaceTeamLocalService- Throws:
PortalException
-
getTeamByUuidAndGroupId
Returns the team matching the UUID and group.- Specified by:
getTeamByUuidAndGroupIdin interfaceTeamLocalService- Parameters:
uuid- the team's UUIDgroupId- the primary key of the group- Returns:
- the matching team
- Throws:
PortalException- if a matching team could not be foundPortalException
-
getTeams
Returns a range of all the teams.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.TeamModelImpl.- Specified by:
getTeamsin interfaceTeamLocalService- Parameters:
start- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)- Returns:
- the range of teams
-
getTeamsByUuidAndCompanyId
Returns all the teams matching the UUID and company.- Specified by:
getTeamsByUuidAndCompanyIdin interfaceTeamLocalService- Parameters:
uuid- the UUID of the teamscompanyId- the primary key of the company- Returns:
- the matching teams, or an empty list if no matches were found
-
getTeamsByUuidAndCompanyId
public List<Team> getTeamsByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<Team> orderByComparator) Returns a range of teams matching the UUID and company.- Specified by:
getTeamsByUuidAndCompanyIdin interfaceTeamLocalService- Parameters:
uuid- the UUID of the teamscompanyId- the primary key of the companystart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the range of matching teams, or an empty list if no matches were found
-
getTeamsCount
public int getTeamsCount()Returns the number of teams.- Specified by:
getTeamsCountin interfaceTeamLocalService- Returns:
- the number of teams
-
getUserGroupPrimaryKeys
public long[] getUserGroupPrimaryKeys(long teamId) Returns the userGroupIds of the user groups associated with the team.- Specified by:
getUserGroupPrimaryKeysin interfaceTeamLocalService- Parameters:
teamId- the teamId of the team- Returns:
- long[] the userGroupIds of user groups associated with the team
-
getUserGroupTeams
- Specified by:
getUserGroupTeamsin interfaceTeamLocalService
-
getUserGroupTeams
- Specified by:
getUserGroupTeamsin interfaceTeamLocalService
-
getUserGroupTeams
public List<Team> getUserGroupTeams(long userGroupId, int start, int end, OrderByComparator<Team> orderByComparator) - Specified by:
getUserGroupTeamsin interfaceTeamLocalService
-
getUserGroupTeamsCount
public int getUserGroupTeamsCount(long userGroupId) - Specified by:
getUserGroupTeamsCountin interfaceTeamLocalService
-
getUserOrUserGroupTeams
- Specified by:
getUserOrUserGroupTeamsin interfaceTeamLocalService
-
getUserPrimaryKeys
public long[] getUserPrimaryKeys(long teamId) Returns the userIds of the users associated with the team.- Specified by:
getUserPrimaryKeysin interfaceTeamLocalService- Parameters:
teamId- the teamId of the team- Returns:
- long[] the userIds of users associated with the team
-
getUserTeams
- Specified by:
getUserTeamsin interfaceTeamLocalService
-
getUserTeams
- Specified by:
getUserTeamsin interfaceTeamLocalService
-
getUserTeams
public List<Team> getUserTeams(long userId, int start, int end, OrderByComparator<Team> orderByComparator) - Specified by:
getUserTeamsin interfaceTeamLocalService
-
getUserTeams
- Specified by:
getUserTeamsin interfaceTeamLocalService
-
getUserTeamsCount
public int getUserTeamsCount(long userId) - Specified by:
getUserTeamsCountin interfaceTeamLocalService
-
hasUserGroupTeam
public boolean hasUserGroupTeam(long userGroupId, long teamId) - Specified by:
hasUserGroupTeamin interfaceTeamLocalService
-
hasUserGroupTeams
public boolean hasUserGroupTeams(long userGroupId) - Specified by:
hasUserGroupTeamsin interfaceTeamLocalService
-
hasUserTeam
public boolean hasUserTeam(long userId, long teamId) - Specified by:
hasUserTeamin interfaceTeamLocalService
-
hasUserTeams
public boolean hasUserTeams(long userId) - Specified by:
hasUserTeamsin interfaceTeamLocalService
-
search
public List<Team> search(long groupId, String name, String description, LinkedHashMap<String, Object> params, int start, int end, OrderByComparator<Team> orderByComparator) - Specified by:
searchin interfaceTeamLocalService
-
searchCount
public int searchCount(long groupId, String name, String description, LinkedHashMap<String, Object> params) - Specified by:
searchCountin interfaceTeamLocalService
-
setUserGroupTeams
public void setUserGroupTeams(long userGroupId, long[] teamIds) - Specified by:
setUserGroupTeamsin interfaceTeamLocalService
-
setUserTeams
public void setUserTeams(long userId, long[] teamIds) - Specified by:
setUserTeamsin interfaceTeamLocalService
-
updateTeam
- Specified by:
updateTeamin interfaceTeamLocalService- Throws:
PortalException
-
updateTeam
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:
updateTeamin interfaceTeamLocalService- Parameters:
team- the team- Returns:
- the team that was updated
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistencein interfaceCTService<Team>- Specified by:
getCTPersistencein interfaceTeamLocalService
-
getModelClass
- Specified by:
getModelClassin interfaceCTService<Team>- Specified by:
getModelClassin interfaceTeamLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Team>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceCTService<Team>- Specified by:
updateWithUnsafeFunctionin interfaceTeamLocalService- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<TeamLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfaceServiceWrapper<TeamLocalService>
-