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