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.transaction.Isolation;
023    import com.liferay.portal.kernel.transaction.Propagation;
024    import com.liferay.portal.kernel.transaction.Transactional;
025    import com.liferay.portal.security.ac.AccessControlled;
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                    java.lang.String storageType, int type,
057                    com.liferay.portal.service.ServiceContext serviceContext)
058                    throws com.liferay.portal.kernel.exception.PortalException;
059    
060            /**
061            * Adds a structure referencing its parent structure.
062            *
063            * @param groupId the primary key of the group
064            * @param parentStructureId the primary key of the parent structure
065            (optionally {@link
066            com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants#DEFAULT_PARENT_STRUCTURE_ID})
067            * @param classNameId the primary key of the class name for the
068            structure's related model
069            * @param structureKey the unique string identifying the structure
070            (optionally <code>null</code>)
071            * @param nameMap the structure's locales and localized names
072            * @param descriptionMap the structure's locales and localized
073            descriptions
074            * @param xsd the structure's XML schema definition
075            * @param storageType the structure's storage type. It can be "xml" or
076            "expando". For more information, see {@link
077            com.liferay.portlet.dynamicdatamapping.storage.StorageType}.
078            * @param type the structure's type. For more information, see {@link
079            com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}.
080            * @param serviceContext the service context to be applied. Can set the
081            UUID, creation date, modification date, guest permissions,
082            and group permissions for the structure.
083            * @return the structure
084            * @throws PortalException if the user did not have permission to add
085            the structure, if the XSD is not well formed, or if a portal
086            exception occurred
087            * @deprecated As of 7.0.0, replaced by {@link #addStructure(long, long,
088            long, String, Map, Map, DDMForm, String, int,
089            ServiceContext)}
090            */
091            @java.lang.Deprecated
092            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
093                    long groupId, long parentStructureId, long classNameId,
094                    java.lang.String structureKey,
095                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
096                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
097                    java.lang.String xsd, java.lang.String storageType, int type,
098                    com.liferay.portal.service.ServiceContext serviceContext)
099                    throws com.liferay.portal.kernel.exception.PortalException;
100    
101            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
102                    long userId, long groupId, long classNameId,
103                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
104                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
105                    com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
106                    com.liferay.portal.service.ServiceContext serviceContext)
107                    throws com.liferay.portal.kernel.exception.PortalException;
108    
109            /**
110            * Adds a structure referencing a default parent structure, using the portal
111            * property <code>dynamic.data.lists.storage.type</code> storage type and
112            * default structure type.
113            *
114            * @param userId the primary key of the structure's creator/owner
115            * @param groupId the primary key of the group
116            * @param classNameId the primary key of the class name for the
117            structure's related model
118            * @param nameMap the structure's locales and localized names
119            * @param descriptionMap the structure's locales and localized
120            descriptions
121            * @param xsd the structure's XML schema definition
122            * @param serviceContext the service context to be applied. Can set the
123            UUID, creation date, modification date, guest permissions,
124            and group permissions for the structure.
125            * @return the structure
126            * @throws PortalException if a user with the primary key could not be
127            found, if the user did not have permission to add the
128            structure, if the XSD was not well-formed, or if a portal
129            exception occurred
130            * @deprecated As of 7.0.0, replaced by {@link #addStructure(long, long,
131            long, Map, Map, DDMForm, ServiceContext)}
132            */
133            @java.lang.Deprecated
134            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
135                    long userId, long groupId, long classNameId,
136                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
137                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
138                    java.lang.String xsd,
139                    com.liferay.portal.service.ServiceContext serviceContext)
140                    throws com.liferay.portal.kernel.exception.PortalException;
141    
142            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
143                    long userId, long groupId, java.lang.String parentStructureKey,
144                    long classNameId, java.lang.String structureKey,
145                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
146                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
147                    com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
148                    java.lang.String storageType, int type,
149                    com.liferay.portal.service.ServiceContext serviceContext)
150                    throws com.liferay.portal.kernel.exception.PortalException;
151    
152            /**
153            * Adds a structure referencing the parent structure by its structure key.
154            * In case the parent structure is not found, it uses the default parent
155            * structure ID.
156            *
157            * @param userId the primary key of the structure's creator/owner
158            * @param groupId the primary key of the group
159            * @param parentStructureKey the unique string identifying the
160            structure
161            * @param classNameId the primary key of the class name for the
162            structure's related model
163            * @param structureKey unique string identifying the structure
164            (optionally <code>null</code>)
165            * @param nameMap the structure's locales and localized names
166            * @param descriptionMap the structure's locales and localized
167            descriptions
168            * @param xsd the XML schema definition of the structure
169            * @param storageType the storage type of the structure. It can be XML
170            or expando. For more information, see {@link
171            com.liferay.portlet.dynamicdatamapping.storage.StorageType}.
172            * @param type the structure's type. For more information, see {@link
173            com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}.
174            * @param serviceContext the service context to be applied. Must have
175            the <code>ddmResource</code> attribute to check permissions.
176            Can set the UUID, creation date, modification date, guest
177            permissions, and group permissions for the structure.
178            * @return the structure
179            * @throws PortalException if a user with the primary key could not be
180            found, if the user did not have permission to add the
181            structure, if the XSD was not well-formed, or if a portal
182            exception occurred
183            * @deprecated As of 7.0.0, replaced by {@link #addStructure(long, long,
184            String, long, String, Map, Map, DDMForm, String, int,
185            ServiceContext)}
186            */
187            @java.lang.Deprecated
188            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
189                    long userId, long groupId, java.lang.String parentStructureKey,
190                    long classNameId, java.lang.String structureKey,
191                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
192                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
193                    java.lang.String xsd, java.lang.String storageType, int type,
194                    com.liferay.portal.service.ServiceContext serviceContext)
195                    throws com.liferay.portal.kernel.exception.PortalException;
196    
197            /**
198            * Copies a structure, creating a new structure with all the values
199            * extracted from the original one. The new structure supports a new name
200            * and description.
201            *
202            * @param structureId the primary key of the structure to be copied
203            * @param nameMap the new structure's locales and localized names
204            * @param descriptionMap the new structure's locales and localized
205            descriptions
206            * @param serviceContext the service context to be applied. Can set the
207            UUID, creation date, modification date, guest permissions, and
208            group permissions for the structure.
209            * @return the new structure
210            * @throws PortalException if the user did not have permission to add the
211            structure or if a portal exception occurred
212            */
213            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure(
214                    long structureId,
215                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
216                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
217                    com.liferay.portal.service.ServiceContext serviceContext)
218                    throws com.liferay.portal.kernel.exception.PortalException;
219    
220            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure(
221                    long structureId,
222                    com.liferay.portal.service.ServiceContext serviceContext)
223                    throws com.liferay.portal.kernel.exception.PortalException;
224    
225            /**
226            * Deletes the structure and its resources.
227            *
228            * <p>
229            * Before deleting the structure, the system verifies whether the structure
230            * is required by another entity. If it is needed, an exception is thrown.
231            * </p>
232            *
233            * @param structureId the primary key of the structure to be deleted
234            * @throws PortalException if the user did not have permission to delete the
235            structure or if a portal exception occurred
236            */
237            public void deleteStructure(long structureId)
238                    throws com.liferay.portal.kernel.exception.PortalException;
239    
240            /**
241            * Returns the structure matching the class name ID, structure key, and
242            * group.
243            *
244            * @param groupId the primary key of the group
245            * @param classNameId the primary key of the class name for the structure's
246            related model
247            * @param structureKey the unique string identifying the structure
248            * @return the matching structure, or <code>null</code> if a matching
249            structure could not be found
250            * @throws PortalException if the user did not have permission to view the
251            structure or if a portal exception occurred
252            */
253            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(
255                    long groupId, long classNameId, java.lang.String structureKey)
256                    throws com.liferay.portal.kernel.exception.PortalException;
257    
258            /**
259            * Returns the Spring bean ID for this bean.
260            *
261            * @return the Spring bean ID for this bean
262            */
263            public java.lang.String getBeanIdentifier();
264    
265            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getJournalFolderStructures(
267                    long[] groupIds, long journalFolderId, int restrictionType)
268                    throws com.liferay.portal.kernel.exception.PortalException;
269    
270            /**
271            * Returns the structure matching the class name ID, structure key, and
272            * group.
273            *
274            * @param groupId the primary key of the structure's group
275            * @param classNameId the primary key of the class name for the structure's
276            related model
277            * @param structureKey the unique string identifying the structure
278            * @return the matching structure
279            * @throws PortalException if the user did not have permission to view the
280            structure or if a matching structure could not be found
281            */
282            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
284                    long groupId, long classNameId, java.lang.String structureKey)
285                    throws com.liferay.portal.kernel.exception.PortalException;
286    
287            /**
288            * Returns the structure matching the class name ID, structure key, and
289            * group, optionally searching ancestor sites (that have sharing enabled)
290            * and global scoped sites.
291            *
292            * <p>
293            * This method first searches in the group. If the structure is still not
294            * found and <code>includeAncestorStructures</code> is set to
295            * <code>true</code>, this method searches the group's ancestor sites (that
296            * have sharing enabled) and lastly searches global scoped sites.
297            * </p>
298            *
299            * @param groupId the primary key of the structure's group
300            * @param classNameId the primary key of the class name for the structure's
301            related model
302            * @param structureKey the unique string identifying the structure
303            * @param includeAncestorStructures whether to include ancestor sites (that
304            have sharing enabled) and include global scoped sites in the
305            search
306            * @return the matching structure
307            * @throws PortalException if the user did not have permission to view the
308            structure or if a matching structure could not be found
309            */
310            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
312                    long groupId, long classNameId, java.lang.String structureKey,
313                    boolean includeAncestorStructures)
314                    throws com.liferay.portal.kernel.exception.PortalException;
315    
316            /**
317            * Returns the structure with the ID.
318            *
319            * @param structureId the primary key of the structure
320            * @return the structure with the ID
321            * @throws PortalException if the user did not have permission to view the
322            structure or if a structure with the ID could not be found
323            */
324            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
326                    long structureId)
327                    throws com.liferay.portal.kernel.exception.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            /**
370            * Returns an ordered range of all the structures matching the groups and
371            * class name IDs, and matching the keywords in the structure names and
372            * descriptions.
373            *
374            * <p>
375            * Useful when paginating results. Returns a maximum of <code>end -
376            * start</code> instances. <code>start</code> and <code>end</code> are not
377            * primary keys, they are indexes in the result set. Thus, <code>0</code>
378            * refers to the first result in the set. Setting both <code>start</code>
379            * and <code>end</code> to {@link
380            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
381            * result set.
382            * </p>
383            *
384            * @param companyId the primary key of the structure's company
385            * @param groupIds the primary keys of the groups
386            * @param classNameIds the primary keys of the class names of the models
387            the structures are related to
388            * @param keywords the keywords (space separated), which may occur in the
389            structure's name or description (optionally <code>null</code>)
390            * @param start the lower bound of the range of structures to return
391            * @param end the upper bound of the range of structures to return (not
392            inclusive)
393            * @param orderByComparator the comparator to order the structures
394            (optionally <code>null</code>)
395            * @return the range of matching structures ordered by the comparator
396            */
397            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
398            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
399                    long companyId, long[] groupIds, long[] classNameIds,
400                    java.lang.String keywords, int start, int end,
401                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> orderByComparator);
402    
403            /**
404            * Returns an ordered range of all the structures matching the groups, class
405            * name IDs, name keyword, description keyword, storage type, and type.
406            *
407            * <p>
408            * Useful when paginating results. Returns a maximum of <code>end -
409            * start</code> instances. <code>start</code> and <code>end</code> are not
410            * primary keys, they are indexes in the result set. Thus, <code>0</code>
411            * refers to the first result in the set. Setting both <code>start</code>
412            * and <code>end</code> to {@link
413            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
414            * result set.
415            * </p>
416            *
417            * @param companyId the primary key of the structure's company
418            * @param groupIds the primary keys of the groups
419            * @param classNameIds the primary keys of the class names of the models
420            the structures are related to
421            * @param name the name keywords
422            * @param description the description keywords
423            * @param storageType the structure's storage type. It can be "xml" or
424            "expando". For more information, see {@link
425            com.liferay.portlet.dynamicdatamapping.storage.StorageType}.
426            * @param type the structure's type. For more information, see {@link
427            com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}.
428            * @param andOperator whether every field must match its keywords, or just
429            one field
430            * @param start the lower bound of the range of structures to return
431            * @param end the upper bound of the range of structures to return (not
432            inclusive)
433            * @param orderByComparator the comparator to order the structures
434            (optionally <code>null</code>)
435            * @return the range of matching structures ordered by the comparator
436            */
437            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
438            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
439                    long companyId, long[] groupIds, long[] classNameIds,
440                    java.lang.String name, java.lang.String description,
441                    java.lang.String storageType, int type, boolean andOperator, int start,
442                    int end,
443                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> orderByComparator);
444    
445            /**
446            * Returns the number of structures matching the groups and class name IDs,
447            * and matching the keywords in the structure names and descriptions.
448            *
449            * @param companyId the primary key of the structure's company
450            * @param groupIds the primary keys of the groups
451            * @param classNameIds the primary keys of the class names of the models
452            the structures are related to
453            * @param keywords the keywords (space separated), which may occur in the
454            structure's name or description (optionally <code>null</code>)
455            * @return the number of matching structures
456            */
457            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
458            public int searchCount(long companyId, long[] groupIds,
459                    long[] classNameIds, java.lang.String keywords);
460    
461            /**
462            * Returns the number of structures matching the groups, class name IDs,
463            * name keyword, description keyword, storage type, and type
464            *
465            * @param companyId the primary key of the structure's company
466            * @param groupIds the primary keys of the groups
467            * @param classNameIds the primary keys of the class names of the models
468            the structure's are related to
469            * @param name the name keywords
470            * @param description the description keywords
471            * @param storageType the structure's storage type. It can be "xml" or
472            "expando". For more information, see {@link
473            com.liferay.portlet.dynamicdatamapping.storage.StorageType}.
474            * @param type the structure's type. For more information, see {@link
475            com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}.
476            * @param andOperator whether every field must match its keywords, or just
477            one field
478            * @return the number of matching structures
479            */
480            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
481            public int searchCount(long companyId, long[] groupIds,
482                    long[] classNameIds, java.lang.String name,
483                    java.lang.String description, java.lang.String storageType, int type,
484                    boolean andOperator);
485    
486            /**
487            * Sets the Spring bean ID for this bean.
488            *
489            * @param beanIdentifier the Spring bean ID for this bean
490            */
491            public void setBeanIdentifier(java.lang.String beanIdentifier);
492    
493            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
494                    long groupId, long parentStructureId, long classNameId,
495                    java.lang.String structureKey,
496                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
497                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
498                    com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
499                    com.liferay.portal.service.ServiceContext serviceContext)
500                    throws com.liferay.portal.kernel.exception.PortalException;
501    
502            /**
503            * Updates the structure matching the class name ID, structure key, and
504            * group, replacing its old parent structure, name map, description map, and
505            * XSD with new ones.
506            *
507            * @param groupId the primary key of the group
508            * @param parentStructureId the primary key of the new parent structure
509            * @param classNameId the primary key of the class name for the
510            structure's related model
511            * @param structureKey the unique string identifying the structure
512            * @param nameMap the structure's new locales and localized names
513            * @param descriptionMap the structure's new locales and localized
514            description
515            * @param definition the structure's new XML schema definition
516            * @param serviceContext the service context to be applied. Can set the
517            modification date.
518            * @return the updated structure
519            * @throws PortalException if the user did not have permission to update
520            the structure or if a portal exception occurred
521            * @deprecated As of 7.0.0, replaced by {@link #updateStructure(long, long,
522            long, String, Map, Map, DDMForm, ServiceContext)}
523            */
524            @java.lang.Deprecated
525            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
526                    long groupId, long parentStructureId, long classNameId,
527                    java.lang.String structureKey,
528                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
529                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
530                    java.lang.String definition,
531                    com.liferay.portal.service.ServiceContext serviceContext)
532                    throws com.liferay.portal.kernel.exception.PortalException;
533    
534            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
535                    long structureId, long parentStructureId,
536                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
537                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
538                    com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
539                    com.liferay.portal.service.ServiceContext serviceContext)
540                    throws com.liferay.portal.kernel.exception.PortalException;
541    
542            /**
543            * Updates the structure matching the structure ID, replacing the old parent
544            * structure ID, name map, description map, and XSD with the new values.
545            *
546            * @param structureId the primary key of the structure
547            * @param parentStructureId the new parent structure primary key
548            * @param nameMap the structure's new locales and localized names
549            * @param descriptionMap the structure's new locales and localized
550            description
551            * @param definition the new XML schema definition of the structure
552            * @param serviceContext the service context to be applied. Can set the
553            modification date.
554            * @return the updated structure
555            * @throws PortalException if the user did not have permission to update
556            the structure or if a portal exception occurred
557            * @deprecated As of 7.0.0, replaced by {@link #updateStructure(long, long,
558            Map, Map, DDMForm, ServiceContext)}
559            */
560            @java.lang.Deprecated
561            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
562                    long structureId, long parentStructureId,
563                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
564                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
565                    java.lang.String definition,
566                    com.liferay.portal.service.ServiceContext serviceContext)
567                    throws com.liferay.portal.kernel.exception.PortalException;
568    }