Class KBFolderUtil
com.liferay.knowledge.base.service.persistence.impl.KBFolderPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(KBFolder kbFolder) Caches the kb folder in the entity cache if it is enabled.static voidcacheResult(List<KBFolder> kbFolders) Caches the kb folders in the entity cache if it is enabled.static voidstatic voidclearCache(KBFolder kbFolder) static intcountAll()Returns the number of kb folders.static intcountByCompanyId(long companyId) Returns the number of kb folders where companyId = ?.static intcountByERC_G(String externalReferenceCode, long groupId) Returns the number of kb folders where externalReferenceCode = ? and groupId = ?.static intcountByG_P(long groupId, long parentKBFolderId) Returns the number of kb folders where groupId = ? and parentKBFolderId = ?.static intcountByG_P_N(long groupId, long parentKBFolderId, String name) Returns the number of kb folders where groupId = ? and parentKBFolderId = ? and name = ?.static intcountByG_P_S(long groupId, long parentKBFolderId, int status) Returns the number of kb folders where groupId = ? and parentKBFolderId = ? and status = ?.static intcountByG_P_UT(long groupId, long parentKBFolderId, String urlTitle) Returns the number of kb folders where groupId = ? and parentKBFolderId = ? and urlTitle = ?.static intcountByUuid(String uuid) Returns the number of kb folders where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of kb folders where uuid = ? and companyId = ?.static intcountByUUID_G(String uuid, long groupId) Returns the number of kb folders where uuid = ? and groupId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static KBFoldercreate(long kbFolderId) Creates a new kb folder with the primary key.static KBFolderfetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the first kb folder in the ordered set where companyId = ?.static KBFolderfetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the last kb folder in the ordered set where companyId = ?.static KBFolderfetchByERC_G(String externalReferenceCode, long groupId) Returns the kb folder where externalReferenceCode = ? and groupId = ? or returnsnullif it could not be found.static KBFolderfetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache) Returns the kb folder where externalReferenceCode = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.static KBFolderfetchByG_P_First(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the first kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.static KBFolderfetchByG_P_Last(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the last kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.static KBFolderfetchByG_P_N(long groupId, long parentKBFolderId, String name) Returns the kb folder where groupId = ? and parentKBFolderId = ? and name = ? or returnsnullif it could not be found.static KBFolderfetchByG_P_N(long groupId, long parentKBFolderId, String name, boolean useFinderCache) Returns the kb folder where groupId = ? and parentKBFolderId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.static KBFolderfetchByG_P_S_First(long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the first kb folder in the ordered set where groupId = ? and parentKBFolderId = ? and status = ?.static KBFolderfetchByG_P_S_Last(long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the last kb folder in the ordered set where groupId = ? and parentKBFolderId = ? and status = ?.static KBFolderfetchByG_P_UT(long groupId, long parentKBFolderId, String urlTitle) Returns the kb folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? or returnsnullif it could not be found.static KBFolderfetchByG_P_UT(long groupId, long parentKBFolderId, String urlTitle, boolean useFinderCache) Returns the kb folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? or returnsnullif it could not be found, optionally using the finder cache.static KBFolderfetchByPrimaryKey(long kbFolderId) Returns the kb folder with the primary key or returnsnullif it could not be found.static Map<Serializable,KBFolder> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static KBFolderfetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the first kb folder in the ordered set where uuid = ? and companyId = ?.static KBFolderfetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the last kb folder in the ordered set where uuid = ? and companyId = ?.static KBFolderfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the first kb folder in the ordered set where uuid = ?.static KBFolderfetchByUUID_G(String uuid, long groupId) Returns the kb folder where uuid = ? and groupId = ? or returnsnullif it could not be found.static KBFolderfetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the kb folder where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.static KBFolderfetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the last kb folder in the ordered set where uuid = ?.static intfilterCountByG_P(long groupId, long parentKBFolderId) Returns the number of kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.static intfilterCountByG_P_S(long groupId, long parentKBFolderId, int status) Returns the number of kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ? and status = ?.filterFindByG_P(long groupId, long parentKBFolderId) Returns all the kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.filterFindByG_P(long groupId, long parentKBFolderId, int start, int end) Returns a range of all the kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.filterFindByG_P(long groupId, long parentKBFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns an ordered range of all the kb folders that the user has permissions to view where groupId = ? and parentKBFolderId = ?.static KBFolder[]filterFindByG_P_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the kb folders before and after the current kb folder in the ordered set of kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.filterFindByG_P_S(long groupId, long parentKBFolderId, int status) Returns all the kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ? and status = ?.filterFindByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end) Returns a range of all the kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ? and status = ?.filterFindByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns an ordered range of all the kb folders that the user has permissions to view where groupId = ? and parentKBFolderId = ? and status = ?.static KBFolder[]filterFindByG_P_S_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the kb folders before and after the current kb folder in the ordered set of kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ? and status = ?.findAll()Returns all the kb folders.findAll(int start, int end) Returns a range of all the kb folders.findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns an ordered range of all the kb folders.findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb folders.findByCompanyId(long companyId) Returns all the kb folders where companyId = ?.findByCompanyId(long companyId, int start, int end) Returns a range of all the kb folders where companyId = ?.findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns an ordered range of all the kb folders where companyId = ?.findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb folders where companyId = ?.static KBFolderfindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the first kb folder in the ordered set where companyId = ?.static KBFolderfindByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the last kb folder in the ordered set where companyId = ?.static KBFolder[]findByCompanyId_PrevAndNext(long kbFolderId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the kb folders before and after the current kb folder in the ordered set where companyId = ?.static KBFolderfindByERC_G(String externalReferenceCode, long groupId) Returns the kb folder where externalReferenceCode = ? and groupId = ? or throws aNoSuchFolderExceptionif it could not be found.findByG_P(long groupId, long parentKBFolderId) Returns all the kb folders where groupId = ? and parentKBFolderId = ?.findByG_P(long groupId, long parentKBFolderId, int start, int end) Returns a range of all the kb folders where groupId = ? and parentKBFolderId = ?.findByG_P(long groupId, long parentKBFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns an ordered range of all the kb folders where groupId = ? and parentKBFolderId = ?.findByG_P(long groupId, long parentKBFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb folders where groupId = ? and parentKBFolderId = ?.static KBFolderfindByG_P_First(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the first kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.static KBFolderfindByG_P_Last(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the last kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.static KBFolderfindByG_P_N(long groupId, long parentKBFolderId, String name) Returns the kb folder where groupId = ? and parentKBFolderId = ? and name = ? or throws aNoSuchFolderExceptionif it could not be found.static KBFolder[]findByG_P_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the kb folders before and after the current kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.findByG_P_S(long groupId, long parentKBFolderId, int status) Returns all the kb folders where groupId = ? and parentKBFolderId = ? and status = ?.findByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end) Returns a range of all the kb folders where groupId = ? and parentKBFolderId = ? and status = ?.findByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns an ordered range of all the kb folders where groupId = ? and parentKBFolderId = ? and status = ?.findByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb folders where groupId = ? and parentKBFolderId = ? and status = ?.static KBFolderfindByG_P_S_First(long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the first kb folder in the ordered set where groupId = ? and parentKBFolderId = ? and status = ?.static KBFolderfindByG_P_S_Last(long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the last kb folder in the ordered set where groupId = ? and parentKBFolderId = ? and status = ?.static KBFolder[]findByG_P_S_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the kb folders before and after the current kb folder in the ordered set where groupId = ? and parentKBFolderId = ? and status = ?.static KBFolderfindByG_P_UT(long groupId, long parentKBFolderId, String urlTitle) Returns the kb folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? or throws aNoSuchFolderExceptionif it could not be found.static KBFolderfindByPrimaryKey(long kbFolderId) Returns the kb folder with the primary key or throws aNoSuchFolderExceptionif it could not be found.findByUuid(String uuid) Returns all the kb folders where uuid = ?.findByUuid(String uuid, int start, int end) Returns a range of all the kb folders where uuid = ?.findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns an ordered range of all the kb folders where uuid = ?.findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb folders where uuid = ?.findByUuid_C(String uuid, long companyId) Returns all the kb folders where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the kb folders where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns an ordered range of all the kb folders where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb folders where uuid = ? and companyId = ?.static KBFolderfindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the first kb folder in the ordered set where uuid = ? and companyId = ?.static KBFolderfindByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the last kb folder in the ordered set where uuid = ? and companyId = ?.static KBFolder[]findByUuid_C_PrevAndNext(long kbFolderId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the kb folders before and after the current kb folder in the ordered set where uuid = ? and companyId = ?.static KBFolderfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the first kb folder in the ordered set where uuid = ?.static KBFolderfindByUUID_G(String uuid, long groupId) Returns the kb folder where uuid = ? and groupId = ? or throws aNoSuchFolderExceptionif it could not be found.static KBFolderfindByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the last kb folder in the ordered set where uuid = ?.static KBFolder[]findByUuid_PrevAndNext(long kbFolderId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the kb folders before and after the current kb folder in the ordered set where uuid = ?.findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) static KBFolderPersistencestatic KBFolderremove(long kbFolderId) Removes the kb folder with the primary key from the database.static voidRemoves all the kb folders from the database.static voidremoveByCompanyId(long companyId) Removes all the kb folders where companyId = ? from the database.static KBFolderremoveByERC_G(String externalReferenceCode, long groupId) Removes the kb folder where externalReferenceCode = ? and groupId = ? from the database.static voidremoveByG_P(long groupId, long parentKBFolderId) Removes all the kb folders where groupId = ? and parentKBFolderId = ? from the database.static KBFolderremoveByG_P_N(long groupId, long parentKBFolderId, String name) Removes the kb folder where groupId = ? and parentKBFolderId = ? and name = ? from the database.static voidremoveByG_P_S(long groupId, long parentKBFolderId, int status) Removes all the kb folders where groupId = ? and parentKBFolderId = ? and status = ? from the database.static KBFolderremoveByG_P_UT(long groupId, long parentKBFolderId, String urlTitle) Removes the kb folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? from the database.static voidremoveByUuid(String uuid) Removes all the kb folders where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the kb folders where uuid = ? and companyId = ? from the database.static KBFolderremoveByUUID_G(String uuid, long groupId) Removes the kb folder where uuid = ? and groupId = ? from the database.static voidsetPersistence(KBFolderPersistence persistence) static KBFolderstatic KBFolderstatic KBFolderupdateImpl(KBFolder kbFolder)
-
Constructor Details
-
KBFolderUtil
public KBFolderUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<KBFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<KBFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<KBFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static KBFolder update(KBFolder kbFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the kb folders where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching kb folders
-
findByUuid
Returns a range of all the kb folders where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)- Returns:
- the range of matching kb folders
-
findByUuid
public static List<KBFolder> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns an ordered range of all the kb folders where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching kb folders
-
findByUuid
public static List<KBFolder> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb folders where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching kb folders
-
findByUuid_First
public static KBFolder findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException Returns the first kb folder in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb folder
- Throws:
NoSuchFolderException- if a matching kb folder could not be foundNoSuchFolderException
-
fetchByUuid_First
public static KBFolder fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the first kb folder in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb folder, or
nullif a matching kb folder could not be found
-
findByUuid_Last
public static KBFolder findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException Returns the last kb folder in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching kb folder
- Throws:
NoSuchFolderException- if a matching kb folder could not be foundNoSuchFolderException
-
fetchByUuid_Last
public static KBFolder fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the last kb folder in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching kb folder, or
nullif a matching kb folder could not be found
-
findByUuid_PrevAndNext
public static KBFolder[] findByUuid_PrevAndNext(long kbFolderId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException Returns the kb folders before and after the current kb folder in the ordered set where uuid = ?.- Parameters:
kbFolderId- the primary key of the current kb folderuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next kb folder
- Throws:
NoSuchFolderException- if a kb folder with the primary key could not be foundNoSuchFolderException
-
removeByUuid
Removes all the kb folders where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of kb folders where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching kb folders
-
findByUUID_G
Returns the kb folder where uuid = ? and groupId = ? or throws aNoSuchFolderExceptionif it could not be found.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching kb folder
- Throws:
NoSuchFolderException- if a matching kb folder could not be foundNoSuchFolderException
-
fetchByUUID_G
Returns the kb folder where uuid = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching kb folder, or
nullif a matching kb folder could not be found
-
fetchByUUID_G
Returns the kb folder where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
uuid- the uuidgroupId- the group IDuseFinderCache- whether to use the finder cache- Returns:
- the matching kb folder, or
nullif a matching kb folder could not be found
-
removeByUUID_G
Removes the kb folder where uuid = ? and groupId = ? from the database.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the kb folder that was removed
- Throws:
NoSuchFolderException
-
countByUUID_G
Returns the number of kb folders where uuid = ? and groupId = ?.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the number of matching kb folders
-
findByUuid_C
Returns all the kb folders where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching kb folders
-
findByUuid_C
Returns a range of all the kb folders where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)- Returns:
- the range of matching kb folders
-
findByUuid_C
public static List<KBFolder> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns an ordered range of all the kb folders where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching kb folders
-
findByUuid_C
public static List<KBFolder> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb folders where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching kb folders
-
findByUuid_C_First
public static KBFolder findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException Returns the first kb folder in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb folder
- Throws:
NoSuchFolderException- if a matching kb folder could not be foundNoSuchFolderException
-
fetchByUuid_C_First
public static KBFolder fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the first kb folder in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb folder, or
nullif a matching kb folder could not be found
-
findByUuid_C_Last
public static KBFolder findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException Returns the last kb folder in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching kb folder
- Throws:
NoSuchFolderException- if a matching kb folder could not be foundNoSuchFolderException
-
fetchByUuid_C_Last
public static KBFolder fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the last kb folder in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching kb folder, or
nullif a matching kb folder could not be found
-
findByUuid_C_PrevAndNext
public static KBFolder[] findByUuid_C_PrevAndNext(long kbFolderId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException Returns the kb folders before and after the current kb folder in the ordered set where uuid = ? and companyId = ?.- Parameters:
kbFolderId- the primary key of the current kb folderuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next kb folder
- Throws:
NoSuchFolderException- if a kb folder with the primary key could not be foundNoSuchFolderException
-
removeByUuid_C
Removes all the kb folders where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of kb folders where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching kb folders
-
findByCompanyId
Returns all the kb folders where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching kb folders
-
findByCompanyId
Returns a range of all the kb folders where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)- Returns:
- the range of matching kb folders
-
findByCompanyId
public static List<KBFolder> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns an ordered range of all the kb folders where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching kb folders
-
findByCompanyId
public static List<KBFolder> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb folders where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching kb folders
-
findByCompanyId_First
public static KBFolder findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException Returns the first kb folder in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb folder
- Throws:
NoSuchFolderException- if a matching kb folder could not be foundNoSuchFolderException
-
fetchByCompanyId_First
public static KBFolder fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the first kb folder in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb folder, or
nullif a matching kb folder could not be found
-
findByCompanyId_Last
public static KBFolder findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException Returns the last kb folder in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching kb folder
- Throws:
NoSuchFolderException- if a matching kb folder could not be foundNoSuchFolderException
-
fetchByCompanyId_Last
public static KBFolder fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the last kb folder in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching kb folder, or
nullif a matching kb folder could not be found
-
findByCompanyId_PrevAndNext
public static KBFolder[] findByCompanyId_PrevAndNext(long kbFolderId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException Returns the kb folders before and after the current kb folder in the ordered set where companyId = ?.- Parameters:
kbFolderId- the primary key of the current kb foldercompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next kb folder
- Throws:
NoSuchFolderException- if a kb folder with the primary key could not be foundNoSuchFolderException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the kb folders where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of kb folders where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching kb folders
-
findByG_P
Returns all the kb folders where groupId = ? and parentKBFolderId = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder ID- Returns:
- the matching kb folders
-
findByG_P
Returns a range of all the kb folders where groupId = ? and parentKBFolderId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)- Returns:
- the range of matching kb folders
-
findByG_P
public static List<KBFolder> findByG_P(long groupId, long parentKBFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns an ordered range of all the kb folders where groupId = ? and parentKBFolderId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching kb folders
-
findByG_P
public static List<KBFolder> findByG_P(long groupId, long parentKBFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb folders where groupId = ? and parentKBFolderId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching kb folders
-
findByG_P_First
public static KBFolder findByG_P_First(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException Returns the first kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb folder
- Throws:
NoSuchFolderException- if a matching kb folder could not be foundNoSuchFolderException
-
fetchByG_P_First
public static KBFolder fetchByG_P_First(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the first kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb folder, or
nullif a matching kb folder could not be found
-
findByG_P_Last
public static KBFolder findByG_P_Last(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException Returns the last kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching kb folder
- Throws:
NoSuchFolderException- if a matching kb folder could not be foundNoSuchFolderException
-
fetchByG_P_Last
public static KBFolder fetchByG_P_Last(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the last kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching kb folder, or
nullif a matching kb folder could not be found
-
findByG_P_PrevAndNext
public static KBFolder[] findByG_P_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException Returns the kb folders before and after the current kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.- Parameters:
kbFolderId- the primary key of the current kb foldergroupId- the group IDparentKBFolderId- the parent kb folder IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next kb folder
- Throws:
NoSuchFolderException- if a kb folder with the primary key could not be foundNoSuchFolderException
-
filterFindByG_P
Returns all the kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder ID- Returns:
- the matching kb folders that the user has permission to view
-
filterFindByG_P
public static List<KBFolder> filterFindByG_P(long groupId, long parentKBFolderId, int start, int end) Returns a range of all the kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)- Returns:
- the range of matching kb folders that the user has permission to view
-
filterFindByG_P
public static List<KBFolder> filterFindByG_P(long groupId, long parentKBFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns an ordered range of all the kb folders that the user has permissions to view where groupId = ? and parentKBFolderId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching kb folders that the user has permission to view
-
filterFindByG_P_PrevAndNext
public static KBFolder[] filterFindByG_P_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException Returns the kb folders before and after the current kb folder in the ordered set of kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.- Parameters:
kbFolderId- the primary key of the current kb foldergroupId- the group IDparentKBFolderId- the parent kb folder IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next kb folder
- Throws:
NoSuchFolderException- if a kb folder with the primary key could not be foundNoSuchFolderException
-
removeByG_P
public static void removeByG_P(long groupId, long parentKBFolderId) Removes all the kb folders where groupId = ? and parentKBFolderId = ? from the database.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder ID
-
countByG_P
public static int countByG_P(long groupId, long parentKBFolderId) Returns the number of kb folders where groupId = ? and parentKBFolderId = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder ID- Returns:
- the number of matching kb folders
-
filterCountByG_P
public static int filterCountByG_P(long groupId, long parentKBFolderId) Returns the number of kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder ID- Returns:
- the number of matching kb folders that the user has permission to view
-
findByG_P_N
public static KBFolder findByG_P_N(long groupId, long parentKBFolderId, String name) throws NoSuchFolderException Returns the kb folder where groupId = ? and parentKBFolderId = ? and name = ? or throws aNoSuchFolderExceptionif it could not be found.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDname- the name- Returns:
- the matching kb folder
- Throws:
NoSuchFolderException- if a matching kb folder could not be foundNoSuchFolderException
-
fetchByG_P_N
Returns the kb folder where groupId = ? and parentKBFolderId = ? and name = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDname- the name- Returns:
- the matching kb folder, or
nullif a matching kb folder could not be found
-
fetchByG_P_N
public static KBFolder fetchByG_P_N(long groupId, long parentKBFolderId, String name, boolean useFinderCache) Returns the kb folder where groupId = ? and parentKBFolderId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDname- the nameuseFinderCache- whether to use the finder cache- Returns:
- the matching kb folder, or
nullif a matching kb folder could not be found
-
removeByG_P_N
public static KBFolder removeByG_P_N(long groupId, long parentKBFolderId, String name) throws NoSuchFolderException Removes the kb folder where groupId = ? and parentKBFolderId = ? and name = ? from the database.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDname- the name- Returns:
- the kb folder that was removed
- Throws:
NoSuchFolderException
-
countByG_P_N
Returns the number of kb folders where groupId = ? and parentKBFolderId = ? and name = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDname- the name- Returns:
- the number of matching kb folders
-
findByG_P_UT
public static KBFolder findByG_P_UT(long groupId, long parentKBFolderId, String urlTitle) throws NoSuchFolderException Returns the kb folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? or throws aNoSuchFolderExceptionif it could not be found.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDurlTitle- the url title- Returns:
- the matching kb folder
- Throws:
NoSuchFolderException- if a matching kb folder could not be foundNoSuchFolderException
-
fetchByG_P_UT
Returns the kb folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDurlTitle- the url title- Returns:
- the matching kb folder, or
nullif a matching kb folder could not be found
-
fetchByG_P_UT
public static KBFolder fetchByG_P_UT(long groupId, long parentKBFolderId, String urlTitle, boolean useFinderCache) Returns the kb folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDurlTitle- the url titleuseFinderCache- whether to use the finder cache- Returns:
- the matching kb folder, or
nullif a matching kb folder could not be found
-
removeByG_P_UT
public static KBFolder removeByG_P_UT(long groupId, long parentKBFolderId, String urlTitle) throws NoSuchFolderException Removes the kb folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? from the database.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDurlTitle- the url title- Returns:
- the kb folder that was removed
- Throws:
NoSuchFolderException
-
countByG_P_UT
Returns the number of kb folders where groupId = ? and parentKBFolderId = ? and urlTitle = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDurlTitle- the url title- Returns:
- the number of matching kb folders
-
findByG_P_S
Returns all the kb folders where groupId = ? and parentKBFolderId = ? and status = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstatus- the status- Returns:
- the matching kb folders
-
findByG_P_S
public static List<KBFolder> findByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end) Returns a range of all the kb folders where groupId = ? and parentKBFolderId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstatus- the statusstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)- Returns:
- the range of matching kb folders
-
findByG_P_S
public static List<KBFolder> findByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns an ordered range of all the kb folders where groupId = ? and parentKBFolderId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstatus- the statusstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching kb folders
-
findByG_P_S
public static List<KBFolder> findByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb folders where groupId = ? and parentKBFolderId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstatus- the statusstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching kb folders
-
findByG_P_S_First
public static KBFolder findByG_P_S_First(long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException Returns the first kb folder in the ordered set where groupId = ? and parentKBFolderId = ? and status = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb folder
- Throws:
NoSuchFolderException- if a matching kb folder could not be foundNoSuchFolderException
-
fetchByG_P_S_First
public static KBFolder fetchByG_P_S_First(long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the first kb folder in the ordered set where groupId = ? and parentKBFolderId = ? and status = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb folder, or
nullif a matching kb folder could not be found
-
findByG_P_S_Last
public static KBFolder findByG_P_S_Last(long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException Returns the last kb folder in the ordered set where groupId = ? and parentKBFolderId = ? and status = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching kb folder
- Throws:
NoSuchFolderException- if a matching kb folder could not be foundNoSuchFolderException
-
fetchByG_P_S_Last
public static KBFolder fetchByG_P_S_Last(long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns the last kb folder in the ordered set where groupId = ? and parentKBFolderId = ? and status = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching kb folder, or
nullif a matching kb folder could not be found
-
findByG_P_S_PrevAndNext
public static KBFolder[] findByG_P_S_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException Returns the kb folders before and after the current kb folder in the ordered set where groupId = ? and parentKBFolderId = ? and status = ?.- Parameters:
kbFolderId- the primary key of the current kb foldergroupId- the group IDparentKBFolderId- the parent kb folder IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next kb folder
- Throws:
NoSuchFolderException- if a kb folder with the primary key could not be foundNoSuchFolderException
-
filterFindByG_P_S
Returns all the kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ? and status = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstatus- the status- Returns:
- the matching kb folders that the user has permission to view
-
filterFindByG_P_S
public static List<KBFolder> filterFindByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end) Returns a range of all the kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstatus- the statusstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)- Returns:
- the range of matching kb folders that the user has permission to view
-
filterFindByG_P_S
public static List<KBFolder> filterFindByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns an ordered range of all the kb folders that the user has permissions to view where groupId = ? and parentKBFolderId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstatus- the statusstart- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching kb folders that the user has permission to view
-
filterFindByG_P_S_PrevAndNext
public static KBFolder[] filterFindByG_P_S_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException Returns the kb folders before and after the current kb folder in the ordered set of kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ? and status = ?.- Parameters:
kbFolderId- the primary key of the current kb foldergroupId- the group IDparentKBFolderId- the parent kb folder IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next kb folder
- Throws:
NoSuchFolderException- if a kb folder with the primary key could not be foundNoSuchFolderException
-
removeByG_P_S
public static void removeByG_P_S(long groupId, long parentKBFolderId, int status) Removes all the kb folders where groupId = ? and parentKBFolderId = ? and status = ? from the database.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstatus- the status
-
countByG_P_S
public static int countByG_P_S(long groupId, long parentKBFolderId, int status) Returns the number of kb folders where groupId = ? and parentKBFolderId = ? and status = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstatus- the status- Returns:
- the number of matching kb folders
-
filterCountByG_P_S
public static int filterCountByG_P_S(long groupId, long parentKBFolderId, int status) Returns the number of kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ? and status = ?.- Parameters:
groupId- the group IDparentKBFolderId- the parent kb folder IDstatus- the status- Returns:
- the number of matching kb folders that the user has permission to view
-
findByERC_G
public static KBFolder findByERC_G(String externalReferenceCode, long groupId) throws NoSuchFolderException Returns the kb folder where externalReferenceCode = ? and groupId = ? or throws aNoSuchFolderExceptionif it could not be found.- Parameters:
externalReferenceCode- the external reference codegroupId- the group ID- Returns:
- the matching kb folder
- Throws:
NoSuchFolderException- if a matching kb folder could not be foundNoSuchFolderException
-
fetchByERC_G
Returns the kb folder where externalReferenceCode = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode- the external reference codegroupId- the group ID- Returns:
- the matching kb folder, or
nullif a matching kb folder could not be found
-
fetchByERC_G
public static KBFolder fetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache) Returns the kb folder where externalReferenceCode = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode- the external reference codegroupId- the group IDuseFinderCache- whether to use the finder cache- Returns:
- the matching kb folder, or
nullif a matching kb folder could not be found
-
removeByERC_G
public static KBFolder removeByERC_G(String externalReferenceCode, long groupId) throws NoSuchFolderException Removes the kb folder where externalReferenceCode = ? and groupId = ? from the database.- Parameters:
externalReferenceCode- the external reference codegroupId- the group ID- Returns:
- the kb folder that was removed
- Throws:
NoSuchFolderException
-
countByERC_G
Returns the number of kb folders where externalReferenceCode = ? and groupId = ?.- Parameters:
externalReferenceCode- the external reference codegroupId- the group ID- Returns:
- the number of matching kb folders
-
cacheResult
Caches the kb folder in the entity cache if it is enabled.- Parameters:
kbFolder- the kb folder
-
cacheResult
Caches the kb folders in the entity cache if it is enabled.- Parameters:
kbFolders- the kb folders
-
create
Creates a new kb folder with the primary key. Does not add the kb folder to the database.- Parameters:
kbFolderId- the primary key for the new kb folder- Returns:
- the new kb folder
-
remove
Removes the kb folder with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
kbFolderId- the primary key of the kb folder- Returns:
- the kb folder that was removed
- Throws:
NoSuchFolderException- if a kb folder with the primary key could not be foundNoSuchFolderException
-
updateImpl
-
findByPrimaryKey
Returns the kb folder with the primary key or throws aNoSuchFolderExceptionif it could not be found.- Parameters:
kbFolderId- the primary key of the kb folder- Returns:
- the kb folder
- Throws:
NoSuchFolderException- if a kb folder with the primary key could not be foundNoSuchFolderException
-
fetchByPrimaryKey
Returns the kb folder with the primary key or returnsnullif it could not be found.- Parameters:
kbFolderId- the primary key of the kb folder- Returns:
- the kb folder, or
nullif a kb folder with the primary key could not be found
-
findAll
Returns all the kb folders.- Returns:
- the kb folders
-
findAll
Returns a range of all the kb folders.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
start- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)- Returns:
- the range of kb folders
-
findAll
public static List<KBFolder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) Returns an ordered range of all the kb folders.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
start- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of kb folders
-
findAll
public static List<KBFolder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb folders.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromKBFolderModelImpl.- Parameters:
start- the lower bound of the range of kb foldersend- the upper bound of the range of kb folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of kb folders
-
removeAll
public static void removeAll()Removes all the kb folders from the database. -
countAll
public static int countAll()Returns the number of kb folders.- Returns:
- the number of kb folders
-
getPersistence
-
setPersistence
-