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      public java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException;
72  
73      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74      public com.liferay.portlet.social.model.SocialActivity getSocialActivity(
75          long activityId)
76          throws com.liferay.portal.kernel.exception.PortalException,
77              com.liferay.portal.kernel.exception.SystemException;
78  
79      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80      public java.util.List<com.liferay.portlet.social.model.SocialActivity> getSocialActivities(
81          int start, int end)
82          throws com.liferay.portal.kernel.exception.SystemException;
83  
84      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85      public int getSocialActivitiesCount()
86          throws com.liferay.portal.kernel.exception.SystemException;
87  
88      public com.liferay.portlet.social.model.SocialActivity updateSocialActivity(
89          com.liferay.portlet.social.model.SocialActivity socialActivity)
90          throws com.liferay.portal.kernel.exception.SystemException;
91  
92      public com.liferay.portlet.social.model.SocialActivity updateSocialActivity(
93          com.liferay.portlet.social.model.SocialActivity socialActivity,
94          boolean merge)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public com.liferay.portlet.social.model.SocialActivity addActivity(
98          long userId, long groupId, java.util.Date createDate,
99          java.lang.String className, long classPK, int type,
100         java.lang.String extraData, long receiverUserId)
101         throws com.liferay.portal.kernel.exception.PortalException,
102             com.liferay.portal.kernel.exception.SystemException;
103 
104     public com.liferay.portlet.social.model.SocialActivity addActivity(
105         long userId, long groupId, java.lang.String className, long classPK,
106         int type, java.lang.String extraData, long receiverUserId)
107         throws com.liferay.portal.kernel.exception.PortalException,
108             com.liferay.portal.kernel.exception.SystemException;
109 
110     public com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
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 addUniqueActivity(
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 void deleteActivities(long classNameId, long classPK)
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public void deleteActivities(java.lang.String className, long classPK)
127         throws com.liferay.portal.kernel.exception.SystemException;
128 
129     public void deleteActivity(long activityId)
130         throws com.liferay.portal.kernel.exception.PortalException,
131             com.liferay.portal.kernel.exception.SystemException;
132 
133     public void deleteActivity(
134         com.liferay.portlet.social.model.SocialActivity activity)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public void deleteUserActivities(long userId)
138         throws com.liferay.portal.kernel.exception.SystemException;
139 
140     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
142         long classNameId, int start, int end)
143         throws com.liferay.portal.kernel.exception.SystemException;
144 
145     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
147         long mirrorActivityId, long classNameId, long classPK, int start,
148         int end) throws com.liferay.portal.kernel.exception.SystemException;
149 
150     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
152         long mirrorActivityId, java.lang.String className, long classPK,
153         int start, int end)
154         throws com.liferay.portal.kernel.exception.SystemException;
155 
156     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
158         java.lang.String className, int start, int end)
159         throws com.liferay.portal.kernel.exception.SystemException;
160 
161     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162     public int getActivitiesCount(long classNameId)
163         throws com.liferay.portal.kernel.exception.SystemException;
164 
165     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166     public int getActivitiesCount(long mirrorActivityId, long classNameId,
167         long classPK)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171     public int getActivitiesCount(long mirrorActivityId,
172         java.lang.String className, long classPK)
173         throws com.liferay.portal.kernel.exception.SystemException;
174 
175     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176     public int getActivitiesCount(java.lang.String className)
177         throws com.liferay.portal.kernel.exception.SystemException;
178 
179     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180     public com.liferay.portlet.social.model.SocialActivity getActivity(
181         long activityId)
182         throws com.liferay.portal.kernel.exception.PortalException,
183             com.liferay.portal.kernel.exception.SystemException;
184 
185     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities(
187         long groupId, int start, int end)
188         throws com.liferay.portal.kernel.exception.SystemException;
189 
190     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191     public int getGroupActivitiesCount(long groupId)
192         throws com.liferay.portal.kernel.exception.SystemException;
193 
194     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupUsersActivities(
196         long groupId, int start, int end)
197         throws com.liferay.portal.kernel.exception.SystemException;
198 
199     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200     public int getGroupUsersActivitiesCount(long groupId)
201         throws com.liferay.portal.kernel.exception.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public com.liferay.portlet.social.model.SocialActivity getMirrorActivity(
205         long mirrorActivityId)
206         throws com.liferay.portal.kernel.exception.PortalException,
207             com.liferay.portal.kernel.exception.SystemException;
208 
209     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities(
211         long organizationId, int start, int end)
212         throws com.liferay.portal.kernel.exception.SystemException;
213 
214     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215     public int getOrganizationActivitiesCount(long organizationId)
216         throws com.liferay.portal.kernel.exception.SystemException;
217 
218     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationUsersActivities(
220         long organizationId, int start, int end)
221         throws com.liferay.portal.kernel.exception.SystemException;
222 
223     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224     public int getOrganizationUsersActivitiesCount(long organizationId)
225         throws com.liferay.portal.kernel.exception.SystemException;
226 
227     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
229         long userId, int start, int end)
230         throws com.liferay.portal.kernel.exception.SystemException;
231 
232     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
234         long userId, int type, int start, int end)
235         throws com.liferay.portal.kernel.exception.SystemException;
236 
237     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238     public int getRelationActivitiesCount(long userId)
239         throws com.liferay.portal.kernel.exception.SystemException;
240 
241     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242     public int getRelationActivitiesCount(long userId, int type)
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> getUserActivities(
247         long userId, int start, int end)
248         throws com.liferay.portal.kernel.exception.SystemException;
249 
250     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251     public int getUserActivitiesCount(long userId)
252         throws com.liferay.portal.kernel.exception.SystemException;
253 
254     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsActivities(
256         long userId, int start, int end)
257         throws com.liferay.portal.kernel.exception.SystemException;
258 
259     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
260     public int getUserGroupsActivitiesCount(long userId)
261         throws com.liferay.portal.kernel.exception.SystemException;
262 
263     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsAndOrganizationsActivities(
265         long userId, int start, int end)
266         throws com.liferay.portal.kernel.exception.SystemException;
267 
268     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269     public int getUserGroupsAndOrganizationsActivitiesCount(long userId)
270         throws com.liferay.portal.kernel.exception.SystemException;
271 
272     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserOrganizationsActivities(
274         long userId, int start, int end)
275         throws com.liferay.portal.kernel.exception.SystemException;
276 
277     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278     public int getUserOrganizationsActivitiesCount(long userId)
279         throws com.liferay.portal.kernel.exception.SystemException;
280 }