Class 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
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
FieldsModifier and TypeFieldDescriptionprotected 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 -
Method Summary
Modifier and TypeMethodDescriptioncom.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
createPersistedModel
(Serializable primaryKeyObj) 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
destroy()
<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
getPersistedModel
(Serializable primaryKeyObj) 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[]
getUserGroupPrimaryKeys
(long teamId) 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>
RupdateWithUnsafeFunction
(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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQuery
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfacecom.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
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 interfacecom.liferay.portal.kernel.service.TeamLocalService
- 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(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
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 interfacecom.liferay.portal.kernel.service.TeamLocalService
- 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
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfacecom.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 interfacecom.liferay.portal.kernel.service.TeamLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- 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 interfacecom.liferay.portal.kernel.service.TeamLocalService
-
fetchTeamByUuidAndGroupId
Returns the team matching the UUID and group.- Specified by:
fetchTeamByUuidAndGroupId
in interfacecom.liferay.portal.kernel.service.TeamLocalService
- 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
-
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 interfacecom.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 interfacecom.liferay.portal.kernel.service.TeamLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQuery
in interfacecom.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 interfacecom.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 interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Specified by:
createPersistedModel
in interfacecom.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 interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Specified by:
deletePersistedModel
in interfacecom.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 interfacecom.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 interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Specified by:
getPersistedModel
in interfacecom.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 interfacecom.liferay.portal.kernel.service.TeamLocalService
- 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<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 interfacecom.liferay.portal.kernel.service.TeamLocalService
- 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
-
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 interfacecom.liferay.portal.kernel.service.TeamLocalService
- Parameters:
uuid
- the team's UUIDgroupId
- 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
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 interfacecom.liferay.portal.kernel.service.TeamLocalService
- 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
-
getTeamsCount
public int getTeamsCount()Returns the number of teams.- Specified by:
getTeamsCount
in interfacecom.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 interfacecom.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 interfacecom.liferay.portal.kernel.service.TeamLocalService
-
addUserTeam
public boolean addUserTeam(long userId, com.liferay.portal.kernel.model.Team team) - Specified by:
addUserTeam
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
addUserTeams
public boolean addUserTeams(long userId, long[] teamIds) - Specified by:
addUserTeams
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
addUserTeams
- Specified by:
addUserTeams
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
clearUserTeams
public void clearUserTeams(long userId) - Specified by:
clearUserTeams
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
deleteUserTeam
public void deleteUserTeam(long userId, long teamId) - Specified by:
deleteUserTeam
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
deleteUserTeam
public void deleteUserTeam(long userId, com.liferay.portal.kernel.model.Team team) - Specified by:
deleteUserTeam
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
deleteUserTeams
public void deleteUserTeams(long userId, long[] teamIds) - Specified by:
deleteUserTeams
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
deleteUserTeams
- Specified by:
deleteUserTeams
in interfacecom.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 interfacecom.liferay.portal.kernel.service.TeamLocalService
- Parameters:
teamId
- the teamId of the team- Returns:
- long[] the userIds of users associated with the team
-
getUserTeams
- Specified by:
getUserTeams
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
getUserTeams
- Specified by:
getUserTeams
in interfacecom.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 interfacecom.liferay.portal.kernel.service.TeamLocalService
-
getUserTeamsCount
public int getUserTeamsCount(long userId) - Specified by:
getUserTeamsCount
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
hasUserTeam
public boolean hasUserTeam(long userId, long teamId) - Specified by:
hasUserTeam
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
hasUserTeams
public boolean hasUserTeams(long userId) - Specified by:
hasUserTeams
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
setUserTeams
public void setUserTeams(long userId, long[] teamIds) - Specified by:
setUserTeams
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
addUserGroupTeam
public boolean addUserGroupTeam(long userGroupId, long teamId) - Specified by:
addUserGroupTeam
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
addUserGroupTeam
public boolean addUserGroupTeam(long userGroupId, com.liferay.portal.kernel.model.Team team) - Specified by:
addUserGroupTeam
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
addUserGroupTeams
public boolean addUserGroupTeams(long userGroupId, long[] teamIds) - Specified by:
addUserGroupTeams
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
addUserGroupTeams
public boolean addUserGroupTeams(long userGroupId, List<com.liferay.portal.kernel.model.Team> teams) - Specified by:
addUserGroupTeams
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
clearUserGroupTeams
public void clearUserGroupTeams(long userGroupId) - Specified by:
clearUserGroupTeams
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
deleteUserGroupTeam
public void deleteUserGroupTeam(long userGroupId, long teamId) - Specified by:
deleteUserGroupTeam
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
deleteUserGroupTeam
public void deleteUserGroupTeam(long userGroupId, com.liferay.portal.kernel.model.Team team) - Specified by:
deleteUserGroupTeam
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
deleteUserGroupTeams
public void deleteUserGroupTeams(long userGroupId, long[] teamIds) - Specified by:
deleteUserGroupTeams
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
deleteUserGroupTeams
public void deleteUserGroupTeams(long userGroupId, List<com.liferay.portal.kernel.model.Team> teams) - Specified by:
deleteUserGroupTeams
in interfacecom.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 interfacecom.liferay.portal.kernel.service.TeamLocalService
- Parameters:
teamId
- the teamId of the team- Returns:
- long[] the userGroupIds of user groups associated with the team
-
getUserGroupTeams
- Specified by:
getUserGroupTeams
in interfacecom.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 interfacecom.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 interfacecom.liferay.portal.kernel.service.TeamLocalService
-
getUserGroupTeamsCount
public int getUserGroupTeamsCount(long userGroupId) - Specified by:
getUserGroupTeamsCount
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
hasUserGroupTeam
public boolean hasUserGroupTeam(long userGroupId, long teamId) - Specified by:
hasUserGroupTeam
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
hasUserGroupTeams
public boolean hasUserGroupTeams(long userGroupId) - Specified by:
hasUserGroupTeams
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
setUserGroupTeams
public void setUserGroupTeams(long userGroupId, long[] teamIds) - Specified by:
setUserGroupTeams
in interfacecom.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
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfacecom.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
- Specified by:
getOSGiServiceIdentifier
in interfacecom.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 interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Team>
- Specified by:
getCTPersistence
in interfacecom.liferay.portal.kernel.service.TeamLocalService
-
getModelClass
- Specified by:
getModelClass
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Team>
- Specified by:
getModelClass
in interfacecom.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, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Team>
- Specified by:
updateWithUnsafeFunction
in interfacecom.liferay.portal.kernel.service.TeamLocalService
- Throws:
E extends Throwable
-
getModelClassName
-
runSQL
Performs a SQL query.- Parameters:
sql
- the sql query
-