1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.social.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
22  
23  /**
24   * <a href="SocialActivityLocalService.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 interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.social.service.impl.SocialActivityLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       SocialActivityLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface SocialActivityLocalService {
50      public com.liferay.portlet.social.model.SocialActivity addSocialActivity(
51          com.liferay.portlet.social.model.SocialActivity socialActivity)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.social.model.SocialActivity createSocialActivity(
55          long activityId);
56  
57      public void deleteSocialActivity(long activityId)
58          throws com.liferay.portal.kernel.exception.PortalException,
59              com.liferay.portal.kernel.exception.SystemException;
60  
61      public void deleteSocialActivity(
62          com.liferay.portlet.social.model.SocialActivity socialActivity)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      @SuppressWarnings("unchecked")
66      public java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      @SuppressWarnings("unchecked")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException;
74  
75      @SuppressWarnings("unchecked")
76      public java.util.List dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.kernel.exception.SystemException;
81  
82      public long dynamicQueryCount(
83          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84          throws com.liferay.portal.kernel.exception.SystemException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public com.liferay.portlet.social.model.SocialActivity getSocialActivity(
88          long activityId)
89          throws com.liferay.portal.kernel.exception.PortalException,
90              com.liferay.portal.kernel.exception.SystemException;
91  
92      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93      public java.util.List<com.liferay.portlet.social.model.SocialActivity> getSocialActivities(
94          int start, int end)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
98      public int getSocialActivitiesCount()
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portlet.social.model.SocialActivity updateSocialActivity(
102         com.liferay.portlet.social.model.SocialActivity socialActivity)
103         throws com.liferay.portal.kernel.exception.SystemException;
104 
105     public com.liferay.portlet.social.model.SocialActivity updateSocialActivity(
106         com.liferay.portlet.social.model.SocialActivity socialActivity,
107         boolean merge)
108         throws com.liferay.portal.kernel.exception.SystemException;
109 
110     public 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.kernel.exception.PortalException,
115             com.liferay.portal.kernel.exception.SystemException;
116 
117     public com.liferay.portlet.social.model.SocialActivity addActivity(
118         long userId, long groupId, java.lang.String className, long classPK,
119         int type, java.lang.String extraData, long receiverUserId)
120         throws com.liferay.portal.kernel.exception.PortalException,
121             com.liferay.portal.kernel.exception.SystemException;
122 
123     public com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
124         long userId, long groupId, java.util.Date createDate,
125         java.lang.String className, long classPK, int type,
126         java.lang.String extraData, long receiverUserId)
127         throws com.liferay.portal.kernel.exception.PortalException,
128             com.liferay.portal.kernel.exception.SystemException;
129 
130     public 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.kernel.exception.PortalException,
134             com.liferay.portal.kernel.exception.SystemException;
135 
136     public void deleteActivities(long classNameId, long classPK)
137         throws com.liferay.portal.kernel.exception.SystemException;
138 
139     public void deleteActivities(java.lang.String className, long classPK)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     public void deleteActivity(long activityId)
143         throws com.liferay.portal.kernel.exception.PortalException,
144             com.liferay.portal.kernel.exception.SystemException;
145 
146     public void deleteActivity(
147         com.liferay.portlet.social.model.SocialActivity activity)
148         throws com.liferay.portal.kernel.exception.SystemException;
149 
150     public void deleteUserActivities(long userId)
151         throws com.liferay.portal.kernel.exception.SystemException;
152 
153     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
155         long classNameId, int start, int end)
156         throws com.liferay.portal.kernel.exception.SystemException;
157 
158     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
160         long mirrorActivityId, long classNameId, long classPK, int start,
161         int end) throws com.liferay.portal.kernel.exception.SystemException;
162 
163     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
165         long mirrorActivityId, java.lang.String className, long classPK,
166         int start, int end)
167         throws com.liferay.portal.kernel.exception.SystemException;
168 
169     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
171         java.lang.String className, int start, int end)
172         throws com.liferay.portal.kernel.exception.SystemException;
173 
174     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175     public int getActivitiesCount(long classNameId)
176         throws com.liferay.portal.kernel.exception.SystemException;
177 
178     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179     public int getActivitiesCount(long mirrorActivityId, long classNameId,
180         long classPK)
181         throws com.liferay.portal.kernel.exception.SystemException;
182 
183     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184     public int getActivitiesCount(long mirrorActivityId,
185         java.lang.String className, long classPK)
186         throws com.liferay.portal.kernel.exception.SystemException;
187 
188     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189     public int getActivitiesCount(java.lang.String className)
190         throws com.liferay.portal.kernel.exception.SystemException;
191 
192     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193     public com.liferay.portlet.social.model.SocialActivity getActivity(
194         long activityId)
195         throws com.liferay.portal.kernel.exception.PortalException,
196             com.liferay.portal.kernel.exception.SystemException;
197 
198     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities(
200         long groupId, int start, int end)
201         throws com.liferay.portal.kernel.exception.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public int getGroupActivitiesCount(long groupId)
205         throws com.liferay.portal.kernel.exception.SystemException;
206 
207     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupUsersActivities(
209         long groupId, int start, int end)
210         throws com.liferay.portal.kernel.exception.SystemException;
211 
212     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213     public int getGroupUsersActivitiesCount(long groupId)
214         throws com.liferay.portal.kernel.exception.SystemException;
215 
216     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217     public com.liferay.portlet.social.model.SocialActivity getMirrorActivity(
218         long mirrorActivityId)
219         throws com.liferay.portal.kernel.exception.PortalException,
220             com.liferay.portal.kernel.exception.SystemException;
221 
222     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities(
224         long organizationId, int start, int end)
225         throws com.liferay.portal.kernel.exception.SystemException;
226 
227     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228     public int getOrganizationActivitiesCount(long organizationId)
229         throws com.liferay.portal.kernel.exception.SystemException;
230 
231     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationUsersActivities(
233         long organizationId, int start, int end)
234         throws com.liferay.portal.kernel.exception.SystemException;
235 
236     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237     public int getOrganizationUsersActivitiesCount(long organizationId)
238         throws com.liferay.portal.kernel.exception.SystemException;
239 
240     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
242         long userId, int start, int end)
243         throws com.liferay.portal.kernel.exception.SystemException;
244 
245     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
247         long userId, int type, int start, int end)
248         throws com.liferay.portal.kernel.exception.SystemException;
249 
250     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251     public int getRelationActivitiesCount(long userId)
252         throws com.liferay.portal.kernel.exception.SystemException;
253 
254     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255     public int getRelationActivitiesCount(long userId, int type)
256         throws com.liferay.portal.kernel.exception.SystemException;
257 
258     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserActivities(
260         long userId, int start, int end)
261         throws com.liferay.portal.kernel.exception.SystemException;
262 
263     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264     public int getUserActivitiesCount(long userId)
265         throws com.liferay.portal.kernel.exception.SystemException;
266 
267     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsActivities(
269         long userId, int start, int end)
270         throws com.liferay.portal.kernel.exception.SystemException;
271 
272     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273     public int getUserGroupsActivitiesCount(long userId)
274         throws com.liferay.portal.kernel.exception.SystemException;
275 
276     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsAndOrganizationsActivities(
278         long userId, int start, int end)
279         throws com.liferay.portal.kernel.exception.SystemException;
280 
281     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282     public int getUserGroupsAndOrganizationsActivitiesCount(long userId)
283         throws com.liferay.portal.kernel.exception.SystemException;
284 
285     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserOrganizationsActivities(
287         long userId, int start, int end)
288         throws com.liferay.portal.kernel.exception.SystemException;
289 
290     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
291     public int getUserOrganizationsActivitiesCount(long userId)
292         throws com.liferay.portal.kernel.exception.SystemException;
293 }