Class UserGroupLocalServiceBaseImpl
- 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.UserGroup>,com.liferay.portal.kernel.service.PersistedModelLocalService,com.liferay.portal.kernel.service.UserGroupLocalService
- Direct Known Subclasses:
UserGroupLocalServiceImpl
This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in UserGroupLocalServiceImpl.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.liferay.counter.kernel.service.CounterLocalServiceprotected com.liferay.portal.kernel.service.persistence.GroupPersistenceprotected com.liferay.portal.kernel.service.persistence.TeamPersistenceprotected com.liferay.portal.kernel.service.persistence.UserGroupFinderprotected com.liferay.portal.kernel.service.UserGroupLocalServiceprotected com.liferay.portal.kernel.service.persistence.UserGroupPersistenceprotected com.liferay.portal.kernel.service.persistence.UserPersistence -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddGroupUserGroup(long groupId, long userGroupId) booleanaddGroupUserGroup(long groupId, com.liferay.portal.kernel.model.UserGroup userGroup) booleanaddGroupUserGroups(long groupId, long[] userGroupIds) booleanaddGroupUserGroups(long groupId, List<com.liferay.portal.kernel.model.UserGroup> userGroups) booleanaddTeamUserGroup(long teamId, long userGroupId) booleanaddTeamUserGroup(long teamId, com.liferay.portal.kernel.model.UserGroup userGroup) booleanaddTeamUserGroups(long teamId, long[] userGroupIds) booleanaddTeamUserGroups(long teamId, List<com.liferay.portal.kernel.model.UserGroup> userGroups) com.liferay.portal.kernel.model.UserGroupaddUserGroup(com.liferay.portal.kernel.model.UserGroup userGroup) Adds the user group to the database.booleanaddUserUserGroup(long userId, long userGroupId) booleanaddUserUserGroup(long userId, com.liferay.portal.kernel.model.UserGroup userGroup) booleanaddUserUserGroups(long userId, long[] userGroupIds) booleanaddUserUserGroups(long userId, List<com.liferay.portal.kernel.model.UserGroup> userGroups) voidvoidclearGroupUserGroups(long groupId) voidclearTeamUserGroups(long teamId) voidclearUserUserGroups(long userId) com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) com.liferay.portal.kernel.model.UserGroupcreateUserGroup(long userGroupId) Creates a new user group with the primary key.voiddeleteGroupUserGroup(long groupId, long userGroupId) voiddeleteGroupUserGroup(long groupId, com.liferay.portal.kernel.model.UserGroup userGroup) voiddeleteGroupUserGroups(long groupId, long[] userGroupIds) voiddeleteGroupUserGroups(long groupId, List<com.liferay.portal.kernel.model.UserGroup> userGroups) com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) voiddeleteTeamUserGroup(long teamId, long userGroupId) voiddeleteTeamUserGroup(long teamId, com.liferay.portal.kernel.model.UserGroup userGroup) voiddeleteTeamUserGroups(long teamId, long[] userGroupIds) voiddeleteTeamUserGroups(long teamId, List<com.liferay.portal.kernel.model.UserGroup> userGroups) com.liferay.portal.kernel.model.UserGroupdeleteUserGroup(long userGroupId) Deletes the user group with the primary key from the database.com.liferay.portal.kernel.model.UserGroupdeleteUserGroup(com.liferay.portal.kernel.model.UserGroup userGroup) Deletes the user group from the database.voiddeleteUserUserGroup(long userId, long userGroupId) voiddeleteUserUserGroup(long userId, com.liferay.portal.kernel.model.UserGroup userGroup) voiddeleteUserUserGroups(long userId, long[] userGroupIds) voiddeleteUserUserGroups(long userId, List<com.liferay.portal.kernel.model.UserGroup> userGroups) voiddestroy()<T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(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.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(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.UserGroupfetchUserGroup(long userGroupId) com.liferay.portal.kernel.model.UserGroupfetchUserGroupByExternalReferenceCode(String externalReferenceCode, long companyId) com.liferay.portal.kernel.model.UserGroupfetchUserGroupByUuidAndCompanyId(String uuid, long companyId) Returns the user group with the matching UUID and company.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerycom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.UserGroup>com.liferay.counter.kernel.service.CounterLocalServiceReturns the counter local service.com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.UserGroup>com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) long[]getGroupPrimaryKeys(long userGroupId) Returns the groupIds of the groups associated with the user group.List<com.liferay.portal.kernel.model.UserGroup>getGroupUserGroups(long groupId) List<com.liferay.portal.kernel.model.UserGroup>getGroupUserGroups(long groupId, int start, int end) List<com.liferay.portal.kernel.model.UserGroup>getGroupUserGroups(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator) intgetGroupUserGroupsCount(long groupId) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQueryClass<com.liferay.portal.kernel.model.UserGroup>protected StringReturns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) long[]getTeamPrimaryKeys(long userGroupId) Returns the teamIds of the teams associated with the user group.List<com.liferay.portal.kernel.model.UserGroup>getTeamUserGroups(long teamId) List<com.liferay.portal.kernel.model.UserGroup>getTeamUserGroups(long teamId, int start, int end) List<com.liferay.portal.kernel.model.UserGroup>getTeamUserGroups(long teamId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator) intgetTeamUserGroupsCount(long teamId) com.liferay.portal.kernel.model.UserGroupgetUserGroup(long userGroupId) Returns the user group with the primary key.com.liferay.portal.kernel.model.UserGroupgetUserGroupByExternalReferenceCode(String externalReferenceCode, long companyId) com.liferay.portal.kernel.model.UserGroupgetUserGroupByUuidAndCompanyId(String uuid, long companyId) Returns the user group with the matching UUID and company.com.liferay.portal.kernel.service.persistence.UserGroupFinderReturns the user group finder.com.liferay.portal.kernel.service.UserGroupLocalServiceReturns the user group local service.com.liferay.portal.kernel.service.persistence.UserGroupPersistenceReturns the user group persistence.List<com.liferay.portal.kernel.model.UserGroup>getUserGroups(int start, int end) Returns a range of all the user groups.intReturns the number of user groups.long[]getUserPrimaryKeys(long userGroupId) Returns the userIds of the users associated with the user group.List<com.liferay.portal.kernel.model.UserGroup>getUserUserGroups(long userId) List<com.liferay.portal.kernel.model.UserGroup>getUserUserGroups(long userId, int start, int end) List<com.liferay.portal.kernel.model.UserGroup>getUserUserGroups(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator) intgetUserUserGroupsCount(long userId) booleanhasGroupUserGroup(long groupId, long userGroupId) booleanhasGroupUserGroups(long groupId) booleanhasTeamUserGroup(long teamId, long userGroupId) booleanhasTeamUserGroups(long teamId) booleanhasUserUserGroup(long userId, long userGroupId) booleanhasUserUserGroups(long userId) protected voidinitActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery) protected voidPerforms a SQL query.voidsetCounterLocalService(com.liferay.counter.kernel.service.CounterLocalService counterLocalService) Sets the counter local service.voidsetGroupUserGroups(long groupId, long[] userGroupIds) voidsetTeamUserGroups(long teamId, long[] userGroupIds) voidsetUserGroupFinder(com.liferay.portal.kernel.service.persistence.UserGroupFinder userGroupFinder) Sets the user group finder.voidsetUserGroupLocalService(com.liferay.portal.kernel.service.UserGroupLocalService userGroupLocalService) Sets the user group local service.voidsetUserGroupPersistence(com.liferay.portal.kernel.service.persistence.UserGroupPersistence userGroupPersistence) Sets the user group persistence.voidsetUserUserGroups(long userId, long[] userGroupIds) com.liferay.portal.kernel.model.UserGroupupdateUserGroup(com.liferay.portal.kernel.model.UserGroup userGroup) Updates the user group 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.UserGroup>, R, E> updateUnsafeFunction) Methods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMapMethods 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
fetchPersistedModelMethods inherited from interface com.liferay.portal.kernel.service.UserGroupLocalService
addOrUpdateUserGroup, addUserGroup, deleteUserGroups, fetchUserGroup, getGroupUserUserGroups, getUserGroup, getUserGroups, getUserGroups, getUserGroups, getUserGroups, getUserGroupsCount, search, search, search, search, searchCount, searchCount, searchUserGroups, searchUserGroups, unsetGroupUserGroups, unsetTeamUserGroups, updateExternalReferenceCode, updateUserGroup
-
Field Details
-
userGroupLocalService
@BeanReference(type=com.liferay.portal.kernel.service.UserGroupLocalService.class) protected com.liferay.portal.kernel.service.UserGroupLocalService userGroupLocalService -
userGroupPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserGroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence userGroupPersistence -
userGroupFinder
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserGroupFinder.class) protected com.liferay.portal.kernel.service.persistence.UserGroupFinder userGroupFinder -
counterLocalService
@BeanReference(type=com.liferay.counter.kernel.service.CounterLocalService.class) protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService -
groupPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.GroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.GroupPersistence groupPersistence -
teamPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.TeamPersistence.class) protected com.liferay.portal.kernel.service.persistence.TeamPersistence teamPersistence -
userPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence
-
-
Constructor Details
-
UserGroupLocalServiceBaseImpl
public UserGroupLocalServiceBaseImpl()
-
-
Method Details
-
addUserGroup
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.UserGroup addUserGroup(com.liferay.portal.kernel.model.UserGroup userGroup) Adds the user group to the database. Also notifies the appropriate model listeners.Important: Inspect UserGroupLocalServiceImpl 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:
addUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Parameters:
userGroup- the user group- Returns:
- the user group that was added
-
createUserGroup
@Transactional(enabled=false) public com.liferay.portal.kernel.model.UserGroup createUserGroup(long userGroupId) Creates a new user group with the primary key. Does not add the user group to the database.- Specified by:
createUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Parameters:
userGroupId- the primary key for the new user group- Returns:
- the new user group
-
deleteUserGroup
@Indexable(type=DELETE) public com.liferay.portal.kernel.model.UserGroup deleteUserGroup(long userGroupId) throws com.liferay.portal.kernel.exception.PortalException Deletes the user group with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect UserGroupLocalServiceImpl 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:
deleteUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Parameters:
userGroupId- the primary key of the user group- Returns:
- the user group that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a user group with the primary key could not be found
-
deleteUserGroup
@Indexable(type=DELETE) public com.liferay.portal.kernel.model.UserGroup deleteUserGroup(com.liferay.portal.kernel.model.UserGroup userGroup) throws com.liferay.portal.kernel.exception.PortalException Deletes the user group from the database. Also notifies the appropriate model listeners.Important: Inspect UserGroupLocalServiceImpl 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:
deleteUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Parameters:
userGroup- the user group- Returns:
- the user group 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:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- 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 - 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.UserGroupModelImpl.- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- 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 - 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.UserGroupModelImpl.- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- 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:
dynamicQueryCountin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- 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:
dynamicQueryCountin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchUserGroup
public com.liferay.portal.kernel.model.UserGroup fetchUserGroup(long userGroupId) - Specified by:
fetchUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
fetchUserGroupByUuidAndCompanyId
public com.liferay.portal.kernel.model.UserGroup fetchUserGroupByUuidAndCompanyId(String uuid, long companyId) Returns the user group with the matching UUID and company.- Specified by:
fetchUserGroupByUuidAndCompanyIdin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Parameters:
uuid- the user group's UUIDcompanyId- the primary key of the company- Returns:
- the matching user group, or
nullif a matching user group could not be found
-
fetchUserGroupByExternalReferenceCode
public com.liferay.portal.kernel.model.UserGroup fetchUserGroupByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchUserGroupByExternalReferenceCodein interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
getUserGroupByExternalReferenceCode
public com.liferay.portal.kernel.model.UserGroup getUserGroupByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getUserGroupByExternalReferenceCodein interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getUserGroup
public com.liferay.portal.kernel.model.UserGroup getUserGroup(long userGroupId) throws com.liferay.portal.kernel.exception.PortalException Returns the user group with the primary key.- Specified by:
getUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Parameters:
userGroupId- the primary key of the user group- Returns:
- the user group
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a user group with the primary key could not be found
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQueryin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQueryin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
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:
getExportActionableDynamicQueryin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- 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:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Specified by:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.UserGroup> getBasePersistence()- Specified by:
getBasePersistencein 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:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getUserGroupByUuidAndCompanyId
public com.liferay.portal.kernel.model.UserGroup getUserGroupByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException Returns the user group with the matching UUID and company.- Specified by:
getUserGroupByUuidAndCompanyIdin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Parameters:
uuid- the user group's UUIDcompanyId- the primary key of the company- Returns:
- the matching user group
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a matching user group could not be found
-
getUserGroups
Returns a range of all the user groups.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.UserGroupModelImpl.- Specified by:
getUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Parameters:
start- the lower bound of the range of user groupsend- the upper bound of the range of user groups (not inclusive)- Returns:
- the range of user groups
-
getUserGroupsCount
public int getUserGroupsCount()Returns the number of user groups.- Specified by:
getUserGroupsCountin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Returns:
- the number of user groups
-
updateUserGroup
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.UserGroup updateUserGroup(com.liferay.portal.kernel.model.UserGroup userGroup) Updates the user group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect UserGroupLocalServiceImpl 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:
updateUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Parameters:
userGroup- the user group- Returns:
- the user group that was updated
-
addGroupUserGroup
public boolean addGroupUserGroup(long groupId, long userGroupId) - Specified by:
addGroupUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
addGroupUserGroup
public boolean addGroupUserGroup(long groupId, com.liferay.portal.kernel.model.UserGroup userGroup) - Specified by:
addGroupUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
addGroupUserGroups
public boolean addGroupUserGroups(long groupId, long[] userGroupIds) - Specified by:
addGroupUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
addGroupUserGroups
public boolean addGroupUserGroups(long groupId, List<com.liferay.portal.kernel.model.UserGroup> userGroups) - Specified by:
addGroupUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
clearGroupUserGroups
public void clearGroupUserGroups(long groupId) - Specified by:
clearGroupUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
deleteGroupUserGroup
public void deleteGroupUserGroup(long groupId, long userGroupId) - Specified by:
deleteGroupUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
deleteGroupUserGroup
public void deleteGroupUserGroup(long groupId, com.liferay.portal.kernel.model.UserGroup userGroup) - Specified by:
deleteGroupUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
deleteGroupUserGroups
public void deleteGroupUserGroups(long groupId, long[] userGroupIds) - Specified by:
deleteGroupUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
deleteGroupUserGroups
public void deleteGroupUserGroups(long groupId, List<com.liferay.portal.kernel.model.UserGroup> userGroups) - Specified by:
deleteGroupUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
getGroupPrimaryKeys
public long[] getGroupPrimaryKeys(long userGroupId) Returns the groupIds of the groups associated with the user group.- Specified by:
getGroupPrimaryKeysin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Parameters:
userGroupId- the userGroupId of the user group- Returns:
- long[] the groupIds of groups associated with the user group
-
getGroupUserGroups
- Specified by:
getGroupUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
getGroupUserGroups
public List<com.liferay.portal.kernel.model.UserGroup> getGroupUserGroups(long groupId, int start, int end) - Specified by:
getGroupUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
getGroupUserGroups
public List<com.liferay.portal.kernel.model.UserGroup> getGroupUserGroups(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator) - Specified by:
getGroupUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
getGroupUserGroupsCount
public int getGroupUserGroupsCount(long groupId) - Specified by:
getGroupUserGroupsCountin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
hasGroupUserGroup
public boolean hasGroupUserGroup(long groupId, long userGroupId) - Specified by:
hasGroupUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
hasGroupUserGroups
public boolean hasGroupUserGroups(long groupId) - Specified by:
hasGroupUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
setGroupUserGroups
public void setGroupUserGroups(long groupId, long[] userGroupIds) - Specified by:
setGroupUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
addTeamUserGroup
public boolean addTeamUserGroup(long teamId, long userGroupId) - Specified by:
addTeamUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
addTeamUserGroup
public boolean addTeamUserGroup(long teamId, com.liferay.portal.kernel.model.UserGroup userGroup) - Specified by:
addTeamUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
addTeamUserGroups
public boolean addTeamUserGroups(long teamId, long[] userGroupIds) - Specified by:
addTeamUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
addTeamUserGroups
public boolean addTeamUserGroups(long teamId, List<com.liferay.portal.kernel.model.UserGroup> userGroups) - Specified by:
addTeamUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
clearTeamUserGroups
public void clearTeamUserGroups(long teamId) - Specified by:
clearTeamUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
deleteTeamUserGroup
public void deleteTeamUserGroup(long teamId, long userGroupId) - Specified by:
deleteTeamUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
deleteTeamUserGroup
public void deleteTeamUserGroup(long teamId, com.liferay.portal.kernel.model.UserGroup userGroup) - Specified by:
deleteTeamUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
deleteTeamUserGroups
public void deleteTeamUserGroups(long teamId, long[] userGroupIds) - Specified by:
deleteTeamUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
deleteTeamUserGroups
public void deleteTeamUserGroups(long teamId, List<com.liferay.portal.kernel.model.UserGroup> userGroups) - Specified by:
deleteTeamUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
getTeamPrimaryKeys
public long[] getTeamPrimaryKeys(long userGroupId) Returns the teamIds of the teams associated with the user group.- Specified by:
getTeamPrimaryKeysin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Parameters:
userGroupId- the userGroupId of the user group- Returns:
- long[] the teamIds of teams associated with the user group
-
getTeamUserGroups
- Specified by:
getTeamUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
getTeamUserGroups
public List<com.liferay.portal.kernel.model.UserGroup> getTeamUserGroups(long teamId, int start, int end) - Specified by:
getTeamUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
getTeamUserGroups
public List<com.liferay.portal.kernel.model.UserGroup> getTeamUserGroups(long teamId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator) - Specified by:
getTeamUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
getTeamUserGroupsCount
public int getTeamUserGroupsCount(long teamId) - Specified by:
getTeamUserGroupsCountin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
hasTeamUserGroup
public boolean hasTeamUserGroup(long teamId, long userGroupId) - Specified by:
hasTeamUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
hasTeamUserGroups
public boolean hasTeamUserGroups(long teamId) - Specified by:
hasTeamUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
setTeamUserGroups
public void setTeamUserGroups(long teamId, long[] userGroupIds) - Specified by:
setTeamUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
addUserUserGroup
public boolean addUserUserGroup(long userId, long userGroupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addUserUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addUserUserGroup
public boolean addUserUserGroup(long userId, com.liferay.portal.kernel.model.UserGroup userGroup) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addUserUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addUserUserGroups
public boolean addUserUserGroups(long userId, long[] userGroupIds) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addUserUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addUserUserGroups
public boolean addUserUserGroups(long userId, List<com.liferay.portal.kernel.model.UserGroup> userGroups) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addUserUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
clearUserUserGroups
public void clearUserUserGroups(long userId) - Specified by:
clearUserUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
deleteUserUserGroup
public void deleteUserUserGroup(long userId, long userGroupId) - Specified by:
deleteUserUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
deleteUserUserGroup
public void deleteUserUserGroup(long userId, com.liferay.portal.kernel.model.UserGroup userGroup) - Specified by:
deleteUserUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
deleteUserUserGroups
public void deleteUserUserGroups(long userId, long[] userGroupIds) - Specified by:
deleteUserUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
deleteUserUserGroups
public void deleteUserUserGroups(long userId, List<com.liferay.portal.kernel.model.UserGroup> userGroups) - Specified by:
deleteUserUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
getUserPrimaryKeys
public long[] getUserPrimaryKeys(long userGroupId) Returns the userIds of the users associated with the user group.- Specified by:
getUserPrimaryKeysin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Parameters:
userGroupId- the userGroupId of the user group- Returns:
- long[] the userIds of users associated with the user group
-
getUserUserGroups
- Specified by:
getUserUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
getUserUserGroups
public List<com.liferay.portal.kernel.model.UserGroup> getUserUserGroups(long userId, int start, int end) - Specified by:
getUserUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
getUserUserGroups
public List<com.liferay.portal.kernel.model.UserGroup> getUserUserGroups(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator) - Specified by:
getUserUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
getUserUserGroupsCount
public int getUserUserGroupsCount(long userId) - Specified by:
getUserUserGroupsCountin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
hasUserUserGroup
public boolean hasUserUserGroup(long userId, long userGroupId) - Specified by:
hasUserUserGroupin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
hasUserUserGroups
public boolean hasUserUserGroups(long userId) - Specified by:
hasUserUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
setUserUserGroups
public void setUserUserGroups(long userId, long[] userGroupIds) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
setUserUserGroupsin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getUserGroupLocalService
public com.liferay.portal.kernel.service.UserGroupLocalService getUserGroupLocalService()Returns the user group local service.- Returns:
- the user group local service
-
setUserGroupLocalService
public void setUserGroupLocalService(com.liferay.portal.kernel.service.UserGroupLocalService userGroupLocalService) Sets the user group local service.- Parameters:
userGroupLocalService- the user group local service
-
getUserGroupPersistence
public com.liferay.portal.kernel.service.persistence.UserGroupPersistence getUserGroupPersistence()Returns the user group persistence.- Returns:
- the user group persistence
-
setUserGroupPersistence
public void setUserGroupPersistence(com.liferay.portal.kernel.service.persistence.UserGroupPersistence userGroupPersistence) Sets the user group persistence.- Parameters:
userGroupPersistence- the user group persistence
-
getUserGroupFinder
public com.liferay.portal.kernel.service.persistence.UserGroupFinder getUserGroupFinder()Returns the user group finder.- Returns:
- the user group finder
-
setUserGroupFinder
public void setUserGroupFinder(com.liferay.portal.kernel.service.persistence.UserGroupFinder userGroupFinder) Sets the user group finder.- Parameters:
userGroupFinder- the user group 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:
getOSGiServiceIdentifierin interfacecom.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService- Specified by:
getOSGiServiceIdentifierin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Returns:
- the OSGi service identifier
-
getCTPersistence
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.UserGroup> getCTPersistence()- Specified by:
getCTPersistencein interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.UserGroup>- Specified by:
getCTPersistencein interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
getModelClass
- Specified by:
getModelClassin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.UserGroup>- Specified by:
getModelClassin interfacecom.liferay.portal.kernel.service.UserGroupLocalService
-
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.UserGroup>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.UserGroup>- Specified by:
updateWithUnsafeFunctionin interfacecom.liferay.portal.kernel.service.UserGroupLocalService- Throws:
E extends Throwable
-
getModelClassName
-
runSQL
Performs a SQL query.- Parameters:
sql- the sql query
-