1   /**
2    * Copyright (c) 2000-2008 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  
26  /**
27   * <a href="SocialActivityLocalService.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.social.service.impl.SocialActivityLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * 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.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.social.service.SocialActivityLocalServiceUtil
48   *
49   */
50  public interface SocialActivityLocalService {
51      public com.liferay.portlet.social.model.SocialActivity addSocialActivity(
52          com.liferay.portlet.social.model.SocialActivity socialActivity)
53          throws com.liferay.portal.SystemException;
54  
55      public void deleteSocialActivity(long activityId)
56          throws com.liferay.portal.SystemException,
57              com.liferay.portal.PortalException;
58  
59      public void deleteSocialActivity(
60          com.liferay.portlet.social.model.SocialActivity socialActivity)
61          throws com.liferay.portal.SystemException;
62  
63      public java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List<Object> dynamicQuery(
68          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69          int end) throws com.liferay.portal.SystemException;
70  
71      public com.liferay.portlet.social.model.SocialActivity getSocialActivity(
72          long activityId)
73          throws com.liferay.portal.SystemException,
74              com.liferay.portal.PortalException;
75  
76      public java.util.List<com.liferay.portlet.social.model.SocialActivity> getSocialActivities(
77          int start, int end) throws com.liferay.portal.SystemException;
78  
79      public int getSocialActivitiesCount()
80          throws com.liferay.portal.SystemException;
81  
82      public com.liferay.portlet.social.model.SocialActivity updateSocialActivity(
83          com.liferay.portlet.social.model.SocialActivity socialActivity)
84          throws com.liferay.portal.SystemException;
85  
86      public com.liferay.portlet.social.model.SocialActivity addActivity(
87          long userId, long groupId, java.lang.String className, long classPK,
88          int type, java.lang.String extraData, long receiverUserId)
89          throws com.liferay.portal.PortalException,
90              com.liferay.portal.SystemException;
91  
92      public com.liferay.portlet.social.model.SocialActivity addActivity(
93          long userId, long groupId, java.util.Date createDate,
94          java.lang.String className, long classPK, int type,
95          java.lang.String extraData, long receiverUserId)
96          throws com.liferay.portal.PortalException,
97              com.liferay.portal.SystemException;
98  
99      public com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
100         long userId, long groupId, java.lang.String className, long classPK,
101         int type, java.lang.String extraData, long receiverUserId)
102         throws com.liferay.portal.PortalException,
103             com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
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 void deleteActivities(java.lang.String className, long classPK)
113         throws com.liferay.portal.SystemException;
114 
115     public void deleteActivities(long classNameId, long classPK)
116         throws com.liferay.portal.SystemException;
117 
118     public void deleteActivity(long activityId)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException;
121 
122     public void deleteUserActivities(long userId)
123         throws com.liferay.portal.SystemException;
124 
125     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
126         java.lang.String className, int start, int end)
127         throws com.liferay.portal.SystemException;
128 
129     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
130         long classNameId, int start, int end)
131         throws com.liferay.portal.SystemException;
132 
133     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
134         long mirrorActivityId, java.lang.String className, long classPK,
135         int start, int end) throws com.liferay.portal.SystemException;
136 
137     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
138         long mirrorActivityId, long classNameId, long classPK, int start,
139         int end) throws com.liferay.portal.SystemException;
140 
141     public int getActivitiesCount(java.lang.String className)
142         throws com.liferay.portal.SystemException;
143 
144     public int getActivitiesCount(long classNameId)
145         throws com.liferay.portal.SystemException;
146 
147     public int getActivitiesCount(long mirrorActivityId,
148         java.lang.String className, long classPK)
149         throws com.liferay.portal.SystemException;
150 
151     public int getActivitiesCount(long mirrorActivityId, long classNameId,
152         long classPK) throws com.liferay.portal.SystemException;
153 
154     public com.liferay.portlet.social.model.SocialActivity getActivity(
155         long activityId)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException;
158 
159     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities(
160         long groupId, int start, int end)
161         throws com.liferay.portal.SystemException;
162 
163     public int getGroupActivitiesCount(long groupId)
164         throws com.liferay.portal.SystemException;
165 
166     public com.liferay.portlet.social.model.SocialActivity getMirrorActivity(
167         long mirrorActivityId)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException;
170 
171     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities(
172         long organizationId, int start, int end)
173         throws com.liferay.portal.SystemException;
174 
175     public int getOrganizationActivitiesCount(long organizationId)
176         throws com.liferay.portal.SystemException;
177 
178     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
179         long userId, int start, int end)
180         throws com.liferay.portal.SystemException;
181 
182     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
183         long userId, int type, int start, int end)
184         throws com.liferay.portal.SystemException;
185 
186     public int getRelationActivitiesCount(long userId)
187         throws com.liferay.portal.SystemException;
188 
189     public int getRelationActivitiesCount(long userId, int type)
190         throws com.liferay.portal.SystemException;
191 
192     public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserActivities(
193         long userId, int start, int end)
194         throws com.liferay.portal.SystemException;
195 
196     public int getUserActivitiesCount(long userId)
197         throws com.liferay.portal.SystemException;
198 }