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