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.service.ServiceWrapper; 020 021 /** 022 * Provides a wrapper for {@link DDMStructureService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see DDMStructureService 026 * @generated 027 */ 028 @ProviderType 029 public class DDMStructureServiceWrapper implements DDMStructureService, 030 ServiceWrapper<DDMStructureService> { 031 public DDMStructureServiceWrapper(DDMStructureService ddmStructureService) { 032 _ddmStructureService = ddmStructureService; 033 } 034 035 @Override 036 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure( 037 long groupId, long parentStructureId, long classNameId, 038 java.lang.String structureKey, 039 java.util.Map<java.util.Locale, java.lang.String> nameMap, 040 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 041 com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm, 042 java.lang.String storageType, int type, 043 com.liferay.portal.service.ServiceContext serviceContext) 044 throws com.liferay.portal.kernel.exception.PortalException { 045 return _ddmStructureService.addStructure(groupId, parentStructureId, 046 classNameId, structureKey, nameMap, descriptionMap, ddmForm, 047 storageType, type, serviceContext); 048 } 049 050 /** 051 * Adds a structure referencing its parent structure. 052 * 053 * @param groupId the primary key of the group 054 * @param parentStructureId the primary key of the parent structure 055 (optionally {@link 056 com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants#DEFAULT_PARENT_STRUCTURE_ID}) 057 * @param classNameId the primary key of the class name for the 058 structure's related model 059 * @param structureKey the unique string identifying the structure 060 (optionally <code>null</code>) 061 * @param nameMap the structure's locales and localized names 062 * @param descriptionMap the structure's locales and localized 063 descriptions 064 * @param xsd the structure's XML schema definition 065 * @param storageType the structure's storage type. It can be "xml" or 066 "expando". For more information, see {@link 067 com.liferay.portlet.dynamicdatamapping.storage.StorageType}. 068 * @param type the structure's type. For more information, see {@link 069 com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}. 070 * @param serviceContext the service context to be applied. Can set the 071 UUID, creation date, modification date, guest permissions, 072 and group permissions for the structure. 073 * @return the structure 074 * @throws PortalException if the user did not have permission to add 075 the structure, if the XSD is not well formed, or if a portal 076 exception occurred 077 * @deprecated As of 7.0.0, replaced by {@link #addStructure(long, long, 078 long, String, Map, Map, DDMForm, String, int, 079 ServiceContext)} 080 */ 081 @Deprecated 082 @Override 083 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure( 084 long groupId, long parentStructureId, long classNameId, 085 java.lang.String structureKey, 086 java.util.Map<java.util.Locale, java.lang.String> nameMap, 087 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 088 java.lang.String xsd, java.lang.String storageType, int type, 089 com.liferay.portal.service.ServiceContext serviceContext) 090 throws com.liferay.portal.kernel.exception.PortalException { 091 return _ddmStructureService.addStructure(groupId, parentStructureId, 092 classNameId, structureKey, nameMap, descriptionMap, xsd, 093 storageType, type, serviceContext); 094 } 095 096 @Override 097 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure( 098 long userId, long groupId, long classNameId, 099 java.util.Map<java.util.Locale, java.lang.String> nameMap, 100 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 101 com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm, 102 com.liferay.portal.service.ServiceContext serviceContext) 103 throws com.liferay.portal.kernel.exception.PortalException { 104 return _ddmStructureService.addStructure(userId, groupId, classNameId, 105 nameMap, descriptionMap, ddmForm, serviceContext); 106 } 107 108 /** 109 * Adds a structure referencing a default parent structure, using the portal 110 * property <code>dynamic.data.lists.storage.type</code> storage type and 111 * default structure type. 112 * 113 * @param userId the primary key of the structure's creator/owner 114 * @param groupId the primary key of the group 115 * @param classNameId the primary key of the class name for the 116 structure's related model 117 * @param nameMap the structure's locales and localized names 118 * @param descriptionMap the structure's locales and localized 119 descriptions 120 * @param xsd the structure's XML schema definition 121 * @param serviceContext the service context to be applied. Can set the 122 UUID, creation date, modification date, guest permissions, 123 and group permissions for the structure. 124 * @return the structure 125 * @throws PortalException if a user with the primary key could not be 126 found, if the user did not have permission to add the 127 structure, if the XSD was not well-formed, or if a portal 128 exception occurred 129 * @deprecated As of 7.0.0, replaced by {@link #addStructure(long, long, 130 long, Map, Map, DDMForm, ServiceContext)} 131 */ 132 @Deprecated 133 @Override 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 return _ddmStructureService.addStructure(userId, groupId, classNameId, 142 nameMap, descriptionMap, xsd, serviceContext); 143 } 144 145 @Override 146 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure( 147 long userId, long groupId, java.lang.String parentStructureKey, 148 long classNameId, java.lang.String structureKey, 149 java.util.Map<java.util.Locale, java.lang.String> nameMap, 150 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 151 com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm, 152 java.lang.String storageType, int type, 153 com.liferay.portal.service.ServiceContext serviceContext) 154 throws com.liferay.portal.kernel.exception.PortalException { 155 return _ddmStructureService.addStructure(userId, groupId, 156 parentStructureKey, classNameId, structureKey, nameMap, 157 descriptionMap, ddmForm, storageType, type, serviceContext); 158 } 159 160 /** 161 * Adds a structure referencing the parent structure by its structure key. 162 * In case the parent structure is not found, it uses the default parent 163 * structure ID. 164 * 165 * @param userId the primary key of the structure's creator/owner 166 * @param groupId the primary key of the group 167 * @param parentStructureKey the unique string identifying the 168 structure 169 * @param classNameId the primary key of the class name for the 170 structure's related model 171 * @param structureKey unique string identifying the structure 172 (optionally <code>null</code>) 173 * @param nameMap the structure's locales and localized names 174 * @param descriptionMap the structure's locales and localized 175 descriptions 176 * @param xsd the XML schema definition of the structure 177 * @param storageType the storage type of the structure. It can be XML 178 or expando. For more information, see {@link 179 com.liferay.portlet.dynamicdatamapping.storage.StorageType}. 180 * @param type the structure's type. For more information, see {@link 181 com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}. 182 * @param serviceContext the service context to be applied. Must have 183 the <code>ddmResource</code> attribute to check permissions. 184 Can set the UUID, creation date, modification date, guest 185 permissions, and group permissions for the structure. 186 * @return the structure 187 * @throws PortalException if a user with the primary key could not be 188 found, if the user did not have permission to add the 189 structure, if the XSD was not well-formed, or if a portal 190 exception occurred 191 * @deprecated As of 7.0.0, replaced by {@link #addStructure(long, long, 192 String, long, String, Map, Map, DDMForm, String, int, 193 ServiceContext)} 194 */ 195 @Deprecated 196 @Override 197 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure( 198 long userId, long groupId, java.lang.String parentStructureKey, 199 long classNameId, java.lang.String structureKey, 200 java.util.Map<java.util.Locale, java.lang.String> nameMap, 201 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 202 java.lang.String xsd, java.lang.String storageType, int type, 203 com.liferay.portal.service.ServiceContext serviceContext) 204 throws com.liferay.portal.kernel.exception.PortalException { 205 return _ddmStructureService.addStructure(userId, groupId, 206 parentStructureKey, classNameId, structureKey, nameMap, 207 descriptionMap, xsd, storageType, type, serviceContext); 208 } 209 210 /** 211 * Copies a structure, creating a new structure with all the values 212 * extracted from the original one. The new structure supports a new name 213 * and description. 214 * 215 * @param structureId the primary key of the structure to be copied 216 * @param nameMap the new structure's locales and localized names 217 * @param descriptionMap the new structure's locales and localized 218 descriptions 219 * @param serviceContext the service context to be applied. Can set the 220 UUID, creation date, modification date, guest permissions, and 221 group permissions for the structure. 222 * @return the new structure 223 * @throws PortalException if the user did not have permission to add the 224 structure or if a portal exception occurred 225 */ 226 @Override 227 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure( 228 long structureId, 229 java.util.Map<java.util.Locale, java.lang.String> nameMap, 230 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 231 com.liferay.portal.service.ServiceContext serviceContext) 232 throws com.liferay.portal.kernel.exception.PortalException { 233 return _ddmStructureService.copyStructure(structureId, nameMap, 234 descriptionMap, serviceContext); 235 } 236 237 @Override 238 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure( 239 long structureId, 240 com.liferay.portal.service.ServiceContext serviceContext) 241 throws com.liferay.portal.kernel.exception.PortalException { 242 return _ddmStructureService.copyStructure(structureId, serviceContext); 243 } 244 245 /** 246 * Deletes the structure and its resources. 247 * 248 * <p> 249 * Before deleting the structure, the system verifies whether the structure 250 * is required by another entity. If it is needed, an exception is thrown. 251 * </p> 252 * 253 * @param structureId the primary key of the structure to be deleted 254 * @throws PortalException if the user did not have permission to delete the 255 structure or if a portal exception occurred 256 */ 257 @Override 258 public void deleteStructure(long structureId) 259 throws com.liferay.portal.kernel.exception.PortalException { 260 _ddmStructureService.deleteStructure(structureId); 261 } 262 263 /** 264 * Returns the structure matching the class name ID, structure key, and 265 * group. 266 * 267 * @param groupId the primary key of the group 268 * @param classNameId the primary key of the class name for the structure's 269 related model 270 * @param structureKey the unique string identifying the structure 271 * @return the matching structure, or <code>null</code> if a matching 272 structure could not be found 273 * @throws PortalException if the user did not have permission to view the 274 structure or if a portal exception occurred 275 */ 276 @Override 277 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure( 278 long groupId, long classNameId, java.lang.String structureKey) 279 throws com.liferay.portal.kernel.exception.PortalException { 280 return _ddmStructureService.fetchStructure(groupId, classNameId, 281 structureKey); 282 } 283 284 /** 285 * Returns the Spring bean ID for this bean. 286 * 287 * @return the Spring bean ID for this bean 288 */ 289 @Override 290 public java.lang.String getBeanIdentifier() { 291 return _ddmStructureService.getBeanIdentifier(); 292 } 293 294 @Override 295 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getJournalFolderStructures( 296 long[] groupIds, long journalFolderId, int restrictionType) 297 throws com.liferay.portal.kernel.exception.PortalException { 298 return _ddmStructureService.getJournalFolderStructures(groupIds, 299 journalFolderId, restrictionType); 300 } 301 302 /** 303 * Returns the structure matching the class name ID, structure key, and 304 * group. 305 * 306 * @param groupId the primary key of the structure's group 307 * @param classNameId the primary key of the class name for the structure's 308 related model 309 * @param structureKey the unique string identifying the structure 310 * @return the matching structure 311 * @throws PortalException if the user did not have permission to view the 312 structure or if a matching structure could not be found 313 */ 314 @Override 315 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure( 316 long groupId, long classNameId, java.lang.String structureKey) 317 throws com.liferay.portal.kernel.exception.PortalException { 318 return _ddmStructureService.getStructure(groupId, classNameId, 319 structureKey); 320 } 321 322 /** 323 * Returns the structure matching the class name ID, structure key, and 324 * group, optionally searching ancestor sites (that have sharing enabled) 325 * and global scoped sites. 326 * 327 * <p> 328 * This method first searches in the group. If the structure is still not 329 * found and <code>includeAncestorStructures</code> is set to 330 * <code>true</code>, this method searches the group's ancestor sites (that 331 * have sharing enabled) and lastly searches global scoped sites. 332 * </p> 333 * 334 * @param groupId the primary key of the structure's group 335 * @param classNameId the primary key of the class name for the structure's 336 related model 337 * @param structureKey the unique string identifying the structure 338 * @param includeAncestorStructures whether to include ancestor sites (that 339 have sharing enabled) and include global scoped sites in the 340 search 341 * @return the matching structure 342 * @throws PortalException if the user did not have permission to view the 343 structure or if a matching structure could not be found 344 */ 345 @Override 346 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure( 347 long groupId, long classNameId, java.lang.String structureKey, 348 boolean includeAncestorStructures) 349 throws com.liferay.portal.kernel.exception.PortalException { 350 return _ddmStructureService.getStructure(groupId, classNameId, 351 structureKey, includeAncestorStructures); 352 } 353 354 /** 355 * Returns the structure with the ID. 356 * 357 * @param structureId the primary key of the structure 358 * @return the structure with the ID 359 * @throws PortalException if the user did not have permission to view the 360 structure or if a structure with the ID could not be found 361 */ 362 @Override 363 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure( 364 long structureId) 365 throws com.liferay.portal.kernel.exception.PortalException { 366 return _ddmStructureService.getStructure(structureId); 367 } 368 369 /** 370 * Returns all the structures in the group that the user has permission to 371 * view. 372 * 373 * @param groupId the primary key of the group 374 * @return the structures in the group that the user has permission to view 375 */ 376 @Override 377 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures( 378 long groupId) { 379 return _ddmStructureService.getStructures(groupId); 380 } 381 382 /** 383 * Returns all the structures in the groups that the user has permission to 384 * view. 385 * 386 * @param groupIds the primary key of the groups 387 * @return the structures in the groups that the user has permission to view 388 */ 389 @Override 390 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures( 391 long[] groupIds) { 392 return _ddmStructureService.getStructures(groupIds); 393 } 394 395 /** 396 * Returns all the structures matching the groups and class name ID that the 397 * user has permission to view. 398 * 399 * @param groupIds the primary keys of the groups 400 * @param classNameId the primary key of the class name for the structure's 401 related model 402 * @return the structures matching the groups and class name ID that the 403 user has permission to view 404 */ 405 @Override 406 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures( 407 long[] groupIds, long classNameId) { 408 return _ddmStructureService.getStructures(groupIds, classNameId); 409 } 410 411 @Override 412 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures( 413 long[] groupIds, long classNameId, int start, int end) { 414 return _ddmStructureService.getStructures(groupIds, classNameId, start, 415 end); 416 } 417 418 /** 419 * Returns an ordered range of all the structures matching the groups and 420 * class name IDs, and matching the keywords in the structure names and 421 * descriptions. 422 * 423 * <p> 424 * Useful when paginating results. Returns a maximum of <code>end - 425 * start</code> instances. <code>start</code> and <code>end</code> are not 426 * primary keys, they are indexes in the result set. Thus, <code>0</code> 427 * refers to the first result in the set. Setting both <code>start</code> 428 * and <code>end</code> to {@link 429 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 430 * result set. 431 * </p> 432 * 433 * @param companyId the primary key of the structure's company 434 * @param groupIds the primary keys of the groups 435 * @param classNameIds the primary keys of the class names of the models 436 the structures are related to 437 * @param keywords the keywords (space separated), which may occur in the 438 structure's name or description (optionally <code>null</code>) 439 * @param start the lower bound of the range of structures to return 440 * @param end the upper bound of the range of structures to return (not 441 inclusive) 442 * @param orderByComparator the comparator to order the structures 443 (optionally <code>null</code>) 444 * @return the range of matching structures ordered by the comparator 445 */ 446 @Override 447 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search( 448 long companyId, long[] groupIds, long[] classNameIds, 449 java.lang.String keywords, int start, int end, 450 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> orderByComparator) { 451 return _ddmStructureService.search(companyId, groupIds, classNameIds, 452 keywords, start, end, orderByComparator); 453 } 454 455 /** 456 * Returns an ordered range of all the structures matching the groups, class 457 * name IDs, name keyword, description keyword, storage type, and type. 458 * 459 * <p> 460 * Useful when paginating results. Returns a maximum of <code>end - 461 * start</code> instances. <code>start</code> and <code>end</code> are not 462 * primary keys, they are indexes in the result set. Thus, <code>0</code> 463 * refers to the first result in the set. Setting both <code>start</code> 464 * and <code>end</code> to {@link 465 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 466 * result set. 467 * </p> 468 * 469 * @param companyId the primary key of the structure's company 470 * @param groupIds the primary keys of the groups 471 * @param classNameIds the primary keys of the class names of the models 472 the structures are 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 * @param start the lower bound of the range of structures to return 483 * @param end the upper bound of the range of structures to return (not 484 inclusive) 485 * @param orderByComparator the comparator to order the structures 486 (optionally <code>null</code>) 487 * @return the range of matching structures ordered by the comparator 488 */ 489 @Override 490 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search( 491 long companyId, long[] groupIds, long[] classNameIds, 492 java.lang.String name, java.lang.String description, 493 java.lang.String storageType, int type, boolean andOperator, int start, 494 int end, 495 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> orderByComparator) { 496 return _ddmStructureService.search(companyId, groupIds, classNameIds, 497 name, description, storageType, type, andOperator, start, end, 498 orderByComparator); 499 } 500 501 /** 502 * Returns the number of structures matching the groups and class name IDs, 503 * and matching the keywords in the structure names and descriptions. 504 * 505 * @param companyId the primary key of the structure's company 506 * @param groupIds the primary keys of the groups 507 * @param classNameIds the primary keys of the class names of the models 508 the structures are related to 509 * @param keywords the keywords (space separated), which may occur in the 510 structure's name or description (optionally <code>null</code>) 511 * @return the number of matching structures 512 */ 513 @Override 514 public int searchCount(long companyId, long[] groupIds, 515 long[] classNameIds, java.lang.String keywords) { 516 return _ddmStructureService.searchCount(companyId, groupIds, 517 classNameIds, keywords); 518 } 519 520 /** 521 * Returns the number of structures matching the groups, class name IDs, 522 * name keyword, description keyword, storage type, and type 523 * 524 * @param companyId the primary key of the structure's company 525 * @param groupIds the primary keys of the groups 526 * @param classNameIds the primary keys of the class names of the models 527 the structure's are related to 528 * @param name the name keywords 529 * @param description the description keywords 530 * @param storageType the structure's storage type. It can be "xml" or 531 "expando". For more information, see {@link 532 com.liferay.portlet.dynamicdatamapping.storage.StorageType}. 533 * @param type the structure's type. For more information, see {@link 534 com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}. 535 * @param andOperator whether every field must match its keywords, or just 536 one field 537 * @return the number of matching structures 538 */ 539 @Override 540 public int searchCount(long companyId, long[] groupIds, 541 long[] classNameIds, java.lang.String name, 542 java.lang.String description, java.lang.String storageType, int type, 543 boolean andOperator) { 544 return _ddmStructureService.searchCount(companyId, groupIds, 545 classNameIds, name, description, storageType, type, andOperator); 546 } 547 548 /** 549 * Sets the Spring bean ID for this bean. 550 * 551 * @param beanIdentifier the Spring bean ID for this bean 552 */ 553 @Override 554 public void setBeanIdentifier(java.lang.String beanIdentifier) { 555 _ddmStructureService.setBeanIdentifier(beanIdentifier); 556 } 557 558 @Override 559 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure( 560 long groupId, long parentStructureId, long classNameId, 561 java.lang.String structureKey, 562 java.util.Map<java.util.Locale, java.lang.String> nameMap, 563 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 564 com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm, 565 com.liferay.portal.service.ServiceContext serviceContext) 566 throws com.liferay.portal.kernel.exception.PortalException { 567 return _ddmStructureService.updateStructure(groupId, parentStructureId, 568 classNameId, structureKey, nameMap, descriptionMap, ddmForm, 569 serviceContext); 570 } 571 572 /** 573 * Updates the structure matching the class name ID, structure key, and 574 * group, replacing its old parent structure, name map, description map, and 575 * XSD with new ones. 576 * 577 * @param groupId the primary key of the group 578 * @param parentStructureId the primary key of the new parent structure 579 * @param classNameId the primary key of the class name for the 580 structure's related model 581 * @param structureKey the unique string identifying the structure 582 * @param nameMap the structure's new locales and localized names 583 * @param descriptionMap the structure's new locales and localized 584 description 585 * @param definition the structure's new XML schema definition 586 * @param serviceContext the service context to be applied. Can set the 587 modification date. 588 * @return the updated structure 589 * @throws PortalException if the user did not have permission to update 590 the structure or if a portal exception occurred 591 * @deprecated As of 7.0.0, replaced by {@link #updateStructure(long, long, 592 long, String, Map, Map, DDMForm, ServiceContext)} 593 */ 594 @Deprecated 595 @Override 596 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure( 597 long groupId, long parentStructureId, long classNameId, 598 java.lang.String structureKey, 599 java.util.Map<java.util.Locale, java.lang.String> nameMap, 600 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 601 java.lang.String definition, 602 com.liferay.portal.service.ServiceContext serviceContext) 603 throws com.liferay.portal.kernel.exception.PortalException { 604 return _ddmStructureService.updateStructure(groupId, parentStructureId, 605 classNameId, structureKey, nameMap, descriptionMap, definition, 606 serviceContext); 607 } 608 609 @Override 610 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure( 611 long structureId, long parentStructureId, 612 java.util.Map<java.util.Locale, java.lang.String> nameMap, 613 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 614 com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm, 615 com.liferay.portal.service.ServiceContext serviceContext) 616 throws com.liferay.portal.kernel.exception.PortalException { 617 return _ddmStructureService.updateStructure(structureId, 618 parentStructureId, nameMap, descriptionMap, ddmForm, serviceContext); 619 } 620 621 /** 622 * Updates the structure matching the structure ID, replacing the old parent 623 * structure ID, name map, description map, and XSD with the new values. 624 * 625 * @param structureId the primary key of the structure 626 * @param parentStructureId the new parent structure primary key 627 * @param nameMap the structure's new locales and localized names 628 * @param descriptionMap the structure's new locales and localized 629 description 630 * @param definition the new XML schema definition of the structure 631 * @param serviceContext the service context to be applied. Can set the 632 modification date. 633 * @return the updated structure 634 * @throws PortalException if the user did not have permission to update 635 the structure or if a portal exception occurred 636 * @deprecated As of 7.0.0, replaced by {@link #updateStructure(long, long, 637 Map, Map, DDMForm, ServiceContext)} 638 */ 639 @Deprecated 640 @Override 641 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure( 642 long structureId, long parentStructureId, 643 java.util.Map<java.util.Locale, java.lang.String> nameMap, 644 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 645 java.lang.String definition, 646 com.liferay.portal.service.ServiceContext serviceContext) 647 throws com.liferay.portal.kernel.exception.PortalException { 648 return _ddmStructureService.updateStructure(structureId, 649 parentStructureId, nameMap, descriptionMap, definition, 650 serviceContext); 651 } 652 653 /** 654 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 655 */ 656 @Deprecated 657 public DDMStructureService getWrappedDDMStructureService() { 658 return _ddmStructureService; 659 } 660 661 /** 662 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 663 */ 664 @Deprecated 665 public void setWrappedDDMStructureService( 666 DDMStructureService ddmStructureService) { 667 _ddmStructureService = ddmStructureService; 668 } 669 670 @Override 671 public DDMStructureService getWrappedService() { 672 return _ddmStructureService; 673 } 674 675 @Override 676 public void setWrappedService(DDMStructureService ddmStructureService) { 677 _ddmStructureService = ddmStructureService; 678 } 679 680 private DDMStructureService _ddmStructureService; 681 }