001
014
015 package com.liferay.portlet.social.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019
020 import com.liferay.portlet.social.service.SocialActivitySettingServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
066 public class SocialActivitySettingServiceSoap {
067 public static com.liferay.portlet.social.model.SocialActivitySettingSoap[] getActivitySettings(
068 long groupId) throws RemoteException {
069 try {
070 java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> returnValue =
071 SocialActivitySettingServiceUtil.getActivitySettings(groupId);
072
073 return com.liferay.portlet.social.model.SocialActivitySettingSoap.toSoapModels(returnValue);
074 }
075 catch (Exception e) {
076 _log.error(e, e);
077
078 throw new RemoteException(e.getMessage());
079 }
080 }
081
082 public static java.lang.String getJSONActivityDefinitions(long groupId,
083 java.lang.String className) throws RemoteException {
084 try {
085 com.liferay.portal.kernel.json.JSONArray returnValue = SocialActivitySettingServiceUtil.getJSONActivityDefinitions(groupId,
086 className);
087
088 return returnValue.toString();
089 }
090 catch (Exception e) {
091 _log.error(e, e);
092
093 throw new RemoteException(e.getMessage());
094 }
095 }
096
097 public static void updateActivitySetting(long groupId,
098 java.lang.String className, boolean enabled) throws RemoteException {
099 try {
100 SocialActivitySettingServiceUtil.updateActivitySetting(groupId,
101 className, enabled);
102 }
103 catch (Exception e) {
104 _log.error(e, e);
105
106 throw new RemoteException(e.getMessage());
107 }
108 }
109
110 public static void updateActivitySetting(long groupId,
111 java.lang.String className, int activityType,
112 com.liferay.portlet.social.model.SocialActivityCounterDefinition activityCounterDefinition)
113 throws RemoteException {
114 try {
115 SocialActivitySettingServiceUtil.updateActivitySetting(groupId,
116 className, activityType, activityCounterDefinition);
117 }
118 catch (Exception e) {
119 _log.error(e, e);
120
121 throw new RemoteException(e.getMessage());
122 }
123 }
124
125 public static void updateActivitySettings(long groupId,
126 java.lang.String className, int activityType,
127 java.util.List<com.liferay.portlet.social.model.SocialActivityCounterDefinition> activityCounterDefinitions)
128 throws RemoteException {
129 try {
130 SocialActivitySettingServiceUtil.updateActivitySettings(groupId,
131 className, activityType, activityCounterDefinitions);
132 }
133 catch (Exception e) {
134 _log.error(e, e);
135
136 throw new RemoteException(e.getMessage());
137 }
138 }
139
140 private static Log _log = LogFactoryUtil.getLog(SocialActivitySettingServiceSoap.class);
141 }