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  /**
18   * <a href="AssetCategoryFinder.java.html"><b><i>View Source</i></b></a>
19   *
20   * @author Brian Wing Shun Chan
21   */
22  public interface AssetCategoryFinder {
23      public int countByG_C_N(long groupId, long classNameId,
24          java.lang.String name)
25          throws com.liferay.portal.kernel.exception.SystemException;
26  
27      public int countByG_N_P(long groupId, java.lang.String name,
28          java.lang.String[] categoryProperties)
29          throws com.liferay.portal.kernel.exception.SystemException;
30  
31      public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByEntryId(
32          long entryId)
33          throws com.liferay.portal.kernel.exception.SystemException;
34  
35      public com.liferay.portlet.asset.model.AssetCategory findByG_N(
36          long groupId, java.lang.String name)
37          throws com.liferay.portal.kernel.exception.SystemException,
38              com.liferay.portlet.asset.NoSuchCategoryException;
39  
40      public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByC_C(
41          long classNameId, long classPK)
42          throws com.liferay.portal.kernel.exception.SystemException;
43  
44      public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_N_P(
45          long groupId, java.lang.String name,
46          java.lang.String[] categoryProperties)
47          throws com.liferay.portal.kernel.exception.SystemException;
48  
49      public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_N_P(
50          long groupId, java.lang.String name,
51          java.lang.String[] categoryProperties, int start, int end)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  }