1   /**
2    * Copyright (c) 2000-2010 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   *
12   *
13   */
14  
15  package com.liferay.portlet.social.service;
16  
17  import com.liferay.portal.PortalException;
18  import com.liferay.portal.SystemException;
19  import com.liferay.portal.kernel.annotation.Isolation;
20  import com.liferay.portal.kernel.annotation.Propagation;
21  import com.liferay.portal.kernel.annotation.Transactional;
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.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.PortalException,
59              com.liferay.portal.SystemException;
60  
61      public void deleteSocialActivity(
62          com.liferay.portlet.social.model.SocialActivity socialActivity)
63          throws com.liferay.portal.SystemException;
64  
65      @SuppressWarnings("rawtypes")
66      public java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException;
69  
70      @SuppressWarnings("rawtypes")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.SystemException;
74  
75      @SuppressWarnings("rawtypes")
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.SystemException;
81  
82      public int dynamicQueryCount(
83          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84          throws com.liferay.portal.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.PortalException,
90              com.liferay.portal.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) throws com.liferay.portal.SystemException;
95  
96      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
97      public int getSocialActivitiesCount()
98          throws com.liferay.portal.SystemException;
99  
100     public com.liferay.portlet.social.model.SocialActivity updateSocialActivity(
101         com.liferay.portlet.social.model.SocialActivity socialActivity)
102         throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portlet.social.model.SocialActivity updateSocialActivity(
105         com.liferay.portlet.social.model.SocialActivity socialActivity,
106         boolean merge) throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.social.model.SocialActivity addActivity(
109         long userId, long groupId, java.util.Date createDate,
110         java.lang.String className, long classPK, int type,
111         java.lang.String extraData, long receiverUserId)
112         throws com.liferay.portal.PortalException,
113             com.liferay.portal.SystemException;
114 
115     public com.liferay.portlet.social.model.SocialActivity addActivity(
116         long userId, long groupId, java.lang.String className, long classPK,
117         int type, java.lang.String extraData, long receiverUserId)
118         throws com.liferay.portal.PortalException,
119             com.liferay.portal.SystemException;
120 
121     public com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
122         long userId, long groupId, java.util.Date createDate,
123         java.lang.String className, long classPK, int type,
124         java.lang.String extraData, long receiverUserId)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException;
127 
128     public com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
129         long userId, long groupId, java.lang.String className, long classPK,
130         int type, java.lang.String extraData, long receiverUserId)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException;
133 
134     public void deleteActivities(long classNameId, long classPK)
135         throws com.liferay.portal.SystemException;
136 
137     public void deleteActivities(java.lang.String className, long classPK)
138         throws com.liferay.portal.SystemException;
139 
140     public void deleteActivity(long activityId)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException;
143 
144     public void deleteActivity(
145         com.liferay.portlet.social.model.SocialActivity activity)
146         throws com.liferay.portal.SystemException;
147 
148     public void deleteUserActivities(long userId)
149         throws com.liferay.portal.SystemException;
150 
151     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
153         long classNameId, int start, int end)
154         throws com.liferay.portal.SystemException;
155 
156     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
158         long mirrorActivityId, long classNameId, long classPK, int start,
159         int end) throws com.liferay.portal.SystemException;
160 
161     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
163         long mirrorActivityId, java.lang.String className, long classPK,
164         int start, int end) throws com.liferay.portal.SystemException;
165 
166     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
168         java.lang.String className, int start, int end)
169         throws com.liferay.portal.SystemException;
170 
171     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172     public int getActivitiesCount(long classNameId)
173         throws com.liferay.portal.SystemException;
174 
175     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176     public int getActivitiesCount(long mirrorActivityId, long classNameId,
177         long classPK) throws com.liferay.portal.SystemException;
178 
179     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180     public int getActivitiesCount(long mirrorActivityId,
181         java.lang.String className, long classPK)
182         throws com.liferay.portal.SystemException;
183 
184     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185     public int getActivitiesCount(java.lang.String className)
186         throws com.liferay.portal.SystemException;
187 
188     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189     public com.liferay.portlet.social.model.SocialActivity getActivity(
190         long activityId)
191         throws com.liferay.portal.PortalException,
192             com.liferay.portal.SystemException;
193 
194     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities(
196         long groupId, int start, int end)
197         throws com.liferay.portal.SystemException;
198 
199     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200     public int getGroupActivitiesCount(long groupId)
201         throws com.liferay.portal.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupUsersActivities(
205         long groupId, int start, int end)
206         throws com.liferay.portal.SystemException;
207 
208     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209     public int getGroupUsersActivitiesCount(long groupId)
210         throws com.liferay.portal.SystemException;
211 
212     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213     public com.liferay.portlet.social.model.SocialActivity getMirrorActivity(
214         long mirrorActivityId)
215         throws com.liferay.portal.PortalException,
216             com.liferay.portal.SystemException;
217 
218     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities(
220         long organizationId, int start, int end)
221         throws com.liferay.portal.SystemException;
222 
223     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224     public int getOrganizationActivitiesCount(long organizationId)
225         throws com.liferay.portal.SystemException;
226 
227     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationUsersActivities(
229         long organizationId, int start, int end)
230         throws com.liferay.portal.SystemException;
231 
232     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233     public int getOrganizationUsersActivitiesCount(long organizationId)
234         throws com.liferay.portal.SystemException;
235 
236     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
238         long userId, int start, int end)
239         throws com.liferay.portal.SystemException;
240 
241     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
243         long userId, int type, int start, int end)
244         throws com.liferay.portal.SystemException;
245 
246     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247     public int getRelationActivitiesCount(long userId)
248         throws com.liferay.portal.SystemException;
249 
250     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251     public int getRelationActivitiesCount(long userId, int type)
252         throws com.liferay.portal.SystemException;
253 
254     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserActivities(
256         long userId, int start, int end)
257         throws com.liferay.portal.SystemException;
258 
259     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
260     public int getUserActivitiesCount(long userId)
261         throws com.liferay.portal.SystemException;
262 
263     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsActivities(
265         long userId, int start, int end)
266         throws com.liferay.portal.SystemException;
267 
268     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269     public int getUserGroupsActivitiesCount(long userId)
270         throws com.liferay.portal.SystemException;
271 
272     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsAndOrganizationsActivities(
274         long userId, int start, int end)
275         throws com.liferay.portal.SystemException;
276 
277     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278     public int getUserGroupsAndOrganizationsActivitiesCount(long userId)
279         throws com.liferay.portal.SystemException;
280 
281     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserOrganizationsActivities(
283         long userId, int start, int end)
284         throws com.liferay.portal.SystemException;
285 
286     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287     public int getUserOrganizationsActivitiesCount(long userId)
288         throws com.liferay.portal.SystemException;
289 }