1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.social.service;
24  
25  
26  /**
27   * <a href="SocialActivityLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.social.service.SocialActivityLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.social.service.SocialActivityLocalService
45   *
46   */
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 updateSocialActivity(
107         com.liferay.portlet.social.model.SocialActivity socialActivity,
108         boolean merge) throws com.liferay.portal.SystemException {
109         return getService().updateSocialActivity(socialActivity, merge);
110     }
111 
112     public static com.liferay.portlet.social.model.SocialActivity addActivity(
113         long userId, long groupId, java.lang.String className, long classPK,
114         int type, java.lang.String extraData, long receiverUserId)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         return getService()
118                    .addActivity(userId, groupId, className, classPK, type,
119             extraData, receiverUserId);
120     }
121 
122     public static com.liferay.portlet.social.model.SocialActivity addActivity(
123         long userId, long groupId, java.util.Date createDate,
124         java.lang.String className, long classPK, int type,
125         java.lang.String extraData, long receiverUserId)
126         throws com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException {
128         return getService()
129                    .addActivity(userId, groupId, createDate, className,
130             classPK, type, extraData, receiverUserId);
131     }
132 
133     public static com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
134         long userId, long groupId, java.lang.String className, long classPK,
135         int type, java.lang.String extraData, long receiverUserId)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException {
138         return getService()
139                    .addUniqueActivity(userId, groupId, className, classPK,
140             type, extraData, receiverUserId);
141     }
142 
143     public static com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
144         long userId, long groupId, java.util.Date createDate,
145         java.lang.String className, long classPK, int type,
146         java.lang.String extraData, long receiverUserId)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException {
149         return getService()
150                    .addUniqueActivity(userId, groupId, createDate, className,
151             classPK, type, extraData, receiverUserId);
152     }
153 
154     public static void deleteActivities(java.lang.String className, long classPK)
155         throws com.liferay.portal.SystemException {
156         getService().deleteActivities(className, classPK);
157     }
158 
159     public static void deleteActivities(long classNameId, long classPK)
160         throws com.liferay.portal.SystemException {
161         getService().deleteActivities(classNameId, classPK);
162     }
163 
164     public static void deleteActivity(long activityId)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException {
167         getService().deleteActivity(activityId);
168     }
169 
170     public static void deleteUserActivities(long userId)
171         throws com.liferay.portal.SystemException {
172         getService().deleteUserActivities(userId);
173     }
174 
175     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
176         java.lang.String className, int start, int end)
177         throws com.liferay.portal.SystemException {
178         return getService().getActivities(className, start, end);
179     }
180 
181     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
182         long classNameId, int start, int end)
183         throws com.liferay.portal.SystemException {
184         return getService().getActivities(classNameId, 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         long mirrorActivityId, long classNameId, long classPK, int start,
197         int end) throws com.liferay.portal.SystemException {
198         return getService()
199                    .getActivities(mirrorActivityId, classNameId, classPK,
200             start, end);
201     }
202 
203     public static int getActivitiesCount(java.lang.String className)
204         throws com.liferay.portal.SystemException {
205         return getService().getActivitiesCount(className);
206     }
207 
208     public static int getActivitiesCount(long classNameId)
209         throws com.liferay.portal.SystemException {
210         return getService().getActivitiesCount(classNameId);
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(long mirrorActivityId,
221         long classNameId, long classPK)
222         throws com.liferay.portal.SystemException {
223         return getService()
224                    .getActivitiesCount(mirrorActivityId, classNameId, classPK);
225     }
226 
227     public static com.liferay.portlet.social.model.SocialActivity getActivity(
228         long activityId)
229         throws com.liferay.portal.PortalException,
230             com.liferay.portal.SystemException {
231         return getService().getActivity(activityId);
232     }
233 
234     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities(
235         long groupId, int start, int end)
236         throws com.liferay.portal.SystemException {
237         return getService().getGroupActivities(groupId, start, end);
238     }
239 
240     public static int getGroupActivitiesCount(long groupId)
241         throws com.liferay.portal.SystemException {
242         return getService().getGroupActivitiesCount(groupId);
243     }
244 
245     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupUsersActivities(
246         long groupId, int start, int end)
247         throws com.liferay.portal.SystemException {
248         return getService().getGroupUsersActivities(groupId, start, end);
249     }
250 
251     public static int getGroupUsersActivitiesCount(long groupId)
252         throws com.liferay.portal.SystemException {
253         return getService().getGroupUsersActivitiesCount(groupId);
254     }
255 
256     public static com.liferay.portlet.social.model.SocialActivity getMirrorActivity(
257         long mirrorActivityId)
258         throws com.liferay.portal.PortalException,
259             com.liferay.portal.SystemException {
260         return getService().getMirrorActivity(mirrorActivityId);
261     }
262 
263     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities(
264         long organizationId, int start, int end)
265         throws com.liferay.portal.SystemException {
266         return getService().getOrganizationActivities(organizationId, start, end);
267     }
268 
269     public static int getOrganizationActivitiesCount(long organizationId)
270         throws com.liferay.portal.SystemException {
271         return getService().getOrganizationActivitiesCount(organizationId);
272     }
273 
274     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationUsersActivities(
275         long organizationId, int start, int end)
276         throws com.liferay.portal.SystemException {
277         return getService()
278                    .getOrganizationUsersActivities(organizationId, start, end);
279     }
280 
281     public static int getOrganizationUsersActivitiesCount(long organizationId)
282         throws com.liferay.portal.SystemException {
283         return getService().getOrganizationUsersActivitiesCount(organizationId);
284     }
285 
286     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
287         long userId, int start, int end)
288         throws com.liferay.portal.SystemException {
289         return getService().getRelationActivities(userId, start, end);
290     }
291 
292     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
293         long userId, int type, int start, int end)
294         throws com.liferay.portal.SystemException {
295         return getService().getRelationActivities(userId, type, start, end);
296     }
297 
298     public static int getRelationActivitiesCount(long userId)
299         throws com.liferay.portal.SystemException {
300         return getService().getRelationActivitiesCount(userId);
301     }
302 
303     public static int getRelationActivitiesCount(long userId, int type)
304         throws com.liferay.portal.SystemException {
305         return getService().getRelationActivitiesCount(userId, type);
306     }
307 
308     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserActivities(
309         long userId, int start, int end)
310         throws com.liferay.portal.SystemException {
311         return getService().getUserActivities(userId, start, end);
312     }
313 
314     public static int getUserActivitiesCount(long userId)
315         throws com.liferay.portal.SystemException {
316         return getService().getUserActivitiesCount(userId);
317     }
318 
319     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsActivities(
320         long userId, int start, int end)
321         throws com.liferay.portal.SystemException {
322         return getService().getUserGroupsActivities(userId, start, end);
323     }
324 
325     public static int getUserGroupsActivitiesCount(long userId)
326         throws com.liferay.portal.SystemException {
327         return getService().getUserGroupsActivitiesCount(userId);
328     }
329 
330     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsAndOrganizationsActivities(
331         long userId, int start, int end)
332         throws com.liferay.portal.SystemException {
333         return getService()
334                    .getUserGroupsAndOrganizationsActivities(userId, start, end);
335     }
336 
337     public static int getUserGroupsAndOrganizationsActivitiesCount(long userId)
338         throws com.liferay.portal.SystemException {
339         return getService().getUserGroupsAndOrganizationsActivitiesCount(userId);
340     }
341 
342     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserOrganizationsActivities(
343         long userId, int start, int end)
344         throws com.liferay.portal.SystemException {
345         return getService().getUserOrganizationsActivities(userId, start, end);
346     }
347 
348     public static int getUserOrganizationsActivitiesCount(long userId)
349         throws com.liferay.portal.SystemException {
350         return getService().getUserOrganizationsActivitiesCount(userId);
351     }
352 
353     public static SocialActivityLocalService getService() {
354         if (_service == null) {
355             throw new RuntimeException("SocialActivityLocalService is not set");
356         }
357 
358         return _service;
359     }
360 
361     public void setService(SocialActivityLocalService service) {
362         _service = service;
363     }
364 
365     private static SocialActivityLocalService _service;
366 }