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.CounterLocalService
protected com.liferay.portal.kernel.service.persistence.GroupFinder
protected com.liferay.portal.kernel.service.GroupLocalService
protected com.liferay.portal.kernel.service.persistence.GroupPersistence
protected com.liferay.portal.kernel.service.persistence.OrganizationPersistence
protected com.liferay.portal.kernel.service.persistence.RolePersistence
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.Group
addGroup
(com.liferay.portal.kernel.model.Group group) Adds the group to the database.boolean
addOrganizationGroup
(long organizationId, long groupId) boolean
addOrganizationGroup
(long organizationId, com.liferay.portal.kernel.model.Group group) boolean
addOrganizationGroups
(long organizationId, long[] groupIds) boolean
addOrganizationGroups
(long organizationId, List<com.liferay.portal.kernel.model.Group> groups) boolean
addRoleGroup
(long roleId, long groupId) boolean
addRoleGroup
(long roleId, com.liferay.portal.kernel.model.Group group) boolean
addRoleGroups
(long roleId, long[] groupIds) boolean
addRoleGroups
(long roleId, List<com.liferay.portal.kernel.model.Group> groups) boolean
addUserGroup
(long userId, long groupId) boolean
addUserGroup
(long userId, com.liferay.portal.kernel.model.Group group) boolean
addUserGroupGroup
(long userGroupId, long groupId) boolean
addUserGroupGroup
(long userGroupId, com.liferay.portal.kernel.model.Group group) boolean
addUserGroupGroups
(long userGroupId, long[] groupIds) boolean
addUserGroupGroups
(long userGroupId, List<com.liferay.portal.kernel.model.Group> groups) boolean
addUserGroups
(long userId, long[] groupIds) boolean
addUserGroups
(long userId, List<com.liferay.portal.kernel.model.Group> groups) void
void
clearOrganizationGroups
(long organizationId) void
clearRoleGroups
(long roleId) void
clearUserGroupGroups
(long userGroupId) void
clearUserGroups
(long userId) com.liferay.portal.kernel.model.Group
createGroup
(long groupId) Creates a new group with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) com.liferay.portal.kernel.model.Group
deleteGroup
(long groupId) Deletes the group with the primary key from the database.com.liferay.portal.kernel.model.Group
deleteGroup
(com.liferay.portal.kernel.model.Group group) Deletes the group from the database.void
deleteOrganizationGroup
(long organizationId, long groupId) void
deleteOrganizationGroup
(long organizationId, com.liferay.portal.kernel.model.Group group) void
deleteOrganizationGroups
(long organizationId, long[] groupIds) void
deleteOrganizationGroups
(long organizationId, List<com.liferay.portal.kernel.model.Group> groups) com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) void
deleteRoleGroup
(long roleId, long groupId) void
deleteRoleGroup
(long roleId, com.liferay.portal.kernel.model.Group group) void
deleteRoleGroups
(long roleId, long[] groupIds) void
deleteRoleGroups
(long roleId, List<com.liferay.portal.kernel.model.Group> groups) void
deleteUserGroup
(long userId, long groupId) void
deleteUserGroup
(long userId, com.liferay.portal.kernel.model.Group group) void
deleteUserGroupGroup
(long userGroupId, long groupId) void
deleteUserGroupGroup
(long userGroupId, com.liferay.portal.kernel.model.Group group) void
deleteUserGroupGroups
(long userGroupId, long[] groupIds) void
deleteUserGroupGroups
(long userGroupId, List<com.liferay.portal.kernel.model.Group> groups) void
deleteUserGroups
(long userId, long[] groupIds) void
deleteUserGroups
(long userId, List<com.liferay.portal.kernel.model.Group> groups) 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.Group
fetchGroup
(long groupId) com.liferay.portal.kernel.model.Group
fetchGroupByExternalReferenceCode
(String externalReferenceCode, long companyId) com.liferay.portal.kernel.model.Group
fetchGroupByUuidAndCompanyId
(String uuid, long companyId) Returns the group with the matching UUID and company.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Group>
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.Group>
com.liferay.portal.kernel.model.Group
getGroup
(long groupId) Returns the group with the primary key.com.liferay.portal.kernel.model.Group
getGroupByExternalReferenceCode
(String externalReferenceCode, long companyId) com.liferay.portal.kernel.model.Group
getGroupByUuidAndCompanyId
(String uuid, long companyId) Returns the group with the matching UUID and company.com.liferay.portal.kernel.service.persistence.GroupFinder
Returns the group finder.com.liferay.portal.kernel.service.GroupLocalService
Returns the group local service.com.liferay.portal.kernel.service.persistence.GroupPersistence
Returns the group persistence.List<com.liferay.portal.kernel.model.Group>
getGroups
(int start, int end) Returns a range of all the groups.int
Returns the number of groups.com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
Class<com.liferay.portal.kernel.model.Group>
protected String
List<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) int
getOrganizationGroupsCount
(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.PersistedModel
getPersistedModel
(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) int
getRoleGroupsCount
(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) int
getUserGroupGroupsCount
(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) int
getUserGroupsCount
(long userId) long[]
getUserPrimaryKeys
(long groupId) Returns the userIds of the users associated with the group.boolean
hasOrganizationGroup
(long organizationId, long groupId) boolean
hasOrganizationGroups
(long organizationId) boolean
hasRoleGroup
(long roleId, long groupId) boolean
hasRoleGroups
(long roleId) boolean
hasUserGroup
(long userId, long groupId) boolean
hasUserGroupGroup
(long userGroupId, long groupId) boolean
hasUserGroupGroups
(long userGroupId) boolean
hasUserGroups
(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
setGroupFinder
(com.liferay.portal.kernel.service.persistence.GroupFinder groupFinder) Sets the group finder.void
setGroupLocalService
(com.liferay.portal.kernel.service.GroupLocalService groupLocalService) Sets the group local service.void
setGroupPersistence
(com.liferay.portal.kernel.service.persistence.GroupPersistence groupPersistence) Sets the group persistence.void
setOrganizationGroups
(long organizationId, long[] groupIds) void
setRoleGroups
(long roleId, long[] groupIds) void
setUserGroupGroups
(long userGroupId, long[] groupIds) void
setUserGroups
(long userId, long[] groupIds) 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.<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, 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.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, validateRemote
Methods 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:
addGroup
in 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:
createGroup
in 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:
deleteGroup
in 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:
deleteGroup
in 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:
dslQuery
in interfacecom.liferay.portal.kernel.service.GroupLocalService
- Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.GroupLocalService
- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQuery
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in 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 - 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.GroupModelImpl
.- Specified by:
dynamicQuery
in 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 - 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.GroupModelImpl
.- Specified by:
dynamicQuery
in 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:
dynamicQueryCount
in 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:
dynamicQueryCount
in 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:
fetchGroup
in 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:
fetchGroupByUuidAndCompanyId
in interfacecom.liferay.portal.kernel.service.GroupLocalService
- Parameters:
uuid
- the group's UUIDcompanyId
- the primary key of the company- Returns:
- the matching group, or
null
if a matching group could not be found
-
fetchGroupByExternalReferenceCode
public com.liferay.portal.kernel.model.Group fetchGroupByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchGroupByExternalReferenceCode
in 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:
getGroupByExternalReferenceCode
in 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:
getGroup
in 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:
getActionableDynamicQuery
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQuery
in 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:
createPersistedModel
in interfacecom.liferay.portal.kernel.service.GroupLocalService
- Specified by:
createPersistedModel
in 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:
deletePersistedModel
in interfacecom.liferay.portal.kernel.service.GroupLocalService
- Specified by:
deletePersistedModel
in 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:
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.GroupLocalService
- Specified by:
getPersistedModel
in 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:
getGroupByUuidAndCompanyId
in 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 - 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.GroupModelImpl
.- Specified by:
getGroups
in 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:
getGroupsCount
in 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:
updateGroup
in 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:
addOrganizationGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addOrganizationGroup
public boolean addOrganizationGroup(long organizationId, com.liferay.portal.kernel.model.Group group) - Specified by:
addOrganizationGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addOrganizationGroups
public boolean addOrganizationGroups(long organizationId, long[] groupIds) - Specified by:
addOrganizationGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addOrganizationGroups
public boolean addOrganizationGroups(long organizationId, List<com.liferay.portal.kernel.model.Group> groups) - Specified by:
addOrganizationGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
clearOrganizationGroups
public void clearOrganizationGroups(long organizationId) - Specified by:
clearOrganizationGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteOrganizationGroup
public void deleteOrganizationGroup(long organizationId, long groupId) - Specified by:
deleteOrganizationGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteOrganizationGroup
public void deleteOrganizationGroup(long organizationId, com.liferay.portal.kernel.model.Group group) - Specified by:
deleteOrganizationGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteOrganizationGroups
public void deleteOrganizationGroups(long organizationId, long[] groupIds) - Specified by:
deleteOrganizationGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteOrganizationGroups
public void deleteOrganizationGroups(long organizationId, List<com.liferay.portal.kernel.model.Group> groups) - Specified by:
deleteOrganizationGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getOrganizationPrimaryKeys
public long[] getOrganizationPrimaryKeys(long groupId) Returns the organizationIds of the organizations associated with the group.- Specified by:
getOrganizationPrimaryKeys
in 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:
getOrganizationGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getOrganizationGroups
public List<com.liferay.portal.kernel.model.Group> getOrganizationGroups(long organizationId, int start, int end) - Specified by:
getOrganizationGroups
in 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:
getOrganizationGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getOrganizationGroupsCount
public int getOrganizationGroupsCount(long organizationId) - Specified by:
getOrganizationGroupsCount
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
hasOrganizationGroup
public boolean hasOrganizationGroup(long organizationId, long groupId) - Specified by:
hasOrganizationGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
hasOrganizationGroups
public boolean hasOrganizationGroups(long organizationId) - Specified by:
hasOrganizationGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
setOrganizationGroups
public void setOrganizationGroups(long organizationId, long[] groupIds) - Specified by:
setOrganizationGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addRoleGroup
public boolean addRoleGroup(long roleId, long groupId) - Specified by:
addRoleGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addRoleGroup
public boolean addRoleGroup(long roleId, com.liferay.portal.kernel.model.Group group) - Specified by:
addRoleGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addRoleGroups
public boolean addRoleGroups(long roleId, long[] groupIds) - Specified by:
addRoleGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addRoleGroups
- Specified by:
addRoleGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
clearRoleGroups
public void clearRoleGroups(long roleId) - Specified by:
clearRoleGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteRoleGroup
public void deleteRoleGroup(long roleId, long groupId) - Specified by:
deleteRoleGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteRoleGroup
public void deleteRoleGroup(long roleId, com.liferay.portal.kernel.model.Group group) - Specified by:
deleteRoleGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteRoleGroups
public void deleteRoleGroups(long roleId, long[] groupIds) - Specified by:
deleteRoleGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteRoleGroups
- Specified by:
deleteRoleGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getRolePrimaryKeys
public long[] getRolePrimaryKeys(long groupId) Returns the roleIds of the roles associated with the group.- Specified by:
getRolePrimaryKeys
in 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:
getRoleGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getRoleGroups
- Specified by:
getRoleGroups
in 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:
getRoleGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getRoleGroupsCount
public int getRoleGroupsCount(long roleId) - Specified by:
getRoleGroupsCount
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
hasRoleGroup
public boolean hasRoleGroup(long roleId, long groupId) - Specified by:
hasRoleGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
hasRoleGroups
public boolean hasRoleGroups(long roleId) - Specified by:
hasRoleGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
setRoleGroups
public void setRoleGroups(long roleId, long[] groupIds) - Specified by:
setRoleGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addUserGroupGroup
public boolean addUserGroupGroup(long userGroupId, long groupId) - Specified by:
addUserGroupGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addUserGroupGroup
public boolean addUserGroupGroup(long userGroupId, com.liferay.portal.kernel.model.Group group) - Specified by:
addUserGroupGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addUserGroupGroups
public boolean addUserGroupGroups(long userGroupId, long[] groupIds) - Specified by:
addUserGroupGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addUserGroupGroups
public boolean addUserGroupGroups(long userGroupId, List<com.liferay.portal.kernel.model.Group> groups) - Specified by:
addUserGroupGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
clearUserGroupGroups
public void clearUserGroupGroups(long userGroupId) - Specified by:
clearUserGroupGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteUserGroupGroup
public void deleteUserGroupGroup(long userGroupId, long groupId) - Specified by:
deleteUserGroupGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteUserGroupGroup
public void deleteUserGroupGroup(long userGroupId, com.liferay.portal.kernel.model.Group group) - Specified by:
deleteUserGroupGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteUserGroupGroups
public void deleteUserGroupGroups(long userGroupId, long[] groupIds) - Specified by:
deleteUserGroupGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteUserGroupGroups
public void deleteUserGroupGroups(long userGroupId, List<com.liferay.portal.kernel.model.Group> groups) - Specified by:
deleteUserGroupGroups
in 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:
getUserGroupPrimaryKeys
in 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:
getUserGroupGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getUserGroupGroups
public List<com.liferay.portal.kernel.model.Group> getUserGroupGroups(long userGroupId, int start, int end) - Specified by:
getUserGroupGroups
in 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:
getUserGroupGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getUserGroupGroupsCount
public int getUserGroupGroupsCount(long userGroupId) - Specified by:
getUserGroupGroupsCount
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
hasUserGroupGroup
public boolean hasUserGroupGroup(long userGroupId, long groupId) - Specified by:
hasUserGroupGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
hasUserGroupGroups
public boolean hasUserGroupGroups(long userGroupId) - Specified by:
hasUserGroupGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
setUserGroupGroups
public void setUserGroupGroups(long userGroupId, long[] groupIds) - Specified by:
setUserGroupGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addUserGroup
public boolean addUserGroup(long userId, long groupId) - Specified by:
addUserGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addUserGroup
public boolean addUserGroup(long userId, com.liferay.portal.kernel.model.Group group) - Specified by:
addUserGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addUserGroups
public boolean addUserGroups(long userId, long[] groupIds) - Specified by:
addUserGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
addUserGroups
- Specified by:
addUserGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
clearUserGroups
public void clearUserGroups(long userId) - Specified by:
clearUserGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteUserGroup
public void deleteUserGroup(long userId, long groupId) - Specified by:
deleteUserGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteUserGroup
public void deleteUserGroup(long userId, com.liferay.portal.kernel.model.Group group) - Specified by:
deleteUserGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteUserGroups
public void deleteUserGroups(long userId, long[] groupIds) - Specified by:
deleteUserGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
deleteUserGroups
- Specified by:
deleteUserGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getUserPrimaryKeys
public long[] getUserPrimaryKeys(long groupId) Returns the userIds of the users associated with the group.- Specified by:
getUserPrimaryKeys
in 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:
getUserGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getUserGroups
- Specified by:
getUserGroups
in 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:
getUserGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getUserGroupsCount
public int getUserGroupsCount(long userId) - Specified by:
getUserGroupsCount
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
hasUserGroup
public boolean hasUserGroup(long userId, long groupId) - Specified by:
hasUserGroup
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
hasUserGroups
public boolean hasUserGroups(long userId) - Specified by:
hasUserGroups
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
setUserGroups
public void setUserGroups(long userId, long[] groupIds) - Specified by:
setUserGroups
in 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:
getOSGiServiceIdentifier
in interfacecom.liferay.portal.kernel.service.GroupLocalService
- Specified by:
getOSGiServiceIdentifier
in 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:
getCTPersistence
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Group>
- Specified by:
getCTPersistence
in interfacecom.liferay.portal.kernel.service.GroupLocalService
-
getModelClass
- Specified by:
getModelClass
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Group>
- Specified by:
getModelClass
in 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:
updateWithUnsafeFunction
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Group>
- Specified by:
updateWithUnsafeFunction
in interfacecom.liferay.portal.kernel.service.GroupLocalService
- Throws:
E extends Throwable
-
getModelClassName
-
runSQL
Performs a SQL query.- Parameters:
sql
- the sql query
-