1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.social.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="SocialActivityLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link SocialActivityLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       SocialActivityLocalService
37   * @generated
38   */
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 com.liferay.portlet.social.model.SocialActivity getSocialActivity(
76          long activityId)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException {
79          return getService().getSocialActivity(activityId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getSocialActivities(
83          int start, int end) throws com.liferay.portal.SystemException {
84          return getService().getSocialActivities(start, end);
85      }
86  
87      public static int getSocialActivitiesCount()
88          throws com.liferay.portal.SystemException {
89          return getService().getSocialActivitiesCount();
90      }
91  
92      public static com.liferay.portlet.social.model.SocialActivity updateSocialActivity(
93          com.liferay.portlet.social.model.SocialActivity socialActivity)
94          throws com.liferay.portal.SystemException {
95          return getService().updateSocialActivity(socialActivity);
96      }
97  
98      public static com.liferay.portlet.social.model.SocialActivity updateSocialActivity(
99          com.liferay.portlet.social.model.SocialActivity socialActivity,
100         boolean merge) throws com.liferay.portal.SystemException {
101         return getService().updateSocialActivity(socialActivity, merge);
102     }
103 
104     public static com.liferay.portlet.social.model.SocialActivity addActivity(
105         long userId, long groupId, java.util.Date createDate,
106         java.lang.String className, long classPK, int type,
107         java.lang.String extraData, long receiverUserId)
108         throws com.liferay.portal.PortalException,
109             com.liferay.portal.SystemException {
110         return getService()
111                    .addActivity(userId, groupId, createDate, className,
112             classPK, type, extraData, receiverUserId);
113     }
114 
115     public static com.liferay.portlet.social.model.SocialActivity addActivity(
116         long userId, long groupId, java.lang.String className, long classPK,
117         int type, java.lang.String extraData, long receiverUserId)
118         throws com.liferay.portal.PortalException,
119             com.liferay.portal.SystemException {
120         return getService()
121                    .addActivity(userId, groupId, className, classPK, type,
122             extraData, receiverUserId);
123     }
124 
125     public static com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
126         long userId, long groupId, java.util.Date createDate,
127         java.lang.String className, long classPK, int type,
128         java.lang.String extraData, long receiverUserId)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException {
131         return getService()
132                    .addUniqueActivity(userId, groupId, createDate, className,
133             classPK, type, extraData, receiverUserId);
134     }
135 
136     public static com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
137         long userId, long groupId, java.lang.String className, long classPK,
138         int type, java.lang.String extraData, long receiverUserId)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException {
141         return getService()
142                    .addUniqueActivity(userId, groupId, className, classPK,
143             type, extraData, receiverUserId);
144     }
145 
146     public static void deleteActivities(long classNameId, long classPK)
147         throws com.liferay.portal.SystemException {
148         getService().deleteActivities(classNameId, classPK);
149     }
150 
151     public static void deleteActivities(java.lang.String className, long classPK)
152         throws com.liferay.portal.SystemException {
153         getService().deleteActivities(className, classPK);
154     }
155 
156     public static void deleteActivity(long activityId)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException {
159         getService().deleteActivity(activityId);
160     }
161 
162     public static void deleteActivity(
163         com.liferay.portlet.social.model.SocialActivity activity)
164         throws com.liferay.portal.SystemException {
165         getService().deleteActivity(activity);
166     }
167 
168     public static void deleteUserActivities(long userId)
169         throws com.liferay.portal.SystemException {
170         getService().deleteUserActivities(userId);
171     }
172 
173     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
174         long classNameId, int start, int end)
175         throws com.liferay.portal.SystemException {
176         return getService().getActivities(classNameId, start, end);
177     }
178 
179     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
180         long mirrorActivityId, long classNameId, long classPK, int start,
181         int end) throws com.liferay.portal.SystemException {
182         return getService()
183                    .getActivities(mirrorActivityId, classNameId, classPK,
184             start, end);
185     }
186 
187     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
188         long mirrorActivityId, java.lang.String className, long classPK,
189         int start, int end) throws com.liferay.portal.SystemException {
190         return getService()
191                    .getActivities(mirrorActivityId, className, classPK, start,
192             end);
193     }
194 
195     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
196         java.lang.String className, int start, int end)
197         throws com.liferay.portal.SystemException {
198         return getService().getActivities(className, start, end);
199     }
200 
201     public static int getActivitiesCount(long classNameId)
202         throws com.liferay.portal.SystemException {
203         return getService().getActivitiesCount(classNameId);
204     }
205 
206     public static int getActivitiesCount(long mirrorActivityId,
207         long classNameId, long classPK)
208         throws com.liferay.portal.SystemException {
209         return getService()
210                    .getActivitiesCount(mirrorActivityId, classNameId, classPK);
211     }
212 
213     public static int getActivitiesCount(long mirrorActivityId,
214         java.lang.String className, long classPK)
215         throws com.liferay.portal.SystemException {
216         return getService()
217                    .getActivitiesCount(mirrorActivityId, className, classPK);
218     }
219 
220     public static int getActivitiesCount(java.lang.String className)
221         throws com.liferay.portal.SystemException {
222         return getService().getActivitiesCount(className);
223     }
224 
225     public static com.liferay.portlet.social.model.SocialActivity getActivity(
226         long activityId)
227         throws com.liferay.portal.PortalException,
228             com.liferay.portal.SystemException {
229         return getService().getActivity(activityId);
230     }
231 
232     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities(
233         long groupId, int start, int end)
234         throws com.liferay.portal.SystemException {
235         return getService().getGroupActivities(groupId, start, end);
236     }
237 
238     public static int getGroupActivitiesCount(long groupId)
239         throws com.liferay.portal.SystemException {
240         return getService().getGroupActivitiesCount(groupId);
241     }
242 
243     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupUsersActivities(
244         long groupId, int start, int end)
245         throws com.liferay.portal.SystemException {
246         return getService().getGroupUsersActivities(groupId, start, end);
247     }
248 
249     public static int getGroupUsersActivitiesCount(long groupId)
250         throws com.liferay.portal.SystemException {
251         return getService().getGroupUsersActivitiesCount(groupId);
252     }
253 
254     public static com.liferay.portlet.social.model.SocialActivity getMirrorActivity(
255         long mirrorActivityId)
256         throws com.liferay.portal.PortalException,
257             com.liferay.portal.SystemException {
258         return getService().getMirrorActivity(mirrorActivityId);
259     }
260 
261     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities(
262         long organizationId, int start, int end)
263         throws com.liferay.portal.SystemException {
264         return getService().getOrganizationActivities(organizationId, start, end);
265     }
266 
267     public static int getOrganizationActivitiesCount(long organizationId)
268         throws com.liferay.portal.SystemException {
269         return getService().getOrganizationActivitiesCount(organizationId);
270     }
271 
272     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationUsersActivities(
273         long organizationId, int start, int end)
274         throws com.liferay.portal.SystemException {
275         return getService()
276                    .getOrganizationUsersActivities(organizationId, start, end);
277     }
278 
279     public static int getOrganizationUsersActivitiesCount(long organizationId)
280         throws com.liferay.portal.SystemException {
281         return getService().getOrganizationUsersActivitiesCount(organizationId);
282     }
283 
284     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
285         long userId, int start, int end)
286         throws com.liferay.portal.SystemException {
287         return getService().getRelationActivities(userId, start, end);
288     }
289 
290     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
291         long userId, int type, int start, int end)
292         throws com.liferay.portal.SystemException {
293         return getService().getRelationActivities(userId, type, start, end);
294     }
295 
296     public static int getRelationActivitiesCount(long userId)
297         throws com.liferay.portal.SystemException {
298         return getService().getRelationActivitiesCount(userId);
299     }
300 
301     public static int getRelationActivitiesCount(long userId, int type)
302         throws com.liferay.portal.SystemException {
303         return getService().getRelationActivitiesCount(userId, type);
304     }
305 
306     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserActivities(
307         long userId, int start, int end)
308         throws com.liferay.portal.SystemException {
309         return getService().getUserActivities(userId, start, end);
310     }
311 
312     public static int getUserActivitiesCount(long userId)
313         throws com.liferay.portal.SystemException {
314         return getService().getUserActivitiesCount(userId);
315     }
316 
317     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsActivities(
318         long userId, int start, int end)
319         throws com.liferay.portal.SystemException {
320         return getService().getUserGroupsActivities(userId, start, end);
321     }
322 
323     public static int getUserGroupsActivitiesCount(long userId)
324         throws com.liferay.portal.SystemException {
325         return getService().getUserGroupsActivitiesCount(userId);
326     }
327 
328     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsAndOrganizationsActivities(
329         long userId, int start, int end)
330         throws com.liferay.portal.SystemException {
331         return getService()
332                    .getUserGroupsAndOrganizationsActivities(userId, start, end);
333     }
334 
335     public static int getUserGroupsAndOrganizationsActivitiesCount(long userId)
336         throws com.liferay.portal.SystemException {
337         return getService().getUserGroupsAndOrganizationsActivitiesCount(userId);
338     }
339 
340     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserOrganizationsActivities(
341         long userId, int start, int end)
342         throws com.liferay.portal.SystemException {
343         return getService().getUserOrganizationsActivities(userId, start, end);
344     }
345 
346     public static int getUserOrganizationsActivitiesCount(long userId)
347         throws com.liferay.portal.SystemException {
348         return getService().getUserOrganizationsActivitiesCount(userId);
349     }
350 
351     public static SocialActivityLocalService getService() {
352         if (_service == null) {
353             _service = (SocialActivityLocalService)PortalBeanLocatorUtil.locate(SocialActivityLocalService.class.getName());
354         }
355 
356         return _service;
357     }
358 
359     public void setService(SocialActivityLocalService service) {
360         _service = service;
361     }
362 
363     private static SocialActivityLocalService _service;
364 }