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