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

com.liferay.dynamic.data.mapping.service.http.DDMFormInstanceServiceHttp Maven / Gradle / Ivy

The newest version!
/**
 * 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.dynamic.data.mapping.service.http;

import com.liferay.dynamic.data.mapping.service.DDMFormInstanceServiceUtil;
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
 * DDMFormInstanceServiceUtil 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 DDMFormInstanceServiceHttp { public static com.liferay.dynamic.data.mapping.model.DDMFormInstance addFormInstance( HttpPrincipal httpPrincipal, long groupId, long ddmStructureId, java.util.Map nameMap, java.util.Map descriptionMap, com.liferay.dynamic.data.mapping.storage.DDMFormValues settingsDDMFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "addFormInstance", _addFormInstanceParameterTypes0); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, ddmStructureId, nameMap, descriptionMap, settingsDDMFormValues, 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.dynamic.data.mapping.model.DDMFormInstance) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.dynamic.data.mapping.model.DDMFormInstance addFormInstance( HttpPrincipal httpPrincipal, long groupId, java.util.Map nameMap, java.util.Map descriptionMap, com.liferay.dynamic.data.mapping.model.DDMForm ddmForm, com.liferay.dynamic.data.mapping.model.DDMFormLayout ddmFormLayout, com.liferay.dynamic.data.mapping.storage.DDMFormValues settingsDDMFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "addFormInstance", _addFormInstanceParameterTypes1); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, nameMap, descriptionMap, ddmForm, ddmFormLayout, settingsDDMFormValues, 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.dynamic.data.mapping.model.DDMFormInstance) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.dynamic.data.mapping.model.DDMFormInstance copyFormInstance( HttpPrincipal httpPrincipal, long groupId, java.util.Map nameMap, com.liferay.dynamic.data.mapping.model.DDMFormInstance sourceDDMFormInstance, com.liferay.dynamic.data.mapping.storage.DDMFormValues settingsDDMFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "copyFormInstance", _copyFormInstanceParameterTypes2); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, nameMap, sourceDDMFormInstance, settingsDDMFormValues, 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.dynamic.data.mapping.model.DDMFormInstance) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static void deleteFormInstance( HttpPrincipal httpPrincipal, long ddmFormInstanceId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "deleteFormInstance", _deleteFormInstanceParameterTypes3); MethodHandler methodHandler = new MethodHandler( methodKey, ddmFormInstanceId); try { 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); } } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.dynamic.data.mapping.model.DDMFormInstance fetchFormInstance( HttpPrincipal httpPrincipal, long ddmFormInstanceId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "fetchFormInstance", _fetchFormInstanceParameterTypes4); MethodHandler methodHandler = new MethodHandler( methodKey, ddmFormInstanceId); 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.dynamic.data.mapping.model.DDMFormInstance) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.dynamic.data.mapping.model.DDMFormInstance getFormInstance(HttpPrincipal httpPrincipal, long ddmFormInstanceId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "getFormInstance", _getFormInstanceParameterTypes5); MethodHandler methodHandler = new MethodHandler( methodKey, ddmFormInstanceId); 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.dynamic.data.mapping.model.DDMFormInstance) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getFormInstances( HttpPrincipal httpPrincipal, long companyId, long groupId, int start, int end) { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "getFormInstances", _getFormInstancesParameterTypes6); MethodHandler methodHandler = new MethodHandler( methodKey, companyId, groupId, start, end); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List ) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static int getFormInstancesCount( HttpPrincipal httpPrincipal, long companyId, long groupId) { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "getFormInstancesCount", _getFormInstancesCountParameterTypes7); MethodHandler methodHandler = new MethodHandler( methodKey, companyId, groupId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static int getFormInstancesCount( HttpPrincipal httpPrincipal, String uuid) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "getFormInstancesCount", _getFormInstancesCountParameterTypes8); MethodHandler methodHandler = new MethodHandler(methodKey, uuid); 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 ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List search( HttpPrincipal httpPrincipal, long companyId, long groupId, String keywords, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "search", _searchParameterTypes9); MethodHandler methodHandler = new MethodHandler( methodKey, companyId, groupId, keywords, status, start, end, orderByComparator); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List ) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List search( HttpPrincipal httpPrincipal, long companyId, long groupId, String keywords, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "search", _searchParameterTypes10); MethodHandler methodHandler = new MethodHandler( methodKey, companyId, groupId, keywords, start, end, orderByComparator); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List ) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List search( HttpPrincipal httpPrincipal, long companyId, long groupId, String[] names, String[] descriptions, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "search", _searchParameterTypes11); MethodHandler methodHandler = new MethodHandler( methodKey, companyId, groupId, names, descriptions, andOperator, start, end, orderByComparator); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List ) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static int searchCount( HttpPrincipal httpPrincipal, long companyId, long groupId, String keywords) { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "searchCount", _searchCountParameterTypes12); MethodHandler methodHandler = new MethodHandler( methodKey, companyId, groupId, keywords); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static int searchCount( HttpPrincipal httpPrincipal, long companyId, long groupId, String keywords, int status) { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "searchCount", _searchCountParameterTypes13); MethodHandler methodHandler = new MethodHandler( methodKey, companyId, groupId, keywords, status); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static int searchCount( HttpPrincipal httpPrincipal, long companyId, long groupId, String[] names, String[] descriptions, boolean andOperator) { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "searchCount", _searchCountParameterTypes14); MethodHandler methodHandler = new MethodHandler( methodKey, companyId, groupId, names, descriptions, andOperator); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static void sendEmail( HttpPrincipal httpPrincipal, long formInstanceId, String message, String subject, String[] toEmailAddresses) throws Exception { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "sendEmail", _sendEmailParameterTypes15); MethodHandler methodHandler = new MethodHandler( methodKey, formInstanceId, message, subject, toEmailAddresses); try { TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof Exception) { throw (Exception)exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.dynamic.data.mapping.model.DDMFormInstance updateFormInstance( HttpPrincipal httpPrincipal, long formInstanceId, com.liferay.dynamic.data.mapping.storage.DDMFormValues settingsDDMFormValues) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "updateFormInstance", _updateFormInstanceParameterTypes16); MethodHandler methodHandler = new MethodHandler( methodKey, formInstanceId, settingsDDMFormValues); 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.dynamic.data.mapping.model.DDMFormInstance) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.dynamic.data.mapping.model.DDMFormInstance updateFormInstance( HttpPrincipal httpPrincipal, long ddmFormInstanceId, java.util.Map nameMap, java.util.Map descriptionMap, com.liferay.dynamic.data.mapping.model.DDMForm ddmForm, com.liferay.dynamic.data.mapping.model.DDMFormLayout ddmFormLayout, com.liferay.dynamic.data.mapping.storage.DDMFormValues settingsDDMFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( DDMFormInstanceServiceUtil.class, "updateFormInstance", _updateFormInstanceParameterTypes17); MethodHandler methodHandler = new MethodHandler( methodKey, ddmFormInstanceId, nameMap, descriptionMap, ddmForm, ddmFormLayout, settingsDDMFormValues, 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.dynamic.data.mapping.model.DDMFormInstance) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } private static Log _log = LogFactoryUtil.getLog( DDMFormInstanceServiceHttp.class); private static final Class[] _addFormInstanceParameterTypes0 = new Class[] { long.class, long.class, java.util.Map.class, java.util.Map.class, com.liferay.dynamic.data.mapping.storage.DDMFormValues.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _addFormInstanceParameterTypes1 = new Class[] { long.class, java.util.Map.class, java.util.Map.class, com.liferay.dynamic.data.mapping.model.DDMForm.class, com.liferay.dynamic.data.mapping.model.DDMFormLayout.class, com.liferay.dynamic.data.mapping.storage.DDMFormValues.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _copyFormInstanceParameterTypes2 = new Class[] { long.class, java.util.Map.class, com.liferay.dynamic.data.mapping.model.DDMFormInstance.class, com.liferay.dynamic.data.mapping.storage.DDMFormValues.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _deleteFormInstanceParameterTypes3 = new Class[] {long.class}; private static final Class[] _fetchFormInstanceParameterTypes4 = new Class[] {long.class}; private static final Class[] _getFormInstanceParameterTypes5 = new Class[] {long.class}; private static final Class[] _getFormInstancesParameterTypes6 = new Class[] {long.class, long.class, int.class, int.class}; private static final Class[] _getFormInstancesCountParameterTypes7 = new Class[] {long.class, long.class}; private static final Class[] _getFormInstancesCountParameterTypes8 = new Class[] {String.class}; private static final Class[] _searchParameterTypes9 = new Class[] { long.class, long.class, String.class, int.class, int.class, int.class, com.liferay.portal.kernel.util.OrderByComparator.class }; private static final Class[] _searchParameterTypes10 = new Class[] { long.class, long.class, String.class, int.class, int.class, com.liferay.portal.kernel.util.OrderByComparator.class }; private static final Class[] _searchParameterTypes11 = new Class[] { long.class, long.class, String[].class, String[].class, boolean.class, int.class, int.class, com.liferay.portal.kernel.util.OrderByComparator.class }; private static final Class[] _searchCountParameterTypes12 = new Class[] { long.class, long.class, String.class }; private static final Class[] _searchCountParameterTypes13 = new Class[] { long.class, long.class, String.class, int.class }; private static final Class[] _searchCountParameterTypes14 = new Class[] { long.class, long.class, String[].class, String[].class, boolean.class }; private static final Class[] _sendEmailParameterTypes15 = new Class[] { long.class, String.class, String.class, String[].class }; private static final Class[] _updateFormInstanceParameterTypes16 = new Class[] { long.class, com.liferay.dynamic.data.mapping.storage.DDMFormValues.class }; private static final Class[] _updateFormInstanceParameterTypes17 = new Class[] { long.class, java.util.Map.class, java.util.Map.class, com.liferay.dynamic.data.mapping.model.DDMForm.class, com.liferay.dynamic.data.mapping.model.DDMFormLayout.class, com.liferay.dynamic.data.mapping.storage.DDMFormValues.class, com.liferay.portal.kernel.service.ServiceContext.class }; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy