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