001    /**
002     * Copyright (c) 2000-2011 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.social.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * @author Brian Wing Shun Chan
022     */
023    public class SocialActivityCounterFinderUtil {
024            public static int countU_ByG_N(long groupId, java.lang.String[] names)
025                    throws com.liferay.portal.kernel.exception.SystemException {
026                    return getFinder().countU_ByG_N(groupId, names);
027            }
028    
029            public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAC_ByG_N_S_E_1(
030                    long groupId, java.lang.String name, int startPeriod, int endPeriod)
031                    throws com.liferay.portal.kernel.exception.SystemException {
032                    return getFinder()
033                                       .findAC_ByG_N_S_E_1(groupId, name, startPeriod, endPeriod);
034            }
035    
036            public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAC_ByG_N_S_E_2(
037                    long groupId, java.lang.String counterName, int startPeriod,
038                    int endPeriod)
039                    throws com.liferay.portal.kernel.exception.SystemException {
040                    return getFinder()
041                                       .findAC_ByG_N_S_E_2(groupId, counterName, startPeriod,
042                            endPeriod);
043            }
044    
045            public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAC_By_G_C_C_N_S_E(
046                    long groupId, java.util.List<java.lang.Long> userIds,
047                    java.lang.String[] names, int start, int end)
048                    throws com.liferay.portal.kernel.exception.SystemException {
049                    return getFinder()
050                                       .findAC_By_G_C_C_N_S_E(groupId, userIds, names, start, end);
051            }
052    
053            public static java.util.List<java.lang.Long> findU_ByG_N(long groupId,
054                    java.lang.String[] names, int start, int end)
055                    throws com.liferay.portal.kernel.exception.SystemException {
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    }