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

com.liferay.dynamic.data.mapping.service.http.DDMStructureServiceSoap 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.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.util.LocalizationUtil;

import java.rmi.RemoteException;

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

/**
 * Provides the SOAP 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 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 {@link java.util.List}, that * is translated to an array of {@link com.liferay.dynamic.data.mapping.model.DDMStructureSoap}. * If the method in the service utility returns a * {@link com.liferay.dynamic.data.mapping.model.DDMStructure}, that is translated to a * {@link com.liferay.dynamic.data.mapping.model.DDMStructureSoap}. 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 DDMStructureServiceHttp * @see com.liferay.dynamic.data.mapping.model.DDMStructureSoap * @see DDMStructureServiceUtil * @generated */ @ProviderType public class DDMStructureServiceSoap { public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap addStructure( long userId, long groupId, long classNameId, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, 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 RemoteException { try { Map nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds, nameMapValues); Map descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds, descriptionMapValues); com.liferay.dynamic.data.mapping.model.DDMStructure returnValue = DDMStructureServiceUtil.addStructure(userId, groupId, classNameId, nameMap, descriptionMap, ddmForm, ddmFormLayout, storageType, serviceContext); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } /** * Adds a structure referencing a default parent structure, using the portal * property dynamic.data.lists.storage.type storage type and * default structure type. * * @param userId the primary key of the structure's creator/owner * @param groupId the primary key of the group * @param classNameId the primary key of the class name for the structure's related model * @param nameMap the structure's locales and localized names * @param descriptionMap the structure's locales and localized descriptions * @param xsd the structure's XML schema definition * @param serviceContext the service context to be applied. Can set the UUID, creation date, modification date, guest permissions, and group permissions for the structure. * @return the structure * @deprecated As of 7.0.0, replaced by {@link #addStructure(long, long, long, Map, Map, DDMForm, DDMFormLayout, ServiceContext)} */ @Deprecated public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap addStructure( long userId, long groupId, long classNameId, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, java.lang.String xsd, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { Map nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds, nameMapValues); Map descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds, descriptionMapValues); com.liferay.dynamic.data.mapping.model.DDMStructure returnValue = DDMStructureServiceUtil.addStructure(userId, groupId, classNameId, nameMap, descriptionMap, xsd, serviceContext); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap addStructure( long groupId, long parentStructureId, long classNameId, java.lang.String structureKey, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, 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 RemoteException { try { Map nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds, nameMapValues); Map descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds, descriptionMapValues); com.liferay.dynamic.data.mapping.model.DDMStructure returnValue = DDMStructureServiceUtil.addStructure(groupId, parentStructureId, classNameId, structureKey, nameMap, descriptionMap, ddmForm, ddmFormLayout, storageType, type, serviceContext); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } /** * Adds a structure referencing its parent structure. * * @param groupId the primary key of the group * @param parentStructureId the primary key of the parent structure (optionally {@link com.liferay.dynamic.data.mapping.model.DDMStructureConstants#DEFAULT_PARENT_STRUCTURE_ID}) * @param classNameId the primary key of the class name for the structure's related model * @param structureKey the unique string identifying the structure (optionally null) * @param nameMap the structure's locales and localized names * @param descriptionMap the structure's locales and localized descriptions * @param xsd the structure's XML schema definition * @param storageType the structure's storage type. It can be "xml" or "expando". For more information, see {@link com.liferay.dynamic.data.mapping.storage.StorageType}. * @param type the structure's type. For more information, see {@link com.liferay.dynamic.data.mapping.model.DDMStructureConstants}. * @param serviceContext the service context to be applied. Can set the UUID, creation date, modification date, guest permissions, and group permissions for the structure. * @return the structure * @deprecated As of 7.0.0, replaced by {@link #addStructure(long, long, long, String, Map, Map, DDMForm, DDMFormLayout, String, int, ServiceContext)} */ @Deprecated public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap addStructure( long groupId, long parentStructureId, long classNameId, java.lang.String structureKey, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, java.lang.String xsd, java.lang.String storageType, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { Map nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds, nameMapValues); Map descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds, descriptionMapValues); com.liferay.dynamic.data.mapping.model.DDMStructure returnValue = DDMStructureServiceUtil.addStructure(groupId, parentStructureId, classNameId, structureKey, nameMap, descriptionMap, xsd, storageType, type, serviceContext); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap addStructure( long userId, long groupId, java.lang.String parentStructureKey, long classNameId, java.lang.String structureKey, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, 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 RemoteException { try { Map nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds, nameMapValues); Map descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds, descriptionMapValues); com.liferay.dynamic.data.mapping.model.DDMStructure returnValue = DDMStructureServiceUtil.addStructure(userId, groupId, parentStructureKey, classNameId, structureKey, nameMap, descriptionMap, ddmForm, ddmFormLayout, storageType, type, serviceContext); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } /** * Adds a structure referencing the parent structure by its structure key. * In case the parent structure is not found, it uses the default parent * structure ID. * * @param userId the primary key of the structure's creator/owner * @param groupId the primary key of the group * @param parentStructureKey the unique string identifying the structure * @param classNameId the primary key of the class name for the structure's related model * @param structureKey unique string identifying the structure (optionally null) * @param nameMap the structure's locales and localized names * @param descriptionMap the structure's locales and localized descriptions * @param xsd the XML schema definition of the structure * @param storageType the storage type of the structure. It can be XML or expando. For more information, see {@link com.liferay.dynamic.data.mapping.storage.StorageType}. * @param type the structure's type. For more information, see {@link com.liferay.dynamic.data.mapping.model.DDMStructureConstants}. * @param serviceContext the service context to be applied. Must have the ddmResource attribute to check permissions. Can set the UUID, creation date, modification date, guest permissions, and group permissions for the structure. * @return the structure * @deprecated As of 7.0.0, replaced by {@link #addStructure(long, long, String, long, String, Map, Map, DDMForm, DDMFormLayout, String, int, ServiceContext)} */ @Deprecated public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap addStructure( long userId, long groupId, java.lang.String parentStructureKey, long classNameId, java.lang.String structureKey, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, java.lang.String xsd, java.lang.String storageType, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { Map nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds, nameMapValues); Map descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds, descriptionMapValues); com.liferay.dynamic.data.mapping.model.DDMStructure returnValue = DDMStructureServiceUtil.addStructure(userId, groupId, parentStructureKey, classNameId, structureKey, nameMap, descriptionMap, xsd, storageType, type, serviceContext); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } /** * Copies a structure, creating a new structure with all the values * extracted from the original one. The new structure supports a new name * and description. * * @param structureId the primary key of the structure to be copied * @param nameMap the new structure's locales and localized names * @param descriptionMap the new structure's locales and localized descriptions * @param serviceContext the service context to be applied. Can set the UUID, creation date, modification date, guest permissions, and group permissions for the structure. * @return the new structure */ public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap copyStructure( long structureId, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { Map nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds, nameMapValues); Map descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds, descriptionMapValues); com.liferay.dynamic.data.mapping.model.DDMStructure returnValue = DDMStructureServiceUtil.copyStructure(structureId, nameMap, descriptionMap, serviceContext); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap copyStructure( long structureId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { com.liferay.dynamic.data.mapping.model.DDMStructure returnValue = DDMStructureServiceUtil.copyStructure(structureId, serviceContext); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } /** * Deletes the structure and its resources. * *

* Before deleting the structure, the system verifies whether the structure * is required by another entity. If it is needed, an exception is thrown. *

* * @param structureId the primary key of the structure to be deleted */ public static void deleteStructure(long structureId) throws RemoteException { try { DDMStructureServiceUtil.deleteStructure(structureId); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } /** * Returns the structure matching the class name ID, structure key, and * group. * * @param groupId the primary key of the group * @param classNameId the primary key of the class name for the structure's related model * @param structureKey the unique string identifying the structure * @return the matching structure, or null if a matching structure could not be found */ public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap fetchStructure( long groupId, long classNameId, java.lang.String structureKey) throws RemoteException { try { com.liferay.dynamic.data.mapping.model.DDMStructure returnValue = DDMStructureServiceUtil.fetchStructure(groupId, classNameId, structureKey); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap fetchStructure( long groupId, long classNameId, java.lang.String structureKey, boolean includeAncestorStructures) throws RemoteException { try { com.liferay.dynamic.data.mapping.model.DDMStructure returnValue = DDMStructureServiceUtil.fetchStructure(groupId, classNameId, structureKey, includeAncestorStructures); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } /** * Returns the structure with the ID. * * @param structureId the primary key of the structure * @return the structure with the ID */ public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap getStructure( long structureId) throws RemoteException { try { com.liferay.dynamic.data.mapping.model.DDMStructure returnValue = DDMStructureServiceUtil.getStructure(structureId); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } /** * Returns the structure matching the class name ID, structure key, and * group. * * @param groupId the primary key of the structure's group * @param classNameId the primary key of the class name for the structure's related model * @param structureKey the unique string identifying the structure * @return the matching structure */ public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap getStructure( long groupId, long classNameId, java.lang.String structureKey) throws RemoteException { try { com.liferay.dynamic.data.mapping.model.DDMStructure returnValue = DDMStructureServiceUtil.getStructure(groupId, classNameId, structureKey); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } /** * Returns the structure matching the class name ID, structure key, and * group, optionally searching ancestor sites (that have sharing enabled) * and global scoped sites. * *

* This method first searches in the group. If the structure is still not * found and includeAncestorStructures is set to * true, this method searches the group's ancestor sites (that * have sharing enabled) and lastly searches global scoped sites. *

* * @param groupId the primary key of the structure's group * @param classNameId the primary key of the class name for the structure's related model * @param structureKey the unique string identifying the structure * @param includeAncestorStructures whether to include ancestor sites (that have sharing enabled) and include global scoped sites in the search * @return the matching structure */ public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap getStructure( long groupId, long classNameId, java.lang.String structureKey, boolean includeAncestorStructures) throws RemoteException { try { com.liferay.dynamic.data.mapping.model.DDMStructure returnValue = DDMStructureServiceUtil.getStructure(groupId, classNameId, structureKey, includeAncestorStructures); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap[] getStructures( long companyId, long[] groupIds, long classNameId, int status) throws RemoteException { try { java.util.List returnValue = DDMStructureServiceUtil.getStructures(companyId, groupIds, classNameId, status); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModels(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap[] getStructures( long companyId, long[] groupIds, long classNameId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws RemoteException { try { java.util.List returnValue = DDMStructureServiceUtil.getStructures(companyId, groupIds, classNameId, status, start, end, orderByComparator); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModels(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } public static void revertStructure(long structureId, java.lang.String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { DDMStructureServiceUtil.revertStructure(structureId, version, serviceContext); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } /** * Returns an ordered range of all the structures matching the groups and * class name IDs, and matching the keywords in the structure names and * descriptions. * *

* Useful when paginating results. Returns a maximum of end - * start instances. start and end are not * primary keys, they are indexes in the result set. Thus, 0 * refers to the first result in the set. Setting both start * and end to {@link QueryUtil#ALL_POS} will return the full * result set. *

* * @param companyId the primary key of the structure's company * @param groupIds the primary keys of the groups * @param classNameId the primary key of the class name of the model the structure is related to * @param keywords the keywords (space separated), which may occur in the structure's name or description (optionally null) * @param start the lower bound of the range of structures to return * @param end the upper bound of the range of structures to return (not inclusive) * @param orderByComparator the comparator to order the structures (optionally null) * @return the range of matching structures ordered by the comparator */ public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap[] search( long companyId, long[] groupIds, long classNameId, java.lang.String keywords, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws RemoteException { try { java.util.List returnValue = DDMStructureServiceUtil.search(companyId, groupIds, classNameId, keywords, status, start, end, orderByComparator); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModels(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } /** * Returns an ordered range of all the structures matching the groups, class * name IDs, name keyword, description keyword, storage type, and type. * *

* Useful when paginating results. Returns a maximum of end - * start instances. start and end are not * primary keys, they are indexes in the result set. Thus, 0 * refers to the first result in the set. Setting both start * and end to {@link QueryUtil#ALL_POS} will return the full * result set. *

* * @param companyId the primary key of the structure's company * @param groupIds the primary keys of the groups * @param classNameId the primary key of the class name of the model the structure is related to * @param name the name keywords * @param description the description keywords * @param storageType the structure's storage type. It can be "xml" or "expando". For more information, see {@link com.liferay.dynamic.data.mapping.storage.StorageType}. * @param type the structure's type. For more information, see {@link com.liferay.dynamic.data.mapping.model.DDMStructureConstants}. * @param andOperator whether every field must match its keywords, or just one field * @param start the lower bound of the range of structures to return * @param end the upper bound of the range of structures to return (not inclusive) * @param orderByComparator the comparator to order the structures (optionally null) * @return the range of matching structures ordered by the comparator */ public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap[] search( 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 orderByComparator) throws RemoteException { try { java.util.List returnValue = DDMStructureServiceUtil.search(companyId, groupIds, classNameId, name, description, storageType, type, status, andOperator, start, end, orderByComparator); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModels(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } /** * Returns the number of structures matching the groups and class name IDs, * and matching the keywords in the structure names and descriptions. * * @param companyId the primary key of the structure's company * @param groupIds the primary keys of the groups * @param classNameId the primary key of the class name of the model the structure is related to * @param keywords the keywords (space separated), which may occur in the structure's name or description (optionally null) * @return the number of matching structures */ public static int searchCount(long companyId, long[] groupIds, long classNameId, java.lang.String keywords, int status) throws RemoteException { try { int returnValue = DDMStructureServiceUtil.searchCount(companyId, groupIds, classNameId, keywords, status); return returnValue; } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } /** * Returns the number of structures matching the groups, class name IDs, * name keyword, description keyword, storage type, and type * * @param companyId the primary key of the structure's company * @param groupIds the primary keys of the groups * @param classNameId the primary key of the class name of the model the structure is related to * @param name the name keywords * @param description the description keywords * @param storageType the structure's storage type. It can be "xml" or "expando". For more information, see {@link com.liferay.dynamic.data.mapping.storage.StorageType}. * @param type the structure's type. For more information, see {@link com.liferay.dynamic.data.mapping.model.DDMStructureConstants}. * @param andOperator whether every field must match its keywords, or just one field * @return the number of matching structures */ public static int searchCount(long companyId, long[] groupIds, long classNameId, java.lang.String name, java.lang.String description, java.lang.String storageType, int type, int status, boolean andOperator) throws RemoteException { try { int returnValue = DDMStructureServiceUtil.searchCount(companyId, groupIds, classNameId, name, description, storageType, type, status, andOperator); return returnValue; } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap updateStructure( long groupId, long parentStructureId, long classNameId, java.lang.String structureKey, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, com.liferay.dynamic.data.mapping.model.DDMForm ddmForm, com.liferay.dynamic.data.mapping.model.DDMFormLayout ddmFormLayout, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { Map nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds, nameMapValues); Map descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds, descriptionMapValues); com.liferay.dynamic.data.mapping.model.DDMStructure returnValue = DDMStructureServiceUtil.updateStructure(groupId, parentStructureId, classNameId, structureKey, nameMap, descriptionMap, ddmForm, ddmFormLayout, serviceContext); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } /** * Updates the structure matching the class name ID, structure key, and * group, replacing its old parent structure, name map, description map, and * XSD with new ones. * * @param groupId the primary key of the group * @param parentStructureId the primary key of the new parent structure * @param classNameId the primary key of the class name for the structure's related model * @param structureKey the unique string identifying the structure * @param nameMap the structure's new locales and localized names * @param descriptionMap the structure's new locales and localized description * @param definition the structure's new XML schema definition * @param serviceContext the service context to be applied. Can set the modification date. * @return the updated structure * @deprecated As of 7.0.0, replaced by {@link #updateStructure(long, long, long, String, Map, Map, DDMForm, DDMFormLayout, ServiceContext)} */ @Deprecated public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap updateStructure( long groupId, long parentStructureId, long classNameId, java.lang.String structureKey, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, java.lang.String definition, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { Map nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds, nameMapValues); Map descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds, descriptionMapValues); com.liferay.dynamic.data.mapping.model.DDMStructure returnValue = DDMStructureServiceUtil.updateStructure(groupId, parentStructureId, classNameId, structureKey, nameMap, descriptionMap, definition, serviceContext); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap updateStructure( long structureId, long parentStructureId, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, com.liferay.dynamic.data.mapping.model.DDMForm ddmForm, com.liferay.dynamic.data.mapping.model.DDMFormLayout ddmFormLayout, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { Map nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds, nameMapValues); Map descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds, descriptionMapValues); com.liferay.dynamic.data.mapping.model.DDMStructure returnValue = DDMStructureServiceUtil.updateStructure(structureId, parentStructureId, nameMap, descriptionMap, ddmForm, ddmFormLayout, serviceContext); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } /** * Updates the structure matching the structure ID, replacing the old parent * structure ID, name map, description map, and XSD with the new values. * * @param structureId the primary key of the structure * @param parentStructureId the new parent structure primary key * @param nameMap the structure's new locales and localized names * @param descriptionMap the structure's new locales and localized description * @param definition the new XML schema definition of the structure * @param serviceContext the service context to be applied. Can set the modification date. * @return the updated structure * @deprecated As of 7.0.0, replaced by {@link #updateStructure(long, long, Map, Map, DDMForm, DDMFormLayout, ServiceContext)} */ @Deprecated public static com.liferay.dynamic.data.mapping.model.DDMStructureSoap updateStructure( long structureId, long parentStructureId, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, java.lang.String definition, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { Map nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds, nameMapValues); Map descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds, descriptionMapValues); com.liferay.dynamic.data.mapping.model.DDMStructure returnValue = DDMStructureServiceUtil.updateStructure(structureId, parentStructureId, nameMap, descriptionMap, definition, serviceContext); return com.liferay.dynamic.data.mapping.model.DDMStructureSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } } private static Log _log = LogFactoryUtil.getLog(DDMStructureServiceSoap.class); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy