001    /**
002     * Copyright (c) 2000-2011 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 AssetTagFinder {
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[] tagProperties)
027                    throws com.liferay.portal.kernel.exception.SystemException;
028    
029            public int filterCountByG_N_P(long groupId, java.lang.String name,
030                    java.lang.String[] tagProperties)
031                    throws com.liferay.portal.kernel.exception.SystemException;
032    
033            public com.liferay.portlet.asset.model.AssetTag filterFindByG_N(
034                    long groupId, java.lang.String name)
035                    throws com.liferay.portal.kernel.exception.SystemException,
036                            com.liferay.portlet.asset.NoSuchTagException;
037    
038            public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByG_C_N(
039                    long groupId, long classNameId, java.lang.String name, int start,
040                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
041                    throws com.liferay.portal.kernel.exception.SystemException;
042    
043            public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByG_N_P(
044                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
045                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByEntryId(
049                    long entryId)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            public com.liferay.portlet.asset.model.AssetTag findByG_N(long groupId,
053                    java.lang.String name)
054                    throws com.liferay.portal.kernel.exception.SystemException,
055                            com.liferay.portlet.asset.NoSuchTagException;
056    
057            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByC_C(
058                    long classNameId, long classPK)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_C_N(
062                    long groupId, long classNameId, java.lang.String name, int start,
063                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    
066            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_N_P(
067                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
068                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    }