All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.portal.kernel.service.persistence.UserGroupPersistence Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
Show newest version
/**
 * 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.persistence;

import aQute.bnd.annotation.ProviderType;

import com.liferay.portal.kernel.exception.NoSuchUserGroupException;
import com.liferay.portal.kernel.model.UserGroup;

import java.io.Serializable;

import java.util.Map;
import java.util.Set;

/**
 * The persistence interface for the user group service.
 *
 * 

* Caching information and settings can be found in portal.properties *

* * @author Brian Wing Shun Chan * @see UserGroupUtil * @generated */ @ProviderType public interface UserGroupPersistence extends BasePersistence { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link UserGroupUtil} to access the user group persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. */ @Override public Map fetchByPrimaryKeys( Set primaryKeys); /** * Returns all the user groups where uuid = ?. * * @param uuid the uuid * @return the matching user groups */ public java.util.List findByUuid(String uuid); /** * Returns a range of all the user groups where uuid = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param uuid the uuid * @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 matching user groups */ public java.util.List findByUuid( String uuid, int start, int end); /** * Returns an ordered range of all the user groups where uuid = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param uuid the uuid * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching user groups */ public java.util.List findByUuid( String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the user groups where uuid = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param uuid the uuid * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching user groups */ public java.util.List findByUuid( String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first user group in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group * @throws NoSuchUserGroupException if a matching user group could not be found */ public UserGroup findByUuid_First( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Returns the first user group in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group, or null if a matching user group could not be found */ public UserGroup fetchByUuid_First( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last user group in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group * @throws NoSuchUserGroupException if a matching user group could not be found */ public UserGroup findByUuid_Last( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Returns the last user group in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group, or null if a matching user group could not be found */ public UserGroup fetchByUuid_Last( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the user groups before and after the current user group in the ordered set where uuid = ?. * * @param userGroupId the primary key of the current user group * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next user group * @throws NoSuchUserGroupException if a user group with the primary key could not be found */ public UserGroup[] findByUuid_PrevAndNext( long userGroupId, String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Returns all the user groups that the user has permission to view where uuid = ?. * * @param uuid the uuid * @return the matching user groups that the user has permission to view */ public java.util.List filterFindByUuid(String uuid); /** * Returns a range of all the user groups that the user has permission to view where uuid = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param uuid the uuid * @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 matching user groups that the user has permission to view */ public java.util.List filterFindByUuid( String uuid, int start, int end); /** * Returns an ordered range of all the user groups that the user has permissions to view where uuid = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param uuid the uuid * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching user groups that the user has permission to view */ public java.util.List filterFindByUuid( String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where uuid = ?. * * @param userGroupId the primary key of the current user group * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next user group * @throws NoSuchUserGroupException if a user group with the primary key could not be found */ public UserGroup[] filterFindByUuid_PrevAndNext( long userGroupId, String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Removes all the user groups where uuid = ? from the database. * * @param uuid the uuid */ public void removeByUuid(String uuid); /** * Returns the number of user groups where uuid = ?. * * @param uuid the uuid * @return the number of matching user groups */ public int countByUuid(String uuid); /** * Returns the number of user groups that the user has permission to view where uuid = ?. * * @param uuid the uuid * @return the number of matching user groups that the user has permission to view */ public int filterCountByUuid(String uuid); /** * Returns all the user groups where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching user groups */ public java.util.List findByUuid_C(String uuid, long companyId); /** * Returns a range of all the user groups where uuid = ? and companyId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param uuid the uuid * @param companyId the company ID * @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 matching user groups */ public java.util.List findByUuid_C( String uuid, long companyId, int start, int end); /** * Returns an ordered range of all the user groups where uuid = ? and companyId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching user groups */ public java.util.List findByUuid_C( String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the user groups where uuid = ? and companyId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching user groups */ public java.util.List findByUuid_C( String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first user group in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group * @throws NoSuchUserGroupException if a matching user group could not be found */ public UserGroup findByUuid_C_First( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Returns the first user group in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group, or null if a matching user group could not be found */ public UserGroup fetchByUuid_C_First( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last user group in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group * @throws NoSuchUserGroupException if a matching user group could not be found */ public UserGroup findByUuid_C_Last( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Returns the last user group in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group, or null if a matching user group could not be found */ public UserGroup fetchByUuid_C_Last( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the user groups before and after the current user group in the ordered set where uuid = ? and companyId = ?. * * @param userGroupId the primary key of the current user group * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next user group * @throws NoSuchUserGroupException if a user group with the primary key could not be found */ public UserGroup[] findByUuid_C_PrevAndNext( long userGroupId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Returns all the user groups that the user has permission to view where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching user groups that the user has permission to view */ public java.util.List filterFindByUuid_C( String uuid, long companyId); /** * Returns a range of all the user groups that the user has permission to view where uuid = ? and companyId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param uuid the uuid * @param companyId the company ID * @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 matching user groups that the user has permission to view */ public java.util.List filterFindByUuid_C( String uuid, long companyId, int start, int end); /** * Returns an ordered range of all the user groups that the user has permissions to view where uuid = ? and companyId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching user groups that the user has permission to view */ public java.util.List filterFindByUuid_C( String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where uuid = ? and companyId = ?. * * @param userGroupId the primary key of the current user group * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next user group * @throws NoSuchUserGroupException if a user group with the primary key could not be found */ public UserGroup[] filterFindByUuid_C_PrevAndNext( long userGroupId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Removes all the user groups where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID */ public void removeByUuid_C(String uuid, long companyId); /** * Returns the number of user groups where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching user groups */ public int countByUuid_C(String uuid, long companyId); /** * Returns the number of user groups that the user has permission to view where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching user groups that the user has permission to view */ public int filterCountByUuid_C(String uuid, long companyId); /** * Returns all the user groups where companyId = ?. * * @param companyId the company ID * @return the matching user groups */ public java.util.List findByCompanyId(long companyId); /** * Returns a range of all the user groups where companyId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param companyId the company ID * @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 matching user groups */ public java.util.List findByCompanyId( long companyId, int start, int end); /** * Returns an ordered range of all the user groups where companyId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param companyId the company ID * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching user groups */ public java.util.List findByCompanyId( long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the user groups where companyId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param companyId the company ID * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching user groups */ public java.util.List findByCompanyId( long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first user group in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group * @throws NoSuchUserGroupException if a matching user group could not be found */ public UserGroup findByCompanyId_First( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Returns the first user group in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group, or null if a matching user group could not be found */ public UserGroup fetchByCompanyId_First( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last user group in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group * @throws NoSuchUserGroupException if a matching user group could not be found */ public UserGroup findByCompanyId_Last( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Returns the last user group in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group, or null if a matching user group could not be found */ public UserGroup fetchByCompanyId_Last( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the user groups before and after the current user group in the ordered set where companyId = ?. * * @param userGroupId the primary key of the current user group * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next user group * @throws NoSuchUserGroupException if a user group with the primary key could not be found */ public UserGroup[] findByCompanyId_PrevAndNext( long userGroupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Returns all the user groups that the user has permission to view where companyId = ?. * * @param companyId the company ID * @return the matching user groups that the user has permission to view */ public java.util.List filterFindByCompanyId(long companyId); /** * Returns a range of all the user groups that the user has permission to view where companyId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param companyId the company ID * @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 matching user groups that the user has permission to view */ public java.util.List filterFindByCompanyId( long companyId, int start, int end); /** * Returns an ordered range of all the user groups that the user has permissions to view where companyId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param companyId the company ID * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching user groups that the user has permission to view */ public java.util.List filterFindByCompanyId( long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where companyId = ?. * * @param userGroupId the primary key of the current user group * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next user group * @throws NoSuchUserGroupException if a user group with the primary key could not be found */ public UserGroup[] filterFindByCompanyId_PrevAndNext( long userGroupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Removes all the user groups where companyId = ? from the database. * * @param companyId the company ID */ public void removeByCompanyId(long companyId); /** * Returns the number of user groups where companyId = ?. * * @param companyId the company ID * @return the number of matching user groups */ public int countByCompanyId(long companyId); /** * Returns the number of user groups that the user has permission to view where companyId = ?. * * @param companyId the company ID * @return the number of matching user groups that the user has permission to view */ public int filterCountByCompanyId(long companyId); /** * Returns all the user groups where companyId = ? and parentUserGroupId = ?. * * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @return the matching user groups */ public java.util.List findByC_P( long companyId, long parentUserGroupId); /** * Returns a range of all the user groups where companyId = ? and parentUserGroupId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @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 matching user groups */ public java.util.List findByC_P( long companyId, long parentUserGroupId, int start, int end); /** * Returns an ordered range of all the user groups where companyId = ? and parentUserGroupId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching user groups */ public java.util.List findByC_P( long companyId, long parentUserGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the user groups where companyId = ? and parentUserGroupId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching user groups */ public java.util.List findByC_P( long companyId, long parentUserGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first user group in the ordered set where companyId = ? and parentUserGroupId = ?. * * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group * @throws NoSuchUserGroupException if a matching user group could not be found */ public UserGroup findByC_P_First( long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Returns the first user group in the ordered set where companyId = ? and parentUserGroupId = ?. * * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group, or null if a matching user group could not be found */ public UserGroup fetchByC_P_First( long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last user group in the ordered set where companyId = ? and parentUserGroupId = ?. * * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group * @throws NoSuchUserGroupException if a matching user group could not be found */ public UserGroup findByC_P_Last( long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Returns the last user group in the ordered set where companyId = ? and parentUserGroupId = ?. * * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group, or null if a matching user group could not be found */ public UserGroup fetchByC_P_Last( long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the user groups before and after the current user group in the ordered set where companyId = ? and parentUserGroupId = ?. * * @param userGroupId the primary key of the current user group * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next user group * @throws NoSuchUserGroupException if a user group with the primary key could not be found */ public UserGroup[] findByC_P_PrevAndNext( long userGroupId, long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Returns all the user groups that the user has permission to view where companyId = ? and parentUserGroupId = ?. * * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @return the matching user groups that the user has permission to view */ public java.util.List filterFindByC_P( long companyId, long parentUserGroupId); /** * Returns a range of all the user groups that the user has permission to view where companyId = ? and parentUserGroupId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @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 matching user groups that the user has permission to view */ public java.util.List filterFindByC_P( long companyId, long parentUserGroupId, int start, int end); /** * Returns an ordered range of all the user groups that the user has permissions to view where companyId = ? and parentUserGroupId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching user groups that the user has permission to view */ public java.util.List filterFindByC_P( long companyId, long parentUserGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where companyId = ? and parentUserGroupId = ?. * * @param userGroupId the primary key of the current user group * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next user group * @throws NoSuchUserGroupException if a user group with the primary key could not be found */ public UserGroup[] filterFindByC_P_PrevAndNext( long userGroupId, long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Removes all the user groups where companyId = ? and parentUserGroupId = ? from the database. * * @param companyId the company ID * @param parentUserGroupId the parent user group ID */ public void removeByC_P(long companyId, long parentUserGroupId); /** * Returns the number of user groups where companyId = ? and parentUserGroupId = ?. * * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @return the number of matching user groups */ public int countByC_P(long companyId, long parentUserGroupId); /** * Returns the number of user groups that the user has permission to view where companyId = ? and parentUserGroupId = ?. * * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @return the number of matching user groups that the user has permission to view */ public int filterCountByC_P(long companyId, long parentUserGroupId); /** * Returns the user group where companyId = ? and name = ? or throws a NoSuchUserGroupException if it could not be found. * * @param companyId the company ID * @param name the name * @return the matching user group * @throws NoSuchUserGroupException if a matching user group could not be found */ public UserGroup findByC_N(long companyId, String name) throws NoSuchUserGroupException; /** * Returns the user group where companyId = ? and name = ? or returns null if it could not be found. Uses the finder cache. * * @param companyId the company ID * @param name the name * @return the matching user group, or null if a matching user group could not be found */ public UserGroup fetchByC_N(long companyId, String name); /** * Returns the user group where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. * * @param companyId the company ID * @param name the name * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching user group, or null if a matching user group could not be found */ public UserGroup fetchByC_N( long companyId, String name, boolean retrieveFromCache); /** * Removes the user group where companyId = ? and name = ? from the database. * * @param companyId the company ID * @param name the name * @return the user group that was removed */ public UserGroup removeByC_N(long companyId, String name) throws NoSuchUserGroupException; /** * Returns the number of user groups where companyId = ? and name = ?. * * @param companyId the company ID * @param name the name * @return the number of matching user groups */ public int countByC_N(long companyId, String name); /** * Returns all the user groups where companyId = ? and name LIKE ?. * * @param companyId the company ID * @param name the name * @return the matching user groups */ public java.util.List findByC_LikeN(long companyId, String name); /** * Returns a range of all the user groups where companyId = ? and name LIKE ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param companyId the company ID * @param name the name * @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 matching user groups */ public java.util.List findByC_LikeN( long companyId, String name, int start, int end); /** * Returns an ordered range of all the user groups where companyId = ? and name LIKE ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param companyId the company ID * @param name the name * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching user groups */ public java.util.List findByC_LikeN( long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the user groups where companyId = ? and name LIKE ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param companyId the company ID * @param name the name * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching user groups */ public java.util.List findByC_LikeN( long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first user group in the ordered set where companyId = ? and name LIKE ?. * * @param companyId the company ID * @param name the name * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group * @throws NoSuchUserGroupException if a matching user group could not be found */ public UserGroup findByC_LikeN_First( long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Returns the first user group in the ordered set where companyId = ? and name LIKE ?. * * @param companyId the company ID * @param name the name * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group, or null if a matching user group could not be found */ public UserGroup fetchByC_LikeN_First( long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last user group in the ordered set where companyId = ? and name LIKE ?. * * @param companyId the company ID * @param name the name * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group * @throws NoSuchUserGroupException if a matching user group could not be found */ public UserGroup findByC_LikeN_Last( long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Returns the last user group in the ordered set where companyId = ? and name LIKE ?. * * @param companyId the company ID * @param name the name * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group, or null if a matching user group could not be found */ public UserGroup fetchByC_LikeN_Last( long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the user groups before and after the current user group in the ordered set where companyId = ? and name LIKE ?. * * @param userGroupId the primary key of the current user group * @param companyId the company ID * @param name the name * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next user group * @throws NoSuchUserGroupException if a user group with the primary key could not be found */ public UserGroup[] findByC_LikeN_PrevAndNext( long userGroupId, long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Returns all the user groups that the user has permission to view where companyId = ? and name LIKE ?. * * @param companyId the company ID * @param name the name * @return the matching user groups that the user has permission to view */ public java.util.List filterFindByC_LikeN( long companyId, String name); /** * Returns a range of all the user groups that the user has permission to view where companyId = ? and name LIKE ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param companyId the company ID * @param name the name * @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 matching user groups that the user has permission to view */ public java.util.List filterFindByC_LikeN( long companyId, String name, int start, int end); /** * Returns an ordered range of all the user groups that the user has permissions to view where companyId = ? and name LIKE ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param companyId the company ID * @param name the name * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching user groups that the user has permission to view */ public java.util.List filterFindByC_LikeN( long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where companyId = ? and name LIKE ?. * * @param userGroupId the primary key of the current user group * @param companyId the company ID * @param name the name * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next user group * @throws NoSuchUserGroupException if a user group with the primary key could not be found */ public UserGroup[] filterFindByC_LikeN_PrevAndNext( long userGroupId, long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Removes all the user groups where companyId = ? and name LIKE ? from the database. * * @param companyId the company ID * @param name the name */ public void removeByC_LikeN(long companyId, String name); /** * Returns the number of user groups where companyId = ? and name LIKE ?. * * @param companyId the company ID * @param name the name * @return the number of matching user groups */ public int countByC_LikeN(long companyId, String name); /** * Returns the number of user groups that the user has permission to view where companyId = ? and name LIKE ?. * * @param companyId the company ID * @param name the name * @return the number of matching user groups that the user has permission to view */ public int filterCountByC_LikeN(long companyId, String name); /** * Returns all the user groups where userGroupId > ? and companyId = ? and parentUserGroupId = ?. * * @param userGroupId the user group ID * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @return the matching user groups */ public java.util.List findByU_C_P( long userGroupId, long companyId, long parentUserGroupId); /** * Returns a range of all the user groups where userGroupId > ? and companyId = ? and parentUserGroupId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param userGroupId the user group ID * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @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 matching user groups */ public java.util.List findByU_C_P( long userGroupId, long companyId, long parentUserGroupId, int start, int end); /** * Returns an ordered range of all the user groups where userGroupId > ? and companyId = ? and parentUserGroupId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param userGroupId the user group ID * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching user groups */ public java.util.List findByU_C_P( long userGroupId, long companyId, long parentUserGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the user groups where userGroupId > ? and companyId = ? and parentUserGroupId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param userGroupId the user group ID * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching user groups */ public java.util.List findByU_C_P( long userGroupId, long companyId, long parentUserGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first user group in the ordered set where userGroupId > ? and companyId = ? and parentUserGroupId = ?. * * @param userGroupId the user group ID * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group * @throws NoSuchUserGroupException if a matching user group could not be found */ public UserGroup findByU_C_P_First( long userGroupId, long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Returns the first user group in the ordered set where userGroupId > ? and companyId = ? and parentUserGroupId = ?. * * @param userGroupId the user group ID * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group, or null if a matching user group could not be found */ public UserGroup fetchByU_C_P_First( long userGroupId, long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last user group in the ordered set where userGroupId > ? and companyId = ? and parentUserGroupId = ?. * * @param userGroupId the user group ID * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group * @throws NoSuchUserGroupException if a matching user group could not be found */ public UserGroup findByU_C_P_Last( long userGroupId, long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupException; /** * Returns the last user group in the ordered set where userGroupId > ? and companyId = ? and parentUserGroupId = ?. * * @param userGroupId the user group ID * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group, or null if a matching user group could not be found */ public UserGroup fetchByU_C_P_Last( long userGroupId, long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns all the user groups that the user has permission to view where userGroupId > ? and companyId = ? and parentUserGroupId = ?. * * @param userGroupId the user group ID * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @return the matching user groups that the user has permission to view */ public java.util.List filterFindByU_C_P( long userGroupId, long companyId, long parentUserGroupId); /** * Returns a range of all the user groups that the user has permission to view where userGroupId > ? and companyId = ? and parentUserGroupId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param userGroupId the user group ID * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @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 matching user groups that the user has permission to view */ public java.util.List filterFindByU_C_P( long userGroupId, long companyId, long parentUserGroupId, int start, int end); /** * Returns an ordered range of all the user groups that the user has permissions to view where userGroupId > ? and companyId = ? and parentUserGroupId = ?. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param userGroupId the user group ID * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching user groups that the user has permission to view */ public java.util.List filterFindByU_C_P( long userGroupId, long companyId, long parentUserGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Removes all the user groups where userGroupId > ? and companyId = ? and parentUserGroupId = ? from the database. * * @param userGroupId the user group ID * @param companyId the company ID * @param parentUserGroupId the parent user group ID */ public void removeByU_C_P( long userGroupId, long companyId, long parentUserGroupId); /** * Returns the number of user groups where userGroupId > ? and companyId = ? and parentUserGroupId = ?. * * @param userGroupId the user group ID * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @return the number of matching user groups */ public int countByU_C_P( long userGroupId, long companyId, long parentUserGroupId); /** * Returns the number of user groups that the user has permission to view where userGroupId > ? and companyId = ? and parentUserGroupId = ?. * * @param userGroupId the user group ID * @param companyId the company ID * @param parentUserGroupId the parent user group ID * @return the number of matching user groups that the user has permission to view */ public int filterCountByU_C_P( long userGroupId, long companyId, long parentUserGroupId); /** * Returns the user group where companyId = ? and externalReferenceCode = ? or throws a NoSuchUserGroupException if it could not be found. * * @param companyId the company ID * @param externalReferenceCode the external reference code * @return the matching user group * @throws NoSuchUserGroupException if a matching user group could not be found */ public UserGroup findByC_ERC(long companyId, String externalReferenceCode) throws NoSuchUserGroupException; /** * Returns the user group where companyId = ? and externalReferenceCode = ? or returns null if it could not be found. Uses the finder cache. * * @param companyId the company ID * @param externalReferenceCode the external reference code * @return the matching user group, or null if a matching user group could not be found */ public UserGroup fetchByC_ERC(long companyId, String externalReferenceCode); /** * Returns the user group where companyId = ? and externalReferenceCode = ? or returns null if it could not be found, optionally using the finder cache. * * @param companyId the company ID * @param externalReferenceCode the external reference code * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching user group, or null if a matching user group could not be found */ public UserGroup fetchByC_ERC( long companyId, String externalReferenceCode, boolean retrieveFromCache); /** * Removes the user group where companyId = ? and externalReferenceCode = ? from the database. * * @param companyId the company ID * @param externalReferenceCode the external reference code * @return the user group that was removed */ public UserGroup removeByC_ERC(long companyId, String externalReferenceCode) throws NoSuchUserGroupException; /** * Returns the number of user groups where companyId = ? and externalReferenceCode = ?. * * @param companyId the company ID * @param externalReferenceCode the external reference code * @return the number of matching user groups */ public int countByC_ERC(long companyId, String externalReferenceCode); /** * Caches the user group in the entity cache if it is enabled. * * @param userGroup the user group */ public void cacheResult(UserGroup userGroup); /** * Caches the user groups in the entity cache if it is enabled. * * @param userGroups the user groups */ public void cacheResult(java.util.List userGroups); /** * 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 */ public UserGroup create(long userGroupId); /** * Removes 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 NoSuchUserGroupException if a user group with the primary key could not be found */ public UserGroup remove(long userGroupId) throws NoSuchUserGroupException; public UserGroup updateImpl(UserGroup userGroup); /** * Returns the user group with the primary key or throws a NoSuchUserGroupException if it could not be found. * * @param userGroupId the primary key of the user group * @return the user group * @throws NoSuchUserGroupException if a user group with the primary key could not be found */ public UserGroup findByPrimaryKey(long userGroupId) throws NoSuchUserGroupException; /** * Returns the user group with the primary key or returns null if it could not be found. * * @param userGroupId the primary key of the user group * @return the user group, or null if a user group with the primary key could not be found */ public UserGroup fetchByPrimaryKey(long userGroupId); /** * Returns all the user groups. * * @return the user groups */ public java.util.List findAll(); /** * Returns a range of all the user groups. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @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 */ public java.util.List findAll(int start, int end); /** * Returns an ordered range of all the user groups. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of user groups */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the user groups. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of user groups */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Removes all the user groups from the database. */ public void removeAll(); /** * Returns the number of user groups. * * @return the number of user groups */ public int countAll(); /** * Returns the primaryKeys of groups associated with the user group. * * @param pk the primary key of the user group * @return long[] of the primaryKeys of groups associated with the user group */ public long[] getGroupPrimaryKeys(long pk); /** * Returns all the groups associated with the user group. * * @param pk the primary key of the user group * @return the groups associated with the user group */ public java.util.List getGroups( long pk); /** * Returns a range of all the groups associated with the user group. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param pk the primary key of the user group * @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 groups associated with the user group */ public java.util.List getGroups( long pk, int start, int end); /** * Returns an ordered range of all the groups associated with the user group. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param pk the primary key of the user group * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of groups associated with the user group */ public java.util.List getGroups( long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the number of groups associated with the user group. * * @param pk the primary key of the user group * @return the number of groups associated with the user group */ public int getGroupsSize(long pk); /** * Returns true if the group is associated with the user group. * * @param pk the primary key of the user group * @param groupPK the primary key of the group * @return true if the group is associated with the user group; false otherwise */ public boolean containsGroup(long pk, long groupPK); /** * Returns true if the user group has any groups associated with it. * * @param pk the primary key of the user group to check for associations with groups * @return true if the user group has any groups associated with it; false otherwise */ public boolean containsGroups(long pk); /** * Adds an association between the user group and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param groupPK the primary key of the group */ public void addGroup(long pk, long groupPK); /** * Adds an association between the user group and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param group the group */ public void addGroup(long pk, com.liferay.portal.kernel.model.Group group); /** * Adds an association between the user group and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param groupPKs the primary keys of the groups */ public void addGroups(long pk, long[] groupPKs); /** * Adds an association between the user group and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param groups the groups */ public void addGroups( long pk, java.util.List groups); /** * Clears all associations between the user group and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group to clear the associated groups from */ public void clearGroups(long pk); /** * Removes the association between the user group and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param groupPK the primary key of the group */ public void removeGroup(long pk, long groupPK); /** * Removes the association between the user group and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param group the group */ public void removeGroup( long pk, com.liferay.portal.kernel.model.Group group); /** * Removes the association between the user group and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param groupPKs the primary keys of the groups */ public void removeGroups(long pk, long[] groupPKs); /** * Removes the association between the user group and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param groups the groups */ public void removeGroups( long pk, java.util.List groups); /** * Sets the groups associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param groupPKs the primary keys of the groups to be associated with the user group */ public void setGroups(long pk, long[] groupPKs); /** * Sets the groups associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param groups the groups to be associated with the user group */ public void setGroups( long pk, java.util.List groups); /** * Returns the primaryKeys of teams associated with the user group. * * @param pk the primary key of the user group * @return long[] of the primaryKeys of teams associated with the user group */ public long[] getTeamPrimaryKeys(long pk); /** * Returns all the teams associated with the user group. * * @param pk the primary key of the user group * @return the teams associated with the user group */ public java.util.List getTeams( long pk); /** * Returns a range of all the teams associated with the user group. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param pk the primary key of the user group * @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 teams associated with the user group */ public java.util.List getTeams( long pk, int start, int end); /** * Returns an ordered range of all the teams associated with the user group. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param pk the primary key of the user group * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of teams associated with the user group */ public java.util.List getTeams( long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the number of teams associated with the user group. * * @param pk the primary key of the user group * @return the number of teams associated with the user group */ public int getTeamsSize(long pk); /** * Returns true if the team is associated with the user group. * * @param pk the primary key of the user group * @param teamPK the primary key of the team * @return true if the team is associated with the user group; false otherwise */ public boolean containsTeam(long pk, long teamPK); /** * Returns true if the user group has any teams associated with it. * * @param pk the primary key of the user group to check for associations with teams * @return true if the user group has any teams associated with it; false otherwise */ public boolean containsTeams(long pk); /** * Adds an association between the user group and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param teamPK the primary key of the team */ public void addTeam(long pk, long teamPK); /** * Adds an association between the user group and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param team the team */ public void addTeam(long pk, com.liferay.portal.kernel.model.Team team); /** * Adds an association between the user group and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param teamPKs the primary keys of the teams */ public void addTeams(long pk, long[] teamPKs); /** * Adds an association between the user group and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param teams the teams */ public void addTeams( long pk, java.util.List teams); /** * Clears all associations between the user group and its teams. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group to clear the associated teams from */ public void clearTeams(long pk); /** * Removes the association between the user group and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param teamPK the primary key of the team */ public void removeTeam(long pk, long teamPK); /** * Removes the association between the user group and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param team the team */ public void removeTeam(long pk, com.liferay.portal.kernel.model.Team team); /** * Removes the association between the user group and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param teamPKs the primary keys of the teams */ public void removeTeams(long pk, long[] teamPKs); /** * Removes the association between the user group and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param teams the teams */ public void removeTeams( long pk, java.util.List teams); /** * Sets the teams associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param teamPKs the primary keys of the teams to be associated with the user group */ public void setTeams(long pk, long[] teamPKs); /** * Sets the teams associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param teams the teams to be associated with the user group */ public void setTeams( long pk, java.util.List teams); /** * Returns the primaryKeys of users associated with the user group. * * @param pk the primary key of the user group * @return long[] of the primaryKeys of users associated with the user group */ public long[] getUserPrimaryKeys(long pk); /** * Returns all the users associated with the user group. * * @param pk the primary key of the user group * @return the users associated with the user group */ public java.util.List getUsers( long pk); /** * Returns a range of all the users associated with the user group. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param pk the primary key of the user group * @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 users associated with the user group */ public java.util.List getUsers( long pk, int start, int end); /** * Returns an ordered range of all the users associated with the user group. * *

* 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator 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. *

* * @param pk the primary key of the user group * @param start the lower bound of the range of user groups * @param end the upper bound of the range of user groups (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of users associated with the user group */ public java.util.List getUsers( long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the number of users associated with the user group. * * @param pk the primary key of the user group * @return the number of users associated with the user group */ public int getUsersSize(long pk); /** * Returns true if the user is associated with the user group. * * @param pk the primary key of the user group * @param userPK the primary key of the user * @return true if the user is associated with the user group; false otherwise */ public boolean containsUser(long pk, long userPK); /** * Returns true if the user group has any users associated with it. * * @param pk the primary key of the user group to check for associations with users * @return true if the user group has any users associated with it; false otherwise */ public boolean containsUsers(long pk); /** * Adds an association between the user group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param userPK the primary key of the user */ public void addUser(long pk, long userPK); /** * Adds an association between the user group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param user the user */ public void addUser(long pk, com.liferay.portal.kernel.model.User user); /** * Adds an association between the user group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param userPKs the primary keys of the users */ public void addUsers(long pk, long[] userPKs); /** * Adds an association between the user group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param users the users */ public void addUsers( long pk, java.util.List users); /** * Clears all associations between the user group and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group to clear the associated users from */ public void clearUsers(long pk); /** * Removes the association between the user group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param userPK the primary key of the user */ public void removeUser(long pk, long userPK); /** * Removes the association between the user group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param user the user */ public void removeUser(long pk, com.liferay.portal.kernel.model.User user); /** * Removes the association between the user group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param userPKs the primary keys of the users */ public void removeUsers(long pk, long[] userPKs); /** * Removes the association between the user group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param users the users */ public void removeUsers( long pk, java.util.List users); /** * Sets the users associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param userPKs the primary keys of the users to be associated with the user group */ public void setUsers(long pk, long[] userPKs); /** * Sets the users associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the user group * @param users the users to be associated with the user group */ public void setUsers( long pk, java.util.List users); @Override public Set getBadColumnNames(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy