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
034 public class SocialActivitySettingServiceUtil {
035
040
041
046 public static java.lang.String getBeanIdentifier() {
047 return getService().getBeanIdentifier();
048 }
049
050
055 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056 getService().setBeanIdentifier(beanIdentifier);
057 }
058
059 public static com.liferay.portlet.social.model.SocialActivityDefinition getActivityDefinition(
060 long groupId, java.lang.String className, int activityType)
061 throws com.liferay.portal.kernel.exception.PortalException,
062 com.liferay.portal.kernel.exception.SystemException {
063 return getService()
064 .getActivityDefinition(groupId, className, activityType);
065 }
066
067 public static java.util.List<com.liferay.portlet.social.model.SocialActivityDefinition> getActivityDefinitions(
068 long groupId, java.lang.String className)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException {
071 return getService().getActivityDefinitions(groupId, className);
072 }
073
074 public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> getActivitySettings(
075 long groupId)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException {
078 return getService().getActivitySettings(groupId);
079 }
080
081 public static com.liferay.portal.kernel.json.JSONArray getJSONActivityDefinitions(
082 long groupId, java.lang.String className)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException {
085 return getService().getJSONActivityDefinitions(groupId, className);
086 }
087
088 public static void updateActivitySetting(long groupId,
089 java.lang.String className, boolean enabled)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException {
092 getService().updateActivitySetting(groupId, className, enabled);
093 }
094
095 public static void updateActivitySetting(long groupId,
096 java.lang.String className, int activityType,
097 com.liferay.portlet.social.model.SocialActivityCounterDefinition activityCounterDefinition)
098 throws com.liferay.portal.kernel.exception.PortalException,
099 com.liferay.portal.kernel.exception.SystemException {
100 getService()
101 .updateActivitySetting(groupId, className, activityType,
102 activityCounterDefinition);
103 }
104
105 public static void updateActivitySettings(long groupId,
106 java.lang.String className, int activityType,
107 java.util.List<com.liferay.portlet.social.model.SocialActivityCounterDefinition> activityCounterDefinitions)
108 throws com.liferay.portal.kernel.exception.PortalException,
109 com.liferay.portal.kernel.exception.SystemException {
110 getService()
111 .updateActivitySettings(groupId, className, activityType,
112 activityCounterDefinitions);
113 }
114
115 public static SocialActivitySettingService getService() {
116 if (_service == null) {
117 _service = (SocialActivitySettingService)PortalBeanLocatorUtil.locate(SocialActivitySettingService.class.getName());
118
119 ReferenceRegistry.registerReference(SocialActivitySettingServiceUtil.class,
120 "_service");
121 }
122
123 return _service;
124 }
125
126
129 public void setService(SocialActivitySettingService service) {
130 }
131
132 private static SocialActivitySettingService _service;
133 }