001
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
025 @ProviderType
026 public class SocialActivitySetFinderUtil {
027 public static int countByRelation(long userId)
028 throws com.liferay.portal.kernel.exception.SystemException {
029 return getFinder().countByRelation(userId);
030 }
031
032 public static int countByRelationType(long userId, int type)
033 throws com.liferay.portal.kernel.exception.SystemException {
034 return getFinder().countByRelationType(userId, type);
035 }
036
037 public static int countByUser(long userId)
038 throws com.liferay.portal.kernel.exception.SystemException {
039 return getFinder().countByUser(userId);
040 }
041
042 public static int countByUserGroups(long userId)
043 throws com.liferay.portal.kernel.exception.SystemException {
044 return getFinder().countByUserGroups(userId);
045 }
046
047 public static java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByRelation(
048 long userId, int start, int end)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getFinder().findByRelation(userId, start, end);
051 }
052
053 public static java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByRelationType(
054 long userId, int type, int start, int end)
055 throws com.liferay.portal.kernel.exception.SystemException {
056 return getFinder().findByRelationType(userId, type, start, end);
057 }
058
059 public static java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByUser(
060 long userId, int start, int end)
061 throws com.liferay.portal.kernel.exception.SystemException {
062 return getFinder().findByUser(userId, start, end);
063 }
064
065 public static java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByUserGroups(
066 long userId, int start, int end)
067 throws com.liferay.portal.kernel.exception.SystemException {
068 return getFinder().findByUserGroups(userId, start, end);
069 }
070
071 public static SocialActivitySetFinder getFinder() {
072 if (_finder == null) {
073 _finder = (SocialActivitySetFinder)PortalBeanLocatorUtil.locate(SocialActivitySetFinder.class.getName());
074
075 ReferenceRegistry.registerReference(SocialActivitySetFinderUtil.class,
076 "_finder");
077 }
078
079 return _finder;
080 }
081
082 public void setFinder(SocialActivitySetFinder finder) {
083 _finder = finder;
084
085 ReferenceRegistry.registerReference(SocialActivitySetFinderUtil.class,
086 "_finder");
087 }
088
089 private static SocialActivitySetFinder _finder;
090 }