001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    @ProviderType
023    public interface AssetTagFinder {
024            public int countByG_C_N(long groupId, long classNameId,
025                    java.lang.String name)
026                    throws com.liferay.portal.kernel.exception.SystemException;
027    
028            public int countByG_N_P(long groupId, java.lang.String name,
029                    java.lang.String[] tagProperties)
030                    throws com.liferay.portal.kernel.exception.SystemException;
031    
032            public int filterCountByG_N(long groupId, java.lang.String name)
033                    throws com.liferay.portal.kernel.exception.SystemException;
034    
035            public int filterCountByG_C_N(long groupId, long classNameId,
036                    java.lang.String name)
037                    throws com.liferay.portal.kernel.exception.SystemException;
038    
039            public int filterCountByG_N_P(long groupId, java.lang.String name,
040                    java.lang.String[] tagProperties)
041                    throws com.liferay.portal.kernel.exception.SystemException;
042    
043            public com.liferay.portlet.asset.model.AssetTag filterFindByG_N(
044                    long groupId, java.lang.String name)
045                    throws com.liferay.portal.kernel.exception.SystemException,
046                            com.liferay.portlet.asset.NoSuchTagException;
047    
048            public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByG_C_N(
049                    long groupId, long classNameId, java.lang.String name, int start,
050                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
051                    throws com.liferay.portal.kernel.exception.SystemException;
052    
053            public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByG_N_P(
054                    long[] groupIds, java.lang.String name,
055                    java.lang.String[] tagProperties, int start, int end,
056                    com.liferay.portal.kernel.util.OrderByComparator obc)
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> findByG_C_N(
065                    long groupId, long classNameId, java.lang.String name, int start,
066                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_N_P(
070                    long[] groupIds, java.lang.String name,
071                    java.lang.String[] tagProperties, int start, int end,
072                    com.liferay.portal.kernel.util.OrderByComparator obc)
073                    throws com.liferay.portal.kernel.exception.SystemException;
074    
075            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_N_S_E(
076                    long groupId, java.lang.String name, int startPeriod, int endPeriod,
077                    int periodLength)
078                    throws com.liferay.portal.kernel.exception.SystemException;
079    }