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