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.boolean
addUserGroupTeam
(long userGroupId, long teamId) boolean
addUserGroupTeam
(long userGroupId, Team team) boolean
addUserGroupTeams
(long userGroupId, long[] teamIds) boolean
addUserGroupTeams
(long userGroupId, List<Team> teams) boolean
addUserTeam
(long userId, long teamId) boolean
addUserTeam
(long userId, Team team) boolean
addUserTeams
(long userId, long[] teamIds) boolean
addUserTeams
(long userId, List<Team> teams) void
clearUserGroupTeams
(long userGroupId) void
clearUserTeams
(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.void
deleteTeams
(long groupId) void
deleteUserGroupTeam
(long userGroupId, long teamId) void
deleteUserGroupTeam
(long userGroupId, Team team) void
deleteUserGroupTeams
(long userGroupId, long[] teamIds) void
deleteUserGroupTeams
(long userGroupId, List<Team> teams) void
deleteUserTeam
(long userId, long teamId) void
deleteUserTeam
(long userId, Team team) void
deleteUserTeams
(long userId, long[] teamIds) void
deleteUserTeams
(long userId, List<Team> teams) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(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.long
dynamicQueryCount
(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.long
dynamicQueryCount
(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) int
getGroupTeamsCount
(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.int
Returns 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) int
getUserGroupTeamsCount
(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) int
getUserTeamsCount
(long userId) boolean
hasUserGroupTeam
(long userGroupId, long teamId) boolean
hasUserGroupTeams
(long userGroupId) boolean
hasUserTeam
(long userId, long teamId) boolean
hasUserTeams
(long userId) search
(long groupId, String name, String description, LinkedHashMap<String, Object> params, int start, int end, OrderByComparator<Team> orderByComparator) int
searchCount
(long groupId, String name, String description, LinkedHashMap<String, Object> params) void
setUserGroupTeams
(long userGroupId, long[] teamIds) void
setUserTeams
(long userId, long[] teamIds) void
setWrappedService
(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, wait
Methods 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:
addTeam
in 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:
addTeam
in interfaceTeamLocalService
- Parameters:
team
- the team- Returns:
- the team that was added
-
addUserGroupTeam
public boolean addUserGroupTeam(long userGroupId, long teamId) - Specified by:
addUserGroupTeam
in interfaceTeamLocalService
-
addUserGroupTeam
- Specified by:
addUserGroupTeam
in interfaceTeamLocalService
-
addUserGroupTeams
- Specified by:
addUserGroupTeams
in interfaceTeamLocalService
-
addUserGroupTeams
public boolean addUserGroupTeams(long userGroupId, long[] teamIds) - Specified by:
addUserGroupTeams
in interfaceTeamLocalService
-
addUserTeam
public boolean addUserTeam(long userId, long teamId) - Specified by:
addUserTeam
in interfaceTeamLocalService
-
addUserTeam
- Specified by:
addUserTeam
in interfaceTeamLocalService
-
addUserTeams
- Specified by:
addUserTeams
in interfaceTeamLocalService
-
addUserTeams
public boolean addUserTeams(long userId, long[] teamIds) - Specified by:
addUserTeams
in interfaceTeamLocalService
-
clearUserGroupTeams
public void clearUserGroupTeams(long userGroupId) - Specified by:
clearUserGroupTeams
in interfaceTeamLocalService
-
clearUserTeams
public void clearUserTeams(long userId) - Specified by:
clearUserTeams
in interfaceTeamLocalService
-
createPersistedModel
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Specified by:
createPersistedModel
in interfaceTeamLocalService
- Throws:
PortalException
PortalException
-
createTeam
Creates a new team with the primary key. Does not add the team to the database.- Specified by:
createTeam
in interfaceTeamLocalService
- Parameters:
teamId
- the primary key for the new team- Returns:
- the new team
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Specified by:
deletePersistedModel
in interfaceTeamLocalService
- Throws:
PortalException
PortalException
-
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:
deleteTeam
in 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:
deleteTeam
in interfaceTeamLocalService
- Parameters:
team
- the team- Returns:
- the team that was removed
- Throws:
PortalException
PortalException
-
deleteTeams
- Specified by:
deleteTeams
in interfaceTeamLocalService
- Throws:
PortalException
-
deleteUserGroupTeam
public void deleteUserGroupTeam(long userGroupId, long teamId) - Specified by:
deleteUserGroupTeam
in interfaceTeamLocalService
-
deleteUserGroupTeam
- Specified by:
deleteUserGroupTeam
in interfaceTeamLocalService
-
deleteUserGroupTeams
- Specified by:
deleteUserGroupTeams
in interfaceTeamLocalService
-
deleteUserGroupTeams
public void deleteUserGroupTeams(long userGroupId, long[] teamIds) - Specified by:
deleteUserGroupTeams
in interfaceTeamLocalService
-
deleteUserTeam
public void deleteUserTeam(long userId, long teamId) - Specified by:
deleteUserTeam
in interfaceTeamLocalService
-
deleteUserTeam
- Specified by:
deleteUserTeam
in interfaceTeamLocalService
-
deleteUserTeams
- Specified by:
deleteUserTeams
in interfaceTeamLocalService
-
deleteUserTeams
public void deleteUserTeams(long userId, long[] teamIds) - Specified by:
deleteUserTeams
in interfaceTeamLocalService
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacePersistedModelLocalService
- Specified by:
dslQuery
in interfaceTeamLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacePersistedModelLocalService
- Specified by:
dslQueryCount
in interfaceTeamLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfaceTeamLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.TeamModelImpl
.- Specified by:
dynamicQuery
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.TeamModelImpl
.- Specified by:
dynamicQuery
in 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:
dynamicQueryCount
in 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:
dynamicQueryCount
in 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:
fetchTeam
in interfaceTeamLocalService
-
fetchTeam
- Specified by:
fetchTeam
in interfaceTeamLocalService
-
fetchTeamByUuidAndGroupId
Returns the team matching the UUID and group.- Specified by:
fetchTeamByUuidAndGroupId
in interfaceTeamLocalService
- Parameters:
uuid
- the team's UUIDgroupId
- the primary key of the group- Returns:
- the matching team, or
null
if a matching team could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfaceTeamLocalService
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceTeamLocalService
-
getGroupTeams
- Specified by:
getGroupTeams
in interfaceTeamLocalService
-
getGroupTeamsCount
public int getGroupTeamsCount(long groupId) - Specified by:
getGroupTeamsCount
in interfaceTeamLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfaceTeamLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceTeamLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Specified by:
getPersistedModel
in interfaceTeamLocalService
- Throws:
PortalException
PortalException
-
getTeam
Returns the team with the primary key.- Specified by:
getTeam
in 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:
getTeam
in interfaceTeamLocalService
- Throws:
PortalException
-
getTeamByUuidAndGroupId
Returns the team matching the UUID and group.- Specified by:
getTeamByUuidAndGroupId
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.TeamModelImpl
.- Specified by:
getTeams
in 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:
getTeamsByUuidAndCompanyId
in 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:
getTeamsByUuidAndCompanyId
in 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:
getTeamsCount
in 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:
getUserGroupPrimaryKeys
in interfaceTeamLocalService
- Parameters:
teamId
- the teamId of the team- Returns:
- long[] the userGroupIds of user groups associated with the team
-
getUserGroupTeams
- Specified by:
getUserGroupTeams
in interfaceTeamLocalService
-
getUserGroupTeams
- Specified by:
getUserGroupTeams
in interfaceTeamLocalService
-
getUserGroupTeams
public List<Team> getUserGroupTeams(long userGroupId, int start, int end, OrderByComparator<Team> orderByComparator) - Specified by:
getUserGroupTeams
in interfaceTeamLocalService
-
getUserGroupTeamsCount
public int getUserGroupTeamsCount(long userGroupId) - Specified by:
getUserGroupTeamsCount
in interfaceTeamLocalService
-
getUserOrUserGroupTeams
- Specified by:
getUserOrUserGroupTeams
in interfaceTeamLocalService
-
getUserPrimaryKeys
public long[] getUserPrimaryKeys(long teamId) Returns the userIds of the users associated with the team.- Specified by:
getUserPrimaryKeys
in interfaceTeamLocalService
- Parameters:
teamId
- the teamId of the team- Returns:
- long[] the userIds of users associated with the team
-
getUserTeams
- Specified by:
getUserTeams
in interfaceTeamLocalService
-
getUserTeams
- Specified by:
getUserTeams
in interfaceTeamLocalService
-
getUserTeams
public List<Team> getUserTeams(long userId, int start, int end, OrderByComparator<Team> orderByComparator) - Specified by:
getUserTeams
in interfaceTeamLocalService
-
getUserTeams
- Specified by:
getUserTeams
in interfaceTeamLocalService
-
getUserTeamsCount
public int getUserTeamsCount(long userId) - Specified by:
getUserTeamsCount
in interfaceTeamLocalService
-
hasUserGroupTeam
public boolean hasUserGroupTeam(long userGroupId, long teamId) - Specified by:
hasUserGroupTeam
in interfaceTeamLocalService
-
hasUserGroupTeams
public boolean hasUserGroupTeams(long userGroupId) - Specified by:
hasUserGroupTeams
in interfaceTeamLocalService
-
hasUserTeam
public boolean hasUserTeam(long userId, long teamId) - Specified by:
hasUserTeam
in interfaceTeamLocalService
-
hasUserTeams
public boolean hasUserTeams(long userId) - Specified by:
hasUserTeams
in 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:
search
in interfaceTeamLocalService
-
searchCount
public int searchCount(long groupId, String name, String description, LinkedHashMap<String, Object> params) - Specified by:
searchCount
in interfaceTeamLocalService
-
setUserGroupTeams
public void setUserGroupTeams(long userGroupId, long[] teamIds) - Specified by:
setUserGroupTeams
in interfaceTeamLocalService
-
setUserTeams
public void setUserTeams(long userId, long[] teamIds) - Specified by:
setUserTeams
in interfaceTeamLocalService
-
updateTeam
- Specified by:
updateTeam
in 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:
updateTeam
in interfaceTeamLocalService
- Parameters:
team
- the team- Returns:
- the team that was updated
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceCTService<Team>
- Specified by:
getCTPersistence
in interfaceTeamLocalService
-
getModelClass
- Specified by:
getModelClass
in interfaceCTService<Team>
- Specified by:
getModelClass
in interfaceTeamLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Team>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCTService<Team>
- Specified by:
updateWithUnsafeFunction
in interfaceTeamLocalService
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<TeamLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<TeamLocalService>
-