001
014
015 package com.liferay.portlet.social.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.PersistedModelLocalService;
023
024
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface SocialActivityCounterLocalService
040 extends PersistedModelLocalService {
041
046
047
054 public com.liferay.portlet.social.model.SocialActivityCounter addSocialActivityCounter(
055 com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058
064 public com.liferay.portlet.social.model.SocialActivityCounter createSocialActivityCounter(
065 long activityCounterId);
066
067
074 public void deleteSocialActivityCounter(long activityCounterId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException;
077
078
084 public void deleteSocialActivityCounter(
085 com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter)
086 throws com.liferay.portal.kernel.exception.SystemException;
087
088
095 @SuppressWarnings("rawtypes")
096 public java.util.List dynamicQuery(
097 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100
113 @SuppressWarnings("rawtypes")
114 public java.util.List dynamicQuery(
115 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
116 int end) throws com.liferay.portal.kernel.exception.SystemException;
117
118
132 @SuppressWarnings("rawtypes")
133 public java.util.List dynamicQuery(
134 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
135 int end,
136 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137 throws com.liferay.portal.kernel.exception.SystemException;
138
139
146 public long dynamicQueryCount(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
148 throws com.liferay.portal.kernel.exception.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public com.liferay.portlet.social.model.SocialActivityCounter fetchSocialActivityCounter(
152 long activityCounterId)
153 throws com.liferay.portal.kernel.exception.SystemException;
154
155
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public com.liferay.portlet.social.model.SocialActivityCounter getSocialActivityCounter(
165 long activityCounterId)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portal.model.PersistedModel getPersistedModel(
171 java.io.Serializable primaryKeyObj)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getSocialActivityCounters(
189 int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public int getSocialActivityCountersCount()
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
209 public com.liferay.portlet.social.model.SocialActivityCounter updateSocialActivityCounter(
210 com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213
221 public com.liferay.portlet.social.model.SocialActivityCounter updateSocialActivityCounter(
222 com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter,
223 boolean merge)
224 throws com.liferay.portal.kernel.exception.SystemException;
225
226
231 public java.lang.String getBeanIdentifier();
232
233
238 public void setBeanIdentifier(java.lang.String beanIdentifier);
239
240 public com.liferay.portlet.social.model.SocialActivityCounter addActivityCounter(
241 long groupId, long classNameId, long classPK, java.lang.String name,
242 int ownerType, int currentValue, int totalValue)
243 throws com.liferay.portal.kernel.exception.PortalException,
244 com.liferay.portal.kernel.exception.SystemException;
245
246 public void addActivityCounters(
247 com.liferay.portlet.social.model.SocialActivity activity)
248 throws com.liferay.portal.kernel.exception.PortalException,
249 com.liferay.portal.kernel.exception.SystemException;
250
251 public void deleteActivityCounters(
252 com.liferay.portlet.asset.model.AssetEntry assetEntry)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException;
255
256 public void deleteActivityCounters(long classNameId, long classPK)
257 throws com.liferay.portal.kernel.exception.SystemException;
258
259 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
260 public com.liferay.portlet.social.model.SocialActivityCounter fetchLatestActivityCounter(
261 long groupId, long classNameId, long classPK, java.lang.String name,
262 int ownerType)
263 throws com.liferay.portal.kernel.exception.SystemException;
264
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getActivityCounterDistribution(
267 long groupId, java.lang.String name, int offset,
268 boolean includeCurrentPeriod)
269 throws com.liferay.portal.kernel.exception.SystemException;
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getActivityCounterDistribution(
273 long groupId, java.lang.String name, int startPeriod, int endPeriod)
274 throws com.liferay.portal.kernel.exception.SystemException;
275
276 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getActivityCounters(
278 long groupId, java.lang.String name, int offset,
279 boolean includeCurrentPeriod)
280 throws com.liferay.portal.kernel.exception.SystemException;
281
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getActivityCounters(
284 long groupId, java.lang.String name, int startPeriod, int endPeriod)
285 throws com.liferay.portal.kernel.exception.SystemException;
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public com.liferay.portlet.social.model.SocialActivityCounter getLatestActivityCounter(
289 long groupId, long classNameId, long classPK, java.lang.String name,
290 int ownerType)
291 throws com.liferay.portal.kernel.exception.SystemException,
292 com.liferay.portlet.social.NoSuchActivityCounterException;
293
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public int getUserActivityCounters(long groupId,
296 java.lang.String[] rankingNames)
297 throws com.liferay.portal.kernel.exception.SystemException;
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public java.util.List<com.liferay.portal.kernel.util.Tuple> getUserActivityCounters(
301 long groupId, java.lang.String[] rankingNames,
302 java.lang.String[] selectedNames, int start, int end)
303 throws com.liferay.portal.kernel.exception.SystemException;
304
305 public void incrementUserAchievementCounter(long userId, long groupId)
306 throws com.liferay.portal.kernel.exception.PortalException,
307 com.liferay.portal.kernel.exception.SystemException;
308 }