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.social.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 SocialActivityCounterFinderUtil {
027            public static int countU_ByG_N(long groupId, java.lang.String[] names) {
028                    return getFinder().countU_ByG_N(groupId, names);
029            }
030    
031            public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAC_ByG_N_S_E_1(
032                    long groupId, java.lang.String name, int startPeriod, int endPeriod,
033                    int periodLength) {
034                    return getFinder()
035                                       .findAC_ByG_N_S_E_1(groupId, name, startPeriod, endPeriod,
036                            periodLength);
037            }
038    
039            public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAC_ByG_N_S_E_2(
040                    long groupId, java.lang.String counterName, int startPeriod,
041                    int endPeriod, int periodLength) {
042                    return getFinder()
043                                       .findAC_ByG_N_S_E_2(groupId, counterName, startPeriod,
044                            endPeriod, periodLength);
045            }
046    
047            public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAC_By_G_C_C_N_S_E(
048                    long groupId, java.util.List<java.lang.Long> userIds,
049                    java.lang.String[] names, int start, int end) {
050                    return getFinder()
051                                       .findAC_By_G_C_C_N_S_E(groupId, userIds, names, start, end);
052            }
053    
054            public static java.util.List<java.lang.Long> findU_ByG_N(long groupId,
055                    java.lang.String[] names, int start, int end) {
056                    return getFinder().findU_ByG_N(groupId, names, start, end);
057            }
058    
059            public static SocialActivityCounterFinder getFinder() {
060                    if (_finder == null) {
061                            _finder = (SocialActivityCounterFinder)PortalBeanLocatorUtil.locate(SocialActivityCounterFinder.class.getName());
062    
063                            ReferenceRegistry.registerReference(SocialActivityCounterFinderUtil.class,
064                                    "_finder");
065                    }
066    
067                    return _finder;
068            }
069    
070            public void setFinder(SocialActivityCounterFinder finder) {
071                    _finder = finder;
072    
073                    ReferenceRegistry.registerReference(SocialActivityCounterFinderUtil.class,
074                            "_finder");
075            }
076    
077            private static SocialActivityCounterFinder _finder;
078    }