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