public abstract class UserGroupLocalServiceBaseImpl
extends com.liferay.portal.kernel.service.BaseLocalServiceImpl
implements com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.UserGroupLocalService
This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in UserGroupLocalServiceImpl
.
UserGroupLocalServiceImpl
Modifier and Type | Field and Description |
---|---|
protected com.liferay.counter.kernel.service.CounterLocalService |
counterLocalService |
protected com.liferay.portal.kernel.service.persistence.GroupPersistence |
groupPersistence |
protected com.liferay.portal.kernel.service.PersistedModelLocalServiceRegistry |
persistedModelLocalServiceRegistry |
protected com.liferay.portal.kernel.service.persistence.TeamPersistence |
teamPersistence |
protected com.liferay.portal.kernel.service.persistence.UserGroupFinder |
userGroupFinder |
protected com.liferay.portal.kernel.service.UserGroupLocalService |
userGroupLocalService |
protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence |
userGroupPersistence |
protected com.liferay.portal.kernel.service.persistence.UserPersistence |
userPersistence |
Constructor and Description |
---|
UserGroupLocalServiceBaseImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addGroupUserGroup(long groupId,
long userGroupId) |
void |
addGroupUserGroup(long groupId,
com.liferay.portal.kernel.model.UserGroup userGroup) |
void |
addGroupUserGroups(long groupId,
List<com.liferay.portal.kernel.model.UserGroup> userGroups) |
void |
addGroupUserGroups(long groupId,
long[] userGroupIds) |
void |
addTeamUserGroup(long teamId,
long userGroupId) |
void |
addTeamUserGroup(long teamId,
com.liferay.portal.kernel.model.UserGroup userGroup) |
void |
addTeamUserGroups(long teamId,
List<com.liferay.portal.kernel.model.UserGroup> userGroups) |
void |
addTeamUserGroups(long teamId,
long[] userGroupIds) |
com.liferay.portal.kernel.model.UserGroup |
addUserGroup(com.liferay.portal.kernel.model.UserGroup userGroup)
Adds the user group to the database.
|
void |
addUserUserGroup(long userId,
long userGroupId) |
void |
addUserUserGroup(long userId,
com.liferay.portal.kernel.model.UserGroup userGroup) |
void |
addUserUserGroups(long userId,
List<com.liferay.portal.kernel.model.UserGroup> userGroups) |
void |
addUserUserGroups(long userId,
long[] userGroupIds) |
void |
afterPropertiesSet() |
void |
clearGroupUserGroups(long groupId) |
void |
clearTeamUserGroups(long teamId) |
void |
clearUserUserGroups(long userId) |
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(Serializable primaryKeyObj) |
com.liferay.portal.kernel.model.UserGroup |
createUserGroup(long userGroupId)
Creates a new user group with the primary key.
|
void |
deleteGroupUserGroup(long groupId,
long userGroupId) |
void |
deleteGroupUserGroup(long groupId,
com.liferay.portal.kernel.model.UserGroup userGroup) |
void |
deleteGroupUserGroups(long groupId,
List<com.liferay.portal.kernel.model.UserGroup> userGroups) |
void |
deleteGroupUserGroups(long groupId,
long[] userGroupIds) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
void |
deleteTeamUserGroup(long teamId,
long userGroupId) |
void |
deleteTeamUserGroup(long teamId,
com.liferay.portal.kernel.model.UserGroup userGroup) |
void |
deleteTeamUserGroups(long teamId,
List<com.liferay.portal.kernel.model.UserGroup> userGroups) |
void |
deleteTeamUserGroups(long teamId,
long[] userGroupIds) |
com.liferay.portal.kernel.model.UserGroup |
deleteUserGroup(long userGroupId)
Deletes the user group with the primary key from the database.
|
com.liferay.portal.kernel.model.UserGroup |
deleteUserGroup(com.liferay.portal.kernel.model.UserGroup userGroup)
Deletes the user group from the database.
|
void |
deleteUserUserGroup(long userId,
long userGroupId) |
void |
deleteUserUserGroup(long userId,
com.liferay.portal.kernel.model.UserGroup userGroup) |
void |
deleteUserUserGroups(long userId,
List<com.liferay.portal.kernel.model.UserGroup> userGroups) |
void |
deleteUserUserGroups(long userId,
long[] userGroupIds) |
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.UserGroup |
fetchUserGroup(long userGroupId) |
com.liferay.portal.kernel.model.UserGroup |
fetchUserGroupByExternalReferenceCode(long companyId,
String externalReferenceCode)
Returns the user group with the matching external reference code and company.
|
com.liferay.portal.kernel.model.UserGroup |
fetchUserGroupByReferenceCode(long companyId,
String externalReferenceCode)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
fetchUserGroupByExternalReferenceCode(long, String) |
com.liferay.portal.kernel.model.UserGroup |
fetchUserGroupByUuidAndCompanyId(String uuid,
long companyId)
Returns the user 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.UserGroup> |
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.UserGroup> |
getCTPersistence() |
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
long[] |
getGroupPrimaryKeys(long userGroupId)
Returns the groupIds of the groups associated with the user group.
|
List<com.liferay.portal.kernel.model.UserGroup> |
getGroupUserGroups(long groupId) |
List<com.liferay.portal.kernel.model.UserGroup> |
getGroupUserGroups(long groupId,
int start,
int end) |
List<com.liferay.portal.kernel.model.UserGroup> |
getGroupUserGroups(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator) |
int |
getGroupUserGroupsCount(long groupId) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
Class<com.liferay.portal.kernel.model.UserGroup> |
getModelClass() |
protected String |
getModelClassName() |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
long[] |
getTeamPrimaryKeys(long userGroupId)
Returns the teamIds of the teams associated with the user group.
|
List<com.liferay.portal.kernel.model.UserGroup> |
getTeamUserGroups(long teamId) |
List<com.liferay.portal.kernel.model.UserGroup> |
getTeamUserGroups(long teamId,
int start,
int end) |
List<com.liferay.portal.kernel.model.UserGroup> |
getTeamUserGroups(long teamId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator) |
int |
getTeamUserGroupsCount(long teamId) |
com.liferay.portal.kernel.model.UserGroup |
getUserGroup(long userGroupId)
Returns the user group with the primary key.
|
com.liferay.portal.kernel.model.UserGroup |
getUserGroupByExternalReferenceCode(long companyId,
String externalReferenceCode)
Returns the user group with the matching external reference code and company.
|
com.liferay.portal.kernel.model.UserGroup |
getUserGroupByUuidAndCompanyId(String uuid,
long companyId)
Returns the user group with the matching UUID and company.
|
com.liferay.portal.kernel.service.persistence.UserGroupFinder |
getUserGroupFinder()
Returns the user group finder.
|
com.liferay.portal.kernel.service.UserGroupLocalService |
getUserGroupLocalService()
Returns the user group local service.
|
com.liferay.portal.kernel.service.persistence.UserGroupPersistence |
getUserGroupPersistence()
Returns the user group persistence.
|
List<com.liferay.portal.kernel.model.UserGroup> |
getUserGroups(int start,
int end)
Returns a range of all the user groups.
|
int |
getUserGroupsCount()
Returns the number of user groups.
|
long[] |
getUserPrimaryKeys(long userGroupId)
Returns the userIds of the users associated with the user group.
|
List<com.liferay.portal.kernel.model.UserGroup> |
getUserUserGroups(long userId) |
List<com.liferay.portal.kernel.model.UserGroup> |
getUserUserGroups(long userId,
int start,
int end) |
List<com.liferay.portal.kernel.model.UserGroup> |
getUserUserGroups(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator) |
int |
getUserUserGroupsCount(long userId) |
boolean |
hasGroupUserGroup(long groupId,
long userGroupId) |
boolean |
hasGroupUserGroups(long groupId) |
boolean |
hasTeamUserGroup(long teamId,
long userGroupId) |
boolean |
hasTeamUserGroups(long teamId) |
boolean |
hasUserUserGroup(long userId,
long userGroupId) |
boolean |
hasUserUserGroups(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 |
setGroupUserGroups(long groupId,
long[] userGroupIds) |
void |
setTeamUserGroups(long teamId,
long[] userGroupIds) |
void |
setUserGroupFinder(com.liferay.portal.kernel.service.persistence.UserGroupFinder userGroupFinder)
Sets the user group finder.
|
void |
setUserGroupLocalService(com.liferay.portal.kernel.service.UserGroupLocalService userGroupLocalService)
Sets the user group local service.
|
void |
setUserGroupPersistence(com.liferay.portal.kernel.service.persistence.UserGroupPersistence userGroupPersistence)
Sets the user group persistence.
|
void |
setUserUserGroups(long userId,
long[] userGroupIds) |
com.liferay.portal.kernel.model.UserGroup |
updateUserGroup(com.liferay.portal.kernel.model.UserGroup userGroup)
Updates the user group in the database or adds it if it does not yet exist.
|
<R,E extends Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.UserGroup>,R,E> updateUnsafeFunction) |
getClassLoader, getLocalizationMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addOrUpdateUserGroup, addUserGroup, deleteUserGroups, fetchUserGroup, getGroupUserUserGroups, getUserGroup, getUserGroups, getUserGroups, getUserGroups, getUserGroupsCount, search, search, search, search, searchCount, searchCount, searchUserGroups, searchUserGroups, unsetGroupUserGroups, unsetTeamUserGroups, updateExternalReferenceCode, updateUserGroup
@BeanReference(type=com.liferay.portal.kernel.service.UserGroupLocalService.class) protected com.liferay.portal.kernel.service.UserGroupLocalService userGroupLocalService
@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.UserGroupFinder.class) protected com.liferay.portal.kernel.service.persistence.UserGroupFinder userGroupFinder
@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.GroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.GroupPersistence groupPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.TeamPersistence.class) protected com.liferay.portal.kernel.service.persistence.TeamPersistence teamPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence
@BeanReference(type=com.liferay.portal.kernel.service.PersistedModelLocalServiceRegistry.class) protected com.liferay.portal.kernel.service.PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.UserGroup addUserGroup(com.liferay.portal.kernel.model.UserGroup userGroup)
Important: Inspect UserGroupLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
addUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
userGroup
- the user group@Transactional(enabled=false) public com.liferay.portal.kernel.model.UserGroup createUserGroup(long userGroupId)
createUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
userGroupId
- the primary key for the new user group@Indexable(type=DELETE) public com.liferay.portal.kernel.model.UserGroup deleteUserGroup(long userGroupId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect UserGroupLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
deleteUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
userGroupId
- the primary key of the user groupcom.liferay.portal.kernel.exception.PortalException
- if a user group with the primary key could not be found@Indexable(type=DELETE) public com.liferay.portal.kernel.model.UserGroup deleteUserGroup(com.liferay.portal.kernel.model.UserGroup userGroup) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect UserGroupLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
deleteUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
userGroup
- the user 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.PersistedModelLocalService
dslQuery
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
dslQueryCount
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface com.liferay.portal.kernel.service.UserGroupLocalService
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.UserGroupModelImpl
.
dynamicQuery
in interface com.liferay.portal.kernel.service.UserGroupLocalService
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.UserGroupModelImpl
.
dynamicQuery
in interface com.liferay.portal.kernel.service.UserGroupLocalService
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.UserGroupLocalService
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.UserGroupLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic com.liferay.portal.kernel.model.UserGroup fetchUserGroup(long userGroupId)
fetchUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public com.liferay.portal.kernel.model.UserGroup fetchUserGroupByUuidAndCompanyId(String uuid, long companyId)
fetchUserGroupByUuidAndCompanyId
in interface com.liferay.portal.kernel.service.UserGroupLocalService
uuid
- the user group's UUIDcompanyId
- the primary key of the companynull
if a matching user group could not be foundpublic com.liferay.portal.kernel.model.UserGroup fetchUserGroupByExternalReferenceCode(long companyId, String externalReferenceCode)
fetchUserGroupByExternalReferenceCode
in interface com.liferay.portal.kernel.service.UserGroupLocalService
companyId
- the primary key of the companyexternalReferenceCode
- the user group's external reference codenull
if a matching user group could not be found@Deprecated public com.liferay.portal.kernel.model.UserGroup fetchUserGroupByReferenceCode(long companyId, String externalReferenceCode)
fetchUserGroupByExternalReferenceCode(long, String)
fetchUserGroupByReferenceCode
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public com.liferay.portal.kernel.model.UserGroup getUserGroupByExternalReferenceCode(long companyId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
getUserGroupByExternalReferenceCode
in interface com.liferay.portal.kernel.service.UserGroupLocalService
companyId
- the primary key of the companyexternalReferenceCode
- the user group's external reference codecom.liferay.portal.kernel.exception.PortalException
- if a matching user group could not be foundpublic com.liferay.portal.kernel.model.UserGroup getUserGroup(long userGroupId) throws com.liferay.portal.kernel.exception.PortalException
getUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
userGroupId
- the primary key of the user groupcom.liferay.portal.kernel.exception.PortalException
- if a user 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.UserGroupLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface com.liferay.portal.kernel.service.UserGroupLocalService
protected void initActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery)
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface com.liferay.portal.kernel.service.UserGroupLocalService
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.PersistedModelLocalService
createPersistedModel
in interface com.liferay.portal.kernel.service.UserGroupLocalService
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.PersistedModelLocalService
deletePersistedModel
in interface com.liferay.portal.kernel.service.UserGroupLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.UserGroup> 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.PersistedModelLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.UserGroupLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.UserGroup getUserGroupByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
getUserGroupByUuidAndCompanyId
in interface com.liferay.portal.kernel.service.UserGroupLocalService
uuid
- the user group's UUIDcompanyId
- the primary key of the companycom.liferay.portal.kernel.exception.PortalException
- if a matching user group could not be foundpublic List<com.liferay.portal.kernel.model.UserGroup> getUserGroups(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.UserGroupModelImpl
.
getUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
start
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)public int getUserGroupsCount()
getUserGroupsCount
in interface com.liferay.portal.kernel.service.UserGroupLocalService
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.UserGroup updateUserGroup(com.liferay.portal.kernel.model.UserGroup userGroup)
Important: Inspect UserGroupLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
updateUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
userGroup
- the user grouppublic void addGroupUserGroup(long groupId, long userGroupId)
addGroupUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void addGroupUserGroup(long groupId, com.liferay.portal.kernel.model.UserGroup userGroup)
addGroupUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void addGroupUserGroups(long groupId, long[] userGroupIds)
addGroupUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void addGroupUserGroups(long groupId, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
addGroupUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void clearGroupUserGroups(long groupId)
clearGroupUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void deleteGroupUserGroup(long groupId, long userGroupId)
deleteGroupUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void deleteGroupUserGroup(long groupId, com.liferay.portal.kernel.model.UserGroup userGroup)
deleteGroupUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void deleteGroupUserGroups(long groupId, long[] userGroupIds)
deleteGroupUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void deleteGroupUserGroups(long groupId, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
deleteGroupUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public long[] getGroupPrimaryKeys(long userGroupId)
getGroupPrimaryKeys
in interface com.liferay.portal.kernel.service.UserGroupLocalService
userGroupId
- the userGroupId of the user grouppublic List<com.liferay.portal.kernel.model.UserGroup> getGroupUserGroups(long groupId)
getGroupUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public List<com.liferay.portal.kernel.model.UserGroup> getGroupUserGroups(long groupId, int start, int end)
getGroupUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public List<com.liferay.portal.kernel.model.UserGroup> getGroupUserGroups(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator)
getGroupUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public int getGroupUserGroupsCount(long groupId)
getGroupUserGroupsCount
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public boolean hasGroupUserGroup(long groupId, long userGroupId)
hasGroupUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public boolean hasGroupUserGroups(long groupId)
hasGroupUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void setGroupUserGroups(long groupId, long[] userGroupIds)
setGroupUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void addTeamUserGroup(long teamId, long userGroupId)
addTeamUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void addTeamUserGroup(long teamId, com.liferay.portal.kernel.model.UserGroup userGroup)
addTeamUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void addTeamUserGroups(long teamId, long[] userGroupIds)
addTeamUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void addTeamUserGroups(long teamId, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
addTeamUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void clearTeamUserGroups(long teamId)
clearTeamUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void deleteTeamUserGroup(long teamId, long userGroupId)
deleteTeamUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void deleteTeamUserGroup(long teamId, com.liferay.portal.kernel.model.UserGroup userGroup)
deleteTeamUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void deleteTeamUserGroups(long teamId, long[] userGroupIds)
deleteTeamUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void deleteTeamUserGroups(long teamId, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
deleteTeamUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public long[] getTeamPrimaryKeys(long userGroupId)
getTeamPrimaryKeys
in interface com.liferay.portal.kernel.service.UserGroupLocalService
userGroupId
- the userGroupId of the user grouppublic List<com.liferay.portal.kernel.model.UserGroup> getTeamUserGroups(long teamId)
getTeamUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public List<com.liferay.portal.kernel.model.UserGroup> getTeamUserGroups(long teamId, int start, int end)
getTeamUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public List<com.liferay.portal.kernel.model.UserGroup> getTeamUserGroups(long teamId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator)
getTeamUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public int getTeamUserGroupsCount(long teamId)
getTeamUserGroupsCount
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public boolean hasTeamUserGroup(long teamId, long userGroupId)
hasTeamUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public boolean hasTeamUserGroups(long teamId)
hasTeamUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void setTeamUserGroups(long teamId, long[] userGroupIds)
setTeamUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void addUserUserGroup(long userId, long userGroupId)
addUserUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void addUserUserGroup(long userId, com.liferay.portal.kernel.model.UserGroup userGroup)
addUserUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void addUserUserGroups(long userId, long[] userGroupIds)
addUserUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void addUserUserGroups(long userId, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
addUserUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void clearUserUserGroups(long userId)
clearUserUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void deleteUserUserGroup(long userId, long userGroupId)
deleteUserUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void deleteUserUserGroup(long userId, com.liferay.portal.kernel.model.UserGroup userGroup)
deleteUserUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void deleteUserUserGroups(long userId, long[] userGroupIds)
deleteUserUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void deleteUserUserGroups(long userId, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
deleteUserUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public long[] getUserPrimaryKeys(long userGroupId)
getUserPrimaryKeys
in interface com.liferay.portal.kernel.service.UserGroupLocalService
userGroupId
- the userGroupId of the user grouppublic List<com.liferay.portal.kernel.model.UserGroup> getUserUserGroups(long userId)
getUserUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public List<com.liferay.portal.kernel.model.UserGroup> getUserUserGroups(long userId, int start, int end)
getUserUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public List<com.liferay.portal.kernel.model.UserGroup> getUserUserGroups(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator)
getUserUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public int getUserUserGroupsCount(long userId)
getUserUserGroupsCount
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public boolean hasUserUserGroup(long userId, long userGroupId)
hasUserUserGroup
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public boolean hasUserUserGroups(long userId)
hasUserUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public void setUserUserGroups(long userId, long[] userGroupIds) throws com.liferay.portal.kernel.exception.PortalException
setUserUserGroups
in interface com.liferay.portal.kernel.service.UserGroupLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.service.UserGroupLocalService getUserGroupLocalService()
public void setUserGroupLocalService(com.liferay.portal.kernel.service.UserGroupLocalService userGroupLocalService)
userGroupLocalService
- the user group local servicepublic com.liferay.portal.kernel.service.persistence.UserGroupPersistence getUserGroupPersistence()
public void setUserGroupPersistence(com.liferay.portal.kernel.service.persistence.UserGroupPersistence userGroupPersistence)
userGroupPersistence
- the user group persistencepublic com.liferay.portal.kernel.service.persistence.UserGroupFinder getUserGroupFinder()
public void setUserGroupFinder(com.liferay.portal.kernel.service.persistence.UserGroupFinder userGroupFinder)
userGroupFinder
- the user 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.UserGroupLocalService
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.UserGroup> getCTPersistence()
getCTPersistence
in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.UserGroup>
getCTPersistence
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public Class<com.liferay.portal.kernel.model.UserGroup> getModelClass()
getModelClass
in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.UserGroup>
getModelClass
in interface com.liferay.portal.kernel.service.UserGroupLocalService
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.UserGroup>,R,E> updateUnsafeFunction) throws E extends Throwable
updateWithUnsafeFunction
in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.UserGroup>
updateWithUnsafeFunction
in interface com.liferay.portal.kernel.service.UserGroupLocalService
E extends Throwable
protected String getModelClassName()
protected void runSQL(String sql)
sql
- the sql query