1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.social.service;
24  
25  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Propagation;
28  import com.liferay.portal.kernel.annotation.Transactional;
29  
30  /**
31   * <a href="SocialActivityLocalService.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This interface defines the service. The default implementation is
40   * <code>com.liferay.portlet.social.service.impl.SocialActivityLocalServiceImpl</code>.
41   * Modify methods in that class and rerun ServiceBuilder to populate this class
42   * and all other generated classes.
43   * </p>
44   *
45   * <p>
46   * 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.
47   * </p>
48   *
49   * @author Brian Wing Shun Chan
50   *
51   * @see com.liferay.portlet.social.service.SocialActivityLocalServiceUtil
52   *
53   */
54  @Transactional(rollbackFor =  {
55      PortalException.class, SystemException.class})
56  public interface SocialActivityLocalService {
57      public com.liferay.portlet.social.model.SocialActivity addSocialActivity(
58          com.liferay.portlet.social.model.SocialActivity socialActivity)
59          throws com.liferay.portal.SystemException;
60  
61      public com.liferay.portlet.social.model.SocialActivity createSocialActivity(
62          long activityId);
63  
64      public void deleteSocialActivity(long activityId)
65          throws com.liferay.portal.SystemException,
66              com.liferay.portal.PortalException;
67  
68      public void deleteSocialActivity(
69          com.liferay.portlet.social.model.SocialActivity socialActivity)
70          throws com.liferay.portal.SystemException;
71  
72      public java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74          throws com.liferay.portal.SystemException;
75  
76      public java.util.List<Object> dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end) throws com.liferay.portal.SystemException;
79  
80      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81      public com.liferay.portlet.social.model.SocialActivity getSocialActivity(
82          long activityId)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portal.PortalException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public java.util.List<com.liferay.portlet.social.model.SocialActivity> getSocialActivities(
88          int start, int end) throws com.liferay.portal.SystemException;
89  
90      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91      public int getSocialActivitiesCount()
92          throws com.liferay.portal.SystemException;
93  
94      public com.liferay.portlet.social.model.SocialActivity updateSocialActivity(
95          com.liferay.portlet.social.model.SocialActivity socialActivity)
96          throws com.liferay.portal.SystemException;
97  
98      public com.liferay.portlet.social.model.SocialActivity addActivity(
99          long userId, long groupId, java.lang.String className, long classPK,
100         int type, java.lang.String extraData, long receiverUserId)
101         throws com.liferay.portal.PortalException,
102             com.liferay.portal.SystemException;
103 
104     public com.liferay.portlet.social.model.SocialActivity addActivity(
105         long userId, long groupId, java.util.Date createDate,
106         java.lang.String className, long classPK, int type,
107         java.lang.String extraData, long receiverUserId)
108         throws com.liferay.portal.PortalException,
109             com.liferay.portal.SystemException;
110 
111     public com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
112         long userId, long groupId, java.lang.String className, long classPK,
113         int type, java.lang.String extraData, long receiverUserId)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException;
116 
117     public com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
118         long userId, long groupId, java.util.Date createDate,
119         java.lang.String className, long classPK, int type,
120         java.lang.String extraData, long receiverUserId)
121         throws com.liferay.portal.PortalException,
122             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 deleteActivities(long classNameId, long classPK)
128         throws com.liferay.portal.SystemException;
129 
130     public void deleteActivity(long activityId)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException;
133 
134     public void deleteUserActivities(long userId)
135         throws com.liferay.portal.SystemException;
136 
137     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
139         java.lang.String className, int start, int end)
140         throws com.liferay.portal.SystemException;
141 
142     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
144         long classNameId, int start, int end)
145         throws com.liferay.portal.SystemException;
146 
147     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
149         long mirrorActivityId, java.lang.String className, long classPK,
150         int start, int end) throws com.liferay.portal.SystemException;
151 
152     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
154         long mirrorActivityId, long classNameId, long classPK, int start,
155         int end) throws com.liferay.portal.SystemException;
156 
157     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158     public int getActivitiesCount(java.lang.String className)
159         throws com.liferay.portal.SystemException;
160 
161     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162     public int getActivitiesCount(long classNameId)
163         throws com.liferay.portal.SystemException;
164 
165     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166     public int getActivitiesCount(long mirrorActivityId,
167         java.lang.String className, long classPK)
168         throws com.liferay.portal.SystemException;
169 
170     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171     public int getActivitiesCount(long mirrorActivityId, long classNameId,
172         long classPK) throws com.liferay.portal.SystemException;
173 
174     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175     public com.liferay.portlet.social.model.SocialActivity getActivity(
176         long activityId)
177         throws com.liferay.portal.PortalException,
178             com.liferay.portal.SystemException;
179 
180     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities(
182         long groupId, int start, int end)
183         throws com.liferay.portal.SystemException;
184 
185     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186     public int getGroupActivitiesCount(long groupId)
187         throws com.liferay.portal.SystemException;
188 
189     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupUsersActivities(
191         long groupId, int start, int end)
192         throws com.liferay.portal.SystemException;
193 
194     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195     public int getGroupUsersActivitiesCount(long groupId)
196         throws com.liferay.portal.SystemException;
197 
198     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199     public com.liferay.portlet.social.model.SocialActivity getMirrorActivity(
200         long mirrorActivityId)
201         throws com.liferay.portal.PortalException,
202             com.liferay.portal.SystemException;
203 
204     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities(
206         long organizationId, int start, int end)
207         throws com.liferay.portal.SystemException;
208 
209     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210     public int getOrganizationActivitiesCount(long organizationId)
211         throws com.liferay.portal.SystemException;
212 
213     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationUsersActivities(
215         long organizationId, int start, int end)
216         throws com.liferay.portal.SystemException;
217 
218     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219     public int getOrganizationUsersActivitiesCount(long organizationId)
220         throws com.liferay.portal.SystemException;
221 
222     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
224         long userId, int start, int end)
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> getRelationActivities(
229         long userId, int type, int start, int end)
230         throws com.liferay.portal.SystemException;
231 
232     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233     public int getRelationActivitiesCount(long userId)
234         throws com.liferay.portal.SystemException;
235 
236     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237     public int getRelationActivitiesCount(long userId, int type)
238         throws com.liferay.portal.SystemException;
239 
240     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserActivities(
242         long userId, int start, int end)
243         throws com.liferay.portal.SystemException;
244 
245     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246     public int getUserActivitiesCount(long userId)
247         throws com.liferay.portal.SystemException;
248 
249     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsActivities(
251         long userId, int start, int end)
252         throws com.liferay.portal.SystemException;
253 
254     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255     public int getUserGroupsActivitiesCount(long userId)
256         throws com.liferay.portal.SystemException;
257 
258     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsAndOrganizationsActivities(
260         long userId, int start, int end)
261         throws com.liferay.portal.SystemException;
262 
263     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264     public int getUserGroupsAndOrganizationsActivitiesCount(long userId)
265         throws com.liferay.portal.SystemException;
266 
267     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserOrganizationsActivities(
269         long userId, int start, int end)
270         throws com.liferay.portal.SystemException;
271 
272     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273     public int getUserOrganizationsActivitiesCount(long userId)
274         throws com.liferay.portal.SystemException;
275 }