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 addActivity(
107         long userId, long groupId, java.lang.String className, long classPK,
108         int type, java.lang.String extraData, long receiverUserId)
109         throws com.liferay.portal.PortalException,
110             com.liferay.portal.SystemException {
111         return getService()
112                    .addActivity(userId, groupId, className, classPK, type,
113             extraData, receiverUserId);
114     }
115 
116     public static com.liferay.portlet.social.model.SocialActivity addActivity(
117         long userId, long groupId, java.util.Date createDate,
118         java.lang.String className, long classPK, int type,
119         java.lang.String extraData, long receiverUserId)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException {
122         return getService()
123                    .addActivity(userId, groupId, createDate, className,
124             classPK, type, extraData, receiverUserId);
125     }
126 
127     public static com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
128         long userId, long groupId, java.lang.String className, long classPK,
129         int type, java.lang.String extraData, long receiverUserId)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException {
132         return getService()
133                    .addUniqueActivity(userId, groupId, className, classPK,
134             type, extraData, receiverUserId);
135     }
136 
137     public static com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
138         long userId, long groupId, java.util.Date createDate,
139         java.lang.String className, long classPK, int type,
140         java.lang.String extraData, long receiverUserId)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException {
143         return getService()
144                    .addUniqueActivity(userId, groupId, createDate, className,
145             classPK, type, extraData, receiverUserId);
146     }
147 
148     public static void deleteActivities(java.lang.String className, long classPK)
149         throws com.liferay.portal.SystemException {
150         getService().deleteActivities(className, classPK);
151     }
152 
153     public static void deleteActivities(long classNameId, long classPK)
154         throws com.liferay.portal.SystemException {
155         getService().deleteActivities(classNameId, classPK);
156     }
157 
158     public static void deleteActivity(long activityId)
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException {
161         getService().deleteActivity(activityId);
162     }
163 
164     public static void deleteUserActivities(long userId)
165         throws com.liferay.portal.SystemException {
166         getService().deleteUserActivities(userId);
167     }
168 
169     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
170         java.lang.String className, int start, int end)
171         throws com.liferay.portal.SystemException {
172         return getService().getActivities(className, start, end);
173     }
174 
175     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
176         long classNameId, int start, int end)
177         throws com.liferay.portal.SystemException {
178         return getService().getActivities(classNameId, start, end);
179     }
180 
181     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
182         long mirrorActivityId, java.lang.String className, long classPK,
183         int start, int end) throws com.liferay.portal.SystemException {
184         return getService()
185                    .getActivities(mirrorActivityId, className, classPK, start,
186             end);
187     }
188 
189     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
190         long mirrorActivityId, long classNameId, long classPK, int start,
191         int end) throws com.liferay.portal.SystemException {
192         return getService()
193                    .getActivities(mirrorActivityId, classNameId, classPK,
194             start, end);
195     }
196 
197     public static int getActivitiesCount(java.lang.String className)
198         throws com.liferay.portal.SystemException {
199         return getService().getActivitiesCount(className);
200     }
201 
202     public static int getActivitiesCount(long classNameId)
203         throws com.liferay.portal.SystemException {
204         return getService().getActivitiesCount(classNameId);
205     }
206 
207     public static int getActivitiesCount(long mirrorActivityId,
208         java.lang.String className, long classPK)
209         throws com.liferay.portal.SystemException {
210         return getService()
211                    .getActivitiesCount(mirrorActivityId, className, classPK);
212     }
213 
214     public static int getActivitiesCount(long mirrorActivityId,
215         long classNameId, long classPK)
216         throws com.liferay.portal.SystemException {
217         return getService()
218                    .getActivitiesCount(mirrorActivityId, classNameId, classPK);
219     }
220 
221     public static com.liferay.portlet.social.model.SocialActivity getActivity(
222         long activityId)
223         throws com.liferay.portal.PortalException,
224             com.liferay.portal.SystemException {
225         return getService().getActivity(activityId);
226     }
227 
228     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities(
229         long groupId, int start, int end)
230         throws com.liferay.portal.SystemException {
231         return getService().getGroupActivities(groupId, start, end);
232     }
233 
234     public static int getGroupActivitiesCount(long groupId)
235         throws com.liferay.portal.SystemException {
236         return getService().getGroupActivitiesCount(groupId);
237     }
238 
239     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupUsersActivities(
240         long groupId, int start, int end)
241         throws com.liferay.portal.SystemException {
242         return getService().getGroupUsersActivities(groupId, start, end);
243     }
244 
245     public static int getGroupUsersActivitiesCount(long groupId)
246         throws com.liferay.portal.SystemException {
247         return getService().getGroupUsersActivitiesCount(groupId);
248     }
249 
250     public static com.liferay.portlet.social.model.SocialActivity getMirrorActivity(
251         long mirrorActivityId)
252         throws com.liferay.portal.PortalException,
253             com.liferay.portal.SystemException {
254         return getService().getMirrorActivity(mirrorActivityId);
255     }
256 
257     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities(
258         long organizationId, int start, int end)
259         throws com.liferay.portal.SystemException {
260         return getService().getOrganizationActivities(organizationId, start, end);
261     }
262 
263     public static int getOrganizationActivitiesCount(long organizationId)
264         throws com.liferay.portal.SystemException {
265         return getService().getOrganizationActivitiesCount(organizationId);
266     }
267 
268     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationUsersActivities(
269         long organizationId, int start, int end)
270         throws com.liferay.portal.SystemException {
271         return getService()
272                    .getOrganizationUsersActivities(organizationId, start, end);
273     }
274 
275     public static int getOrganizationUsersActivitiesCount(long organizationId)
276         throws com.liferay.portal.SystemException {
277         return getService().getOrganizationUsersActivitiesCount(organizationId);
278     }
279 
280     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
281         long userId, int start, int end)
282         throws com.liferay.portal.SystemException {
283         return getService().getRelationActivities(userId, start, end);
284     }
285 
286     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
287         long userId, int type, int start, int end)
288         throws com.liferay.portal.SystemException {
289         return getService().getRelationActivities(userId, type, start, end);
290     }
291 
292     public static int getRelationActivitiesCount(long userId)
293         throws com.liferay.portal.SystemException {
294         return getService().getRelationActivitiesCount(userId);
295     }
296 
297     public static int getRelationActivitiesCount(long userId, int type)
298         throws com.liferay.portal.SystemException {
299         return getService().getRelationActivitiesCount(userId, type);
300     }
301 
302     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserActivities(
303         long userId, int start, int end)
304         throws com.liferay.portal.SystemException {
305         return getService().getUserActivities(userId, start, end);
306     }
307 
308     public static int getUserActivitiesCount(long userId)
309         throws com.liferay.portal.SystemException {
310         return getService().getUserActivitiesCount(userId);
311     }
312 
313     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsActivities(
314         long userId, int start, int end)
315         throws com.liferay.portal.SystemException {
316         return getService().getUserGroupsActivities(userId, start, end);
317     }
318 
319     public static int getUserGroupsActivitiesCount(long userId)
320         throws com.liferay.portal.SystemException {
321         return getService().getUserGroupsActivitiesCount(userId);
322     }
323 
324     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsAndOrganizationsActivities(
325         long userId, int start, int end)
326         throws com.liferay.portal.SystemException {
327         return getService()
328                    .getUserGroupsAndOrganizationsActivities(userId, start, end);
329     }
330 
331     public static int getUserGroupsAndOrganizationsActivitiesCount(long userId)
332         throws com.liferay.portal.SystemException {
333         return getService().getUserGroupsAndOrganizationsActivitiesCount(userId);
334     }
335 
336     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserOrganizationsActivities(
337         long userId, int start, int end)
338         throws com.liferay.portal.SystemException {
339         return getService().getUserOrganizationsActivities(userId, start, end);
340     }
341 
342     public static int getUserOrganizationsActivitiesCount(long userId)
343         throws com.liferay.portal.SystemException {
344         return getService().getUserOrganizationsActivitiesCount(userId);
345     }
346 
347     public static SocialActivityLocalService getService() {
348         if (_service == null) {
349             throw new RuntimeException("SocialActivityLocalService is not set");
350         }
351 
352         return _service;
353     }
354 
355     public void setService(SocialActivityLocalService service) {
356         _service = service;
357     }
358 
359     private static SocialActivityLocalService _service;
360 }