1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="AssetCategoryFinderUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public class AssetCategoryFinderUtil {
25      public static int countByG_C_N(long groupId, long classNameId,
26          java.lang.String name)
27          throws com.liferay.portal.kernel.exception.SystemException {
28          return getFinder().countByG_C_N(groupId, classNameId, name);
29      }
30  
31      public static int countByG_N_P(long groupId, java.lang.String name,
32          java.lang.String[] categoryProperties)
33          throws com.liferay.portal.kernel.exception.SystemException {
34          return getFinder().countByG_N_P(groupId, name, categoryProperties);
35      }
36  
37      public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByEntryId(
38          long entryId)
39          throws com.liferay.portal.kernel.exception.SystemException {
40          return getFinder().findByEntryId(entryId);
41      }
42  
43      public static com.liferay.portlet.asset.model.AssetCategory findByG_N(
44          long groupId, java.lang.String name)
45          throws com.liferay.portal.kernel.exception.SystemException,
46              com.liferay.portlet.asset.NoSuchCategoryException {
47          return getFinder().findByG_N(groupId, name);
48      }
49  
50      public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByC_C(
51          long classNameId, long classPK)
52          throws com.liferay.portal.kernel.exception.SystemException {
53          return getFinder().findByC_C(classNameId, classPK);
54      }
55  
56      public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_N_P(
57          long groupId, java.lang.String name,
58          java.lang.String[] categoryProperties)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          return getFinder().findByG_N_P(groupId, name, categoryProperties);
61      }
62  
63      public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_N_P(
64          long groupId, java.lang.String name,
65          java.lang.String[] categoryProperties, int start, int end)
66          throws com.liferay.portal.kernel.exception.SystemException {
67          return getFinder()
68                     .findByG_N_P(groupId, name, categoryProperties, start, end);
69      }
70  
71      public static AssetCategoryFinder getFinder() {
72          if (_finder == null) {
73              _finder = (AssetCategoryFinder)PortalBeanLocatorUtil.locate(AssetCategoryFinder.class.getName());
74          }
75  
76          return _finder;
77      }
78  
79      public void setFinder(AssetCategoryFinder finder) {
80          _finder = finder;
81      }
82  
83      private static AssetCategoryFinder _finder;
84  }