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 com.liferay.portlet.social.model.SocialActivityCounter fetchLatestActivityCounter(
267 long groupId, long classNameId, long classPK, java.lang.String name,
268 int ownerType, boolean retrieveFromCache)
269 throws com.liferay.portal.kernel.exception.SystemException;
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public com.liferay.portlet.social.model.SocialActivityCounter getLatestActivityCounter(
273 long groupId, long classNameId, long classPK, java.lang.String name,
274 int ownerType)
275 throws com.liferay.portal.kernel.exception.SystemException,
276 com.liferay.portlet.social.NoSuchActivityCounterException;
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getOffsetActivityCounterDistribution(
280 long groupId, java.lang.String name, int startOffset, int endOffset)
281 throws com.liferay.portal.kernel.exception.SystemException;
282
283 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
284 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getOffsetActivityCounters(
285 long groupId, java.lang.String name, int startOffset, int endOffset)
286 throws com.liferay.portal.kernel.exception.SystemException;
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getPeriodActivityCounterDistribution(
290 long groupId, java.lang.String name, int startPeriod, int endPeriod)
291 throws com.liferay.portal.kernel.exception.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getPeriodActivityCounters(
295 long groupId, java.lang.String name, int startPeriod, int endPeriod)
296 throws com.liferay.portal.kernel.exception.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public int getUserActivityCounters(long groupId,
300 java.lang.String[] rankingNames)
301 throws com.liferay.portal.kernel.exception.SystemException;
302
303 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304 public java.util.List<com.liferay.portal.kernel.util.Tuple> getUserActivityCounters(
305 long groupId, java.lang.String[] rankingNames,
306 java.lang.String[] selectedNames, int start, int end)
307 throws com.liferay.portal.kernel.exception.SystemException;
308
309 public void incrementUserAchievementCounter(long userId, long groupId)
310 throws com.liferay.portal.kernel.exception.PortalException,
311 com.liferay.portal.kernel.exception.SystemException;
312 }