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