001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.asset.service.persistence;
016    
017    /**
018     * @author Brian Wing Shun Chan
019     */
020    public interface AssetCategoryFinder {
021            public int countByG_C_N(long groupId, long classNameId,
022                    java.lang.String name)
023                    throws com.liferay.portal.kernel.exception.SystemException;
024    
025            public int countByG_N_P(long groupId, java.lang.String name,
026                    java.lang.String[] categoryProperties)
027                    throws com.liferay.portal.kernel.exception.SystemException;
028    
029            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByEntryId(
030                    long entryId)
031                    throws com.liferay.portal.kernel.exception.SystemException;
032    
033            public com.liferay.portlet.asset.model.AssetCategory findByG_N(
034                    long groupId, java.lang.String name)
035                    throws com.liferay.portal.kernel.exception.SystemException,
036                            com.liferay.portlet.asset.NoSuchCategoryException;
037    
038            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByC_C(
039                    long classNameId, long classPK)
040                    throws com.liferay.portal.kernel.exception.SystemException;
041    
042            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_N_P(
043                    long groupId, java.lang.String name,
044                    java.lang.String[] categoryProperties)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_N_P(
048                    long groupId, java.lang.String name,
049                    java.lang.String[] categoryProperties, int start, int end)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    }