001
014
015 package com.liferay.portal.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portal.kernel.util.MethodHandler;
020 import com.liferay.portal.kernel.util.MethodKey;
021 import com.liferay.portal.security.auth.HttpPrincipal;
022 import com.liferay.portal.service.PluginSettingServiceUtil;
023
024
052 public class PluginSettingServiceHttp {
053 public static com.liferay.portal.model.PluginSetting updatePluginSetting(
054 HttpPrincipal httpPrincipal, long companyId, java.lang.String pluginId,
055 java.lang.String pluginType, java.lang.String roles, boolean active)
056 throws com.liferay.portal.kernel.exception.PortalException,
057 com.liferay.portal.kernel.exception.SystemException {
058 try {
059 MethodKey methodKey = new MethodKey(PluginSettingServiceUtil.class,
060 "updatePluginSetting", _updatePluginSettingParameterTypes0);
061
062 MethodHandler methodHandler = new MethodHandler(methodKey,
063 companyId, pluginId, pluginType, roles, active);
064
065 Object returnObj = null;
066
067 try {
068 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
069 }
070 catch (Exception e) {
071 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
072 throw (com.liferay.portal.kernel.exception.PortalException)e;
073 }
074
075 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
076 throw (com.liferay.portal.kernel.exception.SystemException)e;
077 }
078
079 throw new com.liferay.portal.kernel.exception.SystemException(e);
080 }
081
082 return (com.liferay.portal.model.PluginSetting)returnObj;
083 }
084 catch (com.liferay.portal.kernel.exception.SystemException se) {
085 _log.error(se, se);
086
087 throw se;
088 }
089 }
090
091 private static Log _log = LogFactoryUtil.getLog(PluginSettingServiceHttp.class);
092 private static final Class<?>[] _updatePluginSettingParameterTypes0 = new Class[] {
093 long.class, java.lang.String.class, java.lang.String.class,
094 java.lang.String.class, boolean.class
095 };
096 }