
com.liferay.fragment.service.http.FragmentEntryLinkServiceHttp Maven / Gradle / Ivy
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
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
* @see FragmentEntryLinkServiceSoap
* @generated
*/
public class FragmentEntryLinkServiceHttp {
public static com.liferay.fragment.model.FragmentEntryLink
addFragmentEntryLink(
HttpPrincipal httpPrincipal, long groupId,
long originalFragmentEntryLinkId, long fragmentEntryId,
long classNameId, long classPK, String css, String html,
String js, String editableValues, String namespace,
int position, String rendererKey,
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, groupId, originalFragmentEntryLinkId,
fragmentEntryId, classNameId, classPK, css, html, js,
editableValues, namespace, position, rendererKey,
serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
e;
}
throw new com.liferay.portal.kernel.exception.SystemException(
e);
}
return (com.liferay.fragment.model.FragmentEntryLink)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static com.liferay.fragment.model.FragmentEntryLink
addFragmentEntryLink(
HttpPrincipal httpPrincipal, long groupId,
long originalFragmentEntryLinkId, long fragmentEntryId,
long classNameId, long classPK, String css, String html,
String js, String configuration, String editableValues,
String namespace, int position, String rendererKey,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
FragmentEntryLinkServiceUtil.class, "addFragmentEntryLink",
_addFragmentEntryLinkParameterTypes1);
MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, originalFragmentEntryLinkId,
fragmentEntryId, classNameId, classPK, css, html, js,
configuration, editableValues, namespace, position, rendererKey,
serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
e;
}
throw new com.liferay.portal.kernel.exception.SystemException(
e);
}
return (com.liferay.fragment.model.FragmentEntryLink)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
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",
_deleteFragmentEntryLinkParameterTypes2);
MethodHandler methodHandler = new MethodHandler(
methodKey, fragmentEntryLinkId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
e;
}
throw new com.liferay.portal.kernel.exception.SystemException(
e);
}
return (com.liferay.fragment.model.FragmentEntryLink)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
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",
_updateFragmentEntryLinkParameterTypes3);
MethodHandler methodHandler = new MethodHandler(
methodKey, fragmentEntryLinkId, editableValues);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
e;
}
throw new com.liferay.portal.kernel.exception.SystemException(
e);
}
return (com.liferay.fragment.model.FragmentEntryLink)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
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",
_updateFragmentEntryLinkParameterTypes4);
MethodHandler methodHandler = new MethodHandler(
methodKey, fragmentEntryLinkId, editableValues,
updateClassedModel);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
e;
}
throw new com.liferay.portal.kernel.exception.SystemException(
e);
}
return (com.liferay.fragment.model.FragmentEntryLink)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static void updateFragmentEntryLinks(
HttpPrincipal httpPrincipal, long groupId, long classNameId,
long classPK, long[] fragmentEntryIds, String editableValues,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
FragmentEntryLinkServiceUtil.class, "updateFragmentEntryLinks",
_updateFragmentEntryLinksParameterTypes5);
MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, classNameId, classPK, fragmentEntryIds,
editableValues, serviceContext);
try {
TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
e;
}
throw new com.liferay.portal.kernel.exception.SystemException(
e);
}
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static void updateFragmentEntryLinks(
HttpPrincipal httpPrincipal,
java.util.Map fragmentEntryLinksEditableValuesMap)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
FragmentEntryLinkServiceUtil.class, "updateFragmentEntryLinks",
_updateFragmentEntryLinksParameterTypes6);
MethodHandler methodHandler = new MethodHandler(
methodKey, fragmentEntryLinksEditableValuesMap);
try {
TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
e;
}
throw new com.liferay.portal.kernel.exception.SystemException(
e);
}
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
private static Log _log = LogFactoryUtil.getLog(
FragmentEntryLinkServiceHttp.class);
private static final Class>[] _addFragmentEntryLinkParameterTypes0 =
new Class[] {
long.class, long.class, long.class, long.class, long.class,
String.class, String.class, String.class, String.class,
String.class, int.class, String.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _addFragmentEntryLinkParameterTypes1 =
new 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,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _deleteFragmentEntryLinkParameterTypes2 =
new Class[] {long.class};
private static final Class>[] _updateFragmentEntryLinkParameterTypes3 =
new Class[] {long.class, String.class};
private static final Class>[] _updateFragmentEntryLinkParameterTypes4 =
new Class[] {long.class, String.class, boolean.class};
private static final Class>[] _updateFragmentEntryLinksParameterTypes5 =
new Class[] {
long.class, long.class, long.class, long[].class, String.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _updateFragmentEntryLinksParameterTypes6 =
new Class[] {java.util.Map.class};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy