001    /**
002     * Copyright (c) 2000-2013 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[] groupIds, java.lang.String name,
052                    java.lang.String[] tagProperties, int start, int end,
053                    com.liferay.portal.kernel.util.OrderByComparator obc)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public com.liferay.portlet.asset.model.AssetTag findByG_N(long groupId,
057                    java.lang.String name)
058                    throws com.liferay.portal.kernel.exception.SystemException,
059                            com.liferay.portlet.asset.NoSuchTagException;
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[] groupIds, java.lang.String name,
068                    java.lang.String[] tagProperties, int start, int end,
069                    com.liferay.portal.kernel.util.OrderByComparator obc)
070                    throws com.liferay.portal.kernel.exception.SystemException;
071    
072            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_N_S_E(
073                    long groupId, java.lang.String name, int startPeriod, int endPeriod,
074                    int periodLength)
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    }