1
14
15 package com.liferay.portal.service.http;
16
17 import com.liferay.portal.kernel.log.Log;
18 import com.liferay.portal.kernel.log.LogFactoryUtil;
19 import com.liferay.portal.kernel.util.MethodHandler;
20 import com.liferay.portal.kernel.util.MethodKey;
21 import com.liferay.portal.security.auth.HttpPrincipal;
22 import com.liferay.portal.service.PluginSettingServiceUtil;
23
24
61 public class PluginSettingServiceHttp {
62 public static com.liferay.portal.model.PluginSetting updatePluginSetting(
63 HttpPrincipal httpPrincipal, long companyId, java.lang.String pluginId,
64 java.lang.String pluginType, java.lang.String roles, boolean active)
65 throws com.liferay.portal.PortalException,
66 com.liferay.portal.SystemException {
67 try {
68 MethodKey methodKey = new MethodKey(PluginSettingServiceUtil.class.getName(),
69 "updatePluginSetting", _updatePluginSettingParameterTypes0);
70
71 MethodHandler methodHandler = new MethodHandler(methodKey,
72 companyId, pluginId, pluginType, roles, active);
73
74 Object returnObj = null;
75
76 try {
77 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
78 }
79 catch (Exception e) {
80 if (e instanceof com.liferay.portal.PortalException) {
81 throw (com.liferay.portal.PortalException)e;
82 }
83
84 if (e instanceof com.liferay.portal.SystemException) {
85 throw (com.liferay.portal.SystemException)e;
86 }
87
88 throw new com.liferay.portal.SystemException(e);
89 }
90
91 return (com.liferay.portal.model.PluginSetting)returnObj;
92 }
93 catch (com.liferay.portal.SystemException se) {
94 _log.error(se, se);
95
96 throw se;
97 }
98 }
99
100 private static Log _log = LogFactoryUtil.getLog(PluginSettingServiceHttp.class);
101 private static final Class<?>[] _updatePluginSettingParameterTypes0 = new Class[] {
102 long.class, java.lang.String.class, java.lang.String.class,
103 java.lang.String.class, boolean.class
104 };
105 }