All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.fragment.service.http.FragmentEntryLinkServiceHttp Maven / Gradle / Ivy

/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

package com.liferay.fragment.service.http;

import com.liferay.fragment.service.FragmentEntryLinkServiceUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.security.auth.HttpPrincipal;
import com.liferay.portal.kernel.service.http.TunnelUtil;
import com.liferay.portal.kernel.util.MethodHandler;
import com.liferay.portal.kernel.util.MethodKey;

/**
 * Provides the HTTP utility for the
 * FragmentEntryLinkServiceUtil service
 * utility. The
 * static methods of this class calls the same methods of the service utility.
 * However, the signatures are different because it requires an additional
 * HttpPrincipal parameter.
 *
 * 

* The benefits of using the HTTP utility is that it is fast and allows for * tunneling without the cost of serializing to text. The drawback is that it * only works with Java. *

* *

* Set the property tunnel.servlet.hosts.allowed in portal.properties to * configure security. *

* *

* The HTTP utility is only generated for remote services. *

* * @author Brian Wing Shun Chan * @generated */ public class FragmentEntryLinkServiceHttp { public static com.liferay.fragment.model.FragmentEntryLink addFragmentEntryLink( HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, long originalFragmentEntryLinkId, long fragmentEntryId, long segmentsExperienceId, long plid, String css, String html, String js, String configuration, String editableValues, String namespace, int position, String rendererKey, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( FragmentEntryLinkServiceUtil.class, "addFragmentEntryLink", _addFragmentEntryLinkParameterTypes0); MethodHandler methodHandler = new MethodHandler( methodKey, externalReferenceCode, groupId, originalFragmentEntryLinkId, fragmentEntryId, segmentsExperienceId, plid, css, html, js, configuration, editableValues, namespace, position, rendererKey, type, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.fragment.model.FragmentEntryLink)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.fragment.model.FragmentEntryLink deleteFragmentEntryLink( HttpPrincipal httpPrincipal, long fragmentEntryLinkId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( FragmentEntryLinkServiceUtil.class, "deleteFragmentEntryLink", _deleteFragmentEntryLinkParameterTypes1); MethodHandler methodHandler = new MethodHandler( methodKey, fragmentEntryLinkId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.fragment.model.FragmentEntryLink)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.fragment.model.FragmentEntryLink deleteFragmentEntryLink( HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( FragmentEntryLinkServiceUtil.class, "deleteFragmentEntryLink", _deleteFragmentEntryLinkParameterTypes2); MethodHandler methodHandler = new MethodHandler( methodKey, externalReferenceCode, groupId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.fragment.model.FragmentEntryLink)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.fragment.model.FragmentEntryLink getFragmentEntryLinkByExternalReferenceCode( HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( FragmentEntryLinkServiceUtil.class, "getFragmentEntryLinkByExternalReferenceCode", _getFragmentEntryLinkByExternalReferenceCodeParameterTypes3); MethodHandler methodHandler = new MethodHandler( methodKey, externalReferenceCode, groupId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.fragment.model.FragmentEntryLink)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.fragment.model.FragmentEntryLink updateDeleted( HttpPrincipal httpPrincipal, long fragmentEntryLinkId, boolean deleted) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( FragmentEntryLinkServiceUtil.class, "updateDeleted", _updateDeletedParameterTypes4); MethodHandler methodHandler = new MethodHandler( methodKey, fragmentEntryLinkId, deleted); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.fragment.model.FragmentEntryLink)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.fragment.model.FragmentEntryLink updateFragmentEntryLink( HttpPrincipal httpPrincipal, long fragmentEntryLinkId, String editableValues) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( FragmentEntryLinkServiceUtil.class, "updateFragmentEntryLink", _updateFragmentEntryLinkParameterTypes5); MethodHandler methodHandler = new MethodHandler( methodKey, fragmentEntryLinkId, editableValues); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.fragment.model.FragmentEntryLink)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.fragment.model.FragmentEntryLink updateFragmentEntryLink( HttpPrincipal httpPrincipal, long fragmentEntryLinkId, String editableValues, boolean updateClassedModel) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( FragmentEntryLinkServiceUtil.class, "updateFragmentEntryLink", _updateFragmentEntryLinkParameterTypes6); MethodHandler methodHandler = new MethodHandler( methodKey, fragmentEntryLinkId, editableValues, updateClassedModel); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.fragment.model.FragmentEntryLink)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } private static Log _log = LogFactoryUtil.getLog( FragmentEntryLinkServiceHttp.class); private static final Class[] _addFragmentEntryLinkParameterTypes0 = new Class[] { String.class, long.class, long.class, long.class, long.class, long.class, String.class, String.class, String.class, String.class, String.class, String.class, int.class, String.class, int.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _deleteFragmentEntryLinkParameterTypes1 = new Class[] {long.class}; private static final Class[] _deleteFragmentEntryLinkParameterTypes2 = new Class[] {String.class, long.class}; private static final Class[] _getFragmentEntryLinkByExternalReferenceCodeParameterTypes3 = new Class[] {String.class, long.class}; private static final Class[] _updateDeletedParameterTypes4 = new Class[] {long.class, boolean.class}; private static final Class[] _updateFragmentEntryLinkParameterTypes5 = new Class[] {long.class, String.class}; private static final Class[] _updateFragmentEntryLinkParameterTypes6 = new Class[] {long.class, String.class, boolean.class}; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy