001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.dynamicdatamapping.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022    import com.liferay.portal.kernel.security.access.control.AccessControlled;
023    import com.liferay.portal.kernel.transaction.Isolation;
024    import com.liferay.portal.kernel.transaction.Propagation;
025    import com.liferay.portal.kernel.transaction.Transactional;
026    import com.liferay.portal.service.BaseService;
027    
028    /**
029     * Provides the remote service interface for DDMStructure. Methods of this
030     * service are expected to have security checks based on the propagated JAAS
031     * credentials because this service can be accessed remotely.
032     *
033     * @author Brian Wing Shun Chan
034     * @see DDMStructureServiceUtil
035     * @see com.liferay.portlet.dynamicdatamapping.service.base.DDMStructureServiceBaseImpl
036     * @see com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureServiceImpl
037     * @generated
038     */
039    @AccessControlled
040    @JSONWebService
041    @ProviderType
042    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
043            PortalException.class, SystemException.class})
044    public interface DDMStructureService extends BaseService {
045            /*
046             * NOTE FOR DEVELOPERS:
047             *
048             * Never modify or reference this interface directly. Always use {@link DDMStructureServiceUtil} to access the d d m structure remote service. Add custom service methods to {@link com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
049             */
050            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
051                    long groupId, long parentStructureId, long classNameId,
052                    java.lang.String structureKey,
053                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
054                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
055                    com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
056                    com.liferay.portlet.dynamicdatamapping.model.DDMFormLayout ddmFormLayout,
057                    java.lang.String storageType, int type,
058                    com.liferay.portal.service.ServiceContext serviceContext)
059                    throws PortalException;
060    
061            /**
062            * Adds a structure referencing its parent structure.
063            *
064            * @param groupId the primary key of the group
065            * @param parentStructureId the primary key of the parent structure
066            (optionally {@link
067            com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants#DEFAULT_PARENT_STRUCTURE_ID})
068            * @param classNameId the primary key of the class name for the
069            structure's related model
070            * @param structureKey the unique string identifying the structure
071            (optionally <code>null</code>)
072            * @param nameMap the structure's locales and localized names
073            * @param descriptionMap the structure's locales and localized
074            descriptions
075            * @param xsd the structure's XML schema definition
076            * @param storageType the structure's storage type. It can be "xml" or
077            "expando". For more information, see {@link
078            com.liferay.portlet.dynamicdatamapping.storage.StorageType}.
079            * @param type the structure's type. For more information, see {@link
080            com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}.
081            * @param serviceContext the service context to be applied. Can set the
082            UUID, creation date, modification date, guest permissions,
083            and group permissions for the structure.
084            * @return the structure
085            * @throws PortalException if the user did not have permission to add
086            the structure, if the XSD is not well formed, or if a portal
087            exception occurred
088            * @deprecated As of 7.0.0, replaced by {@link #addStructure(long, long,
089            long, String, Map, Map, DDMForm, DDMFormLayout, String, int,
090            ServiceContext)}
091            */
092            @java.lang.Deprecated
093            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
094                    long groupId, long parentStructureId, long classNameId,
095                    java.lang.String structureKey,
096                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
097                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
098                    java.lang.String xsd, java.lang.String storageType, int type,
099                    com.liferay.portal.service.ServiceContext serviceContext)
100                    throws PortalException;
101    
102            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
103                    long userId, long groupId, long classNameId,
104                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
105                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
106                    com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
107                    com.liferay.portlet.dynamicdatamapping.model.DDMFormLayout ddmFormLayout,
108                    com.liferay.portal.service.ServiceContext serviceContext)
109                    throws PortalException;
110    
111            /**
112            * Adds a structure referencing a default parent structure, using the portal
113            * property <code>dynamic.data.lists.storage.type</code> storage type and
114            * default structure type.
115            *
116            * @param userId the primary key of the structure's creator/owner
117            * @param groupId the primary key of the group
118            * @param classNameId the primary key of the class name for the
119            structure's related model
120            * @param nameMap the structure's locales and localized names
121            * @param descriptionMap the structure's locales and localized
122            descriptions
123            * @param xsd the structure's XML schema definition
124            * @param serviceContext the service context to be applied. Can set the
125            UUID, creation date, modification date, guest permissions,
126            and group permissions for the structure.
127            * @return the structure
128            * @throws PortalException if a user with the primary key could not be
129            found, if the user did not have permission to add the
130            structure, if the XSD was not well-formed, or if a portal
131            exception occurred
132            * @deprecated As of 7.0.0, replaced by {@link #addStructure(long, long,
133            long, Map, Map, DDMForm, DDMFormLayout, ServiceContext)}
134            */
135            @java.lang.Deprecated
136            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
137                    long userId, long groupId, long classNameId,
138                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
139                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
140                    java.lang.String xsd,
141                    com.liferay.portal.service.ServiceContext serviceContext)
142                    throws PortalException;
143    
144            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
145                    long userId, long groupId, java.lang.String parentStructureKey,
146                    long classNameId, java.lang.String structureKey,
147                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
148                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
149                    com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
150                    com.liferay.portlet.dynamicdatamapping.model.DDMFormLayout ddmFormLayout,
151                    java.lang.String storageType, int type,
152                    com.liferay.portal.service.ServiceContext serviceContext)
153                    throws PortalException;
154    
155            /**
156            * Adds a structure referencing the parent structure by its structure key.
157            * In case the parent structure is not found, it uses the default parent
158            * structure ID.
159            *
160            * @param userId the primary key of the structure's creator/owner
161            * @param groupId the primary key of the group
162            * @param parentStructureKey the unique string identifying the
163            structure
164            * @param classNameId the primary key of the class name for the
165            structure's related model
166            * @param structureKey unique string identifying the structure
167            (optionally <code>null</code>)
168            * @param nameMap the structure's locales and localized names
169            * @param descriptionMap the structure's locales and localized
170            descriptions
171            * @param xsd the XML schema definition of the structure
172            * @param storageType the storage type of the structure. It can be XML
173            or expando. For more information, see {@link
174            com.liferay.portlet.dynamicdatamapping.storage.StorageType}.
175            * @param type the structure's type. For more information, see {@link
176            com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}.
177            * @param serviceContext the service context to be applied. Must have
178            the <code>ddmResource</code> attribute to check permissions.
179            Can set the UUID, creation date, modification date, guest
180            permissions, and group permissions for the structure.
181            * @return the structure
182            * @throws PortalException if a user with the primary key could not be
183            found, if the user did not have permission to add the
184            structure, if the XSD was not well-formed, or if a portal
185            exception occurred
186            * @deprecated As of 7.0.0, replaced by {@link #addStructure(long, long,
187            String, long, String, Map, Map, DDMForm, DDMFormLayout,
188            String, int, ServiceContext)}
189            */
190            @java.lang.Deprecated
191            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
192                    long userId, long groupId, java.lang.String parentStructureKey,
193                    long classNameId, java.lang.String structureKey,
194                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
195                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
196                    java.lang.String xsd, java.lang.String storageType, int type,
197                    com.liferay.portal.service.ServiceContext serviceContext)
198                    throws PortalException;
199    
200            /**
201            * Copies a structure, creating a new structure with all the values
202            * extracted from the original one. The new structure supports a new name
203            * and description.
204            *
205            * @param structureId the primary key of the structure to be copied
206            * @param nameMap the new structure's locales and localized names
207            * @param descriptionMap the new structure's locales and localized
208            descriptions
209            * @param serviceContext the service context to be applied. Can set the
210            UUID, creation date, modification date, guest permissions, and
211            group permissions for the structure.
212            * @return the new structure
213            * @throws PortalException if the user did not have permission to add the
214            structure or if a portal exception occurred
215            */
216            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure(
217                    long structureId,
218                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
219                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
220                    com.liferay.portal.service.ServiceContext serviceContext)
221                    throws PortalException;
222    
223            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure(
224                    long structureId,
225                    com.liferay.portal.service.ServiceContext serviceContext)
226                    throws PortalException;
227    
228            /**
229            * Deletes the structure and its resources.
230            *
231            * <p>
232            * Before deleting the structure, the system verifies whether the structure
233            * is required by another entity. If it is needed, an exception is thrown.
234            * </p>
235            *
236            * @param structureId the primary key of the structure to be deleted
237            * @throws PortalException if the user did not have permission to delete the
238            structure or if a portal exception occurred
239            */
240            public void deleteStructure(long structureId) throws PortalException;
241    
242            /**
243            * Returns the structure matching the class name ID, structure key, and
244            * group.
245            *
246            * @param groupId the primary key of the group
247            * @param classNameId the primary key of the class name for the structure's
248            related model
249            * @param structureKey the unique string identifying the structure
250            * @return the matching structure, or <code>null</code> if a matching
251            structure could not be found
252            * @throws PortalException if the user did not have permission to view the
253            structure or if a portal exception occurred
254            */
255            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(
257                    long groupId, long classNameId, java.lang.String structureKey)
258                    throws PortalException;
259    
260            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(
262                    long groupId, long classNameId, java.lang.String structureKey,
263                    boolean includeAncestorStructures) throws PortalException;
264    
265            /**
266            * Returns the Spring bean ID for this bean.
267            *
268            * @return the Spring bean ID for this bean
269            */
270            public java.lang.String getBeanIdentifier();
271    
272            /**
273            * Returns the structure matching the class name ID, structure key, and
274            * group.
275            *
276            * @param groupId the primary key of the structure's group
277            * @param classNameId the primary key of the class name for the structure's
278            related model
279            * @param structureKey the unique string identifying the structure
280            * @return the matching structure
281            * @throws PortalException if the user did not have permission to view the
282            structure or if a matching structure could not be found
283            */
284            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
286                    long groupId, long classNameId, java.lang.String structureKey)
287                    throws PortalException;
288    
289            /**
290            * Returns the structure matching the class name ID, structure key, and
291            * group, optionally searching ancestor sites (that have sharing enabled)
292            * and global scoped sites.
293            *
294            * <p>
295            * This method first searches in the group. If the structure is still not
296            * found and <code>includeAncestorStructures</code> is set to
297            * <code>true</code>, this method searches the group's ancestor sites (that
298            * have sharing enabled) and lastly searches global scoped sites.
299            * </p>
300            *
301            * @param groupId the primary key of the structure's group
302            * @param classNameId the primary key of the class name for the structure's
303            related model
304            * @param structureKey the unique string identifying the structure
305            * @param includeAncestorStructures whether to include ancestor sites (that
306            have sharing enabled) and include global scoped sites in the
307            search
308            * @return the matching structure
309            * @throws PortalException if the user did not have permission to view the
310            structure or if a matching structure could not be found
311            */
312            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
314                    long groupId, long classNameId, java.lang.String structureKey,
315                    boolean includeAncestorStructures) throws PortalException;
316    
317            /**
318            * Returns the structure with the ID.
319            *
320            * @param structureId the primary key of the structure
321            * @return the structure with the ID
322            * @throws PortalException if the user did not have permission to view the
323            structure or if a structure with the ID could not be found
324            */
325            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
327                    long structureId) throws PortalException;
328    
329            /**
330            * Returns all the structures in the group that the user has permission to
331            * view.
332            *
333            * @param groupId the primary key of the group
334            * @return the structures in the group that the user has permission to view
335            */
336            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
338                    long groupId);
339    
340            /**
341            * Returns all the structures in the groups that the user has permission to
342            * view.
343            *
344            * @param groupIds the primary key of the groups
345            * @return the structures in the groups that the user has permission to view
346            */
347            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
349                    long[] groupIds);
350    
351            /**
352            * Returns all the structures matching the groups and class name ID that the
353            * user has permission to view.
354            *
355            * @param groupIds the primary keys of the groups
356            * @param classNameId the primary key of the class name for the structure's
357            related model
358            * @return the structures matching the groups and class name ID that the
359            user has permission to view
360            */
361            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
363                    long[] groupIds, long classNameId);
364    
365            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
367                    long[] groupIds, long classNameId, int start, int end);
368    
369            public void revertStructure(long structureId, java.lang.String version,
370                    com.liferay.portal.service.ServiceContext serviceContext)
371                    throws PortalException;
372    
373            /**
374            * Returns an ordered range of all the structures matching the groups and
375            * class name IDs, and matching the keywords in the structure names and
376            * descriptions.
377            *
378            * <p>
379            * Useful when paginating results. Returns a maximum of <code>end -
380            * start</code> instances. <code>start</code> and <code>end</code> are not
381            * primary keys, they are indexes in the result set. Thus, <code>0</code>
382            * refers to the first result in the set. Setting both <code>start</code>
383            * and <code>end</code> to {@link
384            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
385            * result set.
386            * </p>
387            *
388            * @param companyId the primary key of the structure's company
389            * @param groupIds the primary keys of the groups
390            * @param classNameId the primary key of the class name of the model the
391            structure is related to
392            * @param keywords the keywords (space separated), which may occur in the
393            structure's name or description (optionally <code>null</code>)
394            * @param start the lower bound of the range of structures to return
395            * @param end the upper bound of the range of structures to return (not
396            inclusive)
397            * @param orderByComparator the comparator to order the structures
398            (optionally <code>null</code>)
399            * @return the range of matching structures ordered by the comparator
400            */
401            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
403                    long companyId, long[] groupIds, long classNameId,
404                    java.lang.String keywords, int start, int end,
405                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> orderByComparator);
406    
407            /**
408            * Returns an ordered range of all the structures matching the groups, class
409            * name IDs, name keyword, description keyword, storage type, and type.
410            *
411            * <p>
412            * Useful when paginating results. Returns a maximum of <code>end -
413            * start</code> instances. <code>start</code> and <code>end</code> are not
414            * primary keys, they are indexes in the result set. Thus, <code>0</code>
415            * refers to the first result in the set. Setting both <code>start</code>
416            * and <code>end</code> to {@link
417            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
418            * result set.
419            * </p>
420            *
421            * @param companyId the primary key of the structure's company
422            * @param groupIds the primary keys of the groups
423            * @param classNameId the primary key of the class name of the model the
424            structure is related to
425            * @param name the name keywords
426            * @param description the description keywords
427            * @param storageType the structure's storage type. It can be "xml" or
428            "expando". For more information, see {@link
429            com.liferay.portlet.dynamicdatamapping.storage.StorageType}.
430            * @param type the structure's type. For more information, see {@link
431            com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}.
432            * @param andOperator whether every field must match its keywords, or just
433            one field
434            * @param start the lower bound of the range of structures to return
435            * @param end the upper bound of the range of structures to return (not
436            inclusive)
437            * @param orderByComparator the comparator to order the structures
438            (optionally <code>null</code>)
439            * @return the range of matching structures ordered by the comparator
440            */
441            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
442            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
443                    long companyId, long[] groupIds, long classNameId,
444                    java.lang.String name, java.lang.String description,
445                    java.lang.String storageType, int type, boolean andOperator, int start,
446                    int end,
447                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> orderByComparator);
448    
449            /**
450            * Returns the number of structures matching the groups and class name IDs,
451            * and matching the keywords in the structure names and descriptions.
452            *
453            * @param companyId the primary key of the structure's company
454            * @param groupIds the primary keys of the groups
455            * @param classNameId the primary key of the class name of the model the
456            structure is related to
457            * @param keywords the keywords (space separated), which may occur in the
458            structure's name or description (optionally <code>null</code>)
459            * @return the number of matching structures
460            */
461            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
462            public int searchCount(long companyId, long[] groupIds, long classNameId,
463                    java.lang.String keywords);
464    
465            /**
466            * Returns the number of structures matching the groups, class name IDs,
467            * name keyword, description keyword, storage type, and type
468            *
469            * @param companyId the primary key of the structure's company
470            * @param groupIds the primary keys of the groups
471            * @param classNameId the primary key of the class name of the model the
472            structure is related to
473            * @param name the name keywords
474            * @param description the description keywords
475            * @param storageType the structure's storage type. It can be "xml" or
476            "expando". For more information, see {@link
477            com.liferay.portlet.dynamicdatamapping.storage.StorageType}.
478            * @param type the structure's type. For more information, see {@link
479            com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}.
480            * @param andOperator whether every field must match its keywords, or just
481            one field
482            * @return the number of matching structures
483            */
484            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
485            public int searchCount(long companyId, long[] groupIds, long classNameId,
486                    java.lang.String name, java.lang.String description,
487                    java.lang.String storageType, int type, boolean andOperator);
488    
489            /**
490            * Sets the Spring bean ID for this bean.
491            *
492            * @param beanIdentifier the Spring bean ID for this bean
493            */
494            public void setBeanIdentifier(java.lang.String beanIdentifier);
495    
496            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
497                    long groupId, long parentStructureId, long classNameId,
498                    java.lang.String structureKey,
499                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
500                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
501                    com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
502                    com.liferay.portlet.dynamicdatamapping.model.DDMFormLayout ddmFormLayout,
503                    com.liferay.portal.service.ServiceContext serviceContext)
504                    throws PortalException;
505    
506            /**
507            * Updates the structure matching the class name ID, structure key, and
508            * group, replacing its old parent structure, name map, description map, and
509            * XSD with new ones.
510            *
511            * @param groupId the primary key of the group
512            * @param parentStructureId the primary key of the new parent structure
513            * @param classNameId the primary key of the class name for the
514            structure's related model
515            * @param structureKey the unique string identifying the structure
516            * @param nameMap the structure's new locales and localized names
517            * @param descriptionMap the structure's new locales and localized
518            description
519            * @param definition the structure's new XML schema definition
520            * @param serviceContext the service context to be applied. Can set the
521            modification date.
522            * @return the updated structure
523            * @throws PortalException if the user did not have permission to update
524            the structure or if a portal exception occurred
525            * @deprecated As of 7.0.0, replaced by {@link #updateStructure(long, long,
526            long, String, Map, Map, DDMForm, DDMFormLayout,
527            ServiceContext)}
528            */
529            @java.lang.Deprecated
530            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
531                    long groupId, long parentStructureId, long classNameId,
532                    java.lang.String structureKey,
533                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
534                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
535                    java.lang.String definition,
536                    com.liferay.portal.service.ServiceContext serviceContext)
537                    throws PortalException;
538    
539            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
540                    long structureId, long parentStructureId,
541                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
542                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
543                    com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
544                    com.liferay.portlet.dynamicdatamapping.model.DDMFormLayout ddmFormLayout,
545                    com.liferay.portal.service.ServiceContext serviceContext)
546                    throws PortalException;
547    
548            /**
549            * Updates the structure matching the structure ID, replacing the old parent
550            * structure ID, name map, description map, and XSD with the new values.
551            *
552            * @param structureId the primary key of the structure
553            * @param parentStructureId the new parent structure primary key
554            * @param nameMap the structure's new locales and localized names
555            * @param descriptionMap the structure's new locales and localized
556            description
557            * @param definition the new XML schema definition of the structure
558            * @param serviceContext the service context to be applied. Can set the
559            modification date.
560            * @return the updated structure
561            * @throws PortalException if the user did not have permission to update
562            the structure or if a portal exception occurred
563            * @deprecated As of 7.0.0, replaced by {@link #updateStructure(long, long,
564            Map, Map, DDMForm, DDMFormLayout, ServiceContext)}
565            */
566            @java.lang.Deprecated
567            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
568                    long structureId, long parentStructureId,
569                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
570                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
571                    java.lang.String definition,
572                    com.liferay.portal.service.ServiceContext serviceContext)
573                    throws PortalException;
574    }