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