/** * 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.knowledge.base.service.persistence; import aQute.bnd.annotation.ProviderType; import com.liferay.knowledge.base.exception.NoSuchArticleException; import com.liferay.knowledge.base.model.KBArticle; import com.liferay.portal.kernel.service.persistence.BasePersistence; /** * The persistence interface for the kb article service. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Brian Wing Shun Chan * @see com.liferay.knowledge.base.service.persistence.impl.KBArticlePersistenceImpl * @see KBArticleUtil * @generated */ @ProviderType public interface KBArticlePersistence extends BasePersistence<KBArticle> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link KBArticleUtil} to access the kb article persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the kb articles where uuid = ?. * * @param uuid the uuid * @return the matching kb articles */ public java.util.List<KBArticle> findByUuid(java.lang.String uuid); /** * Returns a range of all the kb articles where uuid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByUuid(java.lang.String uuid, int start, int end); /** * Returns an ordered range of all the kb articles where uuid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where uuid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where uuid = ?. * * @param kbArticleId the primary key of the current kb article * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByUuid_PrevAndNext(long kbArticleId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Removes all the kb articles where uuid = ? from the database. * * @param uuid the uuid */ public void removeByUuid(java.lang.String uuid); /** * Returns the number of kb articles where uuid = ?. * * @param uuid the uuid * @return the number of matching kb articles */ public int countByUuid(java.lang.String uuid); /** * Returns the kb article where uuid = ? and groupId = ? or throws a {@link NoSuchArticleException} if it could not be found. * * @param uuid the uuid * @param groupId the group ID * @return the matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchArticleException; /** * Returns the kb article where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param uuid the uuid * @param groupId the group ID * @return the matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByUUID_G(java.lang.String uuid, long groupId); /** * Returns the kb article where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param uuid the uuid * @param groupId the group ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByUUID_G(java.lang.String uuid, long groupId, boolean retrieveFromCache); /** * Removes the kb article where uuid = ? and groupId = ? from the database. * * @param uuid the uuid * @param groupId the group ID * @return the kb article that was removed */ public KBArticle removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchArticleException; /** * Returns the number of kb articles where uuid = ? and groupId = ?. * * @param uuid the uuid * @param groupId the group ID * @return the number of matching kb articles */ public int countByUUID_G(java.lang.String uuid, long groupId); /** * Returns all the kb articles where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching kb articles */ public java.util.List<KBArticle> findByUuid_C(java.lang.String uuid, long companyId); /** * Returns a range of all the kb articles where uuid = ? and companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByUuid_C(java.lang.String uuid, long companyId, int start, int end); /** * Returns an ordered range of all the kb articles where uuid = ? and companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where uuid = ? and companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article 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 <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article 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 <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article 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 <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article 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 <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where uuid = ? and companyId = ?. * * @param kbArticleId the primary key of the current kb article * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByUuid_C_PrevAndNext(long kbArticleId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Removes all the kb articles where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID */ public void removeByUuid_C(java.lang.String uuid, long companyId); /** * Returns the number of kb articles where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching kb articles */ public int countByUuid_C(java.lang.String uuid, long companyId); /** * Returns all the kb articles where resourcePrimKey = ?. * * @param resourcePrimKey the resource prim key * @return the matching kb articles */ public java.util.List<KBArticle> findByResourcePrimKey(long resourcePrimKey); /** * Returns a range of all the kb articles where resourcePrimKey = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByResourcePrimKey( long resourcePrimKey, int start, int end); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByResourcePrimKey( long resourcePrimKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByResourcePrimKey( long resourcePrimKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where resourcePrimKey = ?. * * @param resourcePrimKey the resource prim key * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByResourcePrimKey_First(long resourcePrimKey, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where resourcePrimKey = ?. * * @param resourcePrimKey the resource prim key * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByResourcePrimKey_First(long resourcePrimKey, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where resourcePrimKey = ?. * * @param resourcePrimKey the resource prim key * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByResourcePrimKey_Last(long resourcePrimKey, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where resourcePrimKey = ?. * * @param resourcePrimKey the resource prim key * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByResourcePrimKey_Last(long resourcePrimKey, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where resourcePrimKey = ?. * * @param kbArticleId the primary key of the current kb article * @param resourcePrimKey the resource prim key * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByResourcePrimKey_PrevAndNext(long kbArticleId, long resourcePrimKey, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Removes all the kb articles where resourcePrimKey = ? from the database. * * @param resourcePrimKey the resource prim key */ public void removeByResourcePrimKey(long resourcePrimKey); /** * Returns the number of kb articles where resourcePrimKey = ?. * * @param resourcePrimKey the resource prim key * @return the number of matching kb articles */ public int countByResourcePrimKey(long resourcePrimKey); /** * Returns all the kb articles where resourcePrimKey = ? and groupId = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @return the matching kb articles */ public java.util.List<KBArticle> findByR_G(long resourcePrimKey, long groupId); /** * Returns a range of all the kb articles where resourcePrimKey = ? and groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByR_G(long resourcePrimKey, long groupId, int start, int end); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_G(long resourcePrimKey, long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_G(long resourcePrimKey, long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where resourcePrimKey = ? and groupId = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByR_G_First(long resourcePrimKey, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where resourcePrimKey = ? and groupId = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_G_First(long resourcePrimKey, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where resourcePrimKey = ? and groupId = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByR_G_Last(long resourcePrimKey, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where resourcePrimKey = ? and groupId = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_G_Last(long resourcePrimKey, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where resourcePrimKey = ? and groupId = ?. * * @param kbArticleId the primary key of the current kb article * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByR_G_PrevAndNext(long kbArticleId, long resourcePrimKey, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where resourcePrimKey = ? and groupId = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G(long resourcePrimKey, long groupId); /** * Returns a range of all the kb articles that the user has permission to view where resourcePrimKey = ? and groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G(long resourcePrimKey, long groupId, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permissions to view where resourcePrimKey = ? and groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G(long resourcePrimKey, long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set of kb articles that the user has permission to view where resourcePrimKey = ? and groupId = ?. * * @param kbArticleId the primary key of the current kb article * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] filterFindByR_G_PrevAndNext(long kbArticleId, long resourcePrimKey, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Removes all the kb articles where resourcePrimKey = ? and groupId = ? from the database. * * @param resourcePrimKey the resource prim key * @param groupId the group ID */ public void removeByR_G(long resourcePrimKey, long groupId); /** * Returns the number of kb articles where resourcePrimKey = ? and groupId = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @return the number of matching kb articles */ public int countByR_G(long resourcePrimKey, long groupId); /** * Returns the number of kb articles that the user has permission to view where resourcePrimKey = ? and groupId = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @return the number of matching kb articles that the user has permission to view */ public int filterCountByR_G(long resourcePrimKey, long groupId); /** * Returns the kb article where resourcePrimKey = ? and version = ? or throws a {@link NoSuchArticleException} if it could not be found. * * @param resourcePrimKey the resource prim key * @param version the version * @return the matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByR_V(long resourcePrimKey, int version) throws NoSuchArticleException; /** * Returns the kb article where resourcePrimKey = ? and version = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param resourcePrimKey the resource prim key * @param version the version * @return the matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_V(long resourcePrimKey, int version); /** * Returns the kb article where resourcePrimKey = ? and version = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param resourcePrimKey the resource prim key * @param version the version * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_V(long resourcePrimKey, int version, boolean retrieveFromCache); /** * Removes the kb article where resourcePrimKey = ? and version = ? from the database. * * @param resourcePrimKey the resource prim key * @param version the version * @return the kb article that was removed */ public KBArticle removeByR_V(long resourcePrimKey, int version) throws NoSuchArticleException; /** * Returns the number of kb articles where resourcePrimKey = ? and version = ?. * * @param resourcePrimKey the resource prim key * @param version the version * @return the number of matching kb articles */ public int countByR_V(long resourcePrimKey, int version); /** * Returns all the kb articles where resourcePrimKey = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param latest the latest * @return the matching kb articles */ public java.util.List<KBArticle> findByR_L(long resourcePrimKey, boolean latest); /** * Returns a range of all the kb articles where resourcePrimKey = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByR_L(long resourcePrimKey, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_L(long resourcePrimKey, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_L(long resourcePrimKey, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where resourcePrimKey = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByR_L_First(long resourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where resourcePrimKey = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_L_First(long resourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where resourcePrimKey = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByR_L_Last(long resourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where resourcePrimKey = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_L_Last(long resourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where resourcePrimKey = ? and latest = ?. * * @param kbArticleId the primary key of the current kb article * @param resourcePrimKey the resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByR_L_PrevAndNext(long kbArticleId, long resourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles where resourcePrimKey = any ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param latest the latest * @return the matching kb articles */ public java.util.List<KBArticle> findByR_L(long[] resourcePrimKeies, boolean latest); /** * Returns a range of all the kb articles where resourcePrimKey = any ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByR_L(long[] resourcePrimKeies, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles where resourcePrimKey = any ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_L(long[] resourcePrimKeies, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and latest = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_L(long[] resourcePrimKeies, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Removes all the kb articles where resourcePrimKey = ? and latest = ? from the database. * * @param resourcePrimKey the resource prim key * @param latest the latest */ public void removeByR_L(long resourcePrimKey, boolean latest); /** * Returns the number of kb articles where resourcePrimKey = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param latest the latest * @return the number of matching kb articles */ public int countByR_L(long resourcePrimKey, boolean latest); /** * Returns the number of kb articles where resourcePrimKey = any ? and latest = ?. * * @param resourcePrimKeies the resource prim keies * @param latest the latest * @return the number of matching kb articles */ public int countByR_L(long[] resourcePrimKeies, boolean latest); /** * Returns all the kb articles where resourcePrimKey = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param main the main * @return the matching kb articles */ public java.util.List<KBArticle> findByR_M(long resourcePrimKey, boolean main); /** * Returns a range of all the kb articles where resourcePrimKey = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByR_M(long resourcePrimKey, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_M(long resourcePrimKey, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_M(long resourcePrimKey, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where resourcePrimKey = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByR_M_First(long resourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where resourcePrimKey = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_M_First(long resourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where resourcePrimKey = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByR_M_Last(long resourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where resourcePrimKey = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_M_Last(long resourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where resourcePrimKey = ? and main = ?. * * @param kbArticleId the primary key of the current kb article * @param resourcePrimKey the resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByR_M_PrevAndNext(long kbArticleId, long resourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles where resourcePrimKey = any ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param main the main * @return the matching kb articles */ public java.util.List<KBArticle> findByR_M(long[] resourcePrimKeies, boolean main); /** * Returns a range of all the kb articles where resourcePrimKey = any ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByR_M(long[] resourcePrimKeies, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles where resourcePrimKey = any ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_M(long[] resourcePrimKeies, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and main = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_M(long[] resourcePrimKeies, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Removes all the kb articles where resourcePrimKey = ? and main = ? from the database. * * @param resourcePrimKey the resource prim key * @param main the main */ public void removeByR_M(long resourcePrimKey, boolean main); /** * Returns the number of kb articles where resourcePrimKey = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param main the main * @return the number of matching kb articles */ public int countByR_M(long resourcePrimKey, boolean main); /** * Returns the number of kb articles where resourcePrimKey = any ? and main = ?. * * @param resourcePrimKeies the resource prim keies * @param main the main * @return the number of matching kb articles */ public int countByR_M(long[] resourcePrimKeies, boolean main); /** * Returns all the kb articles where resourcePrimKey = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param status the status * @return the matching kb articles */ public java.util.List<KBArticle> findByR_S(long resourcePrimKey, int status); /** * Returns a range of all the kb articles where resourcePrimKey = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByR_S(long resourcePrimKey, int status, int start, int end); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_S(long resourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_S(long resourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where resourcePrimKey = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByR_S_First(long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where resourcePrimKey = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_S_First(long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where resourcePrimKey = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByR_S_Last(long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where resourcePrimKey = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_S_Last(long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where resourcePrimKey = ? and status = ?. * * @param kbArticleId the primary key of the current kb article * @param resourcePrimKey the resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByR_S_PrevAndNext(long kbArticleId, long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles where resourcePrimKey = any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param status the status * @return the matching kb articles */ public java.util.List<KBArticle> findByR_S(long[] resourcePrimKeies, int status); /** * Returns a range of all the kb articles where resourcePrimKey = any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByR_S(long[] resourcePrimKeies, int status, int start, int end); /** * Returns an ordered range of all the kb articles where resourcePrimKey = any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_S(long[] resourcePrimKeies, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and status = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_S(long[] resourcePrimKeies, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Removes all the kb articles where resourcePrimKey = ? and status = ? from the database. * * @param resourcePrimKey the resource prim key * @param status the status */ public void removeByR_S(long resourcePrimKey, int status); /** * Returns the number of kb articles where resourcePrimKey = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param status the status * @return the number of matching kb articles */ public int countByR_S(long resourcePrimKey, int status); /** * Returns the number of kb articles where resourcePrimKey = any ? and status = ?. * * @param resourcePrimKeies the resource prim keies * @param status the status * @return the number of matching kb articles */ public int countByR_S(long[] resourcePrimKeies, int status); /** * Returns all the kb articles where groupId = ? and latest = ?. * * @param groupId the group ID * @param latest the latest * @return the matching kb articles */ public java.util.List<KBArticle> findByG_L(long groupId, boolean latest); /** * Returns a range of all the kb articles where groupId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_L(long groupId, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_L(long groupId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_L(long groupId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where groupId = ? and latest = ?. * * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_L_First(long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where groupId = ? and latest = ?. * * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_L_First(long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where groupId = ? and latest = ?. * * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_L_Last(long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where groupId = ? and latest = ?. * * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_L_Last(long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where groupId = ? and latest = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByG_L_PrevAndNext(long kbArticleId, long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and latest = ?. * * @param groupId the group ID * @param latest the latest * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_L(long groupId, boolean latest); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_L(long groupId, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permissions to view where groupId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_L(long groupId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set of kb articles that the user has permission to view where groupId = ? and latest = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] filterFindByG_L_PrevAndNext(long kbArticleId, long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Removes all the kb articles where groupId = ? and latest = ? from the database. * * @param groupId the group ID * @param latest the latest */ public void removeByG_L(long groupId, boolean latest); /** * Returns the number of kb articles where groupId = ? and latest = ?. * * @param groupId the group ID * @param latest the latest * @return the number of matching kb articles */ public int countByG_L(long groupId, boolean latest); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and latest = ?. * * @param groupId the group ID * @param latest the latest * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_L(long groupId, boolean latest); /** * Returns all the kb articles where groupId = ? and main = ?. * * @param groupId the group ID * @param main the main * @return the matching kb articles */ public java.util.List<KBArticle> findByG_M(long groupId, boolean main); /** * Returns a range of all the kb articles where groupId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_M(long groupId, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_M(long groupId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_M(long groupId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where groupId = ? and main = ?. * * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_M_First(long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where groupId = ? and main = ?. * * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_M_First(long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where groupId = ? and main = ?. * * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_M_Last(long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where groupId = ? and main = ?. * * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_M_Last(long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where groupId = ? and main = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByG_M_PrevAndNext(long kbArticleId, long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and main = ?. * * @param groupId the group ID * @param main the main * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_M(long groupId, boolean main); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_M(long groupId, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permissions to view where groupId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_M(long groupId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set of kb articles that the user has permission to view where groupId = ? and main = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] filterFindByG_M_PrevAndNext(long kbArticleId, long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Removes all the kb articles where groupId = ? and main = ? from the database. * * @param groupId the group ID * @param main the main */ public void removeByG_M(long groupId, boolean main); /** * Returns the number of kb articles where groupId = ? and main = ?. * * @param groupId the group ID * @param main the main * @return the number of matching kb articles */ public int countByG_M(long groupId, boolean main); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and main = ?. * * @param groupId the group ID * @param main the main * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_M(long groupId, boolean main); /** * Returns all the kb articles where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the matching kb articles */ public java.util.List<KBArticle> findByG_S(long groupId, int status); /** * Returns a range of all the kb articles where groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_S(long groupId, int status, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where groupId = ? and status = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByG_S_PrevAndNext(long kbArticleId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S(long groupId, int status); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S(long groupId, int status, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permissions to view where groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set of kb articles that the user has permission to view where groupId = ? and status = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] filterFindByG_S_PrevAndNext(long kbArticleId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Removes all the kb articles where groupId = ? and status = ? from the database. * * @param groupId the group ID * @param status the status */ public void removeByG_S(long groupId, int status); /** * Returns the number of kb articles where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the number of matching kb articles */ public int countByG_S(long groupId, int status); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_S(long groupId, int status); /** * Returns all the kb articles where companyId = ? and latest = ?. * * @param companyId the company ID * @param latest the latest * @return the matching kb articles */ public java.util.List<KBArticle> findByC_L(long companyId, boolean latest); /** * Returns a range of all the kb articles where companyId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByC_L(long companyId, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles where companyId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByC_L(long companyId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where companyId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByC_L(long companyId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where companyId = ? and latest = ?. * * @param companyId the company ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByC_L_First(long companyId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where companyId = ? and latest = ?. * * @param companyId the company ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByC_L_First(long companyId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where companyId = ? and latest = ?. * * @param companyId the company ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByC_L_Last(long companyId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where companyId = ? and latest = ?. * * @param companyId the company ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByC_L_Last(long companyId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where companyId = ? and latest = ?. * * @param kbArticleId the primary key of the current kb article * @param companyId the company ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByC_L_PrevAndNext(long kbArticleId, long companyId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Removes all the kb articles where companyId = ? and latest = ? from the database. * * @param companyId the company ID * @param latest the latest */ public void removeByC_L(long companyId, boolean latest); /** * Returns the number of kb articles where companyId = ? and latest = ?. * * @param companyId the company ID * @param latest the latest * @return the number of matching kb articles */ public int countByC_L(long companyId, boolean latest); /** * Returns all the kb articles where companyId = ? and main = ?. * * @param companyId the company ID * @param main the main * @return the matching kb articles */ public java.util.List<KBArticle> findByC_M(long companyId, boolean main); /** * Returns a range of all the kb articles where companyId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByC_M(long companyId, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles where companyId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByC_M(long companyId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where companyId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByC_M(long companyId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where companyId = ? and main = ?. * * @param companyId the company ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByC_M_First(long companyId, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where companyId = ? and main = ?. * * @param companyId the company ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByC_M_First(long companyId, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where companyId = ? and main = ?. * * @param companyId the company ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByC_M_Last(long companyId, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where companyId = ? and main = ?. * * @param companyId the company ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByC_M_Last(long companyId, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where companyId = ? and main = ?. * * @param kbArticleId the primary key of the current kb article * @param companyId the company ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByC_M_PrevAndNext(long kbArticleId, long companyId, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Removes all the kb articles where companyId = ? and main = ? from the database. * * @param companyId the company ID * @param main the main */ public void removeByC_M(long companyId, boolean main); /** * Returns the number of kb articles where companyId = ? and main = ?. * * @param companyId the company ID * @param main the main * @return the number of matching kb articles */ public int countByC_M(long companyId, boolean main); /** * Returns all the kb articles where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @return the matching kb articles */ public java.util.List<KBArticle> findByC_S(long companyId, int status); /** * Returns a range of all the kb articles where companyId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByC_S(long companyId, int status, int start, int end); /** * Returns an ordered range of all the kb articles where companyId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByC_S(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where companyId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByC_S(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByC_S_First(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByC_S_First(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByC_S_Last(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByC_S_Last(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where companyId = ? and status = ?. * * @param kbArticleId the primary key of the current kb article * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByC_S_PrevAndNext(long kbArticleId, long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Removes all the kb articles where companyId = ? and status = ? from the database. * * @param companyId the company ID * @param status the status */ public void removeByC_S(long companyId, int status); /** * Returns the number of kb articles where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @return the number of matching kb articles */ public int countByC_S(long companyId, int status); /** * Returns all the kb articles where parentResourcePrimKey = ? and latest = ?. * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @return the matching kb articles */ public java.util.List<KBArticle> findByP_L(long parentResourcePrimKey, boolean latest); /** * Returns a range of all the kb articles where parentResourcePrimKey = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByP_L(long parentResourcePrimKey, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles where parentResourcePrimKey = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByP_L(long parentResourcePrimKey, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where parentResourcePrimKey = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByP_L(long parentResourcePrimKey, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where parentResourcePrimKey = ? and latest = ?. * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByP_L_First(long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where parentResourcePrimKey = ? and latest = ?. * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByP_L_First(long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where parentResourcePrimKey = ? and latest = ?. * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByP_L_Last(long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where parentResourcePrimKey = ? and latest = ?. * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByP_L_Last(long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where parentResourcePrimKey = ? and latest = ?. * * @param kbArticleId the primary key of the current kb article * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByP_L_PrevAndNext(long kbArticleId, long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles where parentResourcePrimKey = any ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @return the matching kb articles */ public java.util.List<KBArticle> findByP_L(long[] parentResourcePrimKeies, boolean latest); /** * Returns a range of all the kb articles where parentResourcePrimKey = any ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByP_L(long[] parentResourcePrimKeies, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles where parentResourcePrimKey = any ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByP_L(long[] parentResourcePrimKeies, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where parentResourcePrimKey = ? and latest = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByP_L(long[] parentResourcePrimKeies, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Removes all the kb articles where parentResourcePrimKey = ? and latest = ? from the database. * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest */ public void removeByP_L(long parentResourcePrimKey, boolean latest); /** * Returns the number of kb articles where parentResourcePrimKey = ? and latest = ?. * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @return the number of matching kb articles */ public int countByP_L(long parentResourcePrimKey, boolean latest); /** * Returns the number of kb articles where parentResourcePrimKey = any ? and latest = ?. * * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @return the number of matching kb articles */ public int countByP_L(long[] parentResourcePrimKeies, boolean latest); /** * Returns all the kb articles where parentResourcePrimKey = ? and main = ?. * * @param parentResourcePrimKey the parent resource prim key * @param main the main * @return the matching kb articles */ public java.util.List<KBArticle> findByP_M(long parentResourcePrimKey, boolean main); /** * Returns a range of all the kb articles where parentResourcePrimKey = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByP_M(long parentResourcePrimKey, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles where parentResourcePrimKey = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByP_M(long parentResourcePrimKey, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where parentResourcePrimKey = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByP_M(long parentResourcePrimKey, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where parentResourcePrimKey = ? and main = ?. * * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByP_M_First(long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where parentResourcePrimKey = ? and main = ?. * * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByP_M_First(long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where parentResourcePrimKey = ? and main = ?. * * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByP_M_Last(long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where parentResourcePrimKey = ? and main = ?. * * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByP_M_Last(long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where parentResourcePrimKey = ? and main = ?. * * @param kbArticleId the primary key of the current kb article * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByP_M_PrevAndNext(long kbArticleId, long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles where parentResourcePrimKey = any ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @return the matching kb articles */ public java.util.List<KBArticle> findByP_M(long[] parentResourcePrimKeies, boolean main); /** * Returns a range of all the kb articles where parentResourcePrimKey = any ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByP_M(long[] parentResourcePrimKeies, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles where parentResourcePrimKey = any ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByP_M(long[] parentResourcePrimKeies, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where parentResourcePrimKey = ? and main = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByP_M(long[] parentResourcePrimKeies, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Removes all the kb articles where parentResourcePrimKey = ? and main = ? from the database. * * @param parentResourcePrimKey the parent resource prim key * @param main the main */ public void removeByP_M(long parentResourcePrimKey, boolean main); /** * Returns the number of kb articles where parentResourcePrimKey = ? and main = ?. * * @param parentResourcePrimKey the parent resource prim key * @param main the main * @return the number of matching kb articles */ public int countByP_M(long parentResourcePrimKey, boolean main); /** * Returns the number of kb articles where parentResourcePrimKey = any ? and main = ?. * * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @return the number of matching kb articles */ public int countByP_M(long[] parentResourcePrimKeies, boolean main); /** * Returns all the kb articles where parentResourcePrimKey = ? and status = ?. * * @param parentResourcePrimKey the parent resource prim key * @param status the status * @return the matching kb articles */ public java.util.List<KBArticle> findByP_S(long parentResourcePrimKey, int status); /** * Returns a range of all the kb articles where parentResourcePrimKey = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByP_S(long parentResourcePrimKey, int status, int start, int end); /** * Returns an ordered range of all the kb articles where parentResourcePrimKey = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByP_S(long parentResourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where parentResourcePrimKey = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByP_S(long parentResourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where parentResourcePrimKey = ? and status = ?. * * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByP_S_First(long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where parentResourcePrimKey = ? and status = ?. * * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByP_S_First(long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where parentResourcePrimKey = ? and status = ?. * * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByP_S_Last(long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where parentResourcePrimKey = ? and status = ?. * * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByP_S_Last(long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where parentResourcePrimKey = ? and status = ?. * * @param kbArticleId the primary key of the current kb article * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByP_S_PrevAndNext(long kbArticleId, long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles where parentResourcePrimKey = any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @return the matching kb articles */ public java.util.List<KBArticle> findByP_S(long[] parentResourcePrimKeies, int status); /** * Returns a range of all the kb articles where parentResourcePrimKey = any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByP_S(long[] parentResourcePrimKeies, int status, int start, int end); /** * Returns an ordered range of all the kb articles where parentResourcePrimKey = any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByP_S(long[] parentResourcePrimKeies, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where parentResourcePrimKey = ? and status = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByP_S(long[] parentResourcePrimKeies, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Removes all the kb articles where parentResourcePrimKey = ? and status = ? from the database. * * @param parentResourcePrimKey the parent resource prim key * @param status the status */ public void removeByP_S(long parentResourcePrimKey, int status); /** * Returns the number of kb articles where parentResourcePrimKey = ? and status = ?. * * @param parentResourcePrimKey the parent resource prim key * @param status the status * @return the number of matching kb articles */ public int countByP_S(long parentResourcePrimKey, int status); /** * Returns the number of kb articles where parentResourcePrimKey = any ? and status = ?. * * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @return the number of matching kb articles */ public int countByP_S(long[] parentResourcePrimKeies, int status); /** * Returns the kb article where resourcePrimKey = ? and groupId = ? and version = ? or throws a {@link NoSuchArticleException} if it could not be found. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param version the version * @return the matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByR_G_V(long resourcePrimKey, long groupId, int version) throws NoSuchArticleException; /** * Returns the kb article where resourcePrimKey = ? and groupId = ? and version = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param version the version * @return the matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_G_V(long resourcePrimKey, long groupId, int version); /** * Returns the kb article where resourcePrimKey = ? and groupId = ? and version = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param version the version * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_G_V(long resourcePrimKey, long groupId, int version, boolean retrieveFromCache); /** * Removes the kb article where resourcePrimKey = ? and groupId = ? and version = ? from the database. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param version the version * @return the kb article that was removed */ public KBArticle removeByR_G_V(long resourcePrimKey, long groupId, int version) throws NoSuchArticleException; /** * Returns the number of kb articles where resourcePrimKey = ? and groupId = ? and version = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param version the version * @return the number of matching kb articles */ public int countByR_G_V(long resourcePrimKey, long groupId, int version); /** * Returns all the kb articles where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @return the matching kb articles */ public java.util.List<KBArticle> findByR_G_L(long resourcePrimKey, long groupId, boolean latest); /** * Returns a range of all the kb articles where resourcePrimKey = ? and groupId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByR_G_L(long resourcePrimKey, long groupId, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and groupId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_G_L(long resourcePrimKey, long groupId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and groupId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_G_L(long resourcePrimKey, long groupId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByR_G_L_First(long resourcePrimKey, long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_G_L_First(long resourcePrimKey, long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByR_G_L_Last(long resourcePrimKey, long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_G_L_Last(long resourcePrimKey, long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param kbArticleId the primary key of the current kb article * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByR_G_L_PrevAndNext(long kbArticleId, long resourcePrimKey, long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_L(long resourcePrimKey, long groupId, boolean latest); /** * Returns a range of all the kb articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_L(long resourcePrimKey, long groupId, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permissions to view where resourcePrimKey = ? and groupId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_L(long resourcePrimKey, long groupId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set of kb articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param kbArticleId the primary key of the current kb article * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] filterFindByR_G_L_PrevAndNext(long kbArticleId, long resourcePrimKey, long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and latest = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param latest the latest * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_L( long[] resourcePrimKeies, long groupId, boolean latest); /** * Returns a range of all the kb articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_L( long[] resourcePrimKeies, long groupId, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_L( long[] resourcePrimKeies, long groupId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns all the kb articles where resourcePrimKey = any ? and groupId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param latest the latest * @return the matching kb articles */ public java.util.List<KBArticle> findByR_G_L(long[] resourcePrimKeies, long groupId, boolean latest); /** * Returns a range of all the kb articles where resourcePrimKey = any ? and groupId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByR_G_L(long[] resourcePrimKeies, long groupId, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles where resourcePrimKey = any ? and groupId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_G_L(long[] resourcePrimKeies, long groupId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and groupId = ? and latest = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_G_L(long[] resourcePrimKeies, long groupId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Removes all the kb articles where resourcePrimKey = ? and groupId = ? and latest = ? from the database. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest */ public void removeByR_G_L(long resourcePrimKey, long groupId, boolean latest); /** * Returns the number of kb articles where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @return the number of matching kb articles */ public int countByR_G_L(long resourcePrimKey, long groupId, boolean latest); /** * Returns the number of kb articles where resourcePrimKey = any ? and groupId = ? and latest = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param latest the latest * @return the number of matching kb articles */ public int countByR_G_L(long[] resourcePrimKeies, long groupId, boolean latest); /** * Returns the number of kb articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @return the number of matching kb articles that the user has permission to view */ public int filterCountByR_G_L(long resourcePrimKey, long groupId, boolean latest); /** * Returns the number of kb articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and latest = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param latest the latest * @return the number of matching kb articles that the user has permission to view */ public int filterCountByR_G_L(long[] resourcePrimKeies, long groupId, boolean latest); /** * Returns all the kb articles where resourcePrimKey = ? and groupId = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @return the matching kb articles */ public java.util.List<KBArticle> findByR_G_M(long resourcePrimKey, long groupId, boolean main); /** * Returns a range of all the kb articles where resourcePrimKey = ? and groupId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByR_G_M(long resourcePrimKey, long groupId, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and groupId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_G_M(long resourcePrimKey, long groupId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and groupId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_G_M(long resourcePrimKey, long groupId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where resourcePrimKey = ? and groupId = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByR_G_M_First(long resourcePrimKey, long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where resourcePrimKey = ? and groupId = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_G_M_First(long resourcePrimKey, long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where resourcePrimKey = ? and groupId = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByR_G_M_Last(long resourcePrimKey, long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where resourcePrimKey = ? and groupId = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_G_M_Last(long resourcePrimKey, long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where resourcePrimKey = ? and groupId = ? and main = ?. * * @param kbArticleId the primary key of the current kb article * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByR_G_M_PrevAndNext(long kbArticleId, long resourcePrimKey, long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_M(long resourcePrimKey, long groupId, boolean main); /** * Returns a range of all the kb articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_M(long resourcePrimKey, long groupId, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permissions to view where resourcePrimKey = ? and groupId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_M(long resourcePrimKey, long groupId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set of kb articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and main = ?. * * @param kbArticleId the primary key of the current kb article * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] filterFindByR_G_M_PrevAndNext(long kbArticleId, long resourcePrimKey, long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and main = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param main the main * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_M( long[] resourcePrimKeies, long groupId, boolean main); /** * Returns a range of all the kb articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_M( long[] resourcePrimKeies, long groupId, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_M( long[] resourcePrimKeies, long groupId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns all the kb articles where resourcePrimKey = any ? and groupId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param main the main * @return the matching kb articles */ public java.util.List<KBArticle> findByR_G_M(long[] resourcePrimKeies, long groupId, boolean main); /** * Returns a range of all the kb articles where resourcePrimKey = any ? and groupId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByR_G_M(long[] resourcePrimKeies, long groupId, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles where resourcePrimKey = any ? and groupId = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_G_M(long[] resourcePrimKeies, long groupId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and groupId = ? and main = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_G_M(long[] resourcePrimKeies, long groupId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Removes all the kb articles where resourcePrimKey = ? and groupId = ? and main = ? from the database. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main */ public void removeByR_G_M(long resourcePrimKey, long groupId, boolean main); /** * Returns the number of kb articles where resourcePrimKey = ? and groupId = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @return the number of matching kb articles */ public int countByR_G_M(long resourcePrimKey, long groupId, boolean main); /** * Returns the number of kb articles where resourcePrimKey = any ? and groupId = ? and main = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param main the main * @return the number of matching kb articles */ public int countByR_G_M(long[] resourcePrimKeies, long groupId, boolean main); /** * Returns the number of kb articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @return the number of matching kb articles that the user has permission to view */ public int filterCountByR_G_M(long resourcePrimKey, long groupId, boolean main); /** * Returns the number of kb articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and main = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param main the main * @return the number of matching kb articles that the user has permission to view */ public int filterCountByR_G_M(long[] resourcePrimKeies, long groupId, boolean main); /** * Returns all the kb articles where resourcePrimKey = ? and groupId = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @return the matching kb articles */ public java.util.List<KBArticle> findByR_G_S(long resourcePrimKey, long groupId, int status); /** * Returns a range of all the kb articles where resourcePrimKey = ? and groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByR_G_S(long resourcePrimKey, long groupId, int status, int start, int end); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_G_S(long resourcePrimKey, long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_G_S(long resourcePrimKey, long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where resourcePrimKey = ? and groupId = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByR_G_S_First(long resourcePrimKey, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where resourcePrimKey = ? and groupId = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_G_S_First(long resourcePrimKey, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where resourcePrimKey = ? and groupId = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByR_G_S_Last(long resourcePrimKey, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where resourcePrimKey = ? and groupId = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByR_G_S_Last(long resourcePrimKey, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where resourcePrimKey = ? and groupId = ? and status = ?. * * @param kbArticleId the primary key of the current kb article * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByR_G_S_PrevAndNext(long kbArticleId, long resourcePrimKey, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_S(long resourcePrimKey, long groupId, int status); /** * Returns a range of all the kb articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_S(long resourcePrimKey, long groupId, int status, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permissions to view where resourcePrimKey = ? and groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_S(long resourcePrimKey, long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set of kb articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and status = ?. * * @param kbArticleId the primary key of the current kb article * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] filterFindByR_G_S_PrevAndNext(long kbArticleId, long resourcePrimKey, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and status = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param status the status * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_S( long[] resourcePrimKeies, long groupId, int status); /** * Returns a range of all the kb articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_S( long[] resourcePrimKeies, long groupId, int status, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByR_G_S( long[] resourcePrimKeies, long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns all the kb articles where resourcePrimKey = any ? and groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param status the status * @return the matching kb articles */ public java.util.List<KBArticle> findByR_G_S(long[] resourcePrimKeies, long groupId, int status); /** * Returns a range of all the kb articles where resourcePrimKey = any ? and groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByR_G_S(long[] resourcePrimKeies, long groupId, int status, int start, int end); /** * Returns an ordered range of all the kb articles where resourcePrimKey = any ? and groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_G_S(long[] resourcePrimKeies, long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where resourcePrimKey = ? and groupId = ? and status = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByR_G_S(long[] resourcePrimKeies, long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Removes all the kb articles where resourcePrimKey = ? and groupId = ? and status = ? from the database. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status */ public void removeByR_G_S(long resourcePrimKey, long groupId, int status); /** * Returns the number of kb articles where resourcePrimKey = ? and groupId = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @return the number of matching kb articles */ public int countByR_G_S(long resourcePrimKey, long groupId, int status); /** * Returns the number of kb articles where resourcePrimKey = any ? and groupId = ? and status = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param status the status * @return the number of matching kb articles */ public int countByR_G_S(long[] resourcePrimKeies, long groupId, int status); /** * Returns the number of kb articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @return the number of matching kb articles that the user has permission to view */ public int filterCountByR_G_S(long resourcePrimKey, long groupId, int status); /** * Returns the number of kb articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and status = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param status the status * @return the number of matching kb articles that the user has permission to view */ public int filterCountByR_G_S(long[] resourcePrimKeies, long groupId, int status); /** * Returns all the kb articles where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @return the matching kb articles */ public java.util.List<KBArticle> findByG_P_L(long groupId, long parentResourcePrimKey, boolean latest); /** * Returns a range of all the kb articles where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_P_L(long groupId, long parentResourcePrimKey, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_P_L(long groupId, long parentResourcePrimKey, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_P_L(long groupId, long parentResourcePrimKey, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_P_L_First(long groupId, long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_P_L_First(long groupId, long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_P_L_Last(long groupId, long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_P_L_Last(long groupId, long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByG_P_L_PrevAndNext(long kbArticleId, long groupId, long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_L(long groupId, long parentResourcePrimKey, boolean latest); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_L(long groupId, long parentResourcePrimKey, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permissions to view where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_L(long groupId, long parentResourcePrimKey, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set of kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] filterFindByG_P_L_PrevAndNext(long kbArticleId, long groupId, long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_L(long groupId, long[] parentResourcePrimKeies, boolean latest); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_L(long groupId, long[] parentResourcePrimKeies, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_L(long groupId, long[] parentResourcePrimKeies, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns all the kb articles where groupId = ? and parentResourcePrimKey = any ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @return the matching kb articles */ public java.util.List<KBArticle> findByG_P_L(long groupId, long[] parentResourcePrimKeies, boolean latest); /** * Returns a range of all the kb articles where groupId = ? and parentResourcePrimKey = any ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_P_L(long groupId, long[] parentResourcePrimKeies, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and parentResourcePrimKey = any ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_P_L(long groupId, long[] parentResourcePrimKeies, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and parentResourcePrimKey = ? and latest = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_P_L(long groupId, long[] parentResourcePrimKeies, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Removes all the kb articles where groupId = ? and parentResourcePrimKey = ? and latest = ? from the database. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest */ public void removeByG_P_L(long groupId, long parentResourcePrimKey, boolean latest); /** * Returns the number of kb articles where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @return the number of matching kb articles */ public int countByG_P_L(long groupId, long parentResourcePrimKey, boolean latest); /** * Returns the number of kb articles where groupId = ? and parentResourcePrimKey = any ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @return the number of matching kb articles */ public int countByG_P_L(long groupId, long[] parentResourcePrimKeies, boolean latest); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_P_L(long groupId, long parentResourcePrimKey, boolean latest); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_P_L(long groupId, long[] parentResourcePrimKeies, boolean latest); /** * Returns all the kb articles where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @return the matching kb articles */ public java.util.List<KBArticle> findByG_P_M(long groupId, long parentResourcePrimKey, boolean main); /** * Returns a range of all the kb articles where groupId = ? and parentResourcePrimKey = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_P_M(long groupId, long parentResourcePrimKey, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and parentResourcePrimKey = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_P_M(long groupId, long parentResourcePrimKey, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and parentResourcePrimKey = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_P_M(long groupId, long parentResourcePrimKey, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_P_M_First(long groupId, long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_P_M_First(long groupId, long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_P_M_Last(long groupId, long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_P_M_Last(long groupId, long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByG_P_M_PrevAndNext(long kbArticleId, long groupId, long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_M(long groupId, long parentResourcePrimKey, boolean main); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_M(long groupId, long parentResourcePrimKey, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permissions to view where groupId = ? and parentResourcePrimKey = ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_M(long groupId, long parentResourcePrimKey, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set of kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] filterFindByG_P_M_PrevAndNext(long kbArticleId, long groupId, long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_M(long groupId, long[] parentResourcePrimKeies, boolean main); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_M(long groupId, long[] parentResourcePrimKeies, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_M(long groupId, long[] parentResourcePrimKeies, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns all the kb articles where groupId = ? and parentResourcePrimKey = any ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @return the matching kb articles */ public java.util.List<KBArticle> findByG_P_M(long groupId, long[] parentResourcePrimKeies, boolean main); /** * Returns a range of all the kb articles where groupId = ? and parentResourcePrimKey = any ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_P_M(long groupId, long[] parentResourcePrimKeies, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and parentResourcePrimKey = any ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_P_M(long groupId, long[] parentResourcePrimKeies, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and parentResourcePrimKey = ? and main = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_P_M(long groupId, long[] parentResourcePrimKeies, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Removes all the kb articles where groupId = ? and parentResourcePrimKey = ? and main = ? from the database. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main */ public void removeByG_P_M(long groupId, long parentResourcePrimKey, boolean main); /** * Returns the number of kb articles where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @return the number of matching kb articles */ public int countByG_P_M(long groupId, long parentResourcePrimKey, boolean main); /** * Returns the number of kb articles where groupId = ? and parentResourcePrimKey = any ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @return the number of matching kb articles */ public int countByG_P_M(long groupId, long[] parentResourcePrimKeies, boolean main); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_P_M(long groupId, long parentResourcePrimKey, boolean main); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_P_M(long groupId, long[] parentResourcePrimKeies, boolean main); /** * Returns all the kb articles where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @return the matching kb articles */ public java.util.List<KBArticle> findByG_P_S(long groupId, long parentResourcePrimKey, int status); /** * Returns a range of all the kb articles where groupId = ? and parentResourcePrimKey = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_P_S(long groupId, long parentResourcePrimKey, int status, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and parentResourcePrimKey = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_P_S(long groupId, long parentResourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and parentResourcePrimKey = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_P_S(long groupId, long parentResourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_P_S_First(long groupId, long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_P_S_First(long groupId, long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_P_S_Last(long groupId, long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_P_S_Last(long groupId, long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByG_P_S_PrevAndNext(long kbArticleId, long groupId, long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_S(long groupId, long parentResourcePrimKey, int status); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_S(long groupId, long parentResourcePrimKey, int status, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permissions to view where groupId = ? and parentResourcePrimKey = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_S(long groupId, long parentResourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set of kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] filterFindByG_P_S_PrevAndNext(long kbArticleId, long groupId, long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_S(long groupId, long[] parentResourcePrimKeies, int status); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_S(long groupId, long[] parentResourcePrimKeies, int status, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_P_S(long groupId, long[] parentResourcePrimKeies, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns all the kb articles where groupId = ? and parentResourcePrimKey = any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @return the matching kb articles */ public java.util.List<KBArticle> findByG_P_S(long groupId, long[] parentResourcePrimKeies, int status); /** * Returns a range of all the kb articles where groupId = ? and parentResourcePrimKey = any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_P_S(long groupId, long[] parentResourcePrimKeies, int status, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and parentResourcePrimKey = any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_P_S(long groupId, long[] parentResourcePrimKeies, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and parentResourcePrimKey = ? and status = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_P_S(long groupId, long[] parentResourcePrimKeies, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Removes all the kb articles where groupId = ? and parentResourcePrimKey = ? and status = ? from the database. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status */ public void removeByG_P_S(long groupId, long parentResourcePrimKey, int status); /** * Returns the number of kb articles where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @return the number of matching kb articles */ public int countByG_P_S(long groupId, long parentResourcePrimKey, int status); /** * Returns the number of kb articles where groupId = ? and parentResourcePrimKey = any ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @return the number of matching kb articles */ public int countByG_P_S(long groupId, long[] parentResourcePrimKeies, int status); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_P_S(long groupId, long parentResourcePrimKey, int status); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_P_S(long groupId, long[] parentResourcePrimKeies, int status); /** * Returns all the kb articles where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @return the matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_UT(long groupId, long kbFolderId, java.lang.String urlTitle); /** * Returns a range of all the kb articles where groupId = ? and kbFolderId = ? and urlTitle = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_UT(long groupId, long kbFolderId, java.lang.String urlTitle, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and kbFolderId = ? and urlTitle = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_UT(long groupId, long kbFolderId, java.lang.String urlTitle, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and kbFolderId = ? and urlTitle = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_UT(long groupId, long kbFolderId, java.lang.String urlTitle, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_KBFI_UT_First(long groupId, long kbFolderId, java.lang.String urlTitle, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_KBFI_UT_First(long groupId, long kbFolderId, java.lang.String urlTitle, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_KBFI_UT_Last(long groupId, long kbFolderId, java.lang.String urlTitle, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_KBFI_UT_Last(long groupId, long kbFolderId, java.lang.String urlTitle, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByG_KBFI_UT_PrevAndNext(long kbArticleId, long groupId, long kbFolderId, java.lang.String urlTitle, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_KBFI_UT(long groupId, long kbFolderId, java.lang.String urlTitle); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_KBFI_UT(long groupId, long kbFolderId, java.lang.String urlTitle, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permissions to view where groupId = ? and kbFolderId = ? and urlTitle = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_KBFI_UT(long groupId, long kbFolderId, java.lang.String urlTitle, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set of kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] filterFindByG_KBFI_UT_PrevAndNext(long kbArticleId, long groupId, long kbFolderId, java.lang.String urlTitle, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Removes all the kb articles where groupId = ? and kbFolderId = ? and urlTitle = ? from the database. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title */ public void removeByG_KBFI_UT(long groupId, long kbFolderId, java.lang.String urlTitle); /** * Returns the number of kb articles where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @return the number of matching kb articles */ public int countByG_KBFI_UT(long groupId, long kbFolderId, java.lang.String urlTitle); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_KBFI_UT(long groupId, long kbFolderId, java.lang.String urlTitle); /** * Returns all the kb articles where groupId = ? and kbFolderId = ? and latest = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param latest the latest * @return the matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_L(long groupId, long kbFolderId, boolean latest); /** * Returns a range of all the kb articles where groupId = ? and kbFolderId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_L(long groupId, long kbFolderId, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and kbFolderId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_L(long groupId, long kbFolderId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and kbFolderId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_L(long groupId, long kbFolderId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where groupId = ? and kbFolderId = ? and latest = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_KBFI_L_First(long groupId, long kbFolderId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where groupId = ? and kbFolderId = ? and latest = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_KBFI_L_First(long groupId, long kbFolderId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where groupId = ? and kbFolderId = ? and latest = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_KBFI_L_Last(long groupId, long kbFolderId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where groupId = ? and kbFolderId = ? and latest = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_KBFI_L_Last(long groupId, long kbFolderId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where groupId = ? and kbFolderId = ? and latest = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param kbFolderId the kb folder ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByG_KBFI_L_PrevAndNext(long kbArticleId, long groupId, long kbFolderId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and latest = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param latest the latest * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_KBFI_L(long groupId, long kbFolderId, boolean latest); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_KBFI_L(long groupId, long kbFolderId, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permissions to view where groupId = ? and kbFolderId = ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_KBFI_L(long groupId, long kbFolderId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set of kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and latest = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param kbFolderId the kb folder ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] filterFindByG_KBFI_L_PrevAndNext(long kbArticleId, long groupId, long kbFolderId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Removes all the kb articles where groupId = ? and kbFolderId = ? and latest = ? from the database. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param latest the latest */ public void removeByG_KBFI_L(long groupId, long kbFolderId, boolean latest); /** * Returns the number of kb articles where groupId = ? and kbFolderId = ? and latest = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param latest the latest * @return the number of matching kb articles */ public int countByG_KBFI_L(long groupId, long kbFolderId, boolean latest); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and latest = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param latest the latest * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_KBFI_L(long groupId, long kbFolderId, boolean latest); /** * Returns all the kb articles where groupId = ? and kbFolderId = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @return the matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_S(long groupId, long kbFolderId, int status); /** * Returns a range of all the kb articles where groupId = ? and kbFolderId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_S(long groupId, long kbFolderId, int status, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and kbFolderId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_S(long groupId, long kbFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and kbFolderId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_S(long groupId, long kbFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where groupId = ? and kbFolderId = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_KBFI_S_First(long groupId, long kbFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where groupId = ? and kbFolderId = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_KBFI_S_First(long groupId, long kbFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where groupId = ? and kbFolderId = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_KBFI_S_Last(long groupId, long kbFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where groupId = ? and kbFolderId = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_KBFI_S_Last(long groupId, long kbFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where groupId = ? and kbFolderId = ? and status = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByG_KBFI_S_PrevAndNext(long kbArticleId, long groupId, long kbFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_KBFI_S(long groupId, long kbFolderId, int status); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_KBFI_S(long groupId, long kbFolderId, int status, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permissions to view where groupId = ? and kbFolderId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_KBFI_S(long groupId, long kbFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set of kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and status = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] filterFindByG_KBFI_S_PrevAndNext(long kbArticleId, long groupId, long kbFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Removes all the kb articles where groupId = ? and kbFolderId = ? and status = ? from the database. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status */ public void removeByG_KBFI_S(long groupId, long kbFolderId, int status); /** * Returns the number of kb articles where groupId = ? and kbFolderId = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @return the number of matching kb articles */ public int countByG_KBFI_S(long groupId, long kbFolderId, int status); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_KBFI_S(long groupId, long kbFolderId, int status); /** * Returns all the kb articles where groupId = ? and sections LIKE ? and latest = ?. * * @param groupId the group ID * @param sections the sections * @param latest the latest * @return the matching kb articles */ public java.util.List<KBArticle> findByG_S_L(long groupId, java.lang.String sections, boolean latest); /** * Returns a range of all the kb articles where groupId = ? and sections LIKE ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_S_L(long groupId, java.lang.String sections, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and sections LIKE ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_S_L(long groupId, java.lang.String sections, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and sections LIKE ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_S_L(long groupId, java.lang.String sections, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where groupId = ? and sections LIKE ? and latest = ?. * * @param groupId the group ID * @param sections the sections * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_S_L_First(long groupId, java.lang.String sections, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where groupId = ? and sections LIKE ? and latest = ?. * * @param groupId the group ID * @param sections the sections * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_S_L_First(long groupId, java.lang.String sections, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where groupId = ? and sections LIKE ? and latest = ?. * * @param groupId the group ID * @param sections the sections * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_S_L_Last(long groupId, java.lang.String sections, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where groupId = ? and sections LIKE ? and latest = ?. * * @param groupId the group ID * @param sections the sections * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_S_L_Last(long groupId, java.lang.String sections, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where groupId = ? and sections LIKE ? and latest = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param sections the sections * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByG_S_L_PrevAndNext(long kbArticleId, long groupId, java.lang.String sections, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and sections LIKE ? and latest = ?. * * @param groupId the group ID * @param sections the sections * @param latest the latest * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_L(long groupId, java.lang.String sections, boolean latest); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and sections LIKE ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_L(long groupId, java.lang.String sections, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permissions to view where groupId = ? and sections LIKE ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_L(long groupId, java.lang.String sections, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set of kb articles that the user has permission to view where groupId = ? and sections LIKE ? and latest = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param sections the sections * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] filterFindByG_S_L_PrevAndNext(long kbArticleId, long groupId, java.lang.String sections, boolean latest, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and sections LIKE any ? and latest = ?. * * @param groupId the group ID * @param sectionses the sectionses * @param latest the latest * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_L(long groupId, java.lang.String[] sectionses, boolean latest); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and sections LIKE any ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sectionses the sectionses * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_L(long groupId, java.lang.String[] sectionses, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permission to view where groupId = ? and sections LIKE any ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sectionses the sectionses * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_L(long groupId, java.lang.String[] sectionses, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns all the kb articles where groupId = ? and sections LIKE any ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sectionses the sectionses * @param latest the latest * @return the matching kb articles */ public java.util.List<KBArticle> findByG_S_L(long groupId, java.lang.String[] sectionses, boolean latest); /** * Returns a range of all the kb articles where groupId = ? and sections LIKE any ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sectionses the sectionses * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_S_L(long groupId, java.lang.String[] sectionses, boolean latest, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and sections LIKE any ? and latest = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sectionses the sectionses * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_S_L(long groupId, java.lang.String[] sectionses, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and sections LIKE ? and latest = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param latest the latest * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_S_L(long groupId, java.lang.String[] sectionses, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Removes all the kb articles where groupId = ? and sections LIKE ? and latest = ? from the database. * * @param groupId the group ID * @param sections the sections * @param latest the latest */ public void removeByG_S_L(long groupId, java.lang.String sections, boolean latest); /** * Returns the number of kb articles where groupId = ? and sections LIKE ? and latest = ?. * * @param groupId the group ID * @param sections the sections * @param latest the latest * @return the number of matching kb articles */ public int countByG_S_L(long groupId, java.lang.String sections, boolean latest); /** * Returns the number of kb articles where groupId = ? and sections LIKE any ? and latest = ?. * * @param groupId the group ID * @param sectionses the sectionses * @param latest the latest * @return the number of matching kb articles */ public int countByG_S_L(long groupId, java.lang.String[] sectionses, boolean latest); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and sections LIKE ? and latest = ?. * * @param groupId the group ID * @param sections the sections * @param latest the latest * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_S_L(long groupId, java.lang.String sections, boolean latest); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and sections LIKE any ? and latest = ?. * * @param groupId the group ID * @param sectionses the sectionses * @param latest the latest * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_S_L(long groupId, java.lang.String[] sectionses, boolean latest); /** * Returns all the kb articles where groupId = ? and sections LIKE ? and main = ?. * * @param groupId the group ID * @param sections the sections * @param main the main * @return the matching kb articles */ public java.util.List<KBArticle> findByG_S_M(long groupId, java.lang.String sections, boolean main); /** * Returns a range of all the kb articles where groupId = ? and sections LIKE ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_S_M(long groupId, java.lang.String sections, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and sections LIKE ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_S_M(long groupId, java.lang.String sections, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and sections LIKE ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_S_M(long groupId, java.lang.String sections, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where groupId = ? and sections LIKE ? and main = ?. * * @param groupId the group ID * @param sections the sections * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_S_M_First(long groupId, java.lang.String sections, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where groupId = ? and sections LIKE ? and main = ?. * * @param groupId the group ID * @param sections the sections * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_S_M_First(long groupId, java.lang.String sections, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where groupId = ? and sections LIKE ? and main = ?. * * @param groupId the group ID * @param sections the sections * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_S_M_Last(long groupId, java.lang.String sections, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where groupId = ? and sections LIKE ? and main = ?. * * @param groupId the group ID * @param sections the sections * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_S_M_Last(long groupId, java.lang.String sections, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where groupId = ? and sections LIKE ? and main = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param sections the sections * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByG_S_M_PrevAndNext(long kbArticleId, long groupId, java.lang.String sections, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and sections LIKE ? and main = ?. * * @param groupId the group ID * @param sections the sections * @param main the main * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_M(long groupId, java.lang.String sections, boolean main); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and sections LIKE ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_M(long groupId, java.lang.String sections, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permissions to view where groupId = ? and sections LIKE ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_M(long groupId, java.lang.String sections, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set of kb articles that the user has permission to view where groupId = ? and sections LIKE ? and main = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param sections the sections * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] filterFindByG_S_M_PrevAndNext(long kbArticleId, long groupId, java.lang.String sections, boolean main, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and sections LIKE any ? and main = ?. * * @param groupId the group ID * @param sectionses the sectionses * @param main the main * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_M(long groupId, java.lang.String[] sectionses, boolean main); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and sections LIKE any ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sectionses the sectionses * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_M(long groupId, java.lang.String[] sectionses, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permission to view where groupId = ? and sections LIKE any ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sectionses the sectionses * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_M(long groupId, java.lang.String[] sectionses, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns all the kb articles where groupId = ? and sections LIKE any ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sectionses the sectionses * @param main the main * @return the matching kb articles */ public java.util.List<KBArticle> findByG_S_M(long groupId, java.lang.String[] sectionses, boolean main); /** * Returns a range of all the kb articles where groupId = ? and sections LIKE any ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sectionses the sectionses * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_S_M(long groupId, java.lang.String[] sectionses, boolean main, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and sections LIKE any ? and main = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sectionses the sectionses * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_S_M(long groupId, java.lang.String[] sectionses, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and sections LIKE ? and main = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param main the main * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_S_M(long groupId, java.lang.String[] sectionses, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Removes all the kb articles where groupId = ? and sections LIKE ? and main = ? from the database. * * @param groupId the group ID * @param sections the sections * @param main the main */ public void removeByG_S_M(long groupId, java.lang.String sections, boolean main); /** * Returns the number of kb articles where groupId = ? and sections LIKE ? and main = ?. * * @param groupId the group ID * @param sections the sections * @param main the main * @return the number of matching kb articles */ public int countByG_S_M(long groupId, java.lang.String sections, boolean main); /** * Returns the number of kb articles where groupId = ? and sections LIKE any ? and main = ?. * * @param groupId the group ID * @param sectionses the sectionses * @param main the main * @return the number of matching kb articles */ public int countByG_S_M(long groupId, java.lang.String[] sectionses, boolean main); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and sections LIKE ? and main = ?. * * @param groupId the group ID * @param sections the sections * @param main the main * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_S_M(long groupId, java.lang.String sections, boolean main); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and sections LIKE any ? and main = ?. * * @param groupId the group ID * @param sectionses the sectionses * @param main the main * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_S_M(long groupId, java.lang.String[] sectionses, boolean main); /** * Returns all the kb articles where groupId = ? and sections LIKE ? and status = ?. * * @param groupId the group ID * @param sections the sections * @param status the status * @return the matching kb articles */ public java.util.List<KBArticle> findByG_S_S(long groupId, java.lang.String sections, int status); /** * Returns a range of all the kb articles where groupId = ? and sections LIKE ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_S_S(long groupId, java.lang.String sections, int status, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and sections LIKE ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_S_S(long groupId, java.lang.String sections, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and sections LIKE ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_S_S(long groupId, java.lang.String sections, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where groupId = ? and sections LIKE ? and status = ?. * * @param groupId the group ID * @param sections the sections * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_S_S_First(long groupId, java.lang.String sections, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where groupId = ? and sections LIKE ? and status = ?. * * @param groupId the group ID * @param sections the sections * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_S_S_First(long groupId, java.lang.String sections, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where groupId = ? and sections LIKE ? and status = ?. * * @param groupId the group ID * @param sections the sections * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_S_S_Last(long groupId, java.lang.String sections, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where groupId = ? and sections LIKE ? and status = ?. * * @param groupId the group ID * @param sections the sections * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_S_S_Last(long groupId, java.lang.String sections, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where groupId = ? and sections LIKE ? and status = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param sections the sections * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByG_S_S_PrevAndNext(long kbArticleId, long groupId, java.lang.String sections, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and sections LIKE ? and status = ?. * * @param groupId the group ID * @param sections the sections * @param status the status * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_S(long groupId, java.lang.String sections, int status); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and sections LIKE ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_S(long groupId, java.lang.String sections, int status, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permissions to view where groupId = ? and sections LIKE ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_S(long groupId, java.lang.String sections, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set of kb articles that the user has permission to view where groupId = ? and sections LIKE ? and status = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param sections the sections * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] filterFindByG_S_S_PrevAndNext(long kbArticleId, long groupId, java.lang.String sections, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and sections LIKE any ? and status = ?. * * @param groupId the group ID * @param sectionses the sectionses * @param status the status * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_S(long groupId, java.lang.String[] sectionses, int status); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and sections LIKE any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sectionses the sectionses * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_S(long groupId, java.lang.String[] sectionses, int status, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permission to view where groupId = ? and sections LIKE any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sectionses the sectionses * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_S_S(long groupId, java.lang.String[] sectionses, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns all the kb articles where groupId = ? and sections LIKE any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sectionses the sectionses * @param status the status * @return the matching kb articles */ public java.util.List<KBArticle> findByG_S_S(long groupId, java.lang.String[] sectionses, int status); /** * Returns a range of all the kb articles where groupId = ? and sections LIKE any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sectionses the sectionses * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_S_S(long groupId, java.lang.String[] sectionses, int status, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and sections LIKE any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sectionses the sectionses * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_S_S(long groupId, java.lang.String[] sectionses, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and sections LIKE ? and status = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param sections the sections * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_S_S(long groupId, java.lang.String[] sectionses, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Removes all the kb articles where groupId = ? and sections LIKE ? and status = ? from the database. * * @param groupId the group ID * @param sections the sections * @param status the status */ public void removeByG_S_S(long groupId, java.lang.String sections, int status); /** * Returns the number of kb articles where groupId = ? and sections LIKE ? and status = ?. * * @param groupId the group ID * @param sections the sections * @param status the status * @return the number of matching kb articles */ public int countByG_S_S(long groupId, java.lang.String sections, int status); /** * Returns the number of kb articles where groupId = ? and sections LIKE any ? and status = ?. * * @param groupId the group ID * @param sectionses the sectionses * @param status the status * @return the number of matching kb articles */ public int countByG_S_S(long groupId, java.lang.String[] sectionses, int status); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and sections LIKE ? and status = ?. * * @param groupId the group ID * @param sections the sections * @param status the status * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_S_S(long groupId, java.lang.String sections, int status); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and sections LIKE any ? and status = ?. * * @param groupId the group ID * @param sectionses the sectionses * @param status the status * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_S_S(long groupId, java.lang.String[] sectionses, int status); /** * Returns all the kb articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @return the matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int status); /** * Returns a range of all the kb articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int status, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Returns the first kb article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_KBFI_UT_ST_First(long groupId, long kbFolderId, java.lang.String urlTitle, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the first kb article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_KBFI_UT_ST_First(long groupId, long kbFolderId, java.lang.String urlTitle, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the last kb article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article * @throws NoSuchArticleException if a matching kb article could not be found */ public KBArticle findByG_KBFI_UT_ST_Last(long groupId, long kbFolderId, java.lang.String urlTitle, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns the last kb article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kb article, or <code>null</code> if a matching kb article could not be found */ public KBArticle fetchByG_KBFI_UT_ST_Last(long groupId, long kbFolderId, java.lang.String urlTitle, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] findByG_KBFI_UT_ST_PrevAndNext(long kbArticleId, long groupId, long kbFolderId, java.lang.String urlTitle, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int status); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int status, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permissions to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns the kb articles before and after the current kb article in the ordered set of kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param kbArticleId the primary key of the current kb article * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle[] filterFindByG_KBFI_UT_ST_PrevAndNext(long kbArticleId, long groupId, long kbFolderId, java.lang.String urlTitle, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws NoSuchArticleException; /** * Returns all the kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = any ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param statuses the statuses * @return the matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int[] statuses); /** * Returns a range of all the kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = any ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param statuses the statuses * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int[] statuses, int start, int end); /** * Returns an ordered range of all the kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = any ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param statuses the statuses * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles that the user has permission to view */ public java.util.List<KBArticle> filterFindByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns all the kb articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = any ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param statuses the statuses * @return the matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int[] statuses); /** * Returns a range of all the kb articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = any ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param statuses the statuses * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int[] statuses, int start, int end); /** * Returns an ordered range of all the kb articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = any ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param statuses the statuses * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kb articles */ public java.util.List<KBArticle> findByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Removes all the kb articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ? from the database. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status */ public void removeByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int status); /** * Returns the number of kb articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @return the number of matching kb articles */ public int countByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int status); /** * Returns the number of kb articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = any ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param statuses the statuses * @return the number of matching kb articles */ public int countByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int[] statuses); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int status); /** * Returns the number of kb articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = any ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param statuses the statuses * @return the number of matching kb articles that the user has permission to view */ public int filterCountByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int[] statuses); /** * Caches the kb article in the entity cache if it is enabled. * * @param kbArticle the kb article */ public void cacheResult(KBArticle kbArticle); /** * Caches the kb articles in the entity cache if it is enabled. * * @param kbArticles the kb articles */ public void cacheResult(java.util.List<KBArticle> kbArticles); /** * Creates a new kb article with the primary key. Does not add the kb article to the database. * * @param kbArticleId the primary key for the new kb article * @return the new kb article */ public KBArticle create(long kbArticleId); /** * Removes the kb article with the primary key from the database. Also notifies the appropriate model listeners. * * @param kbArticleId the primary key of the kb article * @return the kb article that was removed * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle remove(long kbArticleId) throws NoSuchArticleException; public KBArticle updateImpl(KBArticle kbArticle); /** * Returns the kb article with the primary key or throws a {@link NoSuchArticleException} if it could not be found. * * @param kbArticleId the primary key of the kb article * @return the kb article * @throws NoSuchArticleException if a kb article with the primary key could not be found */ public KBArticle findByPrimaryKey(long kbArticleId) throws NoSuchArticleException; /** * Returns the kb article with the primary key or returns <code>null</code> if it could not be found. * * @param kbArticleId the primary key of the kb article * @return the kb article, or <code>null</code> if a kb article with the primary key could not be found */ public KBArticle fetchByPrimaryKey(long kbArticleId); @Override public java.util.Map<java.io.Serializable, KBArticle> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys); /** * Returns all the kb articles. * * @return the kb articles */ public java.util.List<KBArticle> findAll(); /** * Returns a range of all the kb articles. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @return the range of kb articles */ public java.util.List<KBArticle> findAll(int start, int end); /** * Returns an ordered range of all the kb articles. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of kb articles */ public java.util.List<KBArticle> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator); /** * Returns an ordered range of all the kb articles. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KBArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of kb articles * @param end the upper bound of the range of kb articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of kb articles */ public java.util.List<KBArticle> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator, boolean retrieveFromCache); /** * Removes all the kb articles from the database. */ public void removeAll(); /** * Returns the number of kb articles. * * @return the number of kb articles */ public int countAll(); @Override public java.util.Set<java.lang.String> getBadColumnNames(); }