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