001
014
015 package com.liferay.portlet.social.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class SocialActivityAchievementLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.social.model.SocialActivityAchievement addSocialActivityAchievement(
048 com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService()
051 .addSocialActivityAchievement(socialActivityAchievement);
052 }
053
054
060 public static com.liferay.portlet.social.model.SocialActivityAchievement createSocialActivityAchievement(
061 long activityAchievementId) {
062 return getService()
063 .createSocialActivityAchievement(activityAchievementId);
064 }
065
066
074 public static com.liferay.portlet.social.model.SocialActivityAchievement deleteSocialActivityAchievement(
075 long activityAchievementId)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException {
078 return getService()
079 .deleteSocialActivityAchievement(activityAchievementId);
080 }
081
082
089 public static com.liferay.portlet.social.model.SocialActivityAchievement deleteSocialActivityAchievement(
090 com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement)
091 throws com.liferay.portal.kernel.exception.SystemException {
092 return getService()
093 .deleteSocialActivityAchievement(socialActivityAchievement);
094 }
095
096 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097 return getService().dynamicQuery();
098 }
099
100
107 @SuppressWarnings("rawtypes")
108 public static java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().dynamicQuery(dynamicQuery);
112 }
113
114
127 @SuppressWarnings("rawtypes")
128 public static java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().dynamicQuery(dynamicQuery, start, end);
132 }
133
134
148 @SuppressWarnings("rawtypes")
149 public static java.util.List dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService()
155 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156 }
157
158
165 public static long dynamicQueryCount(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().dynamicQueryCount(dynamicQuery);
169 }
170
171 public static com.liferay.portlet.social.model.SocialActivityAchievement fetchSocialActivityAchievement(
172 long activityAchievementId)
173 throws com.liferay.portal.kernel.exception.SystemException {
174 return getService().fetchSocialActivityAchievement(activityAchievementId);
175 }
176
177
185 public static com.liferay.portlet.social.model.SocialActivityAchievement getSocialActivityAchievement(
186 long activityAchievementId)
187 throws com.liferay.portal.kernel.exception.PortalException,
188 com.liferay.portal.kernel.exception.SystemException {
189 return getService().getSocialActivityAchievement(activityAchievementId);
190 }
191
192 public static com.liferay.portal.model.PersistedModel getPersistedModel(
193 java.io.Serializable primaryKeyObj)
194 throws com.liferay.portal.kernel.exception.PortalException,
195 com.liferay.portal.kernel.exception.SystemException {
196 return getService().getPersistedModel(primaryKeyObj);
197 }
198
199
211 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getSocialActivityAchievements(
212 int start, int end)
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getService().getSocialActivityAchievements(start, end);
215 }
216
217
223 public static int getSocialActivityAchievementsCount()
224 throws com.liferay.portal.kernel.exception.SystemException {
225 return getService().getSocialActivityAchievementsCount();
226 }
227
228
235 public static com.liferay.portlet.social.model.SocialActivityAchievement updateSocialActivityAchievement(
236 com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement)
237 throws com.liferay.portal.kernel.exception.SystemException {
238 return getService()
239 .updateSocialActivityAchievement(socialActivityAchievement);
240 }
241
242
250 public static com.liferay.portlet.social.model.SocialActivityAchievement updateSocialActivityAchievement(
251 com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement,
252 boolean merge)
253 throws com.liferay.portal.kernel.exception.SystemException {
254 return getService()
255 .updateSocialActivityAchievement(socialActivityAchievement,
256 merge);
257 }
258
259
264 public static java.lang.String getBeanIdentifier() {
265 return getService().getBeanIdentifier();
266 }
267
268
273 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
274 getService().setBeanIdentifier(beanIdentifier);
275 }
276
277 public static void addActivityAchievement(long userId, long groupId,
278 com.liferay.portlet.social.model.SocialAchievement achievement)
279 throws com.liferay.portal.kernel.exception.PortalException,
280 com.liferay.portal.kernel.exception.SystemException {
281 getService().addActivityAchievement(userId, groupId, achievement);
282 }
283
284 public static com.liferay.portlet.social.model.SocialActivityAchievement fetchUserAchievement(
285 long userId, long groupId, java.lang.String name)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 return getService().fetchUserAchievement(userId, groupId, name);
288 }
289
290 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getGroupAchievements(
291 long groupId)
292 throws com.liferay.portal.kernel.exception.SystemException {
293 return getService().getGroupAchievements(groupId);
294 }
295
296 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getGroupAchievements(
297 long groupId, java.lang.String name)
298 throws com.liferay.portal.kernel.exception.SystemException {
299 return getService().getGroupAchievements(groupId, name);
300 }
301
302 public static int getGroupAchievementsCount(long groupId)
303 throws com.liferay.portal.kernel.exception.SystemException {
304 return getService().getGroupAchievementsCount(groupId);
305 }
306
307 public static int getGroupAchievementsCount(long groupId,
308 java.lang.String name)
309 throws com.liferay.portal.kernel.exception.SystemException {
310 return getService().getGroupAchievementsCount(groupId, name);
311 }
312
313 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getGroupFirstAchievements(
314 long groupId)
315 throws com.liferay.portal.kernel.exception.SystemException {
316 return getService().getGroupFirstAchievements(groupId);
317 }
318
319 public static int getGroupFirstAchievementsCount(long groupId)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 return getService().getGroupFirstAchievementsCount(groupId);
322 }
323
324 public static int getUserAchievementCount(long userId, long groupId,
325 java.lang.String name)
326 throws com.liferay.portal.kernel.exception.SystemException {
327 return getService().getUserAchievementCount(userId, groupId, name);
328 }
329
330 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getUserAchievements(
331 long userId, long groupId, java.lang.String name)
332 throws com.liferay.portal.kernel.exception.SystemException {
333 return getService().getUserAchievements(userId, groupId, name);
334 }
335
336 public static SocialActivityAchievementLocalService getService() {
337 if (_service == null) {
338 _service = (SocialActivityAchievementLocalService)PortalBeanLocatorUtil.locate(SocialActivityAchievementLocalService.class.getName());
339
340 ReferenceRegistry.registerReference(SocialActivityAchievementLocalServiceUtil.class,
341 "_service");
342 }
343
344 return _service;
345 }
346
347
350 public void setService(SocialActivityAchievementLocalService service) {
351 }
352
353 private static SocialActivityAchievementLocalService _service;
354 }