1
22
23 package com.liferay.portlet.social.service;
24
25
26
47 public class SocialActivityLocalServiceUtil {
48 public static com.liferay.portlet.social.model.SocialActivity addSocialActivity(
49 com.liferay.portlet.social.model.SocialActivity socialActivity)
50 throws com.liferay.portal.SystemException {
51 return getService().addSocialActivity(socialActivity);
52 }
53
54 public static com.liferay.portlet.social.model.SocialActivity createSocialActivity(
55 long activityId) {
56 return getService().createSocialActivity(activityId);
57 }
58
59 public static void deleteSocialActivity(long activityId)
60 throws com.liferay.portal.PortalException,
61 com.liferay.portal.SystemException {
62 getService().deleteSocialActivity(activityId);
63 }
64
65 public static void deleteSocialActivity(
66 com.liferay.portlet.social.model.SocialActivity socialActivity)
67 throws com.liferay.portal.SystemException {
68 getService().deleteSocialActivity(socialActivity);
69 }
70
71 public static java.util.List<Object> dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73 throws com.liferay.portal.SystemException {
74 return getService().dynamicQuery(dynamicQuery);
75 }
76
77 public static java.util.List<Object> dynamicQuery(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79 int end) throws com.liferay.portal.SystemException {
80 return getService().dynamicQuery(dynamicQuery, start, end);
81 }
82
83 public static com.liferay.portlet.social.model.SocialActivity getSocialActivity(
84 long activityId)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException {
87 return getService().getSocialActivity(activityId);
88 }
89
90 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getSocialActivities(
91 int start, int end) throws com.liferay.portal.SystemException {
92 return getService().getSocialActivities(start, end);
93 }
94
95 public static int getSocialActivitiesCount()
96 throws com.liferay.portal.SystemException {
97 return getService().getSocialActivitiesCount();
98 }
99
100 public static com.liferay.portlet.social.model.SocialActivity updateSocialActivity(
101 com.liferay.portlet.social.model.SocialActivity socialActivity)
102 throws com.liferay.portal.SystemException {
103 return getService().updateSocialActivity(socialActivity);
104 }
105
106 public static com.liferay.portlet.social.model.SocialActivity addActivity(
107 long userId, long groupId, java.lang.String className, long classPK,
108 int type, java.lang.String extraData, long receiverUserId)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException {
111 return getService()
112 .addActivity(userId, groupId, className, classPK, type,
113 extraData, receiverUserId);
114 }
115
116 public static com.liferay.portlet.social.model.SocialActivity addActivity(
117 long userId, long groupId, java.util.Date createDate,
118 java.lang.String className, long classPK, int type,
119 java.lang.String extraData, long receiverUserId)
120 throws com.liferay.portal.PortalException,
121 com.liferay.portal.SystemException {
122 return getService()
123 .addActivity(userId, groupId, createDate, className,
124 classPK, type, extraData, receiverUserId);
125 }
126
127 public static com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
128 long userId, long groupId, java.lang.String className, long classPK,
129 int type, java.lang.String extraData, long receiverUserId)
130 throws com.liferay.portal.PortalException,
131 com.liferay.portal.SystemException {
132 return getService()
133 .addUniqueActivity(userId, groupId, className, classPK,
134 type, extraData, receiverUserId);
135 }
136
137 public static com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
138 long userId, long groupId, java.util.Date createDate,
139 java.lang.String className, long classPK, int type,
140 java.lang.String extraData, long receiverUserId)
141 throws com.liferay.portal.PortalException,
142 com.liferay.portal.SystemException {
143 return getService()
144 .addUniqueActivity(userId, groupId, createDate, className,
145 classPK, type, extraData, receiverUserId);
146 }
147
148 public static void deleteActivities(java.lang.String className, long classPK)
149 throws com.liferay.portal.SystemException {
150 getService().deleteActivities(className, classPK);
151 }
152
153 public static void deleteActivities(long classNameId, long classPK)
154 throws com.liferay.portal.SystemException {
155 getService().deleteActivities(classNameId, classPK);
156 }
157
158 public static void deleteActivity(long activityId)
159 throws com.liferay.portal.PortalException,
160 com.liferay.portal.SystemException {
161 getService().deleteActivity(activityId);
162 }
163
164 public static void deleteUserActivities(long userId)
165 throws com.liferay.portal.SystemException {
166 getService().deleteUserActivities(userId);
167 }
168
169 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
170 java.lang.String className, int start, int end)
171 throws com.liferay.portal.SystemException {
172 return getService().getActivities(className, start, end);
173 }
174
175 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
176 long classNameId, int start, int end)
177 throws com.liferay.portal.SystemException {
178 return getService().getActivities(classNameId, start, end);
179 }
180
181 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
182 long mirrorActivityId, java.lang.String className, long classPK,
183 int start, int end) throws com.liferay.portal.SystemException {
184 return getService()
185 .getActivities(mirrorActivityId, className, classPK, start,
186 end);
187 }
188
189 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
190 long mirrorActivityId, long classNameId, long classPK, int start,
191 int end) throws com.liferay.portal.SystemException {
192 return getService()
193 .getActivities(mirrorActivityId, classNameId, classPK,
194 start, end);
195 }
196
197 public static int getActivitiesCount(java.lang.String className)
198 throws com.liferay.portal.SystemException {
199 return getService().getActivitiesCount(className);
200 }
201
202 public static int getActivitiesCount(long classNameId)
203 throws com.liferay.portal.SystemException {
204 return getService().getActivitiesCount(classNameId);
205 }
206
207 public static int getActivitiesCount(long mirrorActivityId,
208 java.lang.String className, long classPK)
209 throws com.liferay.portal.SystemException {
210 return getService()
211 .getActivitiesCount(mirrorActivityId, className, classPK);
212 }
213
214 public static int getActivitiesCount(long mirrorActivityId,
215 long classNameId, long classPK)
216 throws com.liferay.portal.SystemException {
217 return getService()
218 .getActivitiesCount(mirrorActivityId, classNameId, classPK);
219 }
220
221 public static com.liferay.portlet.social.model.SocialActivity getActivity(
222 long activityId)
223 throws com.liferay.portal.PortalException,
224 com.liferay.portal.SystemException {
225 return getService().getActivity(activityId);
226 }
227
228 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities(
229 long groupId, int start, int end)
230 throws com.liferay.portal.SystemException {
231 return getService().getGroupActivities(groupId, start, end);
232 }
233
234 public static int getGroupActivitiesCount(long groupId)
235 throws com.liferay.portal.SystemException {
236 return getService().getGroupActivitiesCount(groupId);
237 }
238
239 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupUsersActivities(
240 long groupId, int start, int end)
241 throws com.liferay.portal.SystemException {
242 return getService().getGroupUsersActivities(groupId, start, end);
243 }
244
245 public static int getGroupUsersActivitiesCount(long groupId)
246 throws com.liferay.portal.SystemException {
247 return getService().getGroupUsersActivitiesCount(groupId);
248 }
249
250 public static com.liferay.portlet.social.model.SocialActivity getMirrorActivity(
251 long mirrorActivityId)
252 throws com.liferay.portal.PortalException,
253 com.liferay.portal.SystemException {
254 return getService().getMirrorActivity(mirrorActivityId);
255 }
256
257 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities(
258 long organizationId, int start, int end)
259 throws com.liferay.portal.SystemException {
260 return getService().getOrganizationActivities(organizationId, start, end);
261 }
262
263 public static int getOrganizationActivitiesCount(long organizationId)
264 throws com.liferay.portal.SystemException {
265 return getService().getOrganizationActivitiesCount(organizationId);
266 }
267
268 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationUsersActivities(
269 long organizationId, int start, int end)
270 throws com.liferay.portal.SystemException {
271 return getService()
272 .getOrganizationUsersActivities(organizationId, start, end);
273 }
274
275 public static int getOrganizationUsersActivitiesCount(long organizationId)
276 throws com.liferay.portal.SystemException {
277 return getService().getOrganizationUsersActivitiesCount(organizationId);
278 }
279
280 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
281 long userId, int start, int end)
282 throws com.liferay.portal.SystemException {
283 return getService().getRelationActivities(userId, start, end);
284 }
285
286 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
287 long userId, int type, int start, int end)
288 throws com.liferay.portal.SystemException {
289 return getService().getRelationActivities(userId, type, start, end);
290 }
291
292 public static int getRelationActivitiesCount(long userId)
293 throws com.liferay.portal.SystemException {
294 return getService().getRelationActivitiesCount(userId);
295 }
296
297 public static int getRelationActivitiesCount(long userId, int type)
298 throws com.liferay.portal.SystemException {
299 return getService().getRelationActivitiesCount(userId, type);
300 }
301
302 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserActivities(
303 long userId, int start, int end)
304 throws com.liferay.portal.SystemException {
305 return getService().getUserActivities(userId, start, end);
306 }
307
308 public static int getUserActivitiesCount(long userId)
309 throws com.liferay.portal.SystemException {
310 return getService().getUserActivitiesCount(userId);
311 }
312
313 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsActivities(
314 long userId, int start, int end)
315 throws com.liferay.portal.SystemException {
316 return getService().getUserGroupsActivities(userId, start, end);
317 }
318
319 public static int getUserGroupsActivitiesCount(long userId)
320 throws com.liferay.portal.SystemException {
321 return getService().getUserGroupsActivitiesCount(userId);
322 }
323
324 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsAndOrganizationsActivities(
325 long userId, int start, int end)
326 throws com.liferay.portal.SystemException {
327 return getService()
328 .getUserGroupsAndOrganizationsActivities(userId, start, end);
329 }
330
331 public static int getUserGroupsAndOrganizationsActivitiesCount(long userId)
332 throws com.liferay.portal.SystemException {
333 return getService().getUserGroupsAndOrganizationsActivitiesCount(userId);
334 }
335
336 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserOrganizationsActivities(
337 long userId, int start, int end)
338 throws com.liferay.portal.SystemException {
339 return getService().getUserOrganizationsActivities(userId, start, end);
340 }
341
342 public static int getUserOrganizationsActivitiesCount(long userId)
343 throws com.liferay.portal.SystemException {
344 return getService().getUserOrganizationsActivitiesCount(userId);
345 }
346
347 public static SocialActivityLocalService getService() {
348 if (_service == null) {
349 throw new RuntimeException("SocialActivityLocalService is not set");
350 }
351
352 return _service;
353 }
354
355 public void setService(SocialActivityLocalService service) {
356 _service = service;
357 }
358
359 private static SocialActivityLocalService _service;
360 }