public abstract class GroupLocalServiceBaseImpl
extends com.liferay.portal.kernel.service.BaseLocalServiceImpl
implements com.liferay.portal.kernel.service.GroupLocalService, com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in GroupLocalServiceImpl
.
GroupLocalServiceImpl
Modifier and Type | Field and Description |
---|---|
protected com.liferay.counter.kernel.service.CounterLocalService |
counterLocalService |
protected com.liferay.portal.kernel.service.persistence.GroupFinder |
groupFinder |
protected com.liferay.portal.kernel.service.GroupLocalService |
groupLocalService |
protected com.liferay.portal.kernel.service.persistence.GroupPersistence |
groupPersistence |
protected com.liferay.portal.kernel.service.persistence.OrganizationPersistence |
organizationPersistence |
protected com.liferay.portal.kernel.service.persistence.RolePersistence |
rolePersistence |
protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence |
userGroupPersistence |
protected com.liferay.portal.kernel.service.persistence.UserPersistence |
userPersistence |
Constructor and Description |
---|
GroupLocalServiceBaseImpl() |
Modifier and Type | Method and Description |
---|---|
com.liferay.portal.kernel.model.Group |
addGroup(com.liferay.portal.kernel.model.Group group)
Adds the group to the database.
|
boolean |
addOrganizationGroup(long organizationId,
com.liferay.portal.kernel.model.Group group) |
boolean |
addOrganizationGroup(long organizationId,
long groupId) |
boolean |
addOrganizationGroups(long organizationId,
List<com.liferay.portal.kernel.model.Group> groups) |
boolean |
addOrganizationGroups(long organizationId,
long[] groupIds) |
boolean |
addRoleGroup(long roleId,
com.liferay.portal.kernel.model.Group group) |
boolean |
addRoleGroup(long roleId,
long groupId) |
boolean |
addRoleGroups(long roleId,
List<com.liferay.portal.kernel.model.Group> groups) |
boolean |
addRoleGroups(long roleId,
long[] groupIds) |
boolean |
addUserGroup(long userId,
com.liferay.portal.kernel.model.Group group) |
boolean |
addUserGroup(long userId,
long groupId) |
boolean |
addUserGroupGroup(long userGroupId,
com.liferay.portal.kernel.model.Group group) |
boolean |
addUserGroupGroup(long userGroupId,
long groupId) |
boolean |
addUserGroupGroups(long userGroupId,
List<com.liferay.portal.kernel.model.Group> groups) |
boolean |
addUserGroupGroups(long userGroupId,
long[] groupIds) |
boolean |
addUserGroups(long userId,
List<com.liferay.portal.kernel.model.Group> groups) |
boolean |
addUserGroups(long userId,
long[] groupIds) |
void |
afterPropertiesSet() |
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(com.liferay.portal.kernel.model.Group group)
Deletes the group from the database.
|
com.liferay.portal.kernel.model.Group |
deleteGroup(long groupId)
Deletes the group with the primary key from the database.
|
void |
deleteOrganizationGroup(long organizationId,
com.liferay.portal.kernel.model.Group group) |
void |
deleteOrganizationGroup(long organizationId,
long groupId) |
void |
deleteOrganizationGroups(long organizationId,
List<com.liferay.portal.kernel.model.Group> groups) |
void |
deleteOrganizationGroups(long organizationId,
long[] groupIds) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
void |
deleteRoleGroup(long roleId,
com.liferay.portal.kernel.model.Group group) |
void |
deleteRoleGroup(long roleId,
long groupId) |
void |
deleteRoleGroups(long roleId,
List<com.liferay.portal.kernel.model.Group> groups) |
void |
deleteRoleGroups(long roleId,
long[] groupIds) |
void |
deleteUserGroup(long userId,
com.liferay.portal.kernel.model.Group group) |
void |
deleteUserGroup(long userId,
long groupId) |
void |
deleteUserGroupGroup(long userGroupId,
com.liferay.portal.kernel.model.Group group) |
void |
deleteUserGroupGroup(long userGroupId,
long groupId) |
void |
deleteUserGroupGroups(long userGroupId,
List<com.liferay.portal.kernel.model.Group> groups) |
void |
deleteUserGroupGroups(long userGroupId,
long[] groupIds) |
void |
deleteUserGroups(long userId,
List<com.liferay.portal.kernel.model.Group> groups) |
void |
deleteUserGroups(long userId,
long[] groupIds) |
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 |
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 |
getActionableDynamicQuery() |
com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Group> |
getBasePersistence() |
com.liferay.counter.kernel.service.CounterLocalService |
getCounterLocalService()
Returns the counter local service.
|
com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Group> |
getCTPersistence() |
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 |
getGroupFinder()
Returns the group finder.
|
com.liferay.portal.kernel.service.GroupLocalService |
getGroupLocalService()
Returns the group local service.
|
com.liferay.portal.kernel.service.persistence.GroupPersistence |
getGroupPersistence()
Returns the group persistence.
|
List<com.liferay.portal.kernel.model.Group> |
getGroups(int start,
int end)
Returns a range of all the groups.
|
int |
getGroupsCount()
Returns the number of groups.
|
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
Class<com.liferay.portal.kernel.model.Group> |
getModelClass() |
protected String |
getModelClassName() |
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.
|
String |
getOSGiServiceIdentifier()
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 |
runSQL(String sql)
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> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Group>,R,E> updateUnsafeFunction) |
getClassLoader, getLocalizationMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
@BeanReference(type=com.liferay.portal.kernel.service.GroupLocalService.class) protected com.liferay.portal.kernel.service.GroupLocalService groupLocalService
@BeanReference(type=com.liferay.portal.kernel.service.persistence.GroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.GroupPersistence groupPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.GroupFinder.class) protected com.liferay.portal.kernel.service.persistence.GroupFinder groupFinder
@BeanReference(type=com.liferay.counter.kernel.service.CounterLocalService.class) protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService
@BeanReference(type=com.liferay.portal.kernel.service.persistence.OrganizationPersistence.class) protected com.liferay.portal.kernel.service.persistence.OrganizationPersistence organizationPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.RolePersistence.class) protected com.liferay.portal.kernel.service.persistence.RolePersistence rolePersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserGroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence userGroupPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Group addGroup(com.liferay.portal.kernel.model.Group group)
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.
addGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
group
- the group@Transactional(enabled=false) public com.liferay.portal.kernel.model.Group createGroup(long groupId)
createGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
groupId
- the primary key for the new group@Indexable(type=DELETE) public com.liferay.portal.kernel.model.Group deleteGroup(long groupId) throws com.liferay.portal.kernel.exception.PortalException
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.
deleteGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
groupId
- the primary key of the groupcom.liferay.portal.kernel.exception.PortalException
- if a group with the primary key could not be found@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
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.
deleteGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
group
- the groupcom.liferay.portal.kernel.exception.PortalException
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface com.liferay.portal.kernel.service.GroupLocalService
dslQuery
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface com.liferay.portal.kernel.service.GroupLocalService
dslQueryCount
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface com.liferay.portal.kernel.service.GroupLocalService
public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface com.liferay.portal.kernel.service.GroupLocalService
dynamicQuery
- the dynamic querypublic <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.GroupModelImpl
.
dynamicQuery
in interface com.liferay.portal.kernel.service.GroupLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)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)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.GroupModelImpl
.
dynamicQuery
in interface com.liferay.portal.kernel.service.GroupLocalService
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 (optionally null
)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface com.liferay.portal.kernel.service.GroupLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount
in interface com.liferay.portal.kernel.service.GroupLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic com.liferay.portal.kernel.model.Group fetchGroup(long groupId)
fetchGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public com.liferay.portal.kernel.model.Group fetchGroupByUuidAndCompanyId(String uuid, long companyId)
fetchGroupByUuidAndCompanyId
in interface com.liferay.portal.kernel.service.GroupLocalService
uuid
- the group's UUIDcompanyId
- the primary key of the companynull
if a matching group could not be foundpublic com.liferay.portal.kernel.model.Group fetchGroupByExternalReferenceCode(String externalReferenceCode, long companyId)
fetchGroupByExternalReferenceCode
in interface com.liferay.portal.kernel.service.GroupLocalService
public com.liferay.portal.kernel.model.Group getGroupByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
getGroupByExternalReferenceCode
in interface com.liferay.portal.kernel.service.GroupLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.Group getGroup(long groupId) throws com.liferay.portal.kernel.exception.PortalException
getGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
groupId
- the primary key of the groupcom.liferay.portal.kernel.exception.PortalException
- if a group with the primary key could not be foundpublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface com.liferay.portal.kernel.service.GroupLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface com.liferay.portal.kernel.service.GroupLocalService
protected void initActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery)
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel
in interface com.liferay.portal.kernel.service.GroupLocalService
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface com.liferay.portal.kernel.service.GroupLocalService
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Group> getBasePersistence()
getBasePersistence
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface com.liferay.portal.kernel.service.GroupLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.Group getGroupByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
getGroupByUuidAndCompanyId
in interface com.liferay.portal.kernel.service.GroupLocalService
uuid
- the group's UUIDcompanyId
- the primary key of the companycom.liferay.portal.kernel.exception.PortalException
- if a matching group could not be foundpublic List<com.liferay.portal.kernel.model.Group> getGroups(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.GroupModelImpl
.
getGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
start
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)public int getGroupsCount()
getGroupsCount
in interface com.liferay.portal.kernel.service.GroupLocalService
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Group updateGroup(com.liferay.portal.kernel.model.Group group)
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.
updateGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
group
- the grouppublic boolean addOrganizationGroup(long organizationId, long groupId)
addOrganizationGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean addOrganizationGroup(long organizationId, com.liferay.portal.kernel.model.Group group)
addOrganizationGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean addOrganizationGroups(long organizationId, long[] groupIds)
addOrganizationGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean addOrganizationGroups(long organizationId, List<com.liferay.portal.kernel.model.Group> groups)
addOrganizationGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public void clearOrganizationGroups(long organizationId)
clearOrganizationGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public void deleteOrganizationGroup(long organizationId, long groupId)
deleteOrganizationGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public void deleteOrganizationGroup(long organizationId, com.liferay.portal.kernel.model.Group group)
deleteOrganizationGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public void deleteOrganizationGroups(long organizationId, long[] groupIds)
deleteOrganizationGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public void deleteOrganizationGroups(long organizationId, List<com.liferay.portal.kernel.model.Group> groups)
deleteOrganizationGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public long[] getOrganizationPrimaryKeys(long groupId)
getOrganizationPrimaryKeys
in interface com.liferay.portal.kernel.service.GroupLocalService
groupId
- the groupId of the grouppublic List<com.liferay.portal.kernel.model.Group> getOrganizationGroups(long organizationId)
getOrganizationGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public List<com.liferay.portal.kernel.model.Group> getOrganizationGroups(long organizationId, int start, int end)
getOrganizationGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
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)
getOrganizationGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public int getOrganizationGroupsCount(long organizationId)
getOrganizationGroupsCount
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean hasOrganizationGroup(long organizationId, long groupId)
hasOrganizationGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean hasOrganizationGroups(long organizationId)
hasOrganizationGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public void setOrganizationGroups(long organizationId, long[] groupIds)
setOrganizationGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean addRoleGroup(long roleId, long groupId)
addRoleGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean addRoleGroup(long roleId, com.liferay.portal.kernel.model.Group group)
addRoleGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean addRoleGroups(long roleId, long[] groupIds)
addRoleGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean addRoleGroups(long roleId, List<com.liferay.portal.kernel.model.Group> groups)
addRoleGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public void clearRoleGroups(long roleId)
clearRoleGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public void deleteRoleGroup(long roleId, long groupId)
deleteRoleGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public void deleteRoleGroup(long roleId, com.liferay.portal.kernel.model.Group group)
deleteRoleGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public void deleteRoleGroups(long roleId, long[] groupIds)
deleteRoleGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public void deleteRoleGroups(long roleId, List<com.liferay.portal.kernel.model.Group> groups)
deleteRoleGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public long[] getRolePrimaryKeys(long groupId)
getRolePrimaryKeys
in interface com.liferay.portal.kernel.service.GroupLocalService
groupId
- the groupId of the grouppublic List<com.liferay.portal.kernel.model.Group> getRoleGroups(long roleId)
getRoleGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public List<com.liferay.portal.kernel.model.Group> getRoleGroups(long roleId, int start, int end)
getRoleGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
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)
getRoleGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public int getRoleGroupsCount(long roleId)
getRoleGroupsCount
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean hasRoleGroup(long roleId, long groupId)
hasRoleGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean hasRoleGroups(long roleId)
hasRoleGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public void setRoleGroups(long roleId, long[] groupIds)
setRoleGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean addUserGroupGroup(long userGroupId, long groupId)
addUserGroupGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean addUserGroupGroup(long userGroupId, com.liferay.portal.kernel.model.Group group)
addUserGroupGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean addUserGroupGroups(long userGroupId, long[] groupIds)
addUserGroupGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean addUserGroupGroups(long userGroupId, List<com.liferay.portal.kernel.model.Group> groups)
addUserGroupGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public void clearUserGroupGroups(long userGroupId)
clearUserGroupGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public void deleteUserGroupGroup(long userGroupId, long groupId)
deleteUserGroupGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public void deleteUserGroupGroup(long userGroupId, com.liferay.portal.kernel.model.Group group)
deleteUserGroupGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public void deleteUserGroupGroups(long userGroupId, long[] groupIds)
deleteUserGroupGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public void deleteUserGroupGroups(long userGroupId, List<com.liferay.portal.kernel.model.Group> groups)
deleteUserGroupGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public long[] getUserGroupPrimaryKeys(long groupId)
getUserGroupPrimaryKeys
in interface com.liferay.portal.kernel.service.GroupLocalService
groupId
- the groupId of the grouppublic List<com.liferay.portal.kernel.model.Group> getUserGroupGroups(long userGroupId)
getUserGroupGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public List<com.liferay.portal.kernel.model.Group> getUserGroupGroups(long userGroupId, int start, int end)
getUserGroupGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
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)
getUserGroupGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public int getUserGroupGroupsCount(long userGroupId)
getUserGroupGroupsCount
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean hasUserGroupGroup(long userGroupId, long groupId)
hasUserGroupGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean hasUserGroupGroups(long userGroupId)
hasUserGroupGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public void setUserGroupGroups(long userGroupId, long[] groupIds)
setUserGroupGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean addUserGroup(long userId, long groupId)
addUserGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean addUserGroup(long userId, com.liferay.portal.kernel.model.Group group)
addUserGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean addUserGroups(long userId, long[] groupIds)
addUserGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean addUserGroups(long userId, List<com.liferay.portal.kernel.model.Group> groups)
addUserGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public void clearUserGroups(long userId)
clearUserGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public void deleteUserGroup(long userId, long groupId)
deleteUserGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public void deleteUserGroup(long userId, com.liferay.portal.kernel.model.Group group)
deleteUserGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public void deleteUserGroups(long userId, long[] groupIds)
deleteUserGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public void deleteUserGroups(long userId, List<com.liferay.portal.kernel.model.Group> groups)
deleteUserGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public long[] getUserPrimaryKeys(long groupId)
getUserPrimaryKeys
in interface com.liferay.portal.kernel.service.GroupLocalService
groupId
- the groupId of the grouppublic List<com.liferay.portal.kernel.model.Group> getUserGroups(long userId)
getUserGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public List<com.liferay.portal.kernel.model.Group> getUserGroups(long userId, int start, int end)
getUserGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
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
getUserGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
com.liferay.portal.kernel.exception.PortalException
public int getUserGroupsCount(long userId)
getUserGroupsCount
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean hasUserGroup(long userId, long groupId)
hasUserGroup
in interface com.liferay.portal.kernel.service.GroupLocalService
public boolean hasUserGroups(long userId)
hasUserGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public void setUserGroups(long userId, long[] groupIds)
setUserGroups
in interface com.liferay.portal.kernel.service.GroupLocalService
public com.liferay.portal.kernel.service.GroupLocalService getGroupLocalService()
public void setGroupLocalService(com.liferay.portal.kernel.service.GroupLocalService groupLocalService)
groupLocalService
- the group local servicepublic com.liferay.portal.kernel.service.persistence.GroupPersistence getGroupPersistence()
public void setGroupPersistence(com.liferay.portal.kernel.service.persistence.GroupPersistence groupPersistence)
groupPersistence
- the group persistencepublic com.liferay.portal.kernel.service.persistence.GroupFinder getGroupFinder()
public void setGroupFinder(com.liferay.portal.kernel.service.persistence.GroupFinder groupFinder)
groupFinder
- the group finderpublic com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService()
public void setCounterLocalService(com.liferay.counter.kernel.service.CounterLocalService counterLocalService)
counterLocalService
- the counter local servicepublic void afterPropertiesSet()
public void destroy()
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
getOSGiServiceIdentifier
in interface com.liferay.portal.kernel.service.GroupLocalService
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Group> getCTPersistence()
getCTPersistence
in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Group>
getCTPersistence
in interface com.liferay.portal.kernel.service.GroupLocalService
public Class<com.liferay.portal.kernel.model.Group> getModelClass()
getModelClass
in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Group>
getModelClass
in interface com.liferay.portal.kernel.service.GroupLocalService
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,E> updateUnsafeFunction) throws E extends Throwable
updateWithUnsafeFunction
in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Group>
updateWithUnsafeFunction
in interface com.liferay.portal.kernel.service.GroupLocalService
E extends Throwable
protected String getModelClassName()
protected void runSQL(String sql)
sql
- the sql query