1
14
15 package com.liferay.portlet.social.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.ReferenceRegistry;
19
20
25 public class SocialActivityFinderUtil {
26 public static int countByGroupId(long groupId)
27 throws com.liferay.portal.SystemException {
28 return getFinder().countByGroupId(groupId);
29 }
30
31 public static int countByGroupUsers(long groupId)
32 throws com.liferay.portal.SystemException {
33 return getFinder().countByGroupUsers(groupId);
34 }
35
36 public static int countByOrganizationId(long organizationId)
37 throws com.liferay.portal.SystemException {
38 return getFinder().countByOrganizationId(organizationId);
39 }
40
41 public static int countByOrganizationUsers(long organizationId)
42 throws com.liferay.portal.SystemException {
43 return getFinder().countByOrganizationUsers(organizationId);
44 }
45
46 public static int countByRelation(long userId)
47 throws com.liferay.portal.SystemException {
48 return getFinder().countByRelation(userId);
49 }
50
51 public static int countByRelationType(long userId, int type)
52 throws com.liferay.portal.SystemException {
53 return getFinder().countByRelationType(userId, type);
54 }
55
56 public static int countByUserGroups(long userId)
57 throws com.liferay.portal.SystemException {
58 return getFinder().countByUserGroups(userId);
59 }
60
61 public static int countByUserGroupsAndOrganizations(long userId)
62 throws com.liferay.portal.SystemException {
63 return getFinder().countByUserGroupsAndOrganizations(userId);
64 }
65
66 public static int countByUserOrganizations(long userId)
67 throws com.liferay.portal.SystemException {
68 return getFinder().countByUserOrganizations(userId);
69 }
70
71 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
72 long groupId, int start, int end)
73 throws com.liferay.portal.SystemException {
74 return getFinder().findByGroupId(groupId, start, end);
75 }
76
77 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupUsers(
78 long groupId, int start, int end)
79 throws com.liferay.portal.SystemException {
80 return getFinder().findByGroupUsers(groupId, start, end);
81 }
82
83 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByOrganizationId(
84 long organizationId, int start, int end)
85 throws com.liferay.portal.SystemException {
86 return getFinder().findByOrganizationId(organizationId, start, end);
87 }
88
89 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByOrganizationUsers(
90 long organizationId, int start, int end)
91 throws com.liferay.portal.SystemException {
92 return getFinder().findByOrganizationUsers(organizationId, start, end);
93 }
94
95 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByRelation(
96 long userId, int start, int end)
97 throws com.liferay.portal.SystemException {
98 return getFinder().findByRelation(userId, start, end);
99 }
100
101 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByRelationType(
102 long userId, int type, int start, int end)
103 throws com.liferay.portal.SystemException {
104 return getFinder().findByRelationType(userId, type, start, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserGroups(
108 long userId, int start, int end)
109 throws com.liferay.portal.SystemException {
110 return getFinder().findByUserGroups(userId, start, end);
111 }
112
113 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserGroupsAndOrganizations(
114 long userId, int start, int end)
115 throws com.liferay.portal.SystemException {
116 return getFinder().findByUserGroupsAndOrganizations(userId, start, end);
117 }
118
119 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserOrganizations(
120 long userId, int start, int end)
121 throws com.liferay.portal.SystemException {
122 return getFinder().findByUserOrganizations(userId, start, end);
123 }
124
125 public static SocialActivityFinder getFinder() {
126 if (_finder == null) {
127 _finder = (SocialActivityFinder)PortalBeanLocatorUtil.locate(SocialActivityFinder.class.getName());
128
129 ReferenceRegistry.registerReference(SocialActivityFinderUtil.class,
130 "_finder");
131 }
132
133 return _finder;
134 }
135
136 public void setFinder(SocialActivityFinder finder) {
137 _finder = finder;
138
139 ReferenceRegistry.registerReference(SocialActivityFinderUtil.class,
140 "_finder");
141 }
142
143 private static SocialActivityFinder _finder;
144 }