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