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.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class SocialActivityAchievementLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.social.model.SocialActivityAchievement addSocialActivityAchievement(
049 com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService()
052 .addSocialActivityAchievement(socialActivityAchievement);
053 }
054
055
061 public static com.liferay.portlet.social.model.SocialActivityAchievement createSocialActivityAchievement(
062 long activityAchievementId) {
063 return getService()
064 .createSocialActivityAchievement(activityAchievementId);
065 }
066
067
074 public static void deleteSocialActivityAchievement(
075 long activityAchievementId)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException {
078 getService().deleteSocialActivityAchievement(activityAchievementId);
079 }
080
081
087 public static void deleteSocialActivityAchievement(
088 com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 getService().deleteSocialActivityAchievement(socialActivityAchievement);
091 }
092
093
100 @SuppressWarnings("rawtypes")
101 public static java.util.List dynamicQuery(
102 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getService().dynamicQuery(dynamicQuery);
105 }
106
107
120 @SuppressWarnings("rawtypes")
121 public static java.util.List dynamicQuery(
122 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
123 int end) throws com.liferay.portal.kernel.exception.SystemException {
124 return getService().dynamicQuery(dynamicQuery, start, end);
125 }
126
127
141 @SuppressWarnings("rawtypes")
142 public static java.util.List dynamicQuery(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
144 int end,
145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getService()
148 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
149 }
150
151
158 public static long dynamicQueryCount(
159 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
160 throws com.liferay.portal.kernel.exception.SystemException {
161 return getService().dynamicQueryCount(dynamicQuery);
162 }
163
164 public static com.liferay.portlet.social.model.SocialActivityAchievement fetchSocialActivityAchievement(
165 long activityAchievementId)
166 throws com.liferay.portal.kernel.exception.SystemException {
167 return getService().fetchSocialActivityAchievement(activityAchievementId);
168 }
169
170
178 public static com.liferay.portlet.social.model.SocialActivityAchievement getSocialActivityAchievement(
179 long activityAchievementId)
180 throws com.liferay.portal.kernel.exception.PortalException,
181 com.liferay.portal.kernel.exception.SystemException {
182 return getService().getSocialActivityAchievement(activityAchievementId);
183 }
184
185 public static com.liferay.portal.model.PersistedModel getPersistedModel(
186 java.io.Serializable primaryKeyObj)
187 throws com.liferay.portal.kernel.exception.PortalException,
188 com.liferay.portal.kernel.exception.SystemException {
189 return getService().getPersistedModel(primaryKeyObj);
190 }
191
192
204 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getSocialActivityAchievements(
205 int start, int end)
206 throws com.liferay.portal.kernel.exception.SystemException {
207 return getService().getSocialActivityAchievements(start, end);
208 }
209
210
216 public static int getSocialActivityAchievementsCount()
217 throws com.liferay.portal.kernel.exception.SystemException {
218 return getService().getSocialActivityAchievementsCount();
219 }
220
221
228 public static com.liferay.portlet.social.model.SocialActivityAchievement updateSocialActivityAchievement(
229 com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement)
230 throws com.liferay.portal.kernel.exception.SystemException {
231 return getService()
232 .updateSocialActivityAchievement(socialActivityAchievement);
233 }
234
235
243 public static com.liferay.portlet.social.model.SocialActivityAchievement updateSocialActivityAchievement(
244 com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement,
245 boolean merge)
246 throws com.liferay.portal.kernel.exception.SystemException {
247 return getService()
248 .updateSocialActivityAchievement(socialActivityAchievement,
249 merge);
250 }
251
252
257 public static java.lang.String getBeanIdentifier() {
258 return getService().getBeanIdentifier();
259 }
260
261
266 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
267 getService().setBeanIdentifier(beanIdentifier);
268 }
269
270 public static void addActivityAchievement(long userId, long groupId,
271 com.liferay.portlet.social.model.SocialAchievement achievement)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException {
274 getService().addActivityAchievement(userId, groupId, achievement);
275 }
276
277 public static com.liferay.portlet.social.model.SocialActivityAchievement fetchUserAchievement(
278 long userId, long groupId, java.lang.String name)
279 throws com.liferay.portal.kernel.exception.SystemException {
280 return getService().fetchUserAchievement(userId, groupId, name);
281 }
282
283 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getGroupAchievements(
284 long groupId)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 return getService().getGroupAchievements(groupId);
287 }
288
289 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getGroupAchievements(
290 long groupId, java.lang.String name)
291 throws com.liferay.portal.kernel.exception.SystemException {
292 return getService().getGroupAchievements(groupId, name);
293 }
294
295 public static int getGroupAchievementsCount(long groupId)
296 throws com.liferay.portal.kernel.exception.SystemException {
297 return getService().getGroupAchievementsCount(groupId);
298 }
299
300 public static int getGroupAchievementsCount(long groupId,
301 java.lang.String name)
302 throws com.liferay.portal.kernel.exception.SystemException {
303 return getService().getGroupAchievementsCount(groupId, name);
304 }
305
306 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getGroupFirstAchievements(
307 long groupId)
308 throws com.liferay.portal.kernel.exception.SystemException {
309 return getService().getGroupFirstAchievements(groupId);
310 }
311
312 public static int getGroupFirstAchievementsCount(long groupId)
313 throws com.liferay.portal.kernel.exception.SystemException {
314 return getService().getGroupFirstAchievementsCount(groupId);
315 }
316
317 public static int getUserAchievementCount(long userId, long groupId,
318 java.lang.String name)
319 throws com.liferay.portal.kernel.exception.SystemException {
320 return getService().getUserAchievementCount(userId, groupId, name);
321 }
322
323 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getUserAchievements(
324 long userId, long groupId, java.lang.String name)
325 throws com.liferay.portal.kernel.exception.SystemException {
326 return getService().getUserAchievements(userId, groupId, name);
327 }
328
329 public static SocialActivityAchievementLocalService getService() {
330 if (_service == null) {
331 _service = (SocialActivityAchievementLocalService)PortalBeanLocatorUtil.locate(SocialActivityAchievementLocalService.class.getName());
332
333 ReferenceRegistry.registerReference(SocialActivityAchievementLocalServiceUtil.class,
334 "_service");
335 MethodCache.remove(SocialActivityAchievementLocalService.class);
336 }
337
338 return _service;
339 }
340
341 public void setService(SocialActivityAchievementLocalService service) {
342 MethodCache.remove(SocialActivityAchievementLocalService.class);
343
344 _service = service;
345
346 ReferenceRegistry.registerReference(SocialActivityAchievementLocalServiceUtil.class,
347 "_service");
348 MethodCache.remove(SocialActivityAchievementLocalService.class);
349 }
350
351 private static SocialActivityAchievementLocalService _service;
352 }