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.portal.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 /** 020 * Provides a wrapper for {@link LayoutLocalService}. 021 * 022 * @author Brian Wing Shun Chan 023 * @see LayoutLocalService 024 * @generated 025 */ 026 @ProviderType 027 public class LayoutLocalServiceWrapper implements LayoutLocalService, 028 ServiceWrapper<LayoutLocalService> { 029 public LayoutLocalServiceWrapper(LayoutLocalService layoutLocalService) { 030 _layoutLocalService = layoutLocalService; 031 } 032 033 /** 034 * Adds the layout to the database. Also notifies the appropriate model listeners. 035 * 036 * @param layout the layout 037 * @return the layout that was added 038 */ 039 @Override 040 public com.liferay.portal.model.Layout addLayout( 041 com.liferay.portal.model.Layout layout) { 042 return _layoutLocalService.addLayout(layout); 043 } 044 045 /** 046 * Adds a layout with single entry maps for name, title, and description to 047 * the default locale. 048 * 049 * <p> 050 * This method handles the creation of the layout including its resources, 051 * metadata, and internal data structures. It is not necessary to make 052 * subsequent calls to any methods to setup default groups, resources, ... 053 * etc. 054 * </p> 055 * 056 * @param userId the primary key of the user 057 * @param groupId the primary key of the group 058 * @param privateLayout whether the layout is private to the group 059 * @param parentLayoutId the primary key of the parent layout (optionally 060 {@link 061 com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID}). 062 The possible values can be found in {@link 063 com.liferay.portal.model.LayoutConstants}. 064 * @param name the layout's name (optionally {@link 065 com.liferay.portal.util.PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_NAME} 066 or {@link 067 com.liferay.portal.util.PropsValues#DEFAULT_USER_PUBLIC_LAYOUT_NAME}). 068 The default values can be overridden in 069 <code>portal-ext.properties</code> by specifying new values for 070 the corresponding properties defined in {@link 071 com.liferay.portal.util.PropsValues} 072 * @param title the layout's title 073 * @param description the layout's description 074 * @param type the layout's type (optionally {@link 075 com.liferay.portal.model.LayoutConstants#TYPE_PORTLET}). The 076 possible types can be found in {@link 077 com.liferay.portal.model.LayoutConstants}. 078 * @param hidden whether the layout is hidden 079 * @param friendlyURL the friendly URL of the layout (optionally {@link 080 com.liferay.portal.util.PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL} 081 or {@link 082 com.liferay.portal.util.PropsValues#DEFAULT_USER_PUBLIC_LAYOUT_FRIENDLY_URL}). 083 The default values can be overridden in 084 <code>portal-ext.properties</code> by specifying new values for 085 the corresponding properties defined in {@link 086 com.liferay.portal.util.PropsValues}. To see how the URL is 087 normalized when accessed, see {@link 088 com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize( 089 String)}. 090 * @param serviceContext the service context to be applied. Must set the 091 UUID for the layout. Can set the creation date and modification 092 date for the layout. For layouts that belong to a layout set 093 prototype, an attribute named <code>layoutUpdateable</code> can 094 be set to specify whether site administrators can modify this 095 page within their site. 096 * @return the layout 097 * @throws PortalException if a group or user with the primary key could not 098 be found, or if a portal exception occurred 099 */ 100 @Override 101 public com.liferay.portal.model.Layout addLayout(long userId, long groupId, 102 boolean privateLayout, long parentLayoutId, java.lang.String name, 103 java.lang.String title, java.lang.String description, 104 java.lang.String type, boolean hidden, java.lang.String friendlyURL, 105 com.liferay.portal.service.ServiceContext serviceContext) 106 throws com.liferay.portal.kernel.exception.PortalException { 107 return _layoutLocalService.addLayout(userId, groupId, privateLayout, 108 parentLayoutId, name, title, description, type, hidden, 109 friendlyURL, serviceContext); 110 } 111 112 /** 113 * Adds a layout. 114 * 115 * <p> 116 * This method handles the creation of the layout including its resources, 117 * metadata, and internal data structures. It is not necessary to make 118 * subsequent calls to any methods to setup default groups, resources, ... 119 * etc. 120 * </p> 121 * 122 * @param userId the primary key of the user 123 * @param groupId the primary key of the group 124 * @param privateLayout whether the layout is private to the group 125 * @param parentLayoutId the primary key of the parent layout 126 (optionally {@link 127 com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID}) 128 * @param nameMap the layout's locales and localized names 129 * @param titleMap the layout's locales and localized titles 130 * @param descriptionMap the layout's locales and localized 131 descriptions 132 * @param keywordsMap the layout's locales and localized keywords 133 * @param robotsMap the layout's locales and localized robots 134 * @param type the layout's type (optionally {@link 135 com.liferay.portal.model.LayoutConstants#TYPE_PORTLET}). The 136 possible types can be found in {@link 137 com.liferay.portal.model.LayoutConstants}. 138 * @param hidden whether the layout is hidden 139 * @param friendlyURL the layout's friendly URL (optionally {@link 140 com.liferay.portal.util.PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL} 141 or {@link 142 com.liferay.portal.util.PropsValues#DEFAULT_USER_PUBLIC_LAYOUT_FRIENDLY_URL}). 143 The default values can be overridden in 144 <code>portal-ext.properties</code> by specifying new values 145 for the corresponding properties defined in {@link 146 com.liferay.portal.util.PropsValues}. To see how the URL is 147 normalized when accessed, see {@link 148 com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize( 149 String)}. 150 * @param serviceContext the service context to be applied. Must set 151 the UUID for the layout. Can set the creation date, 152 modification date and the expando bridge attributes for the 153 layout. For layouts that belong to a layout set prototype, an 154 attribute named <code>layoutUpdateable</code> can be set to 155 specify whether site administrators can modify this page 156 within their site. For layouts that are created from a layout 157 prototype, attributes named <code>layoutPrototypeUuid</code> 158 and <code>layoutPrototypeLinkedEnabled</code> can be 159 specified to provide the unique identifier of the source 160 prototype and a boolean to determine whether a link to it 161 should be enabled to activate propagation of changes made to 162 the linked page in the prototype. 163 * @return the layout 164 * @throws PortalException if a group or user with the primary key could 165 not be found, if layout values were invalid, or if a portal 166 exception occurred 167 * @deprecated As of 6.2.0, replaced by {@link #addLayout(long, long, 168 boolean, long, Map, Map, Map, Map, Map, String, String, 169 boolean, Map, ServiceContext)} 170 */ 171 @Deprecated 172 @Override 173 public com.liferay.portal.model.Layout addLayout(long userId, long groupId, 174 boolean privateLayout, long parentLayoutId, 175 java.util.Map<java.util.Locale, java.lang.String> nameMap, 176 java.util.Map<java.util.Locale, java.lang.String> titleMap, 177 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 178 java.util.Map<java.util.Locale, java.lang.String> keywordsMap, 179 java.util.Map<java.util.Locale, java.lang.String> robotsMap, 180 java.lang.String type, boolean hidden, java.lang.String friendlyURL, 181 com.liferay.portal.service.ServiceContext serviceContext) 182 throws com.liferay.portal.kernel.exception.PortalException { 183 return _layoutLocalService.addLayout(userId, groupId, privateLayout, 184 parentLayoutId, nameMap, titleMap, descriptionMap, keywordsMap, 185 robotsMap, type, hidden, friendlyURL, serviceContext); 186 } 187 188 /** 189 * Adds a layout with additional parameters. 190 * 191 * <p> 192 * This method handles the creation of the layout including its resources, 193 * metadata, and internal data structures. It is not necessary to make 194 * subsequent calls to any methods to setup default groups, resources, ... 195 * etc. 196 * </p> 197 * 198 * @param userId the primary key of the user 199 * @param groupId the primary key of the group 200 * @param privateLayout whether the layout is private to the group 201 * @param parentLayoutId the primary key of the parent layout (optionally 202 {@link 203 com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID}) 204 * @param nameMap the layout's locales and localized names 205 * @param titleMap the layout's locales and localized titles 206 * @param descriptionMap the layout's locales and localized descriptions 207 * @param keywordsMap the layout's locales and localized keywords 208 * @param robotsMap the layout's locales and localized robots 209 * @param type the layout's type (optionally {@link 210 com.liferay.portal.model.LayoutConstants#TYPE_PORTLET}). The 211 possible types can be found in {@link 212 com.liferay.portal.model.LayoutConstants}. 213 * @param typeSettings the settings to load the unicode properties object. 214 See {@link com.liferay.portal.kernel.util.UnicodeProperties 215 #fastLoad(String)}. 216 * @param hidden whether the layout is hidden 217 * @param friendlyURLMap the layout's locales and localized friendly URLs. 218 To see how the URL is normalized when accessed, see {@link 219 com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize( 220 String)}. 221 * @param serviceContext the service context to be applied. Must set the 222 UUID for the layout. Can set the creation date, modification 223 date, and expando bridge attributes for the layout. For layouts 224 that belong to a layout set prototype, an attribute named 225 <code>layoutUpdateable</code> can be set to specify whether site 226 administrators can modify this page within their site. For 227 layouts that are created from a layout prototype, attributes 228 named <code>layoutPrototypeUuid</code> and 229 <code>layoutPrototypeLinkedEnabled</code> can be specified to 230 provide the unique identifier of the source prototype and a 231 boolean to determine whether a link to it should be enabled to 232 activate propagation of changes made to the linked page in the 233 prototype. 234 * @return the layout 235 * @throws PortalException if a group or user with the primary key could not 236 be found, if layout values were invalid, or if a portal exception 237 occurred 238 */ 239 @Override 240 public com.liferay.portal.model.Layout addLayout(long userId, long groupId, 241 boolean privateLayout, long parentLayoutId, 242 java.util.Map<java.util.Locale, java.lang.String> nameMap, 243 java.util.Map<java.util.Locale, java.lang.String> titleMap, 244 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 245 java.util.Map<java.util.Locale, java.lang.String> keywordsMap, 246 java.util.Map<java.util.Locale, java.lang.String> robotsMap, 247 java.lang.String type, java.lang.String typeSettings, boolean hidden, 248 java.util.Map<java.util.Locale, java.lang.String> friendlyURLMap, 249 com.liferay.portal.service.ServiceContext serviceContext) 250 throws com.liferay.portal.kernel.exception.PortalException { 251 return _layoutLocalService.addLayout(userId, groupId, privateLayout, 252 parentLayoutId, nameMap, titleMap, descriptionMap, keywordsMap, 253 robotsMap, type, typeSettings, hidden, friendlyURLMap, 254 serviceContext); 255 } 256 257 /** 258 * Creates a new layout with the primary key. Does not add the layout to the database. 259 * 260 * @param plid the primary key for the new layout 261 * @return the new layout 262 */ 263 @Override 264 public com.liferay.portal.model.Layout createLayout(long plid) { 265 return _layoutLocalService.createLayout(plid); 266 } 267 268 /** 269 * Deletes the layout with the primary key, also deleting the layout's child 270 * layouts, and associated resources. 271 * 272 * @param groupId the primary key of the group 273 * @param privateLayout whether the layout is private to the group 274 * @param layoutId the primary key of the layout 275 * @param serviceContext the service context to be applied 276 * @throws PortalException if a matching layout could not be found , or if 277 some other portal exception occurred 278 */ 279 @Override 280 public void deleteLayout(long groupId, boolean privateLayout, 281 long layoutId, com.liferay.portal.service.ServiceContext serviceContext) 282 throws com.liferay.portal.kernel.exception.PortalException { 283 _layoutLocalService.deleteLayout(groupId, privateLayout, layoutId, 284 serviceContext); 285 } 286 287 /** 288 * Deletes the layout from the database. Also notifies the appropriate model listeners. 289 * 290 * @param layout the layout 291 * @return the layout that was removed 292 */ 293 @Override 294 public com.liferay.portal.model.Layout deleteLayout( 295 com.liferay.portal.model.Layout layout) { 296 return _layoutLocalService.deleteLayout(layout); 297 } 298 299 /** 300 * Deletes the layout, its child layouts, and its associated resources. 301 * 302 * @param layout the layout 303 * @param updateLayoutSet whether the layout set's page counter needs to be 304 updated 305 * @param serviceContext the service context to be applied 306 * @throws PortalException if a portal exception occurred 307 */ 308 @Override 309 public void deleteLayout(com.liferay.portal.model.Layout layout, 310 boolean updateLayoutSet, 311 com.liferay.portal.service.ServiceContext serviceContext) 312 throws com.liferay.portal.kernel.exception.PortalException { 313 _layoutLocalService.deleteLayout(layout, updateLayoutSet, serviceContext); 314 } 315 316 /** 317 * Deletes the layout with the primary key from the database. Also notifies the appropriate model listeners. 318 * 319 * @param plid the primary key of the layout 320 * @return the layout that was removed 321 * @throws PortalException if a layout with the primary key could not be found 322 */ 323 @Override 324 public com.liferay.portal.model.Layout deleteLayout(long plid) 325 throws com.liferay.portal.kernel.exception.PortalException { 326 return _layoutLocalService.deleteLayout(plid); 327 } 328 329 /** 330 * Deletes the layout with the plid, also deleting the layout's child 331 * layouts, and associated resources. 332 * 333 * @param plid the primary key of the layout 334 * @param serviceContext the service context to be applied 335 * @throws PortalException if a layout with the primary key could not be 336 found , or if some other portal exception occurred 337 */ 338 @Override 339 public void deleteLayout(long plid, 340 com.liferay.portal.service.ServiceContext serviceContext) 341 throws com.liferay.portal.kernel.exception.PortalException { 342 _layoutLocalService.deleteLayout(plid, serviceContext); 343 } 344 345 /** 346 * Deletes the group's private or non-private layouts, also deleting the 347 * layouts' child layouts, and associated resources. 348 * 349 * @param groupId the primary key of the group 350 * @param privateLayout whether the layout is private to the group 351 * @param serviceContext the service context to be applied. The parent 352 layout set's page count will be updated by default, unless an 353 attribute named <code>updatePageCount</code> is set to 354 <code>false</code>. 355 * @throws PortalException if a group with the primary key could not be 356 found or if a layout set for the group and privacy could not be 357 found 358 */ 359 @Override 360 public void deleteLayouts(long groupId, boolean privateLayout, 361 com.liferay.portal.service.ServiceContext serviceContext) 362 throws com.liferay.portal.kernel.exception.PortalException { 363 _layoutLocalService.deleteLayouts(groupId, privateLayout, serviceContext); 364 } 365 366 /** 367 * @throws PortalException 368 */ 369 @Override 370 public com.liferay.portal.model.PersistedModel deletePersistedModel( 371 com.liferay.portal.model.PersistedModel persistedModel) 372 throws com.liferay.portal.kernel.exception.PortalException { 373 return _layoutLocalService.deletePersistedModel(persistedModel); 374 } 375 376 @Override 377 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 378 return _layoutLocalService.dynamicQuery(); 379 } 380 381 /** 382 * Performs a dynamic query on the database and returns the matching rows. 383 * 384 * @param dynamicQuery the dynamic query 385 * @return the matching rows 386 */ 387 @Override 388 public <T> java.util.List<T> dynamicQuery( 389 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 390 return _layoutLocalService.dynamicQuery(dynamicQuery); 391 } 392 393 /** 394 * Performs a dynamic query on the database and returns a range of the matching rows. 395 * 396 * <p> 397 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 398 * </p> 399 * 400 * @param dynamicQuery the dynamic query 401 * @param start the lower bound of the range of model instances 402 * @param end the upper bound of the range of model instances (not inclusive) 403 * @return the range of matching rows 404 */ 405 @Override 406 public <T> java.util.List<T> dynamicQuery( 407 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 408 int end) { 409 return _layoutLocalService.dynamicQuery(dynamicQuery, start, end); 410 } 411 412 /** 413 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 414 * 415 * <p> 416 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 417 * </p> 418 * 419 * @param dynamicQuery the dynamic query 420 * @param start the lower bound of the range of model instances 421 * @param end the upper bound of the range of model instances (not inclusive) 422 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 423 * @return the ordered range of matching rows 424 */ 425 @Override 426 public <T> java.util.List<T> dynamicQuery( 427 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 428 int end, 429 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 430 return _layoutLocalService.dynamicQuery(dynamicQuery, start, end, 431 orderByComparator); 432 } 433 434 /** 435 * Returns the number of rows that match the dynamic query. 436 * 437 * @param dynamicQuery the dynamic query 438 * @return the number of rows that match the dynamic query 439 */ 440 @Override 441 public long dynamicQueryCount( 442 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 443 return _layoutLocalService.dynamicQueryCount(dynamicQuery); 444 } 445 446 /** 447 * Returns the number of rows that match the dynamic query. 448 * 449 * @param dynamicQuery the dynamic query 450 * @param projection the projection to apply to the query 451 * @return the number of rows that match the dynamic query 452 */ 453 @Override 454 public long dynamicQueryCount( 455 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 456 com.liferay.portal.kernel.dao.orm.Projection projection) { 457 return _layoutLocalService.dynamicQueryCount(dynamicQuery, projection); 458 } 459 460 /** 461 * Exports layouts with the primary keys and criteria as a byte array. 462 * 463 * @param groupId the primary key of the group 464 * @param privateLayout whether the layout is private to the group 465 * @param layoutIds the primary keys of the layouts to be exported 466 * @param parameterMap the mapping of parameters indicating which 467 information to export. For information on the keys used in the 468 map see {@link 469 com.liferay.portal.kernel.lar.PortletDataHandlerKeys}. 470 * @param startDate the export's start date 471 * @param endDate the export's end date 472 * @return the layouts as a byte array 473 * @throws PortalException if a group or any layout with the primary key 474 could not be found, or if some other portal exception occurred 475 */ 476 @Override 477 public byte[] exportLayouts(long groupId, boolean privateLayout, 478 long[] layoutIds, 479 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 480 java.util.Date startDate, java.util.Date endDate) 481 throws com.liferay.portal.kernel.exception.PortalException { 482 return _layoutLocalService.exportLayouts(groupId, privateLayout, 483 layoutIds, parameterMap, startDate, endDate); 484 } 485 486 /** 487 * Exports all layouts that match the criteria as a byte array. 488 * 489 * @param groupId the primary key of the group 490 * @param privateLayout whether the layout is private to the group 491 * @param parameterMap the mapping of parameters indicating which 492 information to export. For information on the keys used in the 493 map see {@link 494 com.liferay.portal.kernel.lar.PortletDataHandlerKeys}. 495 * @param startDate the export's start date 496 * @param endDate the export's end date 497 * @return the layout as a byte array 498 * @throws PortalException if a group with the primary key could not be 499 found or if some other portal exception occurred 500 */ 501 @Override 502 public byte[] exportLayouts(long groupId, boolean privateLayout, 503 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 504 java.util.Date startDate, java.util.Date endDate) 505 throws com.liferay.portal.kernel.exception.PortalException { 506 return _layoutLocalService.exportLayouts(groupId, privateLayout, 507 parameterMap, startDate, endDate); 508 } 509 510 /** 511 * Exports the layouts that match the primary keys and criteria as a file. 512 * 513 * @param groupId the primary key of the group 514 * @param privateLayout whether the layout is private to the group 515 * @param layoutIds the primary keys of the layouts to be exported 516 (optionally <code>null</code>) 517 * @param parameterMap the mapping of parameters indicating which 518 information to export. For information on the keys used in the 519 map see {@link 520 com.liferay.portal.kernel.lar.PortletDataHandlerKeys}. 521 * @param startDate the export's start date 522 * @param endDate the export's end date 523 * @return the layouts as a File 524 * @throws PortalException if a group or any layout with the primary key 525 could not be found, or if some other portal exception occurred 526 */ 527 @Override 528 public java.io.File exportLayoutsAsFile(long groupId, 529 boolean privateLayout, long[] layoutIds, 530 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 531 java.util.Date startDate, java.util.Date endDate) 532 throws com.liferay.portal.kernel.exception.PortalException { 533 return _layoutLocalService.exportLayoutsAsFile(groupId, privateLayout, 534 layoutIds, parameterMap, startDate, endDate); 535 } 536 537 @Override 538 public long exportLayoutsAsFileInBackground(long userId, 539 com.liferay.portal.model.ExportImportConfiguration exportImportConfiguration) 540 throws com.liferay.portal.kernel.exception.PortalException { 541 return _layoutLocalService.exportLayoutsAsFileInBackground(userId, 542 exportImportConfiguration); 543 } 544 545 @Override 546 public long exportLayoutsAsFileInBackground(long userId, 547 long exportImportConfigurationId) 548 throws com.liferay.portal.kernel.exception.PortalException { 549 return _layoutLocalService.exportLayoutsAsFileInBackground(userId, 550 exportImportConfigurationId); 551 } 552 553 @Override 554 public long exportLayoutsAsFileInBackground(long userId, 555 java.lang.String taskName, long groupId, boolean privateLayout, 556 long[] layoutIds, 557 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 558 java.util.Date startDate, java.util.Date endDate) 559 throws com.liferay.portal.kernel.exception.PortalException { 560 return _layoutLocalService.exportLayoutsAsFileInBackground(userId, 561 taskName, groupId, privateLayout, layoutIds, parameterMap, 562 startDate, endDate); 563 } 564 565 /** 566 * @deprecated As of 7.0.0, replaced by {@link 567 #exportLayoutsAsFileInBackground(long, String, long, boolean, 568 long[], Map, Date, Date)} 569 */ 570 @Deprecated 571 @Override 572 public long exportLayoutsAsFileInBackground(long userId, 573 java.lang.String taskName, long groupId, boolean privateLayout, 574 long[] layoutIds, 575 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 576 java.util.Date startDate, java.util.Date endDate, 577 java.lang.String fileName) 578 throws com.liferay.portal.kernel.exception.PortalException { 579 return _layoutLocalService.exportLayoutsAsFileInBackground(userId, 580 taskName, groupId, privateLayout, layoutIds, parameterMap, 581 startDate, endDate, fileName); 582 } 583 584 @Override 585 public byte[] exportPortletInfo(long companyId, java.lang.String portletId, 586 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 587 java.util.Date startDate, java.util.Date endDate) 588 throws com.liferay.portal.kernel.exception.PortalException { 589 return _layoutLocalService.exportPortletInfo(companyId, portletId, 590 parameterMap, startDate, endDate); 591 } 592 593 /** 594 * Exports the portlet information (categories, permissions, ... etc.) as a 595 * byte array. 596 * 597 * @param plid the primary key of the layout 598 * @param groupId the primary key of the group 599 * @param portletId the primary key of the portlet 600 * @param parameterMap the mapping of parameters indicating which 601 information to export. For information on the keys used in the 602 map see {@link 603 com.liferay.portal.kernel.lar.PortletDataHandlerKeys}. 604 * @param startDate the export's start date 605 * @param endDate the export's end date 606 * @return the portlet information as a byte array 607 * @throws PortalException if a group or portlet with the primary key could 608 not be found, or if some other portal exception occurred 609 */ 610 @Override 611 public byte[] exportPortletInfo(long plid, long groupId, 612 java.lang.String portletId, 613 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 614 java.util.Date startDate, java.util.Date endDate) 615 throws com.liferay.portal.kernel.exception.PortalException { 616 return _layoutLocalService.exportPortletInfo(plid, groupId, portletId, 617 parameterMap, startDate, endDate); 618 } 619 620 @Override 621 public java.io.File exportPortletInfoAsFile(long companyId, 622 java.lang.String portletId, 623 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 624 java.util.Date startDate, java.util.Date endDate) 625 throws com.liferay.portal.kernel.exception.PortalException { 626 return _layoutLocalService.exportPortletInfoAsFile(companyId, 627 portletId, parameterMap, startDate, endDate); 628 } 629 630 /** 631 * Exports the portlet information (categories, permissions, ... etc.) as a 632 * file. 633 * 634 * @param plid the primary key of the layout 635 * @param groupId the primary key of the group 636 * @param portletId the primary key of the portlet 637 * @param parameterMap the mapping of parameters indicating which 638 information to export. For information on the keys used in the 639 map see {@link 640 com.liferay.portal.kernel.lar.PortletDataHandlerKeys}. 641 * @param startDate the export's start date 642 * @param endDate the export's end date 643 * @return the portlet information as a file 644 * @throws PortalException if a group or portlet with the primary key could 645 not be found, or if some other portal exception occurred 646 */ 647 @Override 648 public java.io.File exportPortletInfoAsFile(long plid, long groupId, 649 java.lang.String portletId, 650 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 651 java.util.Date startDate, java.util.Date endDate) 652 throws com.liferay.portal.kernel.exception.PortalException { 653 return _layoutLocalService.exportPortletInfoAsFile(plid, groupId, 654 portletId, parameterMap, startDate, endDate); 655 } 656 657 @Override 658 public long exportPortletInfoAsFileInBackground(long userId, 659 java.lang.String taskName, long plid, long groupId, 660 java.lang.String portletId, 661 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 662 java.util.Date startDate, java.util.Date endDate, 663 java.lang.String fileName) 664 throws com.liferay.portal.kernel.exception.PortalException { 665 return _layoutLocalService.exportPortletInfoAsFileInBackground(userId, 666 taskName, plid, groupId, portletId, parameterMap, startDate, 667 endDate, fileName); 668 } 669 670 @Override 671 public long exportPortletInfoAsFileInBackground(long userId, 672 java.lang.String taskName, java.lang.String portletId, 673 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 674 java.util.Date startDate, java.util.Date endDate, 675 java.lang.String fileName) 676 throws com.liferay.portal.kernel.exception.PortalException { 677 return _layoutLocalService.exportPortletInfoAsFileInBackground(userId, 678 taskName, portletId, parameterMap, startDate, endDate, fileName); 679 } 680 681 @Override 682 public com.liferay.portal.model.Layout fetchFirstLayout(long groupId, 683 boolean privateLayout, long parentLayoutId) { 684 return _layoutLocalService.fetchFirstLayout(groupId, privateLayout, 685 parentLayoutId); 686 } 687 688 @Override 689 public com.liferay.portal.model.Layout fetchLayout(long groupId, 690 boolean privateLayout, long layoutId) { 691 return _layoutLocalService.fetchLayout(groupId, privateLayout, layoutId); 692 } 693 694 @Override 695 public com.liferay.portal.model.Layout fetchLayout(long plid) { 696 return _layoutLocalService.fetchLayout(plid); 697 } 698 699 @Override 700 public com.liferay.portal.model.Layout fetchLayoutByFriendlyURL( 701 long groupId, boolean privateLayout, java.lang.String friendlyURL) { 702 return _layoutLocalService.fetchLayoutByFriendlyURL(groupId, 703 privateLayout, friendlyURL); 704 } 705 706 /** 707 * Returns the layout matching the UUID, group, and privacy. 708 * 709 * @param uuid the layout's UUID 710 * @param groupId the primary key of the group 711 * @param privateLayout whether the layout is private to the group 712 * @return the matching layout, or <code>null</code> if a matching layout could not be found 713 */ 714 @Override 715 public com.liferay.portal.model.Layout fetchLayoutByUuidAndGroupId( 716 java.lang.String uuid, long groupId, boolean privateLayout) { 717 return _layoutLocalService.fetchLayoutByUuidAndGroupId(uuid, groupId, 718 privateLayout); 719 } 720 721 @Override 722 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 723 return _layoutLocalService.getActionableDynamicQuery(); 724 } 725 726 /** 727 * Returns the Spring bean ID for this bean. 728 * 729 * @return the Spring bean ID for this bean 730 */ 731 @Override 732 public java.lang.String getBeanIdentifier() { 733 return _layoutLocalService.getBeanIdentifier(); 734 } 735 736 /** 737 * Returns the primary key of the default layout for the group 738 * 739 * @param groupId the primary key of the group 740 * @return the primary key of the default layout for the group (optionally 741 {@link com.liferay.portal.model.LayoutConstants#DEFAULT_PLID}) 742 */ 743 @Override 744 public long getDefaultPlid(long groupId) { 745 return _layoutLocalService.getDefaultPlid(groupId); 746 } 747 748 /** 749 * Returns primary key of the matching default layout for the group 750 * 751 * @param groupId the primary key of the group 752 * @param privateLayout whether the layout is private to the group 753 * @return the primary key of the default layout for the group; {@link 754 com.liferay.portal.model.LayoutConstants#DEFAULT_PLID}) otherwise 755 */ 756 @Override 757 public long getDefaultPlid(long groupId, boolean privateLayout) { 758 return _layoutLocalService.getDefaultPlid(groupId, privateLayout); 759 } 760 761 /** 762 * Returns primary key of the default portlet layout for the group 763 * 764 * @param groupId the primary key of the group 765 * @param privateLayout whether the layout is private to the group 766 * @param portletId the primary key of the portlet 767 * @return the primary key of the default portlet layout for the group; 768 {@link com.liferay.portal.model.LayoutConstants#DEFAULT_PLID} 769 otherwise 770 * @throws PortalException if a portlet with the primary key could not be 771 found 772 */ 773 @Override 774 public long getDefaultPlid(long groupId, boolean privateLayout, 775 java.lang.String portletId) 776 throws com.liferay.portal.kernel.exception.PortalException { 777 return _layoutLocalService.getDefaultPlid(groupId, privateLayout, 778 portletId); 779 } 780 781 @Override 782 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery( 783 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) { 784 return _layoutLocalService.getExportActionableDynamicQuery(portletDataContext); 785 } 786 787 /** 788 * Returns the layout for the friendly URL 789 * 790 * @param groupId the primary key of the group 791 * @param privateLayout whether the layout is private to the group 792 * @param friendlyURL the friendly URL of the layout 793 * @return the layout for the friendly URL 794 * @throws PortalException if the friendly URL is <code>null</code> or a 795 matching layout could not be found 796 */ 797 @Override 798 public com.liferay.portal.model.Layout getFriendlyURLLayout(long groupId, 799 boolean privateLayout, java.lang.String friendlyURL) 800 throws com.liferay.portal.kernel.exception.PortalException { 801 return _layoutLocalService.getFriendlyURLLayout(groupId, privateLayout, 802 friendlyURL); 803 } 804 805 /** 806 * Returns the layout matching the primary key, group, and privacy; throws a 807 * {@link com.liferay.portal.NoSuchLayoutException} otherwise. 808 * 809 * @param groupId the primary key of the group 810 * @param privateLayout whether the layout is private to the group 811 * @param layoutId the primary key of the layout 812 * @return the matching layout 813 * @throws PortalException if a matching layout could not be found 814 */ 815 @Override 816 public com.liferay.portal.model.Layout getLayout(long groupId, 817 boolean privateLayout, long layoutId) 818 throws com.liferay.portal.kernel.exception.PortalException { 819 return _layoutLocalService.getLayout(groupId, privateLayout, layoutId); 820 } 821 822 /** 823 * Returns the layout with the primary key. 824 * 825 * @param plid the primary key of the layout 826 * @return the layout 827 * @throws PortalException if a layout with the primary key could not be found 828 */ 829 @Override 830 public com.liferay.portal.model.Layout getLayout(long plid) 831 throws com.liferay.portal.kernel.exception.PortalException { 832 return _layoutLocalService.getLayout(plid); 833 } 834 835 /** 836 * Returns the layout for the icon image; throws a {@link 837 * com.liferay.portal.NoSuchLayoutException} otherwise. 838 * 839 * @param iconImageId the primary key of the icon image 840 * @return Returns the layout for the icon image 841 * @throws PortalException if an icon image with the primary key could not 842 be found 843 */ 844 @Override 845 public com.liferay.portal.model.Layout getLayoutByIconImageId( 846 long iconImageId) 847 throws com.liferay.portal.kernel.exception.PortalException { 848 return _layoutLocalService.getLayoutByIconImageId(iconImageId); 849 } 850 851 /** 852 * Returns the layout matching the UUID, group, and privacy. 853 * 854 * @param uuid the layout's UUID 855 * @param groupId the primary key of the group 856 * @param privateLayout whether the layout is private to the group 857 * @return the matching layout 858 * @throws PortalException if a matching layout could not be found 859 */ 860 @Override 861 public com.liferay.portal.model.Layout getLayoutByUuidAndGroupId( 862 java.lang.String uuid, long groupId, boolean privateLayout) 863 throws com.liferay.portal.kernel.exception.PortalException { 864 return _layoutLocalService.getLayoutByUuidAndGroupId(uuid, groupId, 865 privateLayout); 866 } 867 868 /** 869 * Returns the layout references for all the layouts that belong to the 870 * company and belong to the portlet that matches the preferences. 871 * 872 * @param companyId the primary key of the company 873 * @param portletId the primary key of the portlet 874 * @param preferencesKey the portlet's preference key 875 * @param preferencesValue the portlet's preference value 876 * @return the layout references of the matching layouts 877 */ 878 @Override 879 public com.liferay.portal.model.LayoutReference[] getLayouts( 880 long companyId, java.lang.String portletId, 881 java.lang.String preferencesKey, java.lang.String preferencesValue) { 882 return _layoutLocalService.getLayouts(companyId, portletId, 883 preferencesKey, preferencesValue); 884 } 885 886 /** 887 * Returns all the layouts belonging to the group. 888 * 889 * @param groupId the primary key of the group 890 * @param privateLayout whether the layout is private to the group 891 * @return the matching layouts, or <code>null</code> if no matches were 892 found 893 */ 894 @Override 895 public java.util.List<com.liferay.portal.model.Layout> getLayouts( 896 long groupId, boolean privateLayout) { 897 return _layoutLocalService.getLayouts(groupId, privateLayout); 898 } 899 900 /** 901 * Returns all the layouts that match the layout IDs and belong to the 902 * group. 903 * 904 * @param groupId the primary key of the group 905 * @param privateLayout whether the layout is private to the group 906 * @param layoutIds the primary keys of the layouts 907 * @return the matching layouts, or an empty list if no matches were found 908 * @throws PortalException if a group or layout with the primary key could 909 not be found 910 */ 911 @Override 912 public java.util.List<com.liferay.portal.model.Layout> getLayouts( 913 long groupId, boolean privateLayout, long[] layoutIds) 914 throws com.liferay.portal.kernel.exception.PortalException { 915 return _layoutLocalService.getLayouts(groupId, privateLayout, layoutIds); 916 } 917 918 /** 919 * Returns all the layouts belonging to the group that are children of the 920 * parent layout. 921 * 922 * @param groupId the primary key of the group 923 * @param privateLayout whether the layout is private to the group 924 * @param parentLayoutId the primary key of the parent layout 925 * @return the matching layouts, or <code>null</code> if no matches were 926 found 927 */ 928 @Override 929 public java.util.List<com.liferay.portal.model.Layout> getLayouts( 930 long groupId, boolean privateLayout, long parentLayoutId) { 931 return _layoutLocalService.getLayouts(groupId, privateLayout, 932 parentLayoutId); 933 } 934 935 /** 936 * Returns a range of all the layouts belonging to the group that are 937 * children of the parent layout. 938 * 939 * <p> 940 * Useful when paginating results. Returns a maximum of <code>end - 941 * start</code> instances. <code>start</code> and <code>end</code> are not 942 * primary keys, they are indexes in the result set. Thus, <code>0</code> 943 * refers to the first result in the set. Setting both <code>start</code> 944 * and <code>end</code> to {@link 945 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 946 * result set. 947 * </p> 948 * 949 * @param groupId the primary key of the group 950 * @param privateLayout whether the layout is private to the group 951 * @param parentLayoutId the primary key of the parent layout 952 * @param incomplete whether the layout is incomplete 953 * @param start the lower bound of the range of layouts 954 * @param end the upper bound of the range of layouts (not inclusive) 955 * @return the matching layouts, or <code>null</code> if no matches were 956 found 957 */ 958 @Override 959 public java.util.List<com.liferay.portal.model.Layout> getLayouts( 960 long groupId, boolean privateLayout, long parentLayoutId, 961 boolean incomplete, int start, int end) { 962 return _layoutLocalService.getLayouts(groupId, privateLayout, 963 parentLayoutId, incomplete, start, end); 964 } 965 966 /** 967 * Returns all the layouts that match the type and belong to the group. 968 * 969 * @param groupId the primary key of the group 970 * @param privateLayout whether the layout is private to the group 971 * @param type the type of the layouts (optionally {@link 972 com.liferay.portal.model.LayoutConstants#TYPE_PORTLET}) 973 * @return the matching layouts, or <code>null</code> if no matches were 974 found 975 */ 976 @Override 977 public java.util.List<com.liferay.portal.model.Layout> getLayouts( 978 long groupId, boolean privateLayout, java.lang.String type) { 979 return _layoutLocalService.getLayouts(groupId, privateLayout, type); 980 } 981 982 /** 983 * Returns a range of all the layouts. 984 * 985 * <p> 986 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 987 * </p> 988 * 989 * @param start the lower bound of the range of layouts 990 * @param end the upper bound of the range of layouts (not inclusive) 991 * @return the range of layouts 992 */ 993 @Override 994 public java.util.List<com.liferay.portal.model.Layout> getLayouts( 995 int start, int end) { 996 return _layoutLocalService.getLayouts(start, end); 997 } 998 999 @Override 1000 public java.util.List<com.liferay.portal.model.Layout> getLayoutsByLayoutPrototypeUuid( 1001 java.lang.String layoutPrototypeUuid) { 1002 return _layoutLocalService.getLayoutsByLayoutPrototypeUuid(layoutPrototypeUuid); 1003 } 1004 1005 @Override 1006 public int getLayoutsByLayoutPrototypeUuidCount( 1007 java.lang.String layoutPrototypeUuid) { 1008 return _layoutLocalService.getLayoutsByLayoutPrototypeUuidCount(layoutPrototypeUuid); 1009 } 1010 1011 @Override 1012 public java.util.List<com.liferay.portal.model.Layout> getLayoutsByUuidAndCompanyId( 1013 java.lang.String uuid, long companyId) { 1014 return _layoutLocalService.getLayoutsByUuidAndCompanyId(uuid, companyId); 1015 } 1016 1017 @Override 1018 public java.util.List<com.liferay.portal.model.Layout> getLayoutsByUuidAndCompanyId( 1019 java.lang.String uuid, long companyId, int start, int end, 1020 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Layout> orderByComparator) { 1021 return _layoutLocalService.getLayoutsByUuidAndCompanyId(uuid, 1022 companyId, start, end, orderByComparator); 1023 } 1024 1025 /** 1026 * Returns the number of layouts. 1027 * 1028 * @return the number of layouts 1029 */ 1030 @Override 1031 public int getLayoutsCount() { 1032 return _layoutLocalService.getLayoutsCount(); 1033 } 1034 1035 @Override 1036 public int getLayoutsCount(com.liferay.portal.model.Group group, 1037 boolean privateLayout) 1038 throws com.liferay.portal.kernel.exception.PortalException { 1039 return _layoutLocalService.getLayoutsCount(group, privateLayout); 1040 } 1041 1042 @Override 1043 public int getLayoutsCount(com.liferay.portal.model.Group group, 1044 boolean privateLayout, boolean includeUserGroups) 1045 throws com.liferay.portal.kernel.exception.PortalException { 1046 return _layoutLocalService.getLayoutsCount(group, privateLayout, 1047 includeUserGroups); 1048 } 1049 1050 @Override 1051 public int getLayoutsCount(com.liferay.portal.model.Group group, 1052 boolean privateLayout, long parentLayoutId) { 1053 return _layoutLocalService.getLayoutsCount(group, privateLayout, 1054 parentLayoutId); 1055 } 1056 1057 @Override 1058 public int getLayoutsCount(com.liferay.portal.model.User user, 1059 boolean privateLayout) 1060 throws com.liferay.portal.kernel.exception.PortalException { 1061 return _layoutLocalService.getLayoutsCount(user, privateLayout); 1062 } 1063 1064 @Override 1065 public int getLayoutsCount(com.liferay.portal.model.User user, 1066 boolean privateLayout, boolean includeUserGroups) 1067 throws com.liferay.portal.kernel.exception.PortalException { 1068 return _layoutLocalService.getLayoutsCount(user, privateLayout, 1069 includeUserGroups); 1070 } 1071 1072 /** 1073 * Returns the primary key to use for the next layout. 1074 * 1075 * @param groupId the primary key of the group 1076 * @param privateLayout whether the layout is private to the group 1077 * @return the primary key to use for the next layout 1078 */ 1079 @Override 1080 public long getNextLayoutId(long groupId, boolean privateLayout) { 1081 return _layoutLocalService.getNextLayoutId(groupId, privateLayout); 1082 } 1083 1084 /** 1085 * Returns all the layouts without resource permissions 1086 * 1087 * @param roleId the primary key of the role 1088 * @return all the layouts without resource permissions 1089 */ 1090 @Override 1091 public java.util.List<com.liferay.portal.model.Layout> getNoPermissionLayouts( 1092 long roleId) { 1093 return _layoutLocalService.getNoPermissionLayouts(roleId); 1094 } 1095 1096 /** 1097 * Returns all the layouts whose friendly URLs are <code>null</code> 1098 * 1099 * @return all the layouts whose friendly URLs are <code>null</code> 1100 */ 1101 @Override 1102 public java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts() { 1103 return _layoutLocalService.getNullFriendlyURLLayouts(); 1104 } 1105 1106 @Override 1107 public com.liferay.portal.model.Layout getParentLayout( 1108 com.liferay.portal.model.Layout layout) 1109 throws com.liferay.portal.kernel.exception.PortalException { 1110 return _layoutLocalService.getParentLayout(layout); 1111 } 1112 1113 @Override 1114 public com.liferay.portal.model.PersistedModel getPersistedModel( 1115 java.io.Serializable primaryKeyObj) 1116 throws com.liferay.portal.kernel.exception.PortalException { 1117 return _layoutLocalService.getPersistedModel(primaryKeyObj); 1118 } 1119 1120 /** 1121 * Returns all the layouts within scope of the group 1122 * 1123 * @param groupId the primary key of the group 1124 * @param privateLayout whether the layout is private to the group 1125 * @return the layouts within scope of the group 1126 */ 1127 @Override 1128 public java.util.List<com.liferay.portal.model.Layout> getScopeGroupLayouts( 1129 long groupId, boolean privateLayout) { 1130 return _layoutLocalService.getScopeGroupLayouts(groupId, privateLayout); 1131 } 1132 1133 @Override 1134 public boolean hasLayoutSetPrototypeLayout(long layoutSetPrototypeId, 1135 java.lang.String layoutUuid) 1136 throws com.liferay.portal.kernel.exception.PortalException { 1137 return _layoutLocalService.hasLayoutSetPrototypeLayout(layoutSetPrototypeId, 1138 layoutUuid); 1139 } 1140 1141 @Override 1142 public boolean hasLayoutSetPrototypeLayout( 1143 java.lang.String layoutSetPrototypeUuid, long companyId, 1144 java.lang.String layoutUuid) 1145 throws com.liferay.portal.kernel.exception.PortalException { 1146 return _layoutLocalService.hasLayoutSetPrototypeLayout(layoutSetPrototypeUuid, 1147 companyId, layoutUuid); 1148 } 1149 1150 @Override 1151 public boolean hasLayouts(com.liferay.portal.model.Group group, 1152 boolean privateLayout) 1153 throws com.liferay.portal.kernel.exception.PortalException { 1154 return _layoutLocalService.hasLayouts(group, privateLayout); 1155 } 1156 1157 @Override 1158 public boolean hasLayouts(com.liferay.portal.model.Group group, 1159 boolean privateLayout, boolean includeUserGroups) 1160 throws com.liferay.portal.kernel.exception.PortalException { 1161 return _layoutLocalService.hasLayouts(group, privateLayout, 1162 includeUserGroups); 1163 } 1164 1165 /** 1166 * Returns <code>true</code> if the group has any layouts; 1167 * <code>false</code> otherwise. 1168 * 1169 * @param groupId the primary key of the group 1170 * @param privateLayout whether the layout is private to the group 1171 * @param parentLayoutId the primary key of the parent layout 1172 * @return <code>true</code> if the group has any layouts; 1173 <code>false</code> otherwise 1174 */ 1175 @Override 1176 public boolean hasLayouts(long groupId, boolean privateLayout, 1177 long parentLayoutId) { 1178 return _layoutLocalService.hasLayouts(groupId, privateLayout, 1179 parentLayoutId); 1180 } 1181 1182 @Override 1183 public boolean hasLayouts(com.liferay.portal.model.User user, 1184 boolean privateLayout) 1185 throws com.liferay.portal.kernel.exception.PortalException { 1186 return _layoutLocalService.hasLayouts(user, privateLayout); 1187 } 1188 1189 @Override 1190 public boolean hasLayouts(com.liferay.portal.model.User user, 1191 boolean privateLayout, boolean includeUserGroups) 1192 throws com.liferay.portal.kernel.exception.PortalException { 1193 return _layoutLocalService.hasLayouts(user, privateLayout, 1194 includeUserGroups); 1195 } 1196 1197 /** 1198 * Imports the layouts from the byte array. 1199 * 1200 * @param userId the primary key of the user 1201 * @param groupId the primary key of the group 1202 * @param privateLayout whether the layout is private to the group 1203 * @param parameterMap the mapping of parameters indicating which 1204 information will be imported. For information on the keys used in 1205 the map see {@link 1206 com.liferay.portal.kernel.lar.PortletDataHandlerKeys}. 1207 * @param bytes the byte array with the data 1208 * @throws PortalException if a group or user with the primary key could not 1209 be found, or if some other portal exception occurred 1210 * @see com.liferay.portal.lar.LayoutImporter 1211 */ 1212 @Override 1213 public void importLayouts(long userId, long groupId, boolean privateLayout, 1214 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 1215 byte[] bytes) 1216 throws com.liferay.portal.kernel.exception.PortalException { 1217 _layoutLocalService.importLayouts(userId, groupId, privateLayout, 1218 parameterMap, bytes); 1219 } 1220 1221 /** 1222 * Imports the layouts from the file. 1223 * 1224 * @param userId the primary key of the user 1225 * @param groupId the primary key of the group 1226 * @param privateLayout whether the layout is private to the group 1227 * @param parameterMap the mapping of parameters indicating which 1228 information will be imported. For information on the keys used in 1229 the map see {@link 1230 com.liferay.portal.kernel.lar.PortletDataHandlerKeys}. 1231 * @param file the LAR file with the data 1232 * @throws PortalException if a group or user with the primary key could not 1233 be found, or if some other portal exception occurred 1234 * @see com.liferay.portal.lar.LayoutImporter 1235 */ 1236 @Override 1237 public void importLayouts(long userId, long groupId, boolean privateLayout, 1238 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 1239 java.io.File file) 1240 throws com.liferay.portal.kernel.exception.PortalException { 1241 _layoutLocalService.importLayouts(userId, groupId, privateLayout, 1242 parameterMap, file); 1243 } 1244 1245 /** 1246 * Imports the layouts from the input stream. 1247 * 1248 * @param userId the primary key of the user 1249 * @param groupId the primary key of the group 1250 * @param privateLayout whether the layout is private to the group 1251 * @param parameterMap the mapping of parameters indicating which 1252 information will be imported. For information on the keys used in 1253 the map see {@link 1254 com.liferay.portal.kernel.lar.PortletDataHandlerKeys}. 1255 * @param is the input stream 1256 * @throws PortalException if a group or user with the primary key could not 1257 be found, or if some other portal exception occurred 1258 * @see com.liferay.portal.lar.LayoutImporter 1259 */ 1260 @Override 1261 public void importLayouts(long userId, long groupId, boolean privateLayout, 1262 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 1263 java.io.InputStream is) 1264 throws com.liferay.portal.kernel.exception.PortalException { 1265 _layoutLocalService.importLayouts(userId, groupId, privateLayout, 1266 parameterMap, is); 1267 } 1268 1269 @Override 1270 public long importLayoutsInBackground(long userId, 1271 java.lang.String taskName, long groupId, boolean privateLayout, 1272 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 1273 java.io.File file) 1274 throws com.liferay.portal.kernel.exception.PortalException { 1275 return _layoutLocalService.importLayoutsInBackground(userId, taskName, 1276 groupId, privateLayout, parameterMap, file); 1277 } 1278 1279 @Override 1280 public long importLayoutsInBackground(long userId, 1281 java.lang.String taskName, long groupId, boolean privateLayout, 1282 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 1283 java.io.InputStream is) 1284 throws com.liferay.portal.kernel.exception.PortalException { 1285 return _layoutLocalService.importLayoutsInBackground(userId, taskName, 1286 groupId, privateLayout, parameterMap, is); 1287 } 1288 1289 /** 1290 * Imports the portlet information (categories, permissions, ... etc.) from 1291 * the file. 1292 * 1293 * @param userId the primary key of the user 1294 * @param plid the primary key of the target layout 1295 * @param groupId the primary key of the target group 1296 * @param portletId the primary key of the portlet 1297 * @param parameterMap the mapping of parameters indicating which 1298 information will be imported. For information on the keys used in 1299 the map see {@link 1300 com.liferay.portal.kernel.lar.PortletDataHandlerKeys}. 1301 * @param file the LAR file with the data 1302 * @throws PortalException if a group, layout, portlet or user with the 1303 primary key could not be found 1304 */ 1305 @Override 1306 public void importPortletInfo(long userId, long plid, long groupId, 1307 java.lang.String portletId, 1308 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 1309 java.io.File file) 1310 throws com.liferay.portal.kernel.exception.PortalException { 1311 _layoutLocalService.importPortletInfo(userId, plid, groupId, portletId, 1312 parameterMap, file); 1313 } 1314 1315 /** 1316 * Imports the portlet information (categories, permissions, ... etc.) from 1317 * the input stream. 1318 * 1319 * @param userId the primary key of the user 1320 * @param plid the primary key of the layout 1321 * @param groupId the primary key of the group 1322 * @param portletId the primary key of the portlet 1323 * @param parameterMap the mapping of parameters indicating which 1324 information will be imported. For information on the keys used in 1325 the map see {@link 1326 com.liferay.portal.kernel.lar.PortletDataHandlerKeys}. 1327 * @param is the input stream 1328 * @throws PortalException if a group, portlet, layout or user with the 1329 primary key could not be found 1330 */ 1331 @Override 1332 public void importPortletInfo(long userId, long plid, long groupId, 1333 java.lang.String portletId, 1334 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 1335 java.io.InputStream is) 1336 throws com.liferay.portal.kernel.exception.PortalException { 1337 _layoutLocalService.importPortletInfo(userId, plid, groupId, portletId, 1338 parameterMap, is); 1339 } 1340 1341 @Override 1342 public void importPortletInfo(long userId, java.lang.String portletId, 1343 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 1344 java.io.File file) 1345 throws com.liferay.portal.kernel.exception.PortalException { 1346 _layoutLocalService.importPortletInfo(userId, portletId, parameterMap, 1347 file); 1348 } 1349 1350 @Override 1351 public void importPortletInfo(long userId, java.lang.String portletId, 1352 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 1353 java.io.InputStream is) 1354 throws com.liferay.portal.kernel.exception.PortalException { 1355 _layoutLocalService.importPortletInfo(userId, portletId, parameterMap, 1356 is); 1357 } 1358 1359 @Override 1360 public long importPortletInfoInBackground(long userId, 1361 java.lang.String taskName, long plid, long groupId, 1362 java.lang.String portletId, 1363 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 1364 java.io.File file) 1365 throws com.liferay.portal.kernel.exception.PortalException { 1366 return _layoutLocalService.importPortletInfoInBackground(userId, 1367 taskName, plid, groupId, portletId, parameterMap, file); 1368 } 1369 1370 @Override 1371 public long importPortletInfoInBackground(long userId, 1372 java.lang.String taskName, long plid, long groupId, 1373 java.lang.String portletId, 1374 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 1375 java.io.InputStream is) 1376 throws com.liferay.portal.kernel.exception.PortalException { 1377 return _layoutLocalService.importPortletInfoInBackground(userId, 1378 taskName, plid, groupId, portletId, parameterMap, is); 1379 } 1380 1381 @Override 1382 public long importPortletInfoInBackground(long userId, 1383 java.lang.String taskName, java.lang.String portletId, 1384 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 1385 java.io.File file) 1386 throws com.liferay.portal.kernel.exception.PortalException { 1387 return _layoutLocalService.importPortletInfoInBackground(userId, 1388 taskName, portletId, parameterMap, file); 1389 } 1390 1391 @Override 1392 public long importPortletInfoInBackground(long userId, 1393 java.lang.String taskName, java.lang.String portletId, 1394 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 1395 java.io.InputStream is) 1396 throws com.liferay.portal.kernel.exception.PortalException { 1397 return _layoutLocalService.importPortletInfoInBackground(userId, 1398 taskName, portletId, parameterMap, is); 1399 } 1400 1401 /** 1402 * Sets the Spring bean ID for this bean. 1403 * 1404 * @param beanIdentifier the Spring bean ID for this bean 1405 */ 1406 @Override 1407 public void setBeanIdentifier(java.lang.String beanIdentifier) { 1408 _layoutLocalService.setBeanIdentifier(beanIdentifier); 1409 } 1410 1411 /** 1412 * Sets the layouts for the group, replacing and prioritizing all layouts of 1413 * the parent layout. 1414 * 1415 * @param groupId the primary key of the group 1416 * @param privateLayout whether the layout is private to the group 1417 * @param parentLayoutId the primary key of the parent layout 1418 * @param layoutIds the primary keys of the layouts 1419 * @param serviceContext the service context to be applied 1420 * @throws PortalException if a group or layout with the primary key could 1421 not be found, if no layouts were specified, if the first layout 1422 was not page-able, if the first layout was hidden, or if some 1423 other portal exception occurred 1424 */ 1425 @Override 1426 public void setLayouts(long groupId, boolean privateLayout, 1427 long parentLayoutId, long[] layoutIds, 1428 com.liferay.portal.service.ServiceContext serviceContext) 1429 throws com.liferay.portal.kernel.exception.PortalException { 1430 _layoutLocalService.setLayouts(groupId, privateLayout, parentLayoutId, 1431 layoutIds, serviceContext); 1432 } 1433 1434 @Override 1435 public void updateAsset(long userId, 1436 com.liferay.portal.model.Layout layout, long[] assetCategoryIds, 1437 java.lang.String[] assetTagNames) 1438 throws com.liferay.portal.kernel.exception.PortalException { 1439 _layoutLocalService.updateAsset(userId, layout, assetCategoryIds, 1440 assetTagNames); 1441 } 1442 1443 /** 1444 * Updates the friendly URL of the layout. 1445 * 1446 * @param plid the primary key of the layout 1447 * @param friendlyURL the friendly URL to be assigned 1448 * @param languageId the primary key of the language 1449 * @return the updated layout 1450 * @throws PortalException if a group or layout with the primary key 1451 could not be found 1452 * @deprecated As of 7.0.0, replaced by {@link #updateFriendlyURL(long, 1453 long, String, String)} 1454 */ 1455 @Deprecated 1456 @Override 1457 public com.liferay.portal.model.Layout updateFriendlyURL(long plid, 1458 java.lang.String friendlyURL, java.lang.String languageId) 1459 throws com.liferay.portal.kernel.exception.PortalException { 1460 return _layoutLocalService.updateFriendlyURL(plid, friendlyURL, 1461 languageId); 1462 } 1463 1464 /** 1465 * Updates the friendly URL of the layout. 1466 * 1467 * @param userId the primary key of the user 1468 * @param plid the primary key of the layout 1469 * @param friendlyURL the friendly URL to be assigned 1470 * @param languageId the primary key of the language 1471 * @return the updated layout 1472 * @throws PortalException if a group or layout with the primary key could 1473 not be found 1474 */ 1475 @Override 1476 public com.liferay.portal.model.Layout updateFriendlyURL(long userId, 1477 long plid, java.lang.String friendlyURL, java.lang.String languageId) 1478 throws com.liferay.portal.kernel.exception.PortalException { 1479 return _layoutLocalService.updateFriendlyURL(userId, plid, friendlyURL, 1480 languageId); 1481 } 1482 1483 @Override 1484 public com.liferay.portal.model.Layout updateIconImage(long plid, 1485 byte[] bytes) 1486 throws com.liferay.portal.kernel.exception.PortalException { 1487 return _layoutLocalService.updateIconImage(plid, bytes); 1488 } 1489 1490 /** 1491 * Updates the layout. 1492 * 1493 * @param groupId the primary key of the group 1494 * @param privateLayout whether the layout is private to the group 1495 * @param layoutId the primary key of the layout 1496 * @param parentLayoutId the primary key of the layout's new parent 1497 layout 1498 * @param nameMap the locales and localized names to merge (optionally 1499 <code>null</code>) 1500 * @param titleMap the locales and localized titles to merge 1501 (optionally <code>null</code>) 1502 * @param descriptionMap the locales and localized descriptions to 1503 merge (optionally <code>null</code>) 1504 * @param keywordsMap the locales and localized keywords to merge 1505 (optionally <code>null</code>) 1506 * @param robotsMap the locales and localized robots to merge 1507 (optionally <code>null</code>) 1508 * @param type the layout's new type (optionally {@link 1509 com.liferay.portal.model.LayoutConstants#TYPE_PORTLET}) 1510 * @param hidden whether the layout is hidden 1511 * @param friendlyURL the layout's new friendly URL (optionally {@link 1512 com.liferay.portal.util.PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL} 1513 or {@link 1514 com.liferay.portal.util.PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL}). 1515 The default values can be overridden in 1516 <code>portal-ext.properties</code> by specifying new values 1517 for the corresponding properties defined in {@link 1518 com.liferay.portal.util.PropsValues}. To see how the URL is 1519 normalized when accessed, see {@link 1520 com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize( 1521 String)}. 1522 * @param iconImage whether the icon image will be updated 1523 * @param iconBytes the byte array of the layout's new icon image 1524 * @param serviceContext the service context to be applied. Can set the 1525 modification date and expando bridge attributes for the 1526 layout. For layouts that are linked to a layout prototype, 1527 attributes named <code>layoutPrototypeUuid</code> and 1528 <code>layoutPrototypeLinkedEnabled</code> can be specified to 1529 provide the unique identifier of the source prototype and a 1530 boolean to determine whether a link to it should be enabled 1531 to activate propagation of changes made to the linked page in 1532 the prototype. 1533 * @return the updated layout 1534 * @throws PortalException if a group or layout with the primary key 1535 could not be found, if a unique friendly URL could not be 1536 generated, if a valid parent layout ID to use could not be 1537 found, if the layout parameters were invalid, or if a portal 1538 exception occurred 1539 * @deprecated As of 6.2.0, replaced by {@link #updateLayout(long, boolean, 1540 long, long, Map, Map, Map, Map, Map, String, boolean, Map, 1541 Boolean, byte[], ServiceContext)} 1542 */ 1543 @Deprecated 1544 @Override 1545 public com.liferay.portal.model.Layout updateLayout(long groupId, 1546 boolean privateLayout, long layoutId, long parentLayoutId, 1547 java.util.Map<java.util.Locale, java.lang.String> nameMap, 1548 java.util.Map<java.util.Locale, java.lang.String> titleMap, 1549 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 1550 java.util.Map<java.util.Locale, java.lang.String> keywordsMap, 1551 java.util.Map<java.util.Locale, java.lang.String> robotsMap, 1552 java.lang.String type, boolean hidden, java.lang.String friendlyURL, 1553 java.lang.Boolean iconImage, byte[] iconBytes, 1554 com.liferay.portal.service.ServiceContext serviceContext) 1555 throws com.liferay.portal.kernel.exception.PortalException { 1556 return _layoutLocalService.updateLayout(groupId, privateLayout, 1557 layoutId, parentLayoutId, nameMap, titleMap, descriptionMap, 1558 keywordsMap, robotsMap, type, hidden, friendlyURL, iconImage, 1559 iconBytes, serviceContext); 1560 } 1561 1562 /** 1563 * Updates the layout. 1564 * 1565 * @param groupId the primary key of the group 1566 * @param privateLayout whether the layout is private to the group 1567 * @param layoutId the primary key of the layout 1568 * @param parentLayoutId the primary key of the layout's new parent layout 1569 * @param nameMap the locales and localized names to merge (optionally 1570 <code>null</code>) 1571 * @param titleMap the locales and localized titles to merge (optionally 1572 <code>null</code>) 1573 * @param descriptionMap the locales and localized descriptions to merge 1574 (optionally <code>null</code>) 1575 * @param keywordsMap the locales and localized keywords to merge 1576 (optionally <code>null</code>) 1577 * @param robotsMap the locales and localized robots to merge (optionally 1578 <code>null</code>) 1579 * @param type the layout's new type (optionally {@link 1580 com.liferay.portal.model.LayoutConstants#TYPE_PORTLET}) 1581 * @param hidden whether the layout is hidden 1582 * @param friendlyURLMap the layout's locales and localized friendly URLs. 1583 To see how the URL is normalized when accessed, see {@link 1584 com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize( 1585 String)}. 1586 * @param iconImage whether the icon image will be updated 1587 * @param iconBytes the byte array of the layout's new icon image 1588 * @param serviceContext the service context to be applied. Can set the 1589 modification date and expando bridge attributes for the layout. 1590 For layouts that are linked to a layout prototype, attributes 1591 named <code>layoutPrototypeUuid</code> and 1592 <code>layoutPrototypeLinkedEnabled</code> can be specified to 1593 provide the unique identifier of the source prototype and a 1594 boolean to determine whether a link to it should be enabled to 1595 activate propagation of changes made to the linked page in the 1596 prototype. 1597 * @return the updated layout 1598 * @throws PortalException if a group or layout with the primary key could 1599 not be found, if a unique friendly URL could not be generated, if 1600 a valid parent layout ID to use could not be found, if the layout 1601 parameters were invalid, or if a portal exception occurred 1602 */ 1603 @Override 1604 public com.liferay.portal.model.Layout updateLayout(long groupId, 1605 boolean privateLayout, long layoutId, long parentLayoutId, 1606 java.util.Map<java.util.Locale, java.lang.String> nameMap, 1607 java.util.Map<java.util.Locale, java.lang.String> titleMap, 1608 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 1609 java.util.Map<java.util.Locale, java.lang.String> keywordsMap, 1610 java.util.Map<java.util.Locale, java.lang.String> robotsMap, 1611 java.lang.String type, boolean hidden, 1612 java.util.Map<java.util.Locale, java.lang.String> friendlyURLMap, 1613 boolean iconImage, byte[] iconBytes, 1614 com.liferay.portal.service.ServiceContext serviceContext) 1615 throws com.liferay.portal.kernel.exception.PortalException { 1616 return _layoutLocalService.updateLayout(groupId, privateLayout, 1617 layoutId, parentLayoutId, nameMap, titleMap, descriptionMap, 1618 keywordsMap, robotsMap, type, hidden, friendlyURLMap, iconImage, 1619 iconBytes, serviceContext); 1620 } 1621 1622 /** 1623 * Updates the layout replacing its type settings. 1624 * 1625 * @param groupId the primary key of the group 1626 * @param privateLayout whether the layout is private to the group 1627 * @param layoutId the primary key of the layout 1628 * @param typeSettings the settings to load the unicode properties object. 1629 See {@link com.liferay.portal.kernel.util.UnicodeProperties 1630 #fastLoad(String)}. 1631 * @return the updated layout 1632 * @throws PortalException if a matching layout could not be found or if a 1633 portal exception occurred 1634 */ 1635 @Override 1636 public com.liferay.portal.model.Layout updateLayout(long groupId, 1637 boolean privateLayout, long layoutId, java.lang.String typeSettings) 1638 throws com.liferay.portal.kernel.exception.PortalException { 1639 return _layoutLocalService.updateLayout(groupId, privateLayout, 1640 layoutId, typeSettings); 1641 } 1642 1643 /** 1644 * Updates the layout in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 1645 * 1646 * @param layout the layout 1647 * @return the layout that was updated 1648 */ 1649 @Override 1650 public com.liferay.portal.model.Layout updateLayout( 1651 com.liferay.portal.model.Layout layout) { 1652 return _layoutLocalService.updateLayout(layout); 1653 } 1654 1655 /** 1656 * Updates the look and feel of the layout. 1657 * 1658 * @param groupId the primary key of the group 1659 * @param privateLayout whether the layout is private to the group 1660 * @param layoutId the primary key of the layout 1661 * @param themeId the primary key of the layout's new theme 1662 * @param colorSchemeId the primary key of the layout's new color scheme 1663 * @param css the layout's new CSS 1664 * @param wapTheme whether the theme is for WAP browsers 1665 * @return the updated layout 1666 * @throws PortalException if a matching layout could not be found 1667 */ 1668 @Override 1669 public com.liferay.portal.model.Layout updateLookAndFeel(long groupId, 1670 boolean privateLayout, long layoutId, java.lang.String themeId, 1671 java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme) 1672 throws com.liferay.portal.kernel.exception.PortalException { 1673 return _layoutLocalService.updateLookAndFeel(groupId, privateLayout, 1674 layoutId, themeId, colorSchemeId, css, wapTheme); 1675 } 1676 1677 /** 1678 * Updates the name of the layout matching the group, layout ID, and 1679 * privacy. 1680 * 1681 * @param groupId the primary key of the group 1682 * @param privateLayout whether the layout is private to the group 1683 * @param layoutId the primary key of the layout 1684 * @param name the layout's new name 1685 * @param languageId the primary key of the language. For more information 1686 see {@link java.util.Locale}. 1687 * @return the updated layout 1688 * @throws PortalException if a matching layout could not be found or if the 1689 new name was <code>null</code> 1690 */ 1691 @Override 1692 public com.liferay.portal.model.Layout updateName(long groupId, 1693 boolean privateLayout, long layoutId, java.lang.String name, 1694 java.lang.String languageId) 1695 throws com.liferay.portal.kernel.exception.PortalException { 1696 return _layoutLocalService.updateName(groupId, privateLayout, layoutId, 1697 name, languageId); 1698 } 1699 1700 /** 1701 * Updates the name of the layout. 1702 * 1703 * @param layout the layout to be updated 1704 * @param name the layout's new name 1705 * @param languageId the primary key of the language. For more information 1706 see {@link java.util.Locale}. 1707 * @return the updated layout 1708 * @throws PortalException if the new name was <code>null</code> 1709 */ 1710 @Override 1711 public com.liferay.portal.model.Layout updateName( 1712 com.liferay.portal.model.Layout layout, java.lang.String name, 1713 java.lang.String languageId) 1714 throws com.liferay.portal.kernel.exception.PortalException { 1715 return _layoutLocalService.updateName(layout, name, languageId); 1716 } 1717 1718 /** 1719 * Updates the name of the layout matching the primary key. 1720 * 1721 * @param plid the primary key of the layout 1722 * @param name the name to be assigned 1723 * @param languageId the primary key of the language. For more information 1724 see {@link java.util.Locale}. 1725 * @return the updated layout 1726 * @throws PortalException if a layout with the primary key could not be 1727 found or if the name was <code>null</code> 1728 */ 1729 @Override 1730 public com.liferay.portal.model.Layout updateName(long plid, 1731 java.lang.String name, java.lang.String languageId) 1732 throws com.liferay.portal.kernel.exception.PortalException { 1733 return _layoutLocalService.updateName(plid, name, languageId); 1734 } 1735 1736 /** 1737 * Updates the parent layout ID of the layout matching the group, layout ID, 1738 * and privacy. 1739 * 1740 * @param groupId the primary key of the group 1741 * @param privateLayout whether the layout is private to the group 1742 * @param layoutId the primary key of the layout 1743 * @param parentLayoutId the primary key to be assigned to the parent 1744 layout 1745 * @return the matching layout 1746 * @throws PortalException if a valid parent layout ID to use could not be 1747 found or if a matching layout could not be found 1748 */ 1749 @Override 1750 public com.liferay.portal.model.Layout updateParentLayoutId(long groupId, 1751 boolean privateLayout, long layoutId, long parentLayoutId) 1752 throws com.liferay.portal.kernel.exception.PortalException { 1753 return _layoutLocalService.updateParentLayoutId(groupId, privateLayout, 1754 layoutId, parentLayoutId); 1755 } 1756 1757 /** 1758 * Updates the parent layout ID of the layout matching the primary key. If a 1759 * layout matching the parent primary key is found, the layout ID of that 1760 * layout is assigned, otherwise {@link 1761 * com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID} is 1762 * assigned. 1763 * 1764 * @param plid the primary key of the layout 1765 * @param parentPlid the primary key of the parent layout 1766 * @return the layout matching the primary key 1767 * @throws PortalException if a layout with the primary key could not be 1768 found or if a valid parent layout ID to use could not be found 1769 */ 1770 @Override 1771 public com.liferay.portal.model.Layout updateParentLayoutId(long plid, 1772 long parentPlid) 1773 throws com.liferay.portal.kernel.exception.PortalException { 1774 return _layoutLocalService.updateParentLayoutId(plid, parentPlid); 1775 } 1776 1777 /** 1778 * Updates the parent layout ID and priority of the layout. 1779 * 1780 * @param plid the primary key of the layout 1781 * @param parentPlid the primary key of the parent layout 1782 * @param priority the layout's new priority 1783 * @return the layout matching the primary key 1784 * @throws PortalException if a layout with the primary key could not be 1785 found or if a valid parent layout ID could not be found 1786 */ 1787 @Override 1788 public com.liferay.portal.model.Layout updateParentLayoutIdAndPriority( 1789 long plid, long parentPlid, int priority) 1790 throws com.liferay.portal.kernel.exception.PortalException { 1791 return _layoutLocalService.updateParentLayoutIdAndPriority(plid, 1792 parentPlid, priority); 1793 } 1794 1795 /** 1796 * Updates the priorities of the layouts. 1797 * 1798 * @param groupId the primary key of the group 1799 * @param privateLayout whether the layout is private to the group 1800 * @throws PortalException if a matching layout could not be found 1801 */ 1802 @Override 1803 public void updatePriorities(long groupId, boolean privateLayout) 1804 throws com.liferay.portal.kernel.exception.PortalException { 1805 _layoutLocalService.updatePriorities(groupId, privateLayout); 1806 } 1807 1808 /** 1809 * Updates the priority of the layout matching the group, layout ID, and 1810 * privacy, setting the layout's priority based on the priorities of the 1811 * next and previous layouts. 1812 * 1813 * @param groupId the primary key of the group 1814 * @param privateLayout whether the layout is private to the group 1815 * @param layoutId the primary key of the layout 1816 * @param nextLayoutId the primary key of the next layout 1817 * @param previousLayoutId the primary key of the previous layout 1818 * @return the updated layout 1819 * @throws PortalException if a matching layout could not be found 1820 */ 1821 @Override 1822 public com.liferay.portal.model.Layout updatePriority(long groupId, 1823 boolean privateLayout, long layoutId, long nextLayoutId, 1824 long previousLayoutId) 1825 throws com.liferay.portal.kernel.exception.PortalException { 1826 return _layoutLocalService.updatePriority(groupId, privateLayout, 1827 layoutId, nextLayoutId, previousLayoutId); 1828 } 1829 1830 /** 1831 * Updates the priority of the layout matching the group, layout ID, and 1832 * privacy. 1833 * 1834 * @param groupId the primary key of the group 1835 * @param privateLayout whether the layout is private to the group 1836 * @param layoutId the primary key of the layout 1837 * @param priority the layout's new priority 1838 * @return the updated layout 1839 * @throws PortalException if a matching layout could not be found 1840 */ 1841 @Override 1842 public com.liferay.portal.model.Layout updatePriority(long groupId, 1843 boolean privateLayout, long layoutId, int priority) 1844 throws com.liferay.portal.kernel.exception.PortalException { 1845 return _layoutLocalService.updatePriority(groupId, privateLayout, 1846 layoutId, priority); 1847 } 1848 1849 /** 1850 * Updates the priority of the layout. 1851 * 1852 * @param layout the layout to be updated 1853 * @param priority the layout's new priority 1854 * @return the updated layout 1855 * @throws PortalException if a portal exception occurred 1856 */ 1857 @Override 1858 public com.liferay.portal.model.Layout updatePriority( 1859 com.liferay.portal.model.Layout layout, int priority) 1860 throws com.liferay.portal.kernel.exception.PortalException { 1861 return _layoutLocalService.updatePriority(layout, priority); 1862 } 1863 1864 /** 1865 * Updates the priority of the layout matching the primary key. 1866 * 1867 * @param plid the primary key of the layout 1868 * @param priority the layout's new priority 1869 * @return the updated layout 1870 * @throws PortalException if a layout with the primary key could not be 1871 found 1872 */ 1873 @Override 1874 public com.liferay.portal.model.Layout updatePriority(long plid, 1875 int priority) 1876 throws com.liferay.portal.kernel.exception.PortalException { 1877 return _layoutLocalService.updatePriority(plid, priority); 1878 } 1879 1880 /** 1881 * Updates the names of the portlets within scope of the group, the scope of 1882 * the layout's UUID, and the privacy. 1883 * 1884 * @param groupId the primary key of the group 1885 * @param privateLayout whether the layout is private to the group 1886 * @param layoutId the primary key of the layout whose UUID to match 1887 * @param name the new name for the portlets 1888 * @param languageId the primary key of the language 1889 * @throws PortalException if a matching layout could not be found 1890 * @see com.liferay.portlet.portletconfiguration.action.EditScopeAction 1891 * @deprecated As of 6.2.0, with no direct replacement 1892 */ 1893 @Deprecated 1894 @Override 1895 public void updateScopedPortletNames(long groupId, boolean privateLayout, 1896 long layoutId, java.lang.String name, java.lang.String languageId) 1897 throws com.liferay.portal.kernel.exception.PortalException { 1898 _layoutLocalService.updateScopedPortletNames(groupId, privateLayout, 1899 layoutId, name, languageId); 1900 } 1901 1902 /** 1903 * @deprecated As of 6.2.0, with no direct replacement 1904 */ 1905 @Deprecated 1906 @Override 1907 public void updateScopedPortletNames(long groupId, boolean privateLayout, 1908 long layoutId, 1909 java.util.Map<java.util.Locale, java.lang.String> nameMap, 1910 java.util.List<java.util.Locale> nameMapModifiedLocales) 1911 throws com.liferay.portal.kernel.exception.PortalException { 1912 _layoutLocalService.updateScopedPortletNames(groupId, privateLayout, 1913 layoutId, nameMap, nameMapModifiedLocales); 1914 } 1915 1916 @Override 1917 public com.liferay.portal.kernel.lar.MissingReferences validateImportLayoutsFile( 1918 long userId, long groupId, boolean privateLayout, 1919 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 1920 java.io.File file) 1921 throws com.liferay.portal.kernel.exception.PortalException { 1922 return _layoutLocalService.validateImportLayoutsFile(userId, groupId, 1923 privateLayout, parameterMap, file); 1924 } 1925 1926 @Override 1927 public com.liferay.portal.kernel.lar.MissingReferences validateImportLayoutsFile( 1928 long userId, long groupId, boolean privateLayout, 1929 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 1930 java.io.InputStream inputStream) 1931 throws com.liferay.portal.kernel.exception.PortalException { 1932 return _layoutLocalService.validateImportLayoutsFile(userId, groupId, 1933 privateLayout, parameterMap, inputStream); 1934 } 1935 1936 @Override 1937 public com.liferay.portal.kernel.lar.MissingReferences validateImportPortletInfo( 1938 long userId, long plid, long groupId, java.lang.String portletId, 1939 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 1940 java.io.File file) 1941 throws com.liferay.portal.kernel.exception.PortalException { 1942 return _layoutLocalService.validateImportPortletInfo(userId, plid, 1943 groupId, portletId, parameterMap, file); 1944 } 1945 1946 @Override 1947 public com.liferay.portal.kernel.lar.MissingReferences validateImportPortletInfo( 1948 long userId, long plid, long groupId, java.lang.String portletId, 1949 java.util.Map<java.lang.String, java.lang.String[]> parameterMap, 1950 java.io.InputStream inputStream) 1951 throws com.liferay.portal.kernel.exception.PortalException { 1952 return _layoutLocalService.validateImportPortletInfo(userId, plid, 1953 groupId, portletId, parameterMap, inputStream); 1954 } 1955 1956 /** 1957 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 1958 */ 1959 @Deprecated 1960 public LayoutLocalService getWrappedLayoutLocalService() { 1961 return _layoutLocalService; 1962 } 1963 1964 /** 1965 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 1966 */ 1967 @Deprecated 1968 public void setWrappedLayoutLocalService( 1969 LayoutLocalService layoutLocalService) { 1970 _layoutLocalService = layoutLocalService; 1971 } 1972 1973 @Override 1974 public LayoutLocalService getWrappedService() { 1975 return _layoutLocalService; 1976 } 1977 1978 @Override 1979 public void setWrappedService(LayoutLocalService layoutLocalService) { 1980 _layoutLocalService = layoutLocalService; 1981 } 1982 1983 private LayoutLocalService _layoutLocalService; 1984 }