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