001
014
015 package com.liferay.portlet.social.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.http.TunnelUtil;
025
026 import com.liferay.portlet.social.service.SocialRequestServiceUtil;
027
028
056 @ProviderType
057 public class SocialRequestServiceHttp {
058 public static com.liferay.portlet.social.model.SocialRequest updateRequest(
059 HttpPrincipal httpPrincipal, long requestId, int status,
060 com.liferay.portal.theme.ThemeDisplay themeDisplay)
061 throws com.liferay.portal.kernel.exception.PortalException {
062 try {
063 MethodKey methodKey = new MethodKey(SocialRequestServiceUtil.class,
064 "updateRequest", _updateRequestParameterTypes0);
065
066 MethodHandler methodHandler = new MethodHandler(methodKey,
067 requestId, status, themeDisplay);
068
069 Object returnObj = null;
070
071 try {
072 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
073 }
074 catch (Exception e) {
075 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
076 throw (com.liferay.portal.kernel.exception.PortalException)e;
077 }
078
079 throw new com.liferay.portal.kernel.exception.SystemException(e);
080 }
081
082 return (com.liferay.portlet.social.model.SocialRequest)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(SocialRequestServiceHttp.class);
092 private static final Class<?>[] _updateRequestParameterTypes0 = new Class[] {
093 long.class, int.class, com.liferay.portal.theme.ThemeDisplay.class
094 };
095 }