/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.kernel.service;
import aQute.bnd.annotation.ProviderType;
/**
* Provides a wrapper for {@link UserGroupLocalService}.
*
* @author Brian Wing Shun Chan
* @see UserGroupLocalService
* @generated
*/
@ProviderType
public class UserGroupLocalServiceWrapper implements UserGroupLocalService,
ServiceWrapper<UserGroupLocalService> {
public UserGroupLocalServiceWrapper(
UserGroupLocalService userGroupLocalService) {
_userGroupLocalService = userGroupLocalService;
}
@Override
public boolean hasGroupUserGroup(long groupId, long userGroupId) {
return _userGroupLocalService.hasGroupUserGroup(groupId, userGroupId);
}
@Override
public boolean hasGroupUserGroups(long groupId) {
return _userGroupLocalService.hasGroupUserGroups(groupId);
}
@Override
public boolean hasTeamUserGroup(long teamId, long userGroupId) {
return _userGroupLocalService.hasTeamUserGroup(teamId, userGroupId);
}
@Override
public boolean hasTeamUserGroups(long teamId) {
return _userGroupLocalService.hasTeamUserGroups(teamId);
}
@Override
public boolean hasUserUserGroup(long userId, long userGroupId) {
return _userGroupLocalService.hasUserUserGroup(userId, userGroupId);
}
@Override
public boolean hasUserUserGroups(long userId) {
return _userGroupLocalService.hasUserUserGroups(userId);
}
@Override
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
return _userGroupLocalService.getActionableDynamicQuery();
}
@Override
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
return _userGroupLocalService.dynamicQuery();
}
@Override
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) {
return _userGroupLocalService.getExportActionableDynamicQuery(portletDataContext);
}
@Override
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
return _userGroupLocalService.getIndexableActionableDynamicQuery();
}
/**
* @throws PortalException
*/
@Override
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException {
return _userGroupLocalService.deletePersistedModel(persistedModel);
}
@Override
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException {
return _userGroupLocalService.getPersistedModel(primaryKeyObj);
}
/**
* Adds the user group to the database. Also notifies the appropriate model listeners.
*
* @param userGroup the user group
* @return the user group that was added
*/
@Override
public com.liferay.portal.kernel.model.UserGroup addUserGroup(
com.liferay.portal.kernel.model.UserGroup userGroup) {
return _userGroupLocalService.addUserGroup(userGroup);
}
/**
* Adds a user group.
*
* <p>
* This method handles the creation and bookkeeping of the user group,
* including its resources, metadata, and internal data structures. It is
* not necessary to make subsequent calls to setup default groups and
* resources for the user group.
* </p>
*
* @param userId the primary key of the user
* @param companyId the primary key of the user group's company
* @param name the user group's name
* @param description the user group's description
* @return the user group
* @deprecated As of 6.2.0, replaced by {@link #addUserGroup(long, long,
String, String, ServiceContext)}
*/
@Deprecated
@Override
public com.liferay.portal.kernel.model.UserGroup addUserGroup(long userId,
long companyId, java.lang.String name, java.lang.String description)
throws com.liferay.portal.kernel.exception.PortalException {
return _userGroupLocalService.addUserGroup(userId, companyId, name,
description);
}
/**
* Adds a user group.
*
* <p>
* This method handles the creation and bookkeeping of the user group,
* including its resources, metadata, and internal data structures. It is
* not necessary to make subsequent calls to setup default groups and
* resources for the user group.
* </p>
*
* @param userId the primary key of the user
* @param companyId the primary key of the user group's company
* @param name the user group's name
* @param description the user group's description
* @param serviceContext the service context to be applied (optionally
<code>null</code>). Can set expando bridge attributes for the
user group.
* @return the user group
*/
@Override
public com.liferay.portal.kernel.model.UserGroup addUserGroup(long userId,
long companyId, java.lang.String name, java.lang.String description,
ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
return _userGroupLocalService.addUserGroup(userId, companyId, name,
description, serviceContext);
}
/**
* Creates a new user group with the primary key. Does not add the user group to the database.
*
* @param userGroupId the primary key for the new user group
* @return the new user group
*/
@Override
public com.liferay.portal.kernel.model.UserGroup createUserGroup(
long userGroupId) {
return _userGroupLocalService.createUserGroup(userGroupId);
}
/**
* Deletes the user group from the database. Also notifies the appropriate model listeners.
*
* @param userGroup the user group
* @return the user group that was removed
* @throws PortalException
*/
@Override
public com.liferay.portal.kernel.model.UserGroup deleteUserGroup(
com.liferay.portal.kernel.model.UserGroup userGroup)
throws com.liferay.portal.kernel.exception.PortalException {
return _userGroupLocalService.deleteUserGroup(userGroup);
}
/**
* Deletes the user group with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param userGroupId the primary key of the user group
* @return the user group that was removed
* @throws PortalException if a user group with the primary key could not be found
*/
@Override
public com.liferay.portal.kernel.model.UserGroup deleteUserGroup(
long userGroupId)
throws com.liferay.portal.kernel.exception.PortalException {
return _userGroupLocalService.deleteUserGroup(userGroupId);
}
@Override
public com.liferay.portal.kernel.model.UserGroup fetchUserGroup(
long companyId, java.lang.String name) {
return _userGroupLocalService.fetchUserGroup(companyId, name);
}
@Override
public com.liferay.portal.kernel.model.UserGroup fetchUserGroup(
long userGroupId) {
return _userGroupLocalService.fetchUserGroup(userGroupId);
}
/**
* Returns the user group with the matching UUID and company.
*
* @param uuid the user group's UUID
* @param companyId the primary key of the company
* @return the matching user group, or <code>null</code> if a matching user group could not be found
*/
@Override
public com.liferay.portal.kernel.model.UserGroup fetchUserGroupByUuidAndCompanyId(
java.lang.String uuid, long companyId) {
return _userGroupLocalService.fetchUserGroupByUuidAndCompanyId(uuid,
companyId);
}
/**
* Returns the user group with the name.
*
* @param companyId the primary key of the user group's company
* @param name the user group's name
* @return Returns the user group with the name
*/
@Override
public com.liferay.portal.kernel.model.UserGroup getUserGroup(
long companyId, java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException {
return _userGroupLocalService.getUserGroup(companyId, name);
}
/**
* Returns the user group with the primary key.
*
* @param userGroupId the primary key of the user group
* @return the user group
* @throws PortalException if a user group with the primary key could not be found
*/
@Override
public com.liferay.portal.kernel.model.UserGroup getUserGroup(
long userGroupId)
throws com.liferay.portal.kernel.exception.PortalException {
return _userGroupLocalService.getUserGroup(userGroupId);
}
/**
* Returns the user group with the matching UUID and company.
*
* @param uuid the user group's UUID
* @param companyId the primary key of the company
* @return the matching user group
* @throws PortalException if a matching user group could not be found
*/
@Override
public com.liferay.portal.kernel.model.UserGroup getUserGroupByUuidAndCompanyId(
java.lang.String uuid, long companyId)
throws com.liferay.portal.kernel.exception.PortalException {
return _userGroupLocalService.getUserGroupByUuidAndCompanyId(uuid,
companyId);
}
/**
* Updates the user group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
*
* @param userGroup the user group
* @return the user group that was updated
*/
@Override
public com.liferay.portal.kernel.model.UserGroup updateUserGroup(
com.liferay.portal.kernel.model.UserGroup userGroup) {
return _userGroupLocalService.updateUserGroup(userGroup);
}
/**
* Updates the user group.
*
* @param companyId the primary key of the user group's company
* @param userGroupId the primary key of the user group
* @param name the user group's name
* @param description the user group's description
* @return the user group
* @deprecated As of 6.2.0, replaced by {@link #updateUserGroup(long, long,
String, String, ServiceContext)}
*/
@Deprecated
@Override
public com.liferay.portal.kernel.model.UserGroup updateUserGroup(
long companyId, long userGroupId, java.lang.String name,
java.lang.String description)
throws com.liferay.portal.kernel.exception.PortalException {
return _userGroupLocalService.updateUserGroup(companyId, userGroupId,
name, description);
}
/**
* Updates the user group.
*
* @param companyId the primary key of the user group's company
* @param userGroupId the primary key of the user group
* @param name the user group's name
* @param description the user group's description
* @param serviceContext the service context to be applied (optionally
<code>null</code>). Can set expando bridge attributes for the
user group.
* @return the user group
*/
@Override
public com.liferay.portal.kernel.model.UserGroup updateUserGroup(
long companyId, long userGroupId, java.lang.String name,
java.lang.String description, ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
return _userGroupLocalService.updateUserGroup(companyId, userGroupId,
name, description, serviceContext);
}
@Override
public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.UserGroup> searchUserGroups(
long companyId, java.lang.String keywords,
java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
int start, int end, com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.PortalException {
return _userGroupLocalService.searchUserGroups(companyId, keywords,
params, start, end, sort);
}
@Override
public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.UserGroup> searchUserGroups(
long companyId, java.lang.String name, java.lang.String description,
java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
boolean andSearch, int start, int end,
com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.PortalException {
return _userGroupLocalService.searchUserGroups(companyId, name,
description, params, andSearch, start, end, sort);
}
/**
* Returns an ordered range of all the user groups that match the keywords,
* using the indexer. It is preferable to use this method instead of the
* non-indexed version whenever possible for performance reasons.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end -
* start</code> instances. <code>start</code> and <code>end</code> are not
* primary keys, they are indexes in the result set. Thus, <code>0</code>
* refers to the first result in the set. Setting both <code>start</code>
* and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
* result set.
* </p>
*
* @param companyId the primary key of the user group's company
* @param keywords the keywords (space separated), which may occur in the
user group's name or description (optionally <code>null</code>)
* @param params the finder params (optionally <code>null</code>). For more
information see {@link
com.liferay.user.groups.admin.web.search.UserGroupIndexer}
* @param start the lower bound of the range of user groups to return
* @param end the upper bound of the range of user groups to return (not
inclusive)
* @param sort the field and direction by which to sort (optionally
<code>null</code>)
* @return the matching user groups ordered by sort
* @see com.liferay.user.groups.admin.web.search.UserGroupIndexer
*/
@Override
public com.liferay.portal.kernel.search.Hits search(long companyId,
java.lang.String keywords,
java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
int start, int end, com.liferay.portal.kernel.search.Sort sort) {
return _userGroupLocalService.search(companyId, keywords, params,
start, end, sort);
}
/**
* Returns an ordered range of all the user groups that match the name and
* description. It is preferable to use this method instead of the
* non-indexed version whenever possible for performance reasons.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end -
* start</code> instances. <code>start</code> and <code>end</code> are not
* primary keys, they are indexes in the result set. Thus, <code>0</code>
* refers to the first result in the set. Setting both <code>start</code>
* and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
* result set.
* </p>
*
* @param companyId the primary key of the user group's company
* @param name the user group's name (optionally <code>null</code>)
* @param description the user group's description (optionally
<code>null</code>)
* @param params the finder params (optionally <code>null</code>). For more
information see {@link
com.liferay.user.groups.admin.web.search.UserGroupIndexer}
* @param andSearch whether every field must match its keywords or just one
field
* @param start the lower bound of the range of user groups to return
* @param end the upper bound of the range of user groups to return (not
inclusive)
* @param sort the field and direction by which to sort (optionally
<code>null</code>)
* @return the matching user groups ordered by sort
* @see com.liferay.portal.kernel.service.persistence.UserGroupFinder
*/
@Override
public com.liferay.portal.kernel.search.Hits search(long companyId,
java.lang.String name, java.lang.String description,
java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
boolean andSearch, int start, int end,
com.liferay.portal.kernel.search.Sort sort) {
return _userGroupLocalService.search(companyId, name, description,
params, andSearch, start, end, sort);
}
@Override
public int getGroupUserGroupsCount(long groupId) {
return _userGroupLocalService.getGroupUserGroupsCount(groupId);
}
@Override
public int getTeamUserGroupsCount(long teamId) {
return _userGroupLocalService.getTeamUserGroupsCount(teamId);
}
/**
* Returns the number of user groups.
*
* @return the number of user groups
*/
@Override
public int getUserGroupsCount() {
return _userGroupLocalService.getUserGroupsCount();
}
@Override
public int getUserUserGroupsCount(long userId) {
return _userGroupLocalService.getUserUserGroupsCount(userId);
}
/**
* Returns the number of user groups that match the keywords
*
* @param companyId the primary key of the user group's company
* @param keywords the keywords (space separated), which may occur in the
user group's name or description (optionally <code>null</code>)
* @param params the finder params (optionally <code>null</code>). For more
information see {@link
com.liferay.portal.kernel.service.persistence.UserGroupFinder}
* @return the number of matching user groups
* @see com.liferay.portal.kernel.service.persistence.UserGroupFinder
*/
@Override
public int searchCount(long companyId, java.lang.String keywords,
java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) {
return _userGroupLocalService.searchCount(companyId, keywords, params);
}
/**
* Returns the number of user groups that match the name and description.
*
* @param companyId the primary key of the user group's company
* @param name the user group's name (optionally <code>null</code>)
* @param description the user group's description (optionally
<code>null</code>)
* @param params the finder params (optionally <code>null</code>). For more
information see {@link
com.liferay.portal.kernel.service.persistence.UserGroupFinder}
* @param andOperator whether every field must match its keywords or just
one field
* @return the number of matching user groups
* @see com.liferay.portal.kernel.service.persistence.UserGroupFinder
*/
@Override
public int searchCount(long companyId, java.lang.String name,
java.lang.String description,
java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
boolean andOperator) {
return _userGroupLocalService.searchCount(companyId, name, description,
params, andOperator);
}
/**
* Returns the OSGi service identifier.
*
* @return the OSGi service identifier
*/
@Override
public java.lang.String getOSGiServiceIdentifier() {
return _userGroupLocalService.getOSGiServiceIdentifier();
}
/**
* Performs a dynamic query on the database and returns the matching rows.
*
* @param dynamicQuery the dynamic query
* @return the matching rows
*/
@Override
public <T> java.util.List<T> dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
return _userGroupLocalService.dynamicQuery(dynamicQuery);
}
/**
* Performs a dynamic query on the database and returns a range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @return the range of matching rows
*/
@Override
public <T> java.util.List<T> dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end) {
return _userGroupLocalService.dynamicQuery(dynamicQuery, start, end);
}
/**
* Performs a dynamic query on the database and returns an ordered range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching rows
*/
@Override
public <T> java.util.List<T> dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
return _userGroupLocalService.dynamicQuery(dynamicQuery, start, end,
orderByComparator);
}
@Override
public java.util.List<com.liferay.portal.kernel.model.UserGroup> getGroupUserGroups(
long groupId) {
return _userGroupLocalService.getGroupUserGroups(groupId);
}
@Override
public java.util.List<com.liferay.portal.kernel.model.UserGroup> getGroupUserGroups(
long groupId, int start, int end) {
return _userGroupLocalService.getGroupUserGroups(groupId, start, end);
}
@Override
public java.util.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) {
return _userGroupLocalService.getGroupUserGroups(groupId, start, end,
orderByComparator);
}
@Override
public java.util.List<com.liferay.portal.kernel.model.UserGroup> getGroupUserUserGroups(
long groupId, long userId)
throws com.liferay.portal.kernel.exception.PortalException {
return _userGroupLocalService.getGroupUserUserGroups(groupId, userId);
}
@Override
public java.util.List<com.liferay.portal.kernel.model.UserGroup> getTeamUserGroups(
long teamId) {
return _userGroupLocalService.getTeamUserGroups(teamId);
}
@Override
public java.util.List<com.liferay.portal.kernel.model.UserGroup> getTeamUserGroups(
long teamId, int start, int end) {
return _userGroupLocalService.getTeamUserGroups(teamId, start, end);
}
@Override
public java.util.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) {
return _userGroupLocalService.getTeamUserGroups(teamId, start, end,
orderByComparator);
}
/**
* Returns a range of all the user groups.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of user groups
* @param end the upper bound of the range of user groups (not inclusive)
* @return the range of user groups
*/
@Override
public java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserGroups(
int start, int end) {
return _userGroupLocalService.getUserGroups(start, end);
}
/**
* Returns all the user groups belonging to the company.
*
* @param companyId the primary key of the user groups' company
* @return the user groups belonging to the company
*/
@Override
public java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserGroups(
long companyId) {
return _userGroupLocalService.getUserGroups(companyId);
}
/**
* Returns all the user groups with the primary keys.
*
* @param userGroupIds the primary keys of the user groups
* @return the user groups with the primary keys
*/
@Override
public java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserGroups(
long[] userGroupIds)
throws com.liferay.portal.kernel.exception.PortalException {
return _userGroupLocalService.getUserGroups(userGroupIds);
}
@Override
public java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserUserGroups(
long userId) {
return _userGroupLocalService.getUserUserGroups(userId);
}
@Override
public java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserUserGroups(
long userId, int start, int end) {
return _userGroupLocalService.getUserUserGroups(userId, start, end);
}
@Override
public java.util.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) {
return _userGroupLocalService.getUserUserGroups(userId, start, end,
orderByComparator);
}
/**
* Returns an ordered range of all the user groups that match the keywords.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end -
* start</code> instances. <code>start</code> and <code>end</code> are not
* primary keys, they are indexes in the result set. Thus, <code>0</code>
* refers to the first result in the set. Setting both <code>start</code>
* and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
* result set.
* </p>
*
* @param companyId the primary key of the user group's company
* @param keywords the keywords (space separated), which may occur in the
user group's name or description (optionally <code>null</code>)
* @param params the finder params (optionally <code>null</code>). For more
information see {@link
com.liferay.portal.kernel.service.persistence.UserGroupFinder}
* @param start the lower bound of the range of user groups to return
* @param end the upper bound of the range of user groups to return (not
inclusive)
* @param obc the comparator to order the user groups (optionally
<code>null</code>)
* @return the matching user groups ordered by comparator <code>obc</code>
* @see com.liferay.portal.kernel.service.persistence.UserGroupFinder
*/
@Override
public java.util.List<com.liferay.portal.kernel.model.UserGroup> search(
long companyId, java.lang.String keywords,
java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> obc) {
return _userGroupLocalService.search(companyId, keywords, params,
start, end, obc);
}
/**
* Returns an ordered range of all the user groups that match the name and
* description.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end -
* start</code> instances. <code>start</code> and <code>end</code> are not
* primary keys, they are indexes in the result set. Thus, <code>0</code>
* refers to the first result in the set. Setting both <code>start</code>
* and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
* result set.
* </p>
*
* @param companyId the primary key of the user group's company
* @param name the user group's name (optionally <code>null</code>)
* @param description the user group's description (optionally
<code>null</code>)
* @param params the finder params (optionally <code>null</code>). For more
information see {@link
com.liferay.portal.kernel.service.persistence.UserGroupFinder}
* @param andOperator whether every field must match its keywords or just
one field
* @param start the lower bound of the range of user groups to return
* @param end the upper bound of the range of user groups to return (not
inclusive)
* @param obc the comparator to order the user groups (optionally
<code>null</code>)
* @return the matching user groups ordered by comparator <code>obc</code>
* @see com.liferay.portal.kernel.service.persistence.UserGroupFinder
*/
@Override
public java.util.List<com.liferay.portal.kernel.model.UserGroup> search(
long companyId, java.lang.String name, java.lang.String description,
java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
boolean andOperator, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> obc) {
return _userGroupLocalService.search(companyId, name, description,
params, andOperator, start, end, obc);
}
/**
* Returns the number of rows matching the dynamic query.
*
* @param dynamicQuery the dynamic query
* @return the number of rows matching the dynamic query
*/
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
return _userGroupLocalService.dynamicQueryCount(dynamicQuery);
}
/**
* Returns the number of rows matching the dynamic query.
*
* @param dynamicQuery the dynamic query
* @param projection the projection to apply to the query
* @return the number of rows matching the dynamic query
*/
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection) {
return _userGroupLocalService.dynamicQueryCount(dynamicQuery, projection);
}
/**
* Returns the groupIds of the groups associated with the user group.
*
* @param userGroupId the userGroupId of the user group
* @return long[] the groupIds of groups associated with the user group
*/
@Override
public long[] getGroupPrimaryKeys(long userGroupId) {
return _userGroupLocalService.getGroupPrimaryKeys(userGroupId);
}
/**
* Returns the teamIds of the teams associated with the user group.
*
* @param userGroupId the userGroupId of the user group
* @return long[] the teamIds of teams associated with the user group
*/
@Override
public long[] getTeamPrimaryKeys(long userGroupId) {
return _userGroupLocalService.getTeamPrimaryKeys(userGroupId);
}
/**
* Returns the userIds of the users associated with the user group.
*
* @param userGroupId the userGroupId of the user group
* @return long[] the userIds of users associated with the user group
*/
@Override
public long[] getUserPrimaryKeys(long userGroupId) {
return _userGroupLocalService.getUserPrimaryKeys(userGroupId);
}
@Override
public void addGroupUserGroup(long groupId,
com.liferay.portal.kernel.model.UserGroup userGroup) {
_userGroupLocalService.addGroupUserGroup(groupId, userGroup);
}
@Override
public void addGroupUserGroup(long groupId, long userGroupId) {
_userGroupLocalService.addGroupUserGroup(groupId, userGroupId);
}
@Override
public void addGroupUserGroups(long groupId,
java.util.List<com.liferay.portal.kernel.model.UserGroup> userGroups) {
_userGroupLocalService.addGroupUserGroups(groupId, userGroups);
}
@Override
public void addGroupUserGroups(long groupId, long[] userGroupIds) {
_userGroupLocalService.addGroupUserGroups(groupId, userGroupIds);
}
@Override
public void addTeamUserGroup(long teamId,
com.liferay.portal.kernel.model.UserGroup userGroup) {
_userGroupLocalService.addTeamUserGroup(teamId, userGroup);
}
@Override
public void addTeamUserGroup(long teamId, long userGroupId) {
_userGroupLocalService.addTeamUserGroup(teamId, userGroupId);
}
@Override
public void addTeamUserGroups(long teamId,
java.util.List<com.liferay.portal.kernel.model.UserGroup> userGroups) {
_userGroupLocalService.addTeamUserGroups(teamId, userGroups);
}
@Override
public void addTeamUserGroups(long teamId, long[] userGroupIds) {
_userGroupLocalService.addTeamUserGroups(teamId, userGroupIds);
}
@Override
public void addUserUserGroup(long userId,
com.liferay.portal.kernel.model.UserGroup userGroup) {
_userGroupLocalService.addUserUserGroup(userId, userGroup);
}
@Override
public void addUserUserGroup(long userId, long userGroupId) {
_userGroupLocalService.addUserUserGroup(userId, userGroupId);
}
@Override
public void addUserUserGroups(long userId,
java.util.List<com.liferay.portal.kernel.model.UserGroup> userGroups) {
_userGroupLocalService.addUserUserGroups(userId, userGroups);
}
@Override
public void addUserUserGroups(long userId, long[] userGroupIds) {
_userGroupLocalService.addUserUserGroups(userId, userGroupIds);
}
@Override
public void clearGroupUserGroups(long groupId) {
_userGroupLocalService.clearGroupUserGroups(groupId);
}
@Override
public void clearTeamUserGroups(long teamId) {
_userGroupLocalService.clearTeamUserGroups(teamId);
}
@Override
public void clearUserUserGroups(long userId) {
_userGroupLocalService.clearUserUserGroups(userId);
}
/**
* Copies the user group's layout to the user.
*
* @param userGroupId the primary key of the user group
* @param userId the primary key of the user
* @deprecated As of 6.2.0
*/
@Deprecated
@Override
public void copyUserGroupLayouts(long userGroupId, long userId)
throws com.liferay.portal.kernel.exception.PortalException {
_userGroupLocalService.copyUserGroupLayouts(userGroupId, userId);
}
/**
* Copies the user group's layouts to the users who are not already members
* of the user group.
*
* @param userGroupId the primary key of the user group
* @param userIds the primary keys of the users
* @deprecated As of 6.1.0
*/
@Deprecated
@Override
public void copyUserGroupLayouts(long userGroupId, long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException {
_userGroupLocalService.copyUserGroupLayouts(userGroupId, userIds);
}
/**
* Copies the user groups' layouts to the user.
*
* @param userGroupIds the primary keys of the user groups
* @param userId the primary key of the user
* @deprecated As of 6.1.0
*/
@Deprecated
@Override
public void copyUserGroupLayouts(long[] userGroupIds, long userId)
throws com.liferay.portal.kernel.exception.PortalException {
_userGroupLocalService.copyUserGroupLayouts(userGroupIds, userId);
}
@Override
public void deleteGroupUserGroup(long groupId,
com.liferay.portal.kernel.model.UserGroup userGroup) {
_userGroupLocalService.deleteGroupUserGroup(groupId, userGroup);
}
@Override
public void deleteGroupUserGroup(long groupId, long userGroupId) {
_userGroupLocalService.deleteGroupUserGroup(groupId, userGroupId);
}
@Override
public void deleteGroupUserGroups(long groupId,
java.util.List<com.liferay.portal.kernel.model.UserGroup> userGroups) {
_userGroupLocalService.deleteGroupUserGroups(groupId, userGroups);
}
@Override
public void deleteGroupUserGroups(long groupId, long[] userGroupIds) {
_userGroupLocalService.deleteGroupUserGroups(groupId, userGroupIds);
}
@Override
public void deleteTeamUserGroup(long teamId,
com.liferay.portal.kernel.model.UserGroup userGroup) {
_userGroupLocalService.deleteTeamUserGroup(teamId, userGroup);
}
@Override
public void deleteTeamUserGroup(long teamId, long userGroupId) {
_userGroupLocalService.deleteTeamUserGroup(teamId, userGroupId);
}
@Override
public void deleteTeamUserGroups(long teamId,
java.util.List<com.liferay.portal.kernel.model.UserGroup> userGroups) {
_userGroupLocalService.deleteTeamUserGroups(teamId, userGroups);
}
@Override
public void deleteTeamUserGroups(long teamId, long[] userGroupIds) {
_userGroupLocalService.deleteTeamUserGroups(teamId, userGroupIds);
}
@Override
public void deleteUserGroups(long companyId)
throws com.liferay.portal.kernel.exception.PortalException {
_userGroupLocalService.deleteUserGroups(companyId);
}
@Override
public void deleteUserUserGroup(long userId,
com.liferay.portal.kernel.model.UserGroup userGroup) {
_userGroupLocalService.deleteUserUserGroup(userId, userGroup);
}
@Override
public void deleteUserUserGroup(long userId, long userGroupId) {
_userGroupLocalService.deleteUserUserGroup(userId, userGroupId);
}
@Override
public void deleteUserUserGroups(long userId,
java.util.List<com.liferay.portal.kernel.model.UserGroup> userGroups) {
_userGroupLocalService.deleteUserUserGroups(userId, userGroups);
}
@Override
public void deleteUserUserGroups(long userId, long[] userGroupIds) {
_userGroupLocalService.deleteUserUserGroups(userId, userGroupIds);
}
@Override
public void setGroupUserGroups(long groupId, long[] userGroupIds) {
_userGroupLocalService.setGroupUserGroups(groupId, userGroupIds);
}
@Override
public void setTeamUserGroups(long teamId, long[] userGroupIds) {
_userGroupLocalService.setTeamUserGroups(teamId, userGroupIds);
}
/**
* @throws PortalException
*/
@Override
public void setUserUserGroups(long userId, long[] userGroupIds)
throws com.liferay.portal.kernel.exception.PortalException {
_userGroupLocalService.setUserUserGroups(userId, userGroupIds);
}
/**
* Removes the user groups from the group.
*
* @param groupId the primary key of the group
* @param userGroupIds the primary keys of the user groups
*/
@Override
public void unsetGroupUserGroups(long groupId, long[] userGroupIds) {
_userGroupLocalService.unsetGroupUserGroups(groupId, userGroupIds);
}
/**
* Removes the user groups from the team.
*
* @param teamId the primary key of the team
* @param userGroupIds the primary keys of the user groups
*/
@Override
public void unsetTeamUserGroups(long teamId, long[] userGroupIds) {
_userGroupLocalService.unsetTeamUserGroups(teamId, userGroupIds);
}
@Override
public UserGroupLocalService getWrappedService() {
return _userGroupLocalService;
}
@Override
public void setWrappedService(UserGroupLocalService userGroupLocalService) {
_userGroupLocalService = userGroupLocalService;
}
private UserGroupLocalService _userGroupLocalService;
}