Class GroupLocalServiceBaseImpl
- 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.Group>,com.liferay.portal.kernel.service.GroupLocalService,com.liferay.portal.kernel.service.PersistedModelLocalService
- Direct Known Subclasses:
GroupLocalServiceImpl
This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in GroupLocalServiceImpl.
- 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.GroupFinderprotected com.liferay.portal.kernel.service.GroupLocalServiceprotected com.liferay.portal.kernel.service.persistence.GroupPersistenceprotected com.liferay.portal.kernel.service.persistence.OrganizationPersistenceprotected com.liferay.portal.kernel.service.persistence.RolePersistenceprotected com.liferay.portal.kernel.service.persistence.UserGroupPersistenceprotected com.liferay.portal.kernel.service.persistence.UserPersistence -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.model.GroupaddGroup(com.liferay.portal.kernel.model.Group group) Adds the group to the database.booleanaddOrganizationGroup(long organizationId, long groupId) booleanaddOrganizationGroup(long organizationId, com.liferay.portal.kernel.model.Group group) booleanaddOrganizationGroups(long organizationId, long[] groupIds) booleanaddOrganizationGroups(long organizationId, List<com.liferay.portal.kernel.model.Group> groups) booleanaddRoleGroup(long roleId, long groupId) booleanaddRoleGroup(long roleId, com.liferay.portal.kernel.model.Group group) booleanaddRoleGroups(long roleId, long[] groupIds) booleanaddRoleGroups(long roleId, List<com.liferay.portal.kernel.model.Group> groups) booleanaddUserGroup(long userId, long groupId) booleanaddUserGroup(long userId, com.liferay.portal.kernel.model.Group group) booleanaddUserGroupGroup(long userGroupId, long groupId) booleanaddUserGroupGroup(long userGroupId, com.liferay.portal.kernel.model.Group group) booleanaddUserGroupGroups(long userGroupId, long[] groupIds) booleanaddUserGroupGroups(long userGroupId, List<com.liferay.portal.kernel.model.Group> groups) booleanaddUserGroups(long userId, long[] groupIds) booleanaddUserGroups(long userId, List<com.liferay.portal.kernel.model.Group> groups) voidvoidclearOrganizationGroups(long organizationId) voidclearRoleGroups(long roleId) voidclearUserGroupGroups(long userGroupId) voidclearUserGroups(long userId) com.liferay.portal.kernel.model.GroupcreateGroup(long groupId) Creates a new group with the primary key.com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) com.liferay.portal.kernel.model.GroupdeleteGroup(long groupId) Deletes the group with the primary key from the database.com.liferay.portal.kernel.model.GroupdeleteGroup(com.liferay.portal.kernel.model.Group group) Deletes the group from the database.voiddeleteOrganizationGroup(long organizationId, long groupId) voiddeleteOrganizationGroup(long organizationId, com.liferay.portal.kernel.model.Group group) voiddeleteOrganizationGroups(long organizationId, long[] groupIds) voiddeleteOrganizationGroups(long organizationId, List<com.liferay.portal.kernel.model.Group> groups) com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) voiddeleteRoleGroup(long roleId, long groupId) voiddeleteRoleGroup(long roleId, com.liferay.portal.kernel.model.Group group) voiddeleteRoleGroups(long roleId, long[] groupIds) voiddeleteRoleGroups(long roleId, List<com.liferay.portal.kernel.model.Group> groups) voiddeleteUserGroup(long userId, long groupId) voiddeleteUserGroup(long userId, com.liferay.portal.kernel.model.Group group) voiddeleteUserGroupGroup(long userGroupId, long groupId) voiddeleteUserGroupGroup(long userGroupId, com.liferay.portal.kernel.model.Group group) voiddeleteUserGroupGroups(long userGroupId, long[] groupIds) voiddeleteUserGroupGroups(long userGroupId, List<com.liferay.portal.kernel.model.Group> groups) voiddeleteUserGroups(long userId, long[] groupIds) voiddeleteUserGroups(long userId, List<com.liferay.portal.kernel.model.Group> groups) 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.GroupfetchGroup(long groupId) com.liferay.portal.kernel.model.GroupfetchGroupByExternalReferenceCode(String externalReferenceCode, long companyId) com.liferay.portal.kernel.model.GroupfetchGroupByUuidAndCompanyId(String uuid, long companyId) Returns the 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.Group>com.liferay.counter.kernel.service.CounterLocalServiceReturns the counter local service.com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Group>com.liferay.portal.kernel.model.GroupgetGroup(long groupId) Returns the group with the primary key.com.liferay.portal.kernel.model.GroupgetGroupByExternalReferenceCode(String externalReferenceCode, long companyId) com.liferay.portal.kernel.model.GroupgetGroupByUuidAndCompanyId(String uuid, long companyId) Returns the group with the matching UUID and company.com.liferay.portal.kernel.service.persistence.GroupFinderReturns the group finder.com.liferay.portal.kernel.service.GroupLocalServiceReturns the group local service.com.liferay.portal.kernel.service.persistence.GroupPersistenceReturns the group persistence.List<com.liferay.portal.kernel.model.Group>getGroups(int start, int end) Returns a range of all the groups.intReturns the number of groups.com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQueryClass<com.liferay.portal.kernel.model.Group>protected StringList<com.liferay.portal.kernel.model.Group>getOrganizationGroups(long organizationId) List<com.liferay.portal.kernel.model.Group>getOrganizationGroups(long organizationId, int start, int end) List<com.liferay.portal.kernel.model.Group>getOrganizationGroups(long organizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) intgetOrganizationGroupsCount(long organizationId) long[]getOrganizationPrimaryKeys(long groupId) Returns the organizationIds of the organizations associated with the group.Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) List<com.liferay.portal.kernel.model.Group>getRoleGroups(long roleId) List<com.liferay.portal.kernel.model.Group>getRoleGroups(long roleId, int start, int end) List<com.liferay.portal.kernel.model.Group>getRoleGroups(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) intgetRoleGroupsCount(long roleId) long[]getRolePrimaryKeys(long groupId) Returns the roleIds of the roles associated with the group.List<com.liferay.portal.kernel.model.Group>getUserGroupGroups(long userGroupId) List<com.liferay.portal.kernel.model.Group>getUserGroupGroups(long userGroupId, int start, int end) List<com.liferay.portal.kernel.model.Group>getUserGroupGroups(long userGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) intgetUserGroupGroupsCount(long userGroupId) long[]getUserGroupPrimaryKeys(long groupId) Returns the userGroupIds of the user groups associated with the group.List<com.liferay.portal.kernel.model.Group>getUserGroups(long userId) List<com.liferay.portal.kernel.model.Group>getUserGroups(long userId, int start, int end) List<com.liferay.portal.kernel.model.Group>getUserGroups(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) intgetUserGroupsCount(long userId) long[]getUserPrimaryKeys(long groupId) Returns the userIds of the users associated with the group.booleanhasOrganizationGroup(long organizationId, long groupId) booleanhasOrganizationGroups(long organizationId) booleanhasRoleGroup(long roleId, long groupId) booleanhasRoleGroups(long roleId) booleanhasUserGroup(long userId, long groupId) booleanhasUserGroupGroup(long userGroupId, long groupId) booleanhasUserGroupGroups(long userGroupId) booleanhasUserGroups(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.voidsetGroupFinder(com.liferay.portal.kernel.service.persistence.GroupFinder groupFinder) Sets the group finder.voidsetGroupLocalService(com.liferay.portal.kernel.service.GroupLocalService groupLocalService) Sets the group local service.voidsetGroupPersistence(com.liferay.portal.kernel.service.persistence.GroupPersistence groupPersistence) Sets the group persistence.voidsetOrganizationGroups(long organizationId, long[] groupIds) voidsetRoleGroups(long roleId, long[] groupIds) voidsetUserGroupGroups(long userGroupId, long[] groupIds) voidsetUserGroups(long userId, long[] groupIds) com.liferay.portal.kernel.model.GroupupdateGroup(com.liferay.portal.kernel.model.Group group) Updates the 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.Group>, 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.GroupLocalService
addGroup, addGroup, addOrUpdateGroup, checkCompanyGroup, checkScopeGroup, checkSystemGroups, disableStaging, enableStaging, fetchCompanyGroup, fetchFriendlyURLGroup, fetchGroup, fetchGroup, fetchStagingGroup, fetchUserGroup, fetchUserPersonalSiteGroup, getActiveGroupIds, getActiveGroups, getActiveGroups, getActiveGroups, getActiveGroupsCount, getActiveGroupsCount, getCompanyGroup, getCompanyGroups, getCompanyGroupsCount, getFriendlyURLGroup, getGroup, getGroupIds, getGroups, getGroups, getGroups, getGroups, getGroups, getGroups, getGroups, getGroups, getGroupsCount, getGroupsCount, getGroupsCount, getLayoutGroup, getLayoutPrototypeGroup, getLayoutSetPrototypeGroup, getLayoutsGroups, getLayoutsGroups, getLayoutsGroupsCount, getLayoutsGroupsCount, getLiveGroups, getOrganizationGroup, getOrganizationsGroups, getOrganizationsRelatedGroups, getParentGroups, getStagedSites, getStagingGroup, getUserGroup, getUserGroupGroup, getUserGroups, getUserGroups, getUserGroupsGroups, getUserGroupsRelatedGroups, getUserOrganizationsGroups, getUserPersonalSiteGroup, getUserSitesGroups, getUserSitesGroups, getUserSitesGroups, hasStagingGroup, hasUserGroup, isLiveGroupActive, loadFetchGroup, loadGetGroup, rebuildTree, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, searchCount, searchCount, searchCount, searchCount, searchCount, searchCount, searchCount, searchCount, unsetRoleGroups, unsetUserGroups, updateAsset, updateFriendlyURL, updateGroup, updateGroup, updateSite, validateRemoteMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Field Details
-
groupLocalService
@BeanReference(type=com.liferay.portal.kernel.service.GroupLocalService.class) protected com.liferay.portal.kernel.service.GroupLocalService groupLocalService -
groupPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.GroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.GroupPersistence groupPersistence -
groupFinder
@BeanReference(type=com.liferay.portal.kernel.service.persistence.GroupFinder.class) protected com.liferay.portal.kernel.service.persistence.GroupFinder groupFinder -
counterLocalService
@BeanReference(type=com.liferay.counter.kernel.service.CounterLocalService.class) protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService -
organizationPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.OrganizationPersistence.class) protected com.liferay.portal.kernel.service.persistence.OrganizationPersistence organizationPersistence -
rolePersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.RolePersistence.class) protected com.liferay.portal.kernel.service.persistence.RolePersistence rolePersistence -
userGroupPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserGroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence userGroupPersistence -
userPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence
-
-
Constructor Details
-
GroupLocalServiceBaseImpl
public GroupLocalServiceBaseImpl()
-
-
Method Details
-
addGroup
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Group addGroup(com.liferay.portal.kernel.model.Group group) Adds the group to the database. Also notifies the appropriate model listeners.Important: Inspect GroupLocalServiceImpl 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:
addGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService- Parameters:
group- the group- Returns:
- the group that was added
-
createGroup
@Transactional(enabled=false) public com.liferay.portal.kernel.model.Group createGroup(long groupId) Creates a new group with the primary key. Does not add the group to the database.- Specified by:
createGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService- Parameters:
groupId- the primary key for the new group- Returns:
- the new group
-
deleteGroup
@Indexable(type=DELETE) public com.liferay.portal.kernel.model.Group deleteGroup(long groupId) throws com.liferay.portal.kernel.exception.PortalException Deletes the group with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect GroupLocalServiceImpl 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:
deleteGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService- Parameters:
groupId- the primary key of the group- Returns:
- the group that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a group with the primary key could not be found
-
deleteGroup
@Indexable(type=DELETE) public com.liferay.portal.kernel.model.Group deleteGroup(com.liferay.portal.kernel.model.Group group) throws com.liferay.portal.kernel.exception.PortalException Deletes the group from the database. Also notifies the appropriate model listeners.Important: Inspect GroupLocalServiceImpl 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:
deleteGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService- Parameters:
group- the group- Returns:
- the 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.GroupLocalService- Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.GroupLocalService- Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.GroupLocalService- 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.GroupModelImpl.- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.GroupLocalService- 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.GroupModelImpl.- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.GroupLocalService- 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.GroupLocalService- 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.GroupLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchGroup
public com.liferay.portal.kernel.model.Group fetchGroup(long groupId) - Specified by:
fetchGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
fetchGroupByUuidAndCompanyId
public com.liferay.portal.kernel.model.Group fetchGroupByUuidAndCompanyId(String uuid, long companyId) Returns the group with the matching UUID and company.- Specified by:
fetchGroupByUuidAndCompanyIdin interfacecom.liferay.portal.kernel.service.GroupLocalService- Parameters:
uuid- the group's UUIDcompanyId- the primary key of the company- Returns:
- the matching group, or
nullif a matching group could not be found
-
fetchGroupByExternalReferenceCode
public com.liferay.portal.kernel.model.Group fetchGroupByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchGroupByExternalReferenceCodein interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getGroupByExternalReferenceCode
public com.liferay.portal.kernel.model.Group getGroupByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getGroupByExternalReferenceCodein interfacecom.liferay.portal.kernel.service.GroupLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroup
public com.liferay.portal.kernel.model.Group getGroup(long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the group with the primary key.- Specified by:
getGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService- Parameters:
groupId- the primary key of the group- Returns:
- the group
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a 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.GroupLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQueryin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
initActionableDynamicQuery
protected void initActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery) -
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.GroupLocalService- Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- 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.GroupLocalService- Specified by:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Group> 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.GroupLocalService- Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupByUuidAndCompanyId
public com.liferay.portal.kernel.model.Group getGroupByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException Returns the group with the matching UUID and company.- Specified by:
getGroupByUuidAndCompanyIdin interfacecom.liferay.portal.kernel.service.GroupLocalService- Parameters:
uuid- the group's UUIDcompanyId- the primary key of the company- Returns:
- the matching group
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a matching group could not be found
-
getGroups
Returns a range of all the 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.GroupModelImpl.- Specified by:
getGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService- Parameters:
start- the lower bound of the range of groupsend- the upper bound of the range of groups (not inclusive)- Returns:
- the range of groups
-
getGroupsCount
public int getGroupsCount()Returns the number of groups.- Specified by:
getGroupsCountin interfacecom.liferay.portal.kernel.service.GroupLocalService- Returns:
- the number of groups
-
updateGroup
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Group updateGroup(com.liferay.portal.kernel.model.Group group) Updates the group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect GroupLocalServiceImpl 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:
updateGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService- Parameters:
group- the group- Returns:
- the group that was updated
-
addOrganizationGroup
public boolean addOrganizationGroup(long organizationId, long groupId) - Specified by:
addOrganizationGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addOrganizationGroup
public boolean addOrganizationGroup(long organizationId, com.liferay.portal.kernel.model.Group group) - Specified by:
addOrganizationGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addOrganizationGroups
public boolean addOrganizationGroups(long organizationId, long[] groupIds) - Specified by:
addOrganizationGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addOrganizationGroups
public boolean addOrganizationGroups(long organizationId, List<com.liferay.portal.kernel.model.Group> groups) - Specified by:
addOrganizationGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
clearOrganizationGroups
public void clearOrganizationGroups(long organizationId) - Specified by:
clearOrganizationGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteOrganizationGroup
public void deleteOrganizationGroup(long organizationId, long groupId) - Specified by:
deleteOrganizationGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteOrganizationGroup
public void deleteOrganizationGroup(long organizationId, com.liferay.portal.kernel.model.Group group) - Specified by:
deleteOrganizationGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteOrganizationGroups
public void deleteOrganizationGroups(long organizationId, long[] groupIds) - Specified by:
deleteOrganizationGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteOrganizationGroups
public void deleteOrganizationGroups(long organizationId, List<com.liferay.portal.kernel.model.Group> groups) - Specified by:
deleteOrganizationGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getOrganizationPrimaryKeys
public long[] getOrganizationPrimaryKeys(long groupId) Returns the organizationIds of the organizations associated with the group.- Specified by:
getOrganizationPrimaryKeysin interfacecom.liferay.portal.kernel.service.GroupLocalService- Parameters:
groupId- the groupId of the group- Returns:
- long[] the organizationIds of organizations associated with the group
-
getOrganizationGroups
- Specified by:
getOrganizationGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getOrganizationGroups
public List<com.liferay.portal.kernel.model.Group> getOrganizationGroups(long organizationId, int start, int end) - Specified by:
getOrganizationGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getOrganizationGroups
public List<com.liferay.portal.kernel.model.Group> getOrganizationGroups(long organizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) - Specified by:
getOrganizationGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getOrganizationGroupsCount
public int getOrganizationGroupsCount(long organizationId) - Specified by:
getOrganizationGroupsCountin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
hasOrganizationGroup
public boolean hasOrganizationGroup(long organizationId, long groupId) - Specified by:
hasOrganizationGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
hasOrganizationGroups
public boolean hasOrganizationGroups(long organizationId) - Specified by:
hasOrganizationGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
setOrganizationGroups
public void setOrganizationGroups(long organizationId, long[] groupIds) - Specified by:
setOrganizationGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addRoleGroup
public boolean addRoleGroup(long roleId, long groupId) - Specified by:
addRoleGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addRoleGroup
public boolean addRoleGroup(long roleId, com.liferay.portal.kernel.model.Group group) - Specified by:
addRoleGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addRoleGroups
public boolean addRoleGroups(long roleId, long[] groupIds) - Specified by:
addRoleGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addRoleGroups
- Specified by:
addRoleGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
clearRoleGroups
public void clearRoleGroups(long roleId) - Specified by:
clearRoleGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteRoleGroup
public void deleteRoleGroup(long roleId, long groupId) - Specified by:
deleteRoleGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteRoleGroup
public void deleteRoleGroup(long roleId, com.liferay.portal.kernel.model.Group group) - Specified by:
deleteRoleGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteRoleGroups
public void deleteRoleGroups(long roleId, long[] groupIds) - Specified by:
deleteRoleGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteRoleGroups
- Specified by:
deleteRoleGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getRolePrimaryKeys
public long[] getRolePrimaryKeys(long groupId) Returns the roleIds of the roles associated with the group.- Specified by:
getRolePrimaryKeysin interfacecom.liferay.portal.kernel.service.GroupLocalService- Parameters:
groupId- the groupId of the group- Returns:
- long[] the roleIds of roles associated with the group
-
getRoleGroups
- Specified by:
getRoleGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getRoleGroups
- Specified by:
getRoleGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getRoleGroups
public List<com.liferay.portal.kernel.model.Group> getRoleGroups(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) - Specified by:
getRoleGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getRoleGroupsCount
public int getRoleGroupsCount(long roleId) - Specified by:
getRoleGroupsCountin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
hasRoleGroup
public boolean hasRoleGroup(long roleId, long groupId) - Specified by:
hasRoleGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
hasRoleGroups
public boolean hasRoleGroups(long roleId) - Specified by:
hasRoleGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
setRoleGroups
public void setRoleGroups(long roleId, long[] groupIds) - Specified by:
setRoleGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addUserGroupGroup
public boolean addUserGroupGroup(long userGroupId, long groupId) - Specified by:
addUserGroupGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addUserGroupGroup
public boolean addUserGroupGroup(long userGroupId, com.liferay.portal.kernel.model.Group group) - Specified by:
addUserGroupGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addUserGroupGroups
public boolean addUserGroupGroups(long userGroupId, long[] groupIds) - Specified by:
addUserGroupGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addUserGroupGroups
public boolean addUserGroupGroups(long userGroupId, List<com.liferay.portal.kernel.model.Group> groups) - Specified by:
addUserGroupGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
clearUserGroupGroups
public void clearUserGroupGroups(long userGroupId) - Specified by:
clearUserGroupGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteUserGroupGroup
public void deleteUserGroupGroup(long userGroupId, long groupId) - Specified by:
deleteUserGroupGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteUserGroupGroup
public void deleteUserGroupGroup(long userGroupId, com.liferay.portal.kernel.model.Group group) - Specified by:
deleteUserGroupGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteUserGroupGroups
public void deleteUserGroupGroups(long userGroupId, long[] groupIds) - Specified by:
deleteUserGroupGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteUserGroupGroups
public void deleteUserGroupGroups(long userGroupId, List<com.liferay.portal.kernel.model.Group> groups) - Specified by:
deleteUserGroupGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getUserGroupPrimaryKeys
public long[] getUserGroupPrimaryKeys(long groupId) Returns the userGroupIds of the user groups associated with the group.- Specified by:
getUserGroupPrimaryKeysin interfacecom.liferay.portal.kernel.service.GroupLocalService- Parameters:
groupId- the groupId of the group- Returns:
- long[] the userGroupIds of user groups associated with the group
-
getUserGroupGroups
- Specified by:
getUserGroupGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getUserGroupGroups
public List<com.liferay.portal.kernel.model.Group> getUserGroupGroups(long userGroupId, int start, int end) - Specified by:
getUserGroupGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getUserGroupGroups
public List<com.liferay.portal.kernel.model.Group> getUserGroupGroups(long userGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) - Specified by:
getUserGroupGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getUserGroupGroupsCount
public int getUserGroupGroupsCount(long userGroupId) - Specified by:
getUserGroupGroupsCountin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
hasUserGroupGroup
public boolean hasUserGroupGroup(long userGroupId, long groupId) - Specified by:
hasUserGroupGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
hasUserGroupGroups
public boolean hasUserGroupGroups(long userGroupId) - Specified by:
hasUserGroupGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
setUserGroupGroups
public void setUserGroupGroups(long userGroupId, long[] groupIds) - Specified by:
setUserGroupGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addUserGroup
public boolean addUserGroup(long userId, long groupId) - Specified by:
addUserGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addUserGroup
public boolean addUserGroup(long userId, com.liferay.portal.kernel.model.Group group) - Specified by:
addUserGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addUserGroups
public boolean addUserGroups(long userId, long[] groupIds) - Specified by:
addUserGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addUserGroups
- Specified by:
addUserGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
clearUserGroups
public void clearUserGroups(long userId) - Specified by:
clearUserGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteUserGroup
public void deleteUserGroup(long userId, long groupId) - Specified by:
deleteUserGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteUserGroup
public void deleteUserGroup(long userId, com.liferay.portal.kernel.model.Group group) - Specified by:
deleteUserGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteUserGroups
public void deleteUserGroups(long userId, long[] groupIds) - Specified by:
deleteUserGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteUserGroups
- Specified by:
deleteUserGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getUserPrimaryKeys
public long[] getUserPrimaryKeys(long groupId) Returns the userIds of the users associated with the group.- Specified by:
getUserPrimaryKeysin interfacecom.liferay.portal.kernel.service.GroupLocalService- Parameters:
groupId- the groupId of the group- Returns:
- long[] the userIds of users associated with the group
-
getUserGroups
- Specified by:
getUserGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getUserGroups
- Specified by:
getUserGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getUserGroups
public List<com.liferay.portal.kernel.model.Group> getUserGroups(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getUserGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getUserGroupsCount
public int getUserGroupsCount(long userId) - Specified by:
getUserGroupsCountin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
hasUserGroup
public boolean hasUserGroup(long userId, long groupId) - Specified by:
hasUserGroupin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
hasUserGroups
public boolean hasUserGroups(long userId) - Specified by:
hasUserGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
setUserGroups
public void setUserGroups(long userId, long[] groupIds) - Specified by:
setUserGroupsin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getGroupLocalService
public com.liferay.portal.kernel.service.GroupLocalService getGroupLocalService()Returns the group local service.- Returns:
- the group local service
-
setGroupLocalService
public void setGroupLocalService(com.liferay.portal.kernel.service.GroupLocalService groupLocalService) Sets the group local service.- Parameters:
groupLocalService- the group local service
-
getGroupPersistence
public com.liferay.portal.kernel.service.persistence.GroupPersistence getGroupPersistence()Returns the group persistence.- Returns:
- the group persistence
-
setGroupPersistence
public void setGroupPersistence(com.liferay.portal.kernel.service.persistence.GroupPersistence groupPersistence) Sets the group persistence.- Parameters:
groupPersistence- the group persistence
-
getGroupFinder
public com.liferay.portal.kernel.service.persistence.GroupFinder getGroupFinder()Returns the group finder.- Returns:
- the group finder
-
setGroupFinder
public void setGroupFinder(com.liferay.portal.kernel.service.persistence.GroupFinder groupFinder) Sets the group finder.- Parameters:
groupFinder- the 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.service.GroupLocalService- Specified by:
getOSGiServiceIdentifierin interfacecom.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService- Returns:
- the OSGi service identifier
-
getCTPersistence
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Group> getCTPersistence()- Specified by:
getCTPersistencein interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Group>- Specified by:
getCTPersistencein interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getModelClass
- Specified by:
getModelClassin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Group>- Specified by:
getModelClassin interfacecom.liferay.portal.kernel.service.GroupLocalService
-
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.Group>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Group>- Specified by:
updateWithUnsafeFunctionin interfacecom.liferay.portal.kernel.service.GroupLocalService- Throws:
E extends Throwable
-
getModelClassName
-
runSQL
Performs a SQL query.- Parameters:
sql- the sql query
-