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

com.liferay.search.experiences.service.http.SXPBlueprintServiceSoap Maven / Gradle / Ivy

/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * The contents of this file are subject to the terms of the Liferay Enterprise
 * Subscription License ("License"). You may not use this file except in
 * compliance with the License. You can obtain a copy of the License by
 * contacting Liferay, Inc. See the License for the specific language governing
 * permissions and limitations under the License, including but not limited to
 * distribution rights of the Software.
 *
 *
 *
 */

package com.liferay.search.experiences.service.http;

import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.LocalizationUtil;
import com.liferay.search.experiences.service.SXPBlueprintServiceUtil;

import java.rmi.RemoteException;

import java.util.Locale;
import java.util.Map;

/**
 * Provides the SOAP utility for the
 * SXPBlueprintServiceUtil service
 * utility. The static methods of this class call the same methods of the
 * service utility. However, the signatures are different because it is
 * difficult for SOAP to support certain types.
 *
 * 

* ServiceBuilder follows certain rules in translating the methods. For example, * if the method in the service utility returns a java.util.List, * that is translated to an array of * com.liferay.search.experiences.model.SXPBlueprintSoap. If the method in the * service utility returns a * com.liferay.search.experiences.model.SXPBlueprint, that is translated to a * com.liferay.search.experiences.model.SXPBlueprintSoap. Methods that SOAP * cannot safely wire are skipped. *

* *

* The benefits of using the SOAP utility is that it is cross platform * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and * even Perl, to call the generated services. One drawback of SOAP is that it is * slow because it needs to serialize all calls into a text format (XML). *

* *

* You can see a list of services at http://localhost:8080/api/axis. Set the * property axis.servlet.hosts.allowed in portal.properties to configure * security. *

* *

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

* * @author Brian Wing Shun Chan * @see SXPBlueprintServiceHttp * @deprecated As of Athanasius (7.3.x), with no direct replacement * @generated */ @Deprecated public class SXPBlueprintServiceSoap { public static com.liferay.search.experiences.model.SXPBlueprintSoap addSXPBlueprint( String configurationJSON, String[] descriptionMapLanguageIds, String[] descriptionMapValues, String elementInstancesJSON, String schemaVersion, String[] titleMapLanguageIds, String[] titleMapValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { Map descriptionMap = LocalizationUtil.getLocalizationMap( descriptionMapLanguageIds, descriptionMapValues); Map titleMap = LocalizationUtil.getLocalizationMap( titleMapLanguageIds, titleMapValues); com.liferay.search.experiences.model.SXPBlueprint returnValue = SXPBlueprintServiceUtil.addSXPBlueprint( configurationJSON, descriptionMap, elementInstancesJSON, schemaVersion, titleMap, serviceContext); return com.liferay.search.experiences.model.SXPBlueprintSoap. toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.search.experiences.model.SXPBlueprintSoap deleteSXPBlueprint(long sxpBlueprintId) throws RemoteException { try { com.liferay.search.experiences.model.SXPBlueprint returnValue = SXPBlueprintServiceUtil.deleteSXPBlueprint(sxpBlueprintId); return com.liferay.search.experiences.model.SXPBlueprintSoap. toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.search.experiences.model.SXPBlueprintSoap getSXPBlueprint(long sxpBlueprintId) throws RemoteException { try { com.liferay.search.experiences.model.SXPBlueprint returnValue = SXPBlueprintServiceUtil.getSXPBlueprint(sxpBlueprintId); return com.liferay.search.experiences.model.SXPBlueprintSoap. toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.search.experiences.model.SXPBlueprintSoap updateSXPBlueprint( long sxpBlueprintId, String configurationJSON, String[] descriptionMapLanguageIds, String[] descriptionMapValues, String elementInstancesJSON, String schemaVersion, String[] titleMapLanguageIds, String[] titleMapValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { Map descriptionMap = LocalizationUtil.getLocalizationMap( descriptionMapLanguageIds, descriptionMapValues); Map titleMap = LocalizationUtil.getLocalizationMap( titleMapLanguageIds, titleMapValues); com.liferay.search.experiences.model.SXPBlueprint returnValue = SXPBlueprintServiceUtil.updateSXPBlueprint( sxpBlueprintId, configurationJSON, descriptionMap, elementInstancesJSON, schemaVersion, titleMap, serviceContext); return com.liferay.search.experiences.model.SXPBlueprintSoap. toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } private static Log _log = LogFactoryUtil.getLog( SXPBlueprintServiceSoap.class); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy