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(long groupId, java.lang.String name)
030                    throws com.liferay.portal.kernel.exception.SystemException;
031    
032            public int filterCountByG_C_N(long groupId, long classNameId,
033                    java.lang.String name)
034                    throws com.liferay.portal.kernel.exception.SystemException;
035    
036            public int filterCountByG_N_P(long groupId, java.lang.String name,
037                    java.lang.String[] tagProperties)
038                    throws com.liferay.portal.kernel.exception.SystemException;
039    
040            public com.liferay.portlet.asset.model.AssetTag filterFindByG_N(
041                    long groupId, java.lang.String name)
042                    throws com.liferay.portal.kernel.exception.SystemException,
043                            com.liferay.portlet.asset.NoSuchTagException;
044    
045            public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByG_C_N(
046                    long groupId, long classNameId, java.lang.String name, int start,
047                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
048                    throws com.liferay.portal.kernel.exception.SystemException;
049    
050            public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByG_N_P(
051                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
052                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByEntryId(
056                    long entryId)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            public com.liferay.portlet.asset.model.AssetTag findByG_N(long groupId,
060                    java.lang.String name)
061                    throws com.liferay.portal.kernel.exception.SystemException,
062                            com.liferay.portlet.asset.NoSuchTagException;
063    
064            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByC_C(
065                    long classNameId, long classPK)
066                    throws com.liferay.portal.kernel.exception.SystemException;
067    
068            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_C_N(
069                    long groupId, long classNameId, java.lang.String name, int start,
070                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
071                    throws com.liferay.portal.kernel.exception.SystemException;
072    
073            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_N_P(
074                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
075                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
076                    throws com.liferay.portal.kernel.exception.SystemException;
077    
078            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_N_S_E(
079                    long groupId, java.lang.String name, int startPeriod, int endPeriod)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    }