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