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