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    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * @author Brian Wing Shun Chan
024     */
025    @ProviderType
026    public class AssetTagFinderUtil {
027            public static int countByG_C_N(long groupId, long classNameId,
028                    java.lang.String name) {
029                    return getFinder().countByG_C_N(groupId, classNameId, name);
030            }
031    
032            public static int countByG_N_P(long groupId, java.lang.String name,
033                    java.lang.String[] tagProperties) {
034                    return getFinder().countByG_N_P(groupId, name, tagProperties);
035            }
036    
037            public static int filterCountByG_N(long groupId, java.lang.String name) {
038                    return getFinder().filterCountByG_N(groupId, name);
039            }
040    
041            public static int filterCountByG_C_N(long groupId, long classNameId,
042                    java.lang.String name) {
043                    return getFinder().filterCountByG_C_N(groupId, classNameId, name);
044            }
045    
046            public static int filterCountByG_N_P(long groupId, java.lang.String name,
047                    java.lang.String[] tagProperties) {
048                    return getFinder().filterCountByG_N_P(groupId, name, tagProperties);
049            }
050    
051            public static com.liferay.portlet.asset.model.AssetTag filterFindByG_N(
052                    long groupId, java.lang.String name)
053                    throws com.liferay.portlet.asset.NoSuchTagException {
054                    return getFinder().filterFindByG_N(groupId, name);
055            }
056    
057            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByG_C_N(
058                    long groupId, long classNameId, java.lang.String name, int start,
059                    int end,
060                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
061                    return getFinder()
062                                       .filterFindByG_C_N(groupId, classNameId, name, start, end,
063                            obc);
064            }
065    
066            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByG_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<com.liferay.portlet.asset.model.AssetTag> obc) {
070                    return getFinder()
071                                       .filterFindByG_N_P(groupIds, name, tagProperties, start,
072                            end, obc);
073            }
074    
075            public static com.liferay.portlet.asset.model.AssetTag findByG_N(
076                    long groupId, java.lang.String name)
077                    throws com.liferay.portlet.asset.NoSuchTagException {
078                    return getFinder().findByG_N(groupId, name);
079            }
080    
081            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_C_N(
082                    long groupId, long classNameId, java.lang.String name, int start,
083                    int end,
084                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
085                    return getFinder()
086                                       .findByG_C_N(groupId, classNameId, name, start, end, obc);
087            }
088    
089            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_N_P(
090                    long[] groupIds, java.lang.String name,
091                    java.lang.String[] tagProperties, int start, int end,
092                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
093                    return getFinder()
094                                       .findByG_N_P(groupIds, name, tagProperties, start, end, obc);
095            }
096    
097            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_N_S_E(
098                    long groupId, java.lang.String name, int startPeriod, int endPeriod,
099                    int periodLength) {
100                    return getFinder()
101                                       .findByG_N_S_E(groupId, name, startPeriod, endPeriod,
102                            periodLength);
103            }
104    
105            public static AssetTagFinder getFinder() {
106                    if (_finder == null) {
107                            _finder = (AssetTagFinder)PortalBeanLocatorUtil.locate(AssetTagFinder.class.getName());
108    
109                            ReferenceRegistry.registerReference(AssetTagFinderUtil.class,
110                                    "_finder");
111                    }
112    
113                    return _finder;
114            }
115    
116            public void setFinder(AssetTagFinder finder) {
117                    _finder = finder;
118    
119                    ReferenceRegistry.registerReference(AssetTagFinderUtil.class, "_finder");
120            }
121    
122            private static AssetTagFinder _finder;
123    }