001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.journal.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 JournalFeedFinderUtil {
027            public static int countByKeywords(long companyId, long groupId,
028                    java.lang.String keywords)
029                    throws com.liferay.portal.kernel.exception.SystemException {
030                    return getFinder().countByKeywords(companyId, groupId, keywords);
031            }
032    
033            public static int countByC_G_F_N_D(long companyId, long groupId,
034                    java.lang.String feedId, java.lang.String name,
035                    java.lang.String description, boolean andOperator)
036                    throws com.liferay.portal.kernel.exception.SystemException {
037                    return getFinder()
038                                       .countByC_G_F_N_D(companyId, groupId, feedId, name,
039                            description, andOperator);
040            }
041    
042            public static int countByC_G_F_N_D(long companyId, long groupId,
043                    java.lang.String[] feedIds, java.lang.String[] names,
044                    java.lang.String[] descriptions, boolean andOperator)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return getFinder()
047                                       .countByC_G_F_N_D(companyId, groupId, feedIds, names,
048                            descriptions, andOperator);
049            }
050    
051            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByKeywords(
052                    long companyId, long groupId, java.lang.String keywords, int start,
053                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
054                    throws com.liferay.portal.kernel.exception.SystemException {
055                    return getFinder()
056                                       .findByKeywords(companyId, groupId, keywords, start, end, obc);
057            }
058    
059            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByC_G_F_N_D(
060                    long companyId, long groupId, java.lang.String feedId,
061                    java.lang.String name, java.lang.String description,
062                    boolean andOperator, int start, int end,
063                    com.liferay.portal.kernel.util.OrderByComparator obc)
064                    throws com.liferay.portal.kernel.exception.SystemException {
065                    return getFinder()
066                                       .findByC_G_F_N_D(companyId, groupId, feedId, name,
067                            description, andOperator, start, end, obc);
068            }
069    
070            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByC_G_F_N_D(
071                    long companyId, long groupId, java.lang.String[] feedIds,
072                    java.lang.String[] names, java.lang.String[] descriptions,
073                    boolean andOperator, int start, int end,
074                    com.liferay.portal.kernel.util.OrderByComparator obc)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return getFinder()
077                                       .findByC_G_F_N_D(companyId, groupId, feedIds, names,
078                            descriptions, andOperator, start, end, obc);
079            }
080    
081            public static JournalFeedFinder getFinder() {
082                    if (_finder == null) {
083                            _finder = (JournalFeedFinder)PortalBeanLocatorUtil.locate(JournalFeedFinder.class.getName());
084    
085                            ReferenceRegistry.registerReference(JournalFeedFinderUtil.class,
086                                    "_finder");
087                    }
088    
089                    return _finder;
090            }
091    
092            public void setFinder(JournalFeedFinder finder) {
093                    _finder = finder;
094    
095                    ReferenceRegistry.registerReference(JournalFeedFinderUtil.class,
096                            "_finder");
097            }
098    
099            private static JournalFeedFinder _finder;
100    }