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