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