1   /**
2    * Copyright (c) 2000-2008 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 _service.addSocialActivity(socialActivity);
52      }
53  
54      public static void deleteSocialActivity(long activityId)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException {
57          _service.deleteSocialActivity(activityId);
58      }
59  
60      public static void deleteSocialActivity(
61          com.liferay.portlet.social.model.SocialActivity socialActivity)
62          throws com.liferay.portal.SystemException {
63          _service.deleteSocialActivity(socialActivity);
64      }
65  
66      public static java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return _service.dynamicQuery(dynamicQuery);
70      }
71  
72      public static java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end) throws com.liferay.portal.SystemException {
75          return _service.dynamicQuery(dynamicQuery, start, end);
76      }
77  
78      public static com.liferay.portlet.social.model.SocialActivity getSocialActivity(
79          long activityId)
80          throws com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException {
82          return _service.getSocialActivity(activityId);
83      }
84  
85      public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getSocialActivities(
86          int start, int end) throws com.liferay.portal.SystemException {
87          return _service.getSocialActivities(start, end);
88      }
89  
90      public static int getSocialActivitiesCount()
91          throws com.liferay.portal.SystemException {
92          return _service.getSocialActivitiesCount();
93      }
94  
95      public static com.liferay.portlet.social.model.SocialActivity updateSocialActivity(
96          com.liferay.portlet.social.model.SocialActivity socialActivity)
97          throws com.liferay.portal.SystemException {
98          return _service.updateSocialActivity(socialActivity);
99      }
100 
101     public static com.liferay.portlet.social.model.SocialActivity addActivity(
102         long userId, long groupId, java.lang.String className, long classPK,
103         int type, java.lang.String extraData, long receiverUserId)
104         throws com.liferay.portal.PortalException,
105             com.liferay.portal.SystemException {
106         return _service.addActivity(userId, groupId, className, classPK, type,
107             extraData, receiverUserId);
108     }
109 
110     public static com.liferay.portlet.social.model.SocialActivity addActivity(
111         long userId, long groupId, java.util.Date createDate,
112         java.lang.String className, long classPK, int type,
113         java.lang.String extraData, long receiverUserId)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException {
116         return _service.addActivity(userId, groupId, createDate, className,
117             classPK, type, extraData, receiverUserId);
118     }
119 
120     public static com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
121         long userId, long groupId, java.lang.String className, long classPK,
122         int type, java.lang.String extraData, long receiverUserId)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException {
125         return _service.addUniqueActivity(userId, groupId, className, classPK,
126             type, extraData, receiverUserId);
127     }
128 
129     public static com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
130         long userId, long groupId, java.util.Date createDate,
131         java.lang.String className, long classPK, int type,
132         java.lang.String extraData, long receiverUserId)
133         throws com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException {
135         return _service.addUniqueActivity(userId, groupId, createDate,
136             className, classPK, type, extraData, receiverUserId);
137     }
138 
139     public static void deleteActivities(java.lang.String className, long classPK)
140         throws com.liferay.portal.SystemException {
141         _service.deleteActivities(className, classPK);
142     }
143 
144     public static void deleteActivities(long classNameId, long classPK)
145         throws com.liferay.portal.SystemException {
146         _service.deleteActivities(classNameId, classPK);
147     }
148 
149     public static void deleteActivity(long activityId)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException {
152         _service.deleteActivity(activityId);
153     }
154 
155     public static void deleteUserActivities(long userId)
156         throws com.liferay.portal.SystemException {
157         _service.deleteUserActivities(userId);
158     }
159 
160     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
161         java.lang.String className, int start, int end)
162         throws com.liferay.portal.SystemException {
163         return _service.getActivities(className, start, end);
164     }
165 
166     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
167         long classNameId, int start, int end)
168         throws com.liferay.portal.SystemException {
169         return _service.getActivities(classNameId, start, end);
170     }
171 
172     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
173         long mirrorActivityId, java.lang.String className, long classPK,
174         int start, int end) throws com.liferay.portal.SystemException {
175         return _service.getActivities(mirrorActivityId, className, classPK,
176             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 _service.getActivities(mirrorActivityId, classNameId, classPK,
183             start, end);
184     }
185 
186     public static int getActivitiesCount(java.lang.String className)
187         throws com.liferay.portal.SystemException {
188         return _service.getActivitiesCount(className);
189     }
190 
191     public static int getActivitiesCount(long classNameId)
192         throws com.liferay.portal.SystemException {
193         return _service.getActivitiesCount(classNameId);
194     }
195 
196     public static int getActivitiesCount(long mirrorActivityId,
197         java.lang.String className, long classPK)
198         throws com.liferay.portal.SystemException {
199         return _service.getActivitiesCount(mirrorActivityId, className, classPK);
200     }
201 
202     public static int getActivitiesCount(long mirrorActivityId,
203         long classNameId, long classPK)
204         throws com.liferay.portal.SystemException {
205         return _service.getActivitiesCount(mirrorActivityId, classNameId,
206             classPK);
207     }
208 
209     public static com.liferay.portlet.social.model.SocialActivity getActivity(
210         long activityId)
211         throws com.liferay.portal.PortalException,
212             com.liferay.portal.SystemException {
213         return _service.getActivity(activityId);
214     }
215 
216     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities(
217         long groupId, int start, int end)
218         throws com.liferay.portal.SystemException {
219         return _service.getGroupActivities(groupId, start, end);
220     }
221 
222     public static int getGroupActivitiesCount(long groupId)
223         throws com.liferay.portal.SystemException {
224         return _service.getGroupActivitiesCount(groupId);
225     }
226 
227     public static com.liferay.portlet.social.model.SocialActivity getMirrorActivity(
228         long mirrorActivityId)
229         throws com.liferay.portal.PortalException,
230             com.liferay.portal.SystemException {
231         return _service.getMirrorActivity(mirrorActivityId);
232     }
233 
234     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities(
235         long organizationId, int start, int end)
236         throws com.liferay.portal.SystemException {
237         return _service.getOrganizationActivities(organizationId, start, end);
238     }
239 
240     public static int getOrganizationActivitiesCount(long organizationId)
241         throws com.liferay.portal.SystemException {
242         return _service.getOrganizationActivitiesCount(organizationId);
243     }
244 
245     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
246         long userId, int start, int end)
247         throws com.liferay.portal.SystemException {
248         return _service.getRelationActivities(userId, start, end);
249     }
250 
251     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
252         long userId, int type, int start, int end)
253         throws com.liferay.portal.SystemException {
254         return _service.getRelationActivities(userId, type, start, end);
255     }
256 
257     public static int getRelationActivitiesCount(long userId)
258         throws com.liferay.portal.SystemException {
259         return _service.getRelationActivitiesCount(userId);
260     }
261 
262     public static int getRelationActivitiesCount(long userId, int type)
263         throws com.liferay.portal.SystemException {
264         return _service.getRelationActivitiesCount(userId, type);
265     }
266 
267     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserActivities(
268         long userId, int start, int end)
269         throws com.liferay.portal.SystemException {
270         return _service.getUserActivities(userId, start, end);
271     }
272 
273     public static int getUserActivitiesCount(long userId)
274         throws com.liferay.portal.SystemException {
275         return _service.getUserActivitiesCount(userId);
276     }
277 
278     public static SocialActivityLocalService getService() {
279         return _service;
280     }
281 
282     public void setService(SocialActivityLocalService service) {
283         _service = service;
284     }
285 
286     private static SocialActivityLocalService _service;
287 }