001    /**
002     * Copyright (c) 2000-2012 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 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                    int periodLength)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    }