001
014
015 package com.liferay.portlet.asset.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
023 public class AssetCategoryFinderUtil {
024 public static int countByG_C_N(long groupId, long classNameId,
025 java.lang.String name)
026 throws com.liferay.portal.kernel.exception.SystemException {
027 return getFinder().countByG_C_N(groupId, classNameId, name);
028 }
029
030 public static int countByG_N_P(long groupId, java.lang.String name,
031 java.lang.String[] categoryProperties)
032 throws com.liferay.portal.kernel.exception.SystemException {
033 return getFinder().countByG_N_P(groupId, name, categoryProperties);
034 }
035
036 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByEntryId(
037 long entryId)
038 throws com.liferay.portal.kernel.exception.SystemException {
039 return getFinder().findByEntryId(entryId);
040 }
041
042 public static java.util.List<java.lang.Long> findByG_L(
043 java.lang.Long parentCategoryId)
044 throws com.liferay.portal.kernel.exception.SystemException {
045 return getFinder().findByG_L(parentCategoryId);
046 }
047
048 public static com.liferay.portlet.asset.model.AssetCategory findByG_N(
049 long groupId, java.lang.String name)
050 throws com.liferay.portal.kernel.exception.SystemException,
051 com.liferay.portlet.asset.NoSuchCategoryException {
052 return getFinder().findByG_N(groupId, name);
053 }
054
055 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByC_C(
056 long classNameId, long classPK)
057 throws com.liferay.portal.kernel.exception.SystemException {
058 return getFinder().findByC_C(classNameId, classPK);
059 }
060
061 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_N_P(
062 long groupId, java.lang.String name,
063 java.lang.String[] categoryProperties)
064 throws com.liferay.portal.kernel.exception.SystemException {
065 return getFinder().findByG_N_P(groupId, name, categoryProperties);
066 }
067
068 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_N_P(
069 long groupId, java.lang.String name,
070 java.lang.String[] categoryProperties, int start, int end)
071 throws com.liferay.portal.kernel.exception.SystemException {
072 return getFinder()
073 .findByG_N_P(groupId, name, categoryProperties, start, end);
074 }
075
076 public static AssetCategoryFinder getFinder() {
077 if (_finder == null) {
078 _finder = (AssetCategoryFinder)PortalBeanLocatorUtil.locate(AssetCategoryFinder.class.getName());
079
080 ReferenceRegistry.registerReference(AssetCategoryFinderUtil.class,
081 "_finder");
082 }
083
084 return _finder;
085 }
086
087 public void setFinder(AssetCategoryFinder finder) {
088 _finder = finder;
089
090 ReferenceRegistry.registerReference(AssetCategoryFinderUtil.class,
091 "_finder");
092 }
093
094 private static AssetCategoryFinder _finder;
095 }