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    /**
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    }