/** * 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.dynamic.data.mapping.service.http; import aQute.bnd.annotation.ProviderType; import com.liferay.dynamic.data.mapping.service.DDMStructureServiceUtil; 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 * {@link DDMStructureServiceUtil} 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 * {@link HttpPrincipal} parameter. * * <p> * 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. * </p> * * <p> * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to * configure security. * </p> * * <p> * The HTTP utility is only generated for remote services. * </p> * * @author Brian Wing Shun Chan * @see DDMStructureServiceSoap * @see HttpPrincipal * @see DDMStructureServiceUtil * @generated */ @ProviderType public class DDMStructureServiceHttp { public static com.liferay.dynamic.data.mapping.model.DDMStructure addStructure( HttpPrincipal httpPrincipal, long userId, long groupId, long classNameId, java.util.Map<java.util.Locale, java.lang.String> nameMap, java.util.Map<java.util.Locale, java.lang.String> descriptionMap, com.liferay.dynamic.data.mapping.model.DDMForm ddmForm, com.liferay.dynamic.data.mapping.model.DDMFormLayout ddmFormLayout, java.lang.String storageType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "addStructure", _addStructureParameterTypes0); MethodHandler methodHandler = new MethodHandler(methodKey, userId, groupId, classNameId, nameMap, descriptionMap, ddmForm, ddmFormLayout, storageType, 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.dynamic.data.mapping.model.DDMStructure)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.dynamic.data.mapping.model.DDMStructure addStructure( HttpPrincipal httpPrincipal, long userId, long groupId, long classNameId, java.util.Map<java.util.Locale, java.lang.String> nameMap, java.util.Map<java.util.Locale, java.lang.String> descriptionMap, java.lang.String xsd, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "addStructure", _addStructureParameterTypes1); MethodHandler methodHandler = new MethodHandler(methodKey, userId, groupId, classNameId, nameMap, descriptionMap, xsd, 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.dynamic.data.mapping.model.DDMStructure)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.dynamic.data.mapping.model.DDMStructure addStructure( HttpPrincipal httpPrincipal, long groupId, long parentStructureId, long classNameId, java.lang.String structureKey, java.util.Map<java.util.Locale, java.lang.String> nameMap, java.util.Map<java.util.Locale, java.lang.String> descriptionMap, com.liferay.dynamic.data.mapping.model.DDMForm ddmForm, com.liferay.dynamic.data.mapping.model.DDMFormLayout ddmFormLayout, java.lang.String storageType, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "addStructure", _addStructureParameterTypes2); MethodHandler methodHandler = new MethodHandler(methodKey, groupId, parentStructureId, classNameId, structureKey, nameMap, descriptionMap, ddmForm, ddmFormLayout, storageType, type, 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.dynamic.data.mapping.model.DDMStructure)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.dynamic.data.mapping.model.DDMStructure addStructure( HttpPrincipal httpPrincipal, long groupId, long parentStructureId, long classNameId, java.lang.String structureKey, java.util.Map<java.util.Locale, java.lang.String> nameMap, java.util.Map<java.util.Locale, java.lang.String> descriptionMap, java.lang.String xsd, java.lang.String storageType, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "addStructure", _addStructureParameterTypes3); MethodHandler methodHandler = new MethodHandler(methodKey, groupId, parentStructureId, classNameId, structureKey, nameMap, descriptionMap, xsd, storageType, type, 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.dynamic.data.mapping.model.DDMStructure)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.dynamic.data.mapping.model.DDMStructure addStructure( HttpPrincipal httpPrincipal, long userId, long groupId, java.lang.String parentStructureKey, long classNameId, java.lang.String structureKey, java.util.Map<java.util.Locale, java.lang.String> nameMap, java.util.Map<java.util.Locale, java.lang.String> descriptionMap, com.liferay.dynamic.data.mapping.model.DDMForm ddmForm, com.liferay.dynamic.data.mapping.model.DDMFormLayout ddmFormLayout, java.lang.String storageType, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "addStructure", _addStructureParameterTypes4); MethodHandler methodHandler = new MethodHandler(methodKey, userId, groupId, parentStructureKey, classNameId, structureKey, nameMap, descriptionMap, ddmForm, ddmFormLayout, storageType, type, 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.dynamic.data.mapping.model.DDMStructure)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.dynamic.data.mapping.model.DDMStructure addStructure( HttpPrincipal httpPrincipal, long userId, long groupId, java.lang.String parentStructureKey, long classNameId, java.lang.String structureKey, java.util.Map<java.util.Locale, java.lang.String> nameMap, java.util.Map<java.util.Locale, java.lang.String> descriptionMap, java.lang.String xsd, java.lang.String storageType, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "addStructure", _addStructureParameterTypes5); MethodHandler methodHandler = new MethodHandler(methodKey, userId, groupId, parentStructureKey, classNameId, structureKey, nameMap, descriptionMap, xsd, storageType, type, 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.dynamic.data.mapping.model.DDMStructure)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.dynamic.data.mapping.model.DDMStructure copyStructure( HttpPrincipal httpPrincipal, long structureId, java.util.Map<java.util.Locale, java.lang.String> nameMap, java.util.Map<java.util.Locale, java.lang.String> descriptionMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "copyStructure", _copyStructureParameterTypes6); MethodHandler methodHandler = new MethodHandler(methodKey, structureId, nameMap, descriptionMap, 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.dynamic.data.mapping.model.DDMStructure)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.dynamic.data.mapping.model.DDMStructure copyStructure( HttpPrincipal httpPrincipal, long structureId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "copyStructure", _copyStructureParameterTypes7); MethodHandler methodHandler = new MethodHandler(methodKey, structureId, 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.dynamic.data.mapping.model.DDMStructure)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static void deleteStructure(HttpPrincipal httpPrincipal, long structureId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "deleteStructure", _deleteStructureParameterTypes8); MethodHandler methodHandler = new MethodHandler(methodKey, structureId); 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 com.liferay.dynamic.data.mapping.model.DDMStructure fetchStructure( HttpPrincipal httpPrincipal, long groupId, long classNameId, java.lang.String structureKey) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "fetchStructure", _fetchStructureParameterTypes9); MethodHandler methodHandler = new MethodHandler(methodKey, groupId, classNameId, structureKey); 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.dynamic.data.mapping.model.DDMStructure)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.dynamic.data.mapping.model.DDMStructure fetchStructure( HttpPrincipal httpPrincipal, long groupId, long classNameId, java.lang.String structureKey, boolean includeAncestorStructures) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "fetchStructure", _fetchStructureParameterTypes10); MethodHandler methodHandler = new MethodHandler(methodKey, groupId, classNameId, structureKey, includeAncestorStructures); 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.dynamic.data.mapping.model.DDMStructure)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.dynamic.data.mapping.model.DDMStructure getStructure( HttpPrincipal httpPrincipal, long structureId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "getStructure", _getStructureParameterTypes11); MethodHandler methodHandler = new MethodHandler(methodKey, structureId); 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.dynamic.data.mapping.model.DDMStructure)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.dynamic.data.mapping.model.DDMStructure getStructure( HttpPrincipal httpPrincipal, long groupId, long classNameId, java.lang.String structureKey) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "getStructure", _getStructureParameterTypes12); MethodHandler methodHandler = new MethodHandler(methodKey, groupId, classNameId, structureKey); 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.dynamic.data.mapping.model.DDMStructure)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.dynamic.data.mapping.model.DDMStructure getStructure( HttpPrincipal httpPrincipal, long groupId, long classNameId, java.lang.String structureKey, boolean includeAncestorStructures) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "getStructure", _getStructureParameterTypes13); MethodHandler methodHandler = new MethodHandler(methodKey, groupId, classNameId, structureKey, includeAncestorStructures); 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.dynamic.data.mapping.model.DDMStructure)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static java.util.List<com.liferay.dynamic.data.mapping.model.DDMStructure> getStructures( HttpPrincipal httpPrincipal, long companyId, long[] groupIds, long classNameId, int status) { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "getStructures", _getStructuresParameterTypes14); MethodHandler methodHandler = new MethodHandler(methodKey, companyId, groupIds, classNameId, status); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { throw new com.liferay.portal.kernel.exception.SystemException(e); } return (java.util.List<com.liferay.dynamic.data.mapping.model.DDMStructure>)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static java.util.List<com.liferay.dynamic.data.mapping.model.DDMStructure> getStructures( HttpPrincipal httpPrincipal, long companyId, long[] groupIds, long classNameId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.dynamic.data.mapping.model.DDMStructure> orderByComparator) { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "getStructures", _getStructuresParameterTypes15); MethodHandler methodHandler = new MethodHandler(methodKey, companyId, groupIds, classNameId, status, start, end, orderByComparator); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { throw new com.liferay.portal.kernel.exception.SystemException(e); } return (java.util.List<com.liferay.dynamic.data.mapping.model.DDMStructure>)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static void revertStructure(HttpPrincipal httpPrincipal, long structureId, java.lang.String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "revertStructure", _revertStructureParameterTypes16); MethodHandler methodHandler = new MethodHandler(methodKey, structureId, version, 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 java.util.List<com.liferay.dynamic.data.mapping.model.DDMStructure> search( HttpPrincipal httpPrincipal, long companyId, long[] groupIds, long classNameId, java.lang.String keywords, int type, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.dynamic.data.mapping.model.DDMStructure> orderByComparator) { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "search", _searchParameterTypes17); MethodHandler methodHandler = new MethodHandler(methodKey, companyId, groupIds, classNameId, keywords, type, status, start, end, orderByComparator); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { throw new com.liferay.portal.kernel.exception.SystemException(e); } return (java.util.List<com.liferay.dynamic.data.mapping.model.DDMStructure>)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static java.util.List<com.liferay.dynamic.data.mapping.model.DDMStructure> search( HttpPrincipal httpPrincipal, long companyId, long[] groupIds, long classNameId, java.lang.String keywords, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.dynamic.data.mapping.model.DDMStructure> orderByComparator) { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "search", _searchParameterTypes18); MethodHandler methodHandler = new MethodHandler(methodKey, companyId, groupIds, classNameId, keywords, status, start, end, orderByComparator); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { throw new com.liferay.portal.kernel.exception.SystemException(e); } return (java.util.List<com.liferay.dynamic.data.mapping.model.DDMStructure>)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static java.util.List<com.liferay.dynamic.data.mapping.model.DDMStructure> search( HttpPrincipal httpPrincipal, long companyId, long[] groupIds, long classNameId, java.lang.String name, java.lang.String description, java.lang.String storageType, int type, int status, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.dynamic.data.mapping.model.DDMStructure> orderByComparator) { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "search", _searchParameterTypes19); MethodHandler methodHandler = new MethodHandler(methodKey, companyId, groupIds, classNameId, name, description, storageType, type, status, andOperator, start, end, orderByComparator); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { throw new com.liferay.portal.kernel.exception.SystemException(e); } return (java.util.List<com.liferay.dynamic.data.mapping.model.DDMStructure>)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static int searchCount(HttpPrincipal httpPrincipal, long companyId, long[] groupIds, long classNameId, java.lang.String keywords, int status) { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "searchCount", _searchCountParameterTypes20); MethodHandler methodHandler = new MethodHandler(methodKey, companyId, groupIds, classNameId, keywords, status); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { throw new com.liferay.portal.kernel.exception.SystemException(e); } return ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static int searchCount(HttpPrincipal httpPrincipal, long companyId, long[] groupIds, long classNameId, java.lang.String keywords, int type, int status) { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "searchCount", _searchCountParameterTypes21); MethodHandler methodHandler = new MethodHandler(methodKey, companyId, groupIds, classNameId, keywords, type, status); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { throw new com.liferay.portal.kernel.exception.SystemException(e); } return ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static int searchCount(HttpPrincipal httpPrincipal, long companyId, long[] groupIds, long classNameId, java.lang.String name, java.lang.String description, java.lang.String storageType, int type, int status, boolean andOperator) { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "searchCount", _searchCountParameterTypes22); MethodHandler methodHandler = new MethodHandler(methodKey, companyId, groupIds, classNameId, name, description, storageType, type, status, andOperator); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { throw new com.liferay.portal.kernel.exception.SystemException(e); } return ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.dynamic.data.mapping.model.DDMStructure updateStructure( HttpPrincipal httpPrincipal, long groupId, long parentStructureId, long classNameId, java.lang.String structureKey, java.util.Map<java.util.Locale, java.lang.String> nameMap, java.util.Map<java.util.Locale, java.lang.String> descriptionMap, com.liferay.dynamic.data.mapping.model.DDMForm ddmForm, com.liferay.dynamic.data.mapping.model.DDMFormLayout ddmFormLayout, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "updateStructure", _updateStructureParameterTypes23); MethodHandler methodHandler = new MethodHandler(methodKey, groupId, parentStructureId, classNameId, structureKey, nameMap, descriptionMap, ddmForm, ddmFormLayout, 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.dynamic.data.mapping.model.DDMStructure)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.dynamic.data.mapping.model.DDMStructure updateStructure( HttpPrincipal httpPrincipal, long groupId, long parentStructureId, long classNameId, java.lang.String structureKey, java.util.Map<java.util.Locale, java.lang.String> nameMap, java.util.Map<java.util.Locale, java.lang.String> descriptionMap, java.lang.String definition, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "updateStructure", _updateStructureParameterTypes24); MethodHandler methodHandler = new MethodHandler(methodKey, groupId, parentStructureId, classNameId, structureKey, nameMap, descriptionMap, definition, 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.dynamic.data.mapping.model.DDMStructure)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.dynamic.data.mapping.model.DDMStructure updateStructure( HttpPrincipal httpPrincipal, long structureId, long parentStructureId, java.util.Map<java.util.Locale, java.lang.String> nameMap, java.util.Map<java.util.Locale, java.lang.String> descriptionMap, com.liferay.dynamic.data.mapping.model.DDMForm ddmForm, com.liferay.dynamic.data.mapping.model.DDMFormLayout ddmFormLayout, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "updateStructure", _updateStructureParameterTypes25); MethodHandler methodHandler = new MethodHandler(methodKey, structureId, parentStructureId, nameMap, descriptionMap, ddmForm, ddmFormLayout, 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.dynamic.data.mapping.model.DDMStructure)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.dynamic.data.mapping.model.DDMStructure updateStructure( HttpPrincipal httpPrincipal, long structureId, long parentStructureId, java.util.Map<java.util.Locale, java.lang.String> nameMap, java.util.Map<java.util.Locale, java.lang.String> descriptionMap, java.lang.String definition, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class, "updateStructure", _updateStructureParameterTypes26); MethodHandler methodHandler = new MethodHandler(methodKey, structureId, parentStructureId, nameMap, descriptionMap, definition, 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.dynamic.data.mapping.model.DDMStructure)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } private static Log _log = LogFactoryUtil.getLog(DDMStructureServiceHttp.class); private static final Class<?>[] _addStructureParameterTypes0 = new Class[] { long.class, long.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, java.lang.String.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class<?>[] _addStructureParameterTypes1 = new Class[] { long.class, long.class, long.class, java.util.Map.class, java.util.Map.class, java.lang.String.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class<?>[] _addStructureParameterTypes2 = new Class[] { long.class, long.class, long.class, java.lang.String.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, java.lang.String.class, int.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class<?>[] _addStructureParameterTypes3 = new Class[] { long.class, long.class, long.class, java.lang.String.class, java.util.Map.class, java.util.Map.class, java.lang.String.class, java.lang.String.class, int.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class<?>[] _addStructureParameterTypes4 = new Class[] { long.class, long.class, java.lang.String.class, long.class, java.lang.String.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, java.lang.String.class, int.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class<?>[] _addStructureParameterTypes5 = new Class[] { long.class, long.class, java.lang.String.class, long.class, java.lang.String.class, java.util.Map.class, java.util.Map.class, java.lang.String.class, java.lang.String.class, int.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class<?>[] _copyStructureParameterTypes6 = new Class[] { long.class, java.util.Map.class, java.util.Map.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class<?>[] _copyStructureParameterTypes7 = new Class[] { long.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class<?>[] _deleteStructureParameterTypes8 = new Class[] { long.class }; private static final Class<?>[] _fetchStructureParameterTypes9 = new Class[] { long.class, long.class, java.lang.String.class }; private static final Class<?>[] _fetchStructureParameterTypes10 = new Class[] { long.class, long.class, java.lang.String.class, boolean.class }; private static final Class<?>[] _getStructureParameterTypes11 = new Class[] { long.class }; private static final Class<?>[] _getStructureParameterTypes12 = new Class[] { long.class, long.class, java.lang.String.class }; private static final Class<?>[] _getStructureParameterTypes13 = new Class[] { long.class, long.class, java.lang.String.class, boolean.class }; private static final Class<?>[] _getStructuresParameterTypes14 = new Class[] { long.class, long[].class, long.class, int.class }; private static final Class<?>[] _getStructuresParameterTypes15 = new Class[] { long.class, long[].class, long.class, int.class, int.class, int.class, com.liferay.portal.kernel.util.OrderByComparator.class }; private static final Class<?>[] _revertStructureParameterTypes16 = new Class[] { long.class, java.lang.String.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class<?>[] _searchParameterTypes17 = new Class[] { long.class, long[].class, long.class, java.lang.String.class, int.class, int.class, int.class, int.class, com.liferay.portal.kernel.util.OrderByComparator.class }; private static final Class<?>[] _searchParameterTypes18 = new Class[] { long.class, long[].class, long.class, java.lang.String.class, int.class, int.class, int.class, com.liferay.portal.kernel.util.OrderByComparator.class }; private static final Class<?>[] _searchParameterTypes19 = new Class[] { long.class, long[].class, long.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, int.class, int.class, boolean.class, int.class, int.class, com.liferay.portal.kernel.util.OrderByComparator.class }; private static final Class<?>[] _searchCountParameterTypes20 = new Class[] { long.class, long[].class, long.class, java.lang.String.class, int.class }; private static final Class<?>[] _searchCountParameterTypes21 = new Class[] { long.class, long[].class, long.class, java.lang.String.class, int.class, int.class }; private static final Class<?>[] _searchCountParameterTypes22 = new Class[] { long.class, long[].class, long.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, int.class, int.class, boolean.class }; private static final Class<?>[] _updateStructureParameterTypes23 = new Class[] { long.class, long.class, long.class, java.lang.String.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.portal.kernel.service.ServiceContext.class }; private static final Class<?>[] _updateStructureParameterTypes24 = new Class[] { long.class, long.class, long.class, java.lang.String.class, java.util.Map.class, java.util.Map.class, java.lang.String.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class<?>[] _updateStructureParameterTypes25 = new Class[] { long.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.portal.kernel.service.ServiceContext.class }; private static final Class<?>[] _updateStructureParameterTypes26 = new Class[] { long.class, long.class, java.util.Map.class, java.util.Map.class, java.lang.String.class, com.liferay.portal.kernel.service.ServiceContext.class }; }