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.persistence; 016 017 import com.liferay.portal.model.Layout; 018 019 /** 020 * The persistence interface for the layout service. 021 * 022 * <p> 023 * Caching information and settings can be found in <code>portal.properties</code> 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see LayoutPersistenceImpl 028 * @see LayoutUtil 029 * @generated 030 */ 031 public interface LayoutPersistence extends BasePersistence<Layout> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link LayoutUtil} to access the layout persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Caches the layout in the entity cache if it is enabled. 040 * 041 * @param layout the layout 042 */ 043 public void cacheResult(com.liferay.portal.model.Layout layout); 044 045 /** 046 * Caches the layouts in the entity cache if it is enabled. 047 * 048 * @param layouts the layouts 049 */ 050 public void cacheResult( 051 java.util.List<com.liferay.portal.model.Layout> layouts); 052 053 /** 054 * Creates a new layout with the primary key. Does not add the layout to the database. 055 * 056 * @param plid the primary key for the new layout 057 * @return the new layout 058 */ 059 public com.liferay.portal.model.Layout create(long plid); 060 061 /** 062 * Removes the layout with the primary key from the database. Also notifies the appropriate model listeners. 063 * 064 * @param plid the primary key of the layout 065 * @return the layout that was removed 066 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 067 * @throws SystemException if a system exception occurred 068 */ 069 public com.liferay.portal.model.Layout remove(long plid) 070 throws com.liferay.portal.NoSuchLayoutException, 071 com.liferay.portal.kernel.exception.SystemException; 072 073 public com.liferay.portal.model.Layout updateImpl( 074 com.liferay.portal.model.Layout layout, boolean merge) 075 throws com.liferay.portal.kernel.exception.SystemException; 076 077 /** 078 * Returns the layout with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. 079 * 080 * @param plid the primary key of the layout 081 * @return the layout 082 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 083 * @throws SystemException if a system exception occurred 084 */ 085 public com.liferay.portal.model.Layout findByPrimaryKey(long plid) 086 throws com.liferay.portal.NoSuchLayoutException, 087 com.liferay.portal.kernel.exception.SystemException; 088 089 /** 090 * Returns the layout with the primary key or returns <code>null</code> if it could not be found. 091 * 092 * @param plid the primary key of the layout 093 * @return the layout, or <code>null</code> if a layout with the primary key could not be found 094 * @throws SystemException if a system exception occurred 095 */ 096 public com.liferay.portal.model.Layout fetchByPrimaryKey(long plid) 097 throws com.liferay.portal.kernel.exception.SystemException; 098 099 /** 100 * Returns all the layouts where uuid = ?. 101 * 102 * @param uuid the uuid 103 * @return the matching layouts 104 * @throws SystemException if a system exception occurred 105 */ 106 public java.util.List<com.liferay.portal.model.Layout> findByUuid( 107 java.lang.String uuid) 108 throws com.liferay.portal.kernel.exception.SystemException; 109 110 /** 111 * Returns a range of all the layouts where uuid = ?. 112 * 113 * <p> 114 * 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. 115 * </p> 116 * 117 * @param uuid the uuid 118 * @param start the lower bound of the range of layouts 119 * @param end the upper bound of the range of layouts (not inclusive) 120 * @return the range of matching layouts 121 * @throws SystemException if a system exception occurred 122 */ 123 public java.util.List<com.liferay.portal.model.Layout> findByUuid( 124 java.lang.String uuid, int start, int end) 125 throws com.liferay.portal.kernel.exception.SystemException; 126 127 /** 128 * Returns an ordered range of all the layouts where uuid = ?. 129 * 130 * <p> 131 * 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. 132 * </p> 133 * 134 * @param uuid the uuid 135 * @param start the lower bound of the range of layouts 136 * @param end the upper bound of the range of layouts (not inclusive) 137 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 138 * @return the ordered range of matching layouts 139 * @throws SystemException if a system exception occurred 140 */ 141 public java.util.List<com.liferay.portal.model.Layout> findByUuid( 142 java.lang.String uuid, int start, int end, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException; 145 146 /** 147 * Returns the first layout in the ordered set where uuid = ?. 148 * 149 * @param uuid the uuid 150 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 151 * @return the first matching layout 152 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 153 * @throws SystemException if a system exception occurred 154 */ 155 public com.liferay.portal.model.Layout findByUuid_First( 156 java.lang.String uuid, 157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 158 throws com.liferay.portal.NoSuchLayoutException, 159 com.liferay.portal.kernel.exception.SystemException; 160 161 /** 162 * Returns the first layout in the ordered set where uuid = ?. 163 * 164 * @param uuid the uuid 165 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 166 * @return the first matching layout, or <code>null</code> if a matching layout could not be found 167 * @throws SystemException if a system exception occurred 168 */ 169 public com.liferay.portal.model.Layout fetchByUuid_First( 170 java.lang.String uuid, 171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 172 throws com.liferay.portal.kernel.exception.SystemException; 173 174 /** 175 * Returns the last layout in the ordered set where uuid = ?. 176 * 177 * @param uuid the uuid 178 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 179 * @return the last matching layout 180 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 181 * @throws SystemException if a system exception occurred 182 */ 183 public com.liferay.portal.model.Layout findByUuid_Last( 184 java.lang.String uuid, 185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 186 throws com.liferay.portal.NoSuchLayoutException, 187 com.liferay.portal.kernel.exception.SystemException; 188 189 /** 190 * Returns the last layout in the ordered set where uuid = ?. 191 * 192 * @param uuid the uuid 193 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 194 * @return the last matching layout, or <code>null</code> if a matching layout could not be found 195 * @throws SystemException if a system exception occurred 196 */ 197 public com.liferay.portal.model.Layout fetchByUuid_Last( 198 java.lang.String uuid, 199 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 200 throws com.liferay.portal.kernel.exception.SystemException; 201 202 /** 203 * Returns the layouts before and after the current layout in the ordered set where uuid = ?. 204 * 205 * @param plid the primary key of the current layout 206 * @param uuid the uuid 207 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 208 * @return the previous, current, and next layout 209 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 210 * @throws SystemException if a system exception occurred 211 */ 212 public com.liferay.portal.model.Layout[] findByUuid_PrevAndNext(long plid, 213 java.lang.String uuid, 214 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 215 throws com.liferay.portal.NoSuchLayoutException, 216 com.liferay.portal.kernel.exception.SystemException; 217 218 /** 219 * Returns the layout where uuid = ? and groupId = ? and privateLayout = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. 220 * 221 * @param uuid the uuid 222 * @param groupId the group ID 223 * @param privateLayout the private layout 224 * @return the matching layout 225 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 226 * @throws SystemException if a system exception occurred 227 */ 228 public com.liferay.portal.model.Layout findByUUID_G_P( 229 java.lang.String uuid, long groupId, boolean privateLayout) 230 throws com.liferay.portal.NoSuchLayoutException, 231 com.liferay.portal.kernel.exception.SystemException; 232 233 /** 234 * Returns the layout where uuid = ? and groupId = ? and privateLayout = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 235 * 236 * @param uuid the uuid 237 * @param groupId the group ID 238 * @param privateLayout the private layout 239 * @return the matching layout, or <code>null</code> if a matching layout could not be found 240 * @throws SystemException if a system exception occurred 241 */ 242 public com.liferay.portal.model.Layout fetchByUUID_G_P( 243 java.lang.String uuid, long groupId, boolean privateLayout) 244 throws com.liferay.portal.kernel.exception.SystemException; 245 246 /** 247 * Returns the layout where uuid = ? and groupId = ? and privateLayout = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 248 * 249 * @param uuid the uuid 250 * @param groupId the group ID 251 * @param privateLayout the private layout 252 * @param retrieveFromCache whether to use the finder cache 253 * @return the matching layout, or <code>null</code> if a matching layout could not be found 254 * @throws SystemException if a system exception occurred 255 */ 256 public com.liferay.portal.model.Layout fetchByUUID_G_P( 257 java.lang.String uuid, long groupId, boolean privateLayout, 258 boolean retrieveFromCache) 259 throws com.liferay.portal.kernel.exception.SystemException; 260 261 /** 262 * Returns all the layouts where groupId = ?. 263 * 264 * @param groupId the group ID 265 * @return the matching layouts 266 * @throws SystemException if a system exception occurred 267 */ 268 public java.util.List<com.liferay.portal.model.Layout> findByGroupId( 269 long groupId) 270 throws com.liferay.portal.kernel.exception.SystemException; 271 272 /** 273 * Returns a range of all the layouts where groupId = ?. 274 * 275 * <p> 276 * 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. 277 * </p> 278 * 279 * @param groupId the group ID 280 * @param start the lower bound of the range of layouts 281 * @param end the upper bound of the range of layouts (not inclusive) 282 * @return the range of matching layouts 283 * @throws SystemException if a system exception occurred 284 */ 285 public java.util.List<com.liferay.portal.model.Layout> findByGroupId( 286 long groupId, int start, int end) 287 throws com.liferay.portal.kernel.exception.SystemException; 288 289 /** 290 * Returns an ordered range of all the layouts where groupId = ?. 291 * 292 * <p> 293 * 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. 294 * </p> 295 * 296 * @param groupId the group ID 297 * @param start the lower bound of the range of layouts 298 * @param end the upper bound of the range of layouts (not inclusive) 299 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 300 * @return the ordered range of matching layouts 301 * @throws SystemException if a system exception occurred 302 */ 303 public java.util.List<com.liferay.portal.model.Layout> findByGroupId( 304 long groupId, int start, int end, 305 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 306 throws com.liferay.portal.kernel.exception.SystemException; 307 308 /** 309 * Returns the first layout in the ordered set where groupId = ?. 310 * 311 * @param groupId the group ID 312 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 313 * @return the first matching layout 314 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 315 * @throws SystemException if a system exception occurred 316 */ 317 public com.liferay.portal.model.Layout findByGroupId_First(long groupId, 318 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 319 throws com.liferay.portal.NoSuchLayoutException, 320 com.liferay.portal.kernel.exception.SystemException; 321 322 /** 323 * Returns the first layout in the ordered set where groupId = ?. 324 * 325 * @param groupId the group ID 326 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 327 * @return the first matching layout, or <code>null</code> if a matching layout could not be found 328 * @throws SystemException if a system exception occurred 329 */ 330 public com.liferay.portal.model.Layout fetchByGroupId_First(long groupId, 331 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 332 throws com.liferay.portal.kernel.exception.SystemException; 333 334 /** 335 * Returns the last layout in the ordered set where groupId = ?. 336 * 337 * @param groupId the group ID 338 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 339 * @return the last matching layout 340 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 341 * @throws SystemException if a system exception occurred 342 */ 343 public com.liferay.portal.model.Layout findByGroupId_Last(long groupId, 344 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 345 throws com.liferay.portal.NoSuchLayoutException, 346 com.liferay.portal.kernel.exception.SystemException; 347 348 /** 349 * Returns the last layout in the ordered set where groupId = ?. 350 * 351 * @param groupId the group ID 352 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 353 * @return the last matching layout, or <code>null</code> if a matching layout could not be found 354 * @throws SystemException if a system exception occurred 355 */ 356 public com.liferay.portal.model.Layout fetchByGroupId_Last(long groupId, 357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 358 throws com.liferay.portal.kernel.exception.SystemException; 359 360 /** 361 * Returns the layouts before and after the current layout in the ordered set where groupId = ?. 362 * 363 * @param plid the primary key of the current layout 364 * @param groupId the group ID 365 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 366 * @return the previous, current, and next layout 367 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 368 * @throws SystemException if a system exception occurred 369 */ 370 public com.liferay.portal.model.Layout[] findByGroupId_PrevAndNext( 371 long plid, long groupId, 372 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 373 throws com.liferay.portal.NoSuchLayoutException, 374 com.liferay.portal.kernel.exception.SystemException; 375 376 /** 377 * Returns all the layouts that the user has permission to view where groupId = ?. 378 * 379 * @param groupId the group ID 380 * @return the matching layouts that the user has permission to view 381 * @throws SystemException if a system exception occurred 382 */ 383 public java.util.List<com.liferay.portal.model.Layout> filterFindByGroupId( 384 long groupId) 385 throws com.liferay.portal.kernel.exception.SystemException; 386 387 /** 388 * Returns a range of all the layouts that the user has permission to view where groupId = ?. 389 * 390 * <p> 391 * 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. 392 * </p> 393 * 394 * @param groupId the group ID 395 * @param start the lower bound of the range of layouts 396 * @param end the upper bound of the range of layouts (not inclusive) 397 * @return the range of matching layouts that the user has permission to view 398 * @throws SystemException if a system exception occurred 399 */ 400 public java.util.List<com.liferay.portal.model.Layout> filterFindByGroupId( 401 long groupId, int start, int end) 402 throws com.liferay.portal.kernel.exception.SystemException; 403 404 /** 405 * Returns an ordered range of all the layouts that the user has permissions to view where groupId = ?. 406 * 407 * <p> 408 * 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. 409 * </p> 410 * 411 * @param groupId the group ID 412 * @param start the lower bound of the range of layouts 413 * @param end the upper bound of the range of layouts (not inclusive) 414 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 415 * @return the ordered range of matching layouts that the user has permission to view 416 * @throws SystemException if a system exception occurred 417 */ 418 public java.util.List<com.liferay.portal.model.Layout> filterFindByGroupId( 419 long groupId, int start, int end, 420 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 421 throws com.liferay.portal.kernel.exception.SystemException; 422 423 /** 424 * Returns the layouts before and after the current layout in the ordered set of layouts that the user has permission to view where groupId = ?. 425 * 426 * @param plid the primary key of the current layout 427 * @param groupId the group ID 428 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 429 * @return the previous, current, and next layout 430 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 431 * @throws SystemException if a system exception occurred 432 */ 433 public com.liferay.portal.model.Layout[] filterFindByGroupId_PrevAndNext( 434 long plid, long groupId, 435 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 436 throws com.liferay.portal.NoSuchLayoutException, 437 com.liferay.portal.kernel.exception.SystemException; 438 439 /** 440 * Returns all the layouts where companyId = ?. 441 * 442 * @param companyId the company ID 443 * @return the matching layouts 444 * @throws SystemException if a system exception occurred 445 */ 446 public java.util.List<com.liferay.portal.model.Layout> findByCompanyId( 447 long companyId) 448 throws com.liferay.portal.kernel.exception.SystemException; 449 450 /** 451 * Returns a range of all the layouts where companyId = ?. 452 * 453 * <p> 454 * 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. 455 * </p> 456 * 457 * @param companyId the company ID 458 * @param start the lower bound of the range of layouts 459 * @param end the upper bound of the range of layouts (not inclusive) 460 * @return the range of matching layouts 461 * @throws SystemException if a system exception occurred 462 */ 463 public java.util.List<com.liferay.portal.model.Layout> findByCompanyId( 464 long companyId, int start, int end) 465 throws com.liferay.portal.kernel.exception.SystemException; 466 467 /** 468 * Returns an ordered range of all the layouts where companyId = ?. 469 * 470 * <p> 471 * 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. 472 * </p> 473 * 474 * @param companyId the company ID 475 * @param start the lower bound of the range of layouts 476 * @param end the upper bound of the range of layouts (not inclusive) 477 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 478 * @return the ordered range of matching layouts 479 * @throws SystemException if a system exception occurred 480 */ 481 public java.util.List<com.liferay.portal.model.Layout> findByCompanyId( 482 long companyId, int start, int end, 483 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 484 throws com.liferay.portal.kernel.exception.SystemException; 485 486 /** 487 * Returns the first layout in the ordered set where companyId = ?. 488 * 489 * @param companyId the company ID 490 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 491 * @return the first matching layout 492 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 493 * @throws SystemException if a system exception occurred 494 */ 495 public com.liferay.portal.model.Layout findByCompanyId_First( 496 long companyId, 497 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 498 throws com.liferay.portal.NoSuchLayoutException, 499 com.liferay.portal.kernel.exception.SystemException; 500 501 /** 502 * Returns the first layout in the ordered set where companyId = ?. 503 * 504 * @param companyId the company ID 505 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 506 * @return the first matching layout, or <code>null</code> if a matching layout could not be found 507 * @throws SystemException if a system exception occurred 508 */ 509 public com.liferay.portal.model.Layout fetchByCompanyId_First( 510 long companyId, 511 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 512 throws com.liferay.portal.kernel.exception.SystemException; 513 514 /** 515 * Returns the last layout in the ordered set where companyId = ?. 516 * 517 * @param companyId the company ID 518 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 519 * @return the last matching layout 520 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 521 * @throws SystemException if a system exception occurred 522 */ 523 public com.liferay.portal.model.Layout findByCompanyId_Last( 524 long companyId, 525 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 526 throws com.liferay.portal.NoSuchLayoutException, 527 com.liferay.portal.kernel.exception.SystemException; 528 529 /** 530 * Returns the last layout in the ordered set where companyId = ?. 531 * 532 * @param companyId the company ID 533 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 534 * @return the last matching layout, or <code>null</code> if a matching layout could not be found 535 * @throws SystemException if a system exception occurred 536 */ 537 public com.liferay.portal.model.Layout fetchByCompanyId_Last( 538 long companyId, 539 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 540 throws com.liferay.portal.kernel.exception.SystemException; 541 542 /** 543 * Returns the layouts before and after the current layout in the ordered set where companyId = ?. 544 * 545 * @param plid the primary key of the current layout 546 * @param companyId the company ID 547 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 548 * @return the previous, current, and next layout 549 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 550 * @throws SystemException if a system exception occurred 551 */ 552 public com.liferay.portal.model.Layout[] findByCompanyId_PrevAndNext( 553 long plid, long companyId, 554 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 555 throws com.liferay.portal.NoSuchLayoutException, 556 com.liferay.portal.kernel.exception.SystemException; 557 558 /** 559 * Returns the layout where iconImageId = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. 560 * 561 * @param iconImageId the icon image ID 562 * @return the matching layout 563 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 564 * @throws SystemException if a system exception occurred 565 */ 566 public com.liferay.portal.model.Layout findByIconImageId(long iconImageId) 567 throws com.liferay.portal.NoSuchLayoutException, 568 com.liferay.portal.kernel.exception.SystemException; 569 570 /** 571 * Returns the layout where iconImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 572 * 573 * @param iconImageId the icon image ID 574 * @return the matching layout, or <code>null</code> if a matching layout could not be found 575 * @throws SystemException if a system exception occurred 576 */ 577 public com.liferay.portal.model.Layout fetchByIconImageId(long iconImageId) 578 throws com.liferay.portal.kernel.exception.SystemException; 579 580 /** 581 * Returns the layout where iconImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 582 * 583 * @param iconImageId the icon image ID 584 * @param retrieveFromCache whether to use the finder cache 585 * @return the matching layout, or <code>null</code> if a matching layout could not be found 586 * @throws SystemException if a system exception occurred 587 */ 588 public com.liferay.portal.model.Layout fetchByIconImageId( 589 long iconImageId, boolean retrieveFromCache) 590 throws com.liferay.portal.kernel.exception.SystemException; 591 592 /** 593 * Returns all the layouts where layoutPrototypeUuid = ?. 594 * 595 * @param layoutPrototypeUuid the layout prototype uuid 596 * @return the matching layouts 597 * @throws SystemException if a system exception occurred 598 */ 599 public java.util.List<com.liferay.portal.model.Layout> findByLayoutPrototypeUuid( 600 java.lang.String layoutPrototypeUuid) 601 throws com.liferay.portal.kernel.exception.SystemException; 602 603 /** 604 * Returns a range of all the layouts where layoutPrototypeUuid = ?. 605 * 606 * <p> 607 * 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. 608 * </p> 609 * 610 * @param layoutPrototypeUuid the layout prototype uuid 611 * @param start the lower bound of the range of layouts 612 * @param end the upper bound of the range of layouts (not inclusive) 613 * @return the range of matching layouts 614 * @throws SystemException if a system exception occurred 615 */ 616 public java.util.List<com.liferay.portal.model.Layout> findByLayoutPrototypeUuid( 617 java.lang.String layoutPrototypeUuid, int start, int end) 618 throws com.liferay.portal.kernel.exception.SystemException; 619 620 /** 621 * Returns an ordered range of all the layouts where layoutPrototypeUuid = ?. 622 * 623 * <p> 624 * 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. 625 * </p> 626 * 627 * @param layoutPrototypeUuid the layout prototype uuid 628 * @param start the lower bound of the range of layouts 629 * @param end the upper bound of the range of layouts (not inclusive) 630 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 631 * @return the ordered range of matching layouts 632 * @throws SystemException if a system exception occurred 633 */ 634 public java.util.List<com.liferay.portal.model.Layout> findByLayoutPrototypeUuid( 635 java.lang.String layoutPrototypeUuid, int start, int end, 636 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 637 throws com.liferay.portal.kernel.exception.SystemException; 638 639 /** 640 * Returns the first layout in the ordered set where layoutPrototypeUuid = ?. 641 * 642 * @param layoutPrototypeUuid the layout prototype uuid 643 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 644 * @return the first matching layout 645 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 646 * @throws SystemException if a system exception occurred 647 */ 648 public com.liferay.portal.model.Layout findByLayoutPrototypeUuid_First( 649 java.lang.String layoutPrototypeUuid, 650 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 651 throws com.liferay.portal.NoSuchLayoutException, 652 com.liferay.portal.kernel.exception.SystemException; 653 654 /** 655 * Returns the first layout in the ordered set where layoutPrototypeUuid = ?. 656 * 657 * @param layoutPrototypeUuid the layout prototype uuid 658 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 659 * @return the first matching layout, or <code>null</code> if a matching layout could not be found 660 * @throws SystemException if a system exception occurred 661 */ 662 public com.liferay.portal.model.Layout fetchByLayoutPrototypeUuid_First( 663 java.lang.String layoutPrototypeUuid, 664 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 665 throws com.liferay.portal.kernel.exception.SystemException; 666 667 /** 668 * Returns the last layout in the ordered set where layoutPrototypeUuid = ?. 669 * 670 * @param layoutPrototypeUuid the layout prototype uuid 671 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 672 * @return the last matching layout 673 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 674 * @throws SystemException if a system exception occurred 675 */ 676 public com.liferay.portal.model.Layout findByLayoutPrototypeUuid_Last( 677 java.lang.String layoutPrototypeUuid, 678 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 679 throws com.liferay.portal.NoSuchLayoutException, 680 com.liferay.portal.kernel.exception.SystemException; 681 682 /** 683 * Returns the last layout in the ordered set where layoutPrototypeUuid = ?. 684 * 685 * @param layoutPrototypeUuid the layout prototype uuid 686 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 687 * @return the last matching layout, or <code>null</code> if a matching layout could not be found 688 * @throws SystemException if a system exception occurred 689 */ 690 public com.liferay.portal.model.Layout fetchByLayoutPrototypeUuid_Last( 691 java.lang.String layoutPrototypeUuid, 692 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 693 throws com.liferay.portal.kernel.exception.SystemException; 694 695 /** 696 * Returns the layouts before and after the current layout in the ordered set where layoutPrototypeUuid = ?. 697 * 698 * @param plid the primary key of the current layout 699 * @param layoutPrototypeUuid the layout prototype uuid 700 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 701 * @return the previous, current, and next layout 702 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 703 * @throws SystemException if a system exception occurred 704 */ 705 public com.liferay.portal.model.Layout[] findByLayoutPrototypeUuid_PrevAndNext( 706 long plid, java.lang.String layoutPrototypeUuid, 707 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 708 throws com.liferay.portal.NoSuchLayoutException, 709 com.liferay.portal.kernel.exception.SystemException; 710 711 /** 712 * Returns all the layouts where sourcePrototypeLayoutUuid = ?. 713 * 714 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 715 * @return the matching layouts 716 * @throws SystemException if a system exception occurred 717 */ 718 public java.util.List<com.liferay.portal.model.Layout> findBySourcePrototypeLayoutUuid( 719 java.lang.String sourcePrototypeLayoutUuid) 720 throws com.liferay.portal.kernel.exception.SystemException; 721 722 /** 723 * Returns a range of all the layouts where sourcePrototypeLayoutUuid = ?. 724 * 725 * <p> 726 * 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. 727 * </p> 728 * 729 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 730 * @param start the lower bound of the range of layouts 731 * @param end the upper bound of the range of layouts (not inclusive) 732 * @return the range of matching layouts 733 * @throws SystemException if a system exception occurred 734 */ 735 public java.util.List<com.liferay.portal.model.Layout> findBySourcePrototypeLayoutUuid( 736 java.lang.String sourcePrototypeLayoutUuid, int start, int end) 737 throws com.liferay.portal.kernel.exception.SystemException; 738 739 /** 740 * Returns an ordered range of all the layouts where sourcePrototypeLayoutUuid = ?. 741 * 742 * <p> 743 * 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. 744 * </p> 745 * 746 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 747 * @param start the lower bound of the range of layouts 748 * @param end the upper bound of the range of layouts (not inclusive) 749 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 750 * @return the ordered range of matching layouts 751 * @throws SystemException if a system exception occurred 752 */ 753 public java.util.List<com.liferay.portal.model.Layout> findBySourcePrototypeLayoutUuid( 754 java.lang.String sourcePrototypeLayoutUuid, int start, int end, 755 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 756 throws com.liferay.portal.kernel.exception.SystemException; 757 758 /** 759 * Returns the first layout in the ordered set where sourcePrototypeLayoutUuid = ?. 760 * 761 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 762 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 763 * @return the first matching layout 764 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 765 * @throws SystemException if a system exception occurred 766 */ 767 public com.liferay.portal.model.Layout findBySourcePrototypeLayoutUuid_First( 768 java.lang.String sourcePrototypeLayoutUuid, 769 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 770 throws com.liferay.portal.NoSuchLayoutException, 771 com.liferay.portal.kernel.exception.SystemException; 772 773 /** 774 * Returns the first layout in the ordered set where sourcePrototypeLayoutUuid = ?. 775 * 776 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 777 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 778 * @return the first matching layout, or <code>null</code> if a matching layout could not be found 779 * @throws SystemException if a system exception occurred 780 */ 781 public com.liferay.portal.model.Layout fetchBySourcePrototypeLayoutUuid_First( 782 java.lang.String sourcePrototypeLayoutUuid, 783 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 784 throws com.liferay.portal.kernel.exception.SystemException; 785 786 /** 787 * Returns the last layout in the ordered set where sourcePrototypeLayoutUuid = ?. 788 * 789 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 790 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 791 * @return the last matching layout 792 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 793 * @throws SystemException if a system exception occurred 794 */ 795 public com.liferay.portal.model.Layout findBySourcePrototypeLayoutUuid_Last( 796 java.lang.String sourcePrototypeLayoutUuid, 797 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 798 throws com.liferay.portal.NoSuchLayoutException, 799 com.liferay.portal.kernel.exception.SystemException; 800 801 /** 802 * Returns the last layout in the ordered set where sourcePrototypeLayoutUuid = ?. 803 * 804 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 805 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 806 * @return the last matching layout, or <code>null</code> if a matching layout could not be found 807 * @throws SystemException if a system exception occurred 808 */ 809 public com.liferay.portal.model.Layout fetchBySourcePrototypeLayoutUuid_Last( 810 java.lang.String sourcePrototypeLayoutUuid, 811 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 812 throws com.liferay.portal.kernel.exception.SystemException; 813 814 /** 815 * Returns the layouts before and after the current layout in the ordered set where sourcePrototypeLayoutUuid = ?. 816 * 817 * @param plid the primary key of the current layout 818 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 819 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 820 * @return the previous, current, and next layout 821 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 822 * @throws SystemException if a system exception occurred 823 */ 824 public com.liferay.portal.model.Layout[] findBySourcePrototypeLayoutUuid_PrevAndNext( 825 long plid, java.lang.String sourcePrototypeLayoutUuid, 826 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 827 throws com.liferay.portal.NoSuchLayoutException, 828 com.liferay.portal.kernel.exception.SystemException; 829 830 /** 831 * Returns all the layouts where groupId = ? and privateLayout = ?. 832 * 833 * @param groupId the group ID 834 * @param privateLayout the private layout 835 * @return the matching layouts 836 * @throws SystemException if a system exception occurred 837 */ 838 public java.util.List<com.liferay.portal.model.Layout> findByG_P( 839 long groupId, boolean privateLayout) 840 throws com.liferay.portal.kernel.exception.SystemException; 841 842 /** 843 * Returns a range of all the layouts where groupId = ? and privateLayout = ?. 844 * 845 * <p> 846 * 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. 847 * </p> 848 * 849 * @param groupId the group ID 850 * @param privateLayout the private layout 851 * @param start the lower bound of the range of layouts 852 * @param end the upper bound of the range of layouts (not inclusive) 853 * @return the range of matching layouts 854 * @throws SystemException if a system exception occurred 855 */ 856 public java.util.List<com.liferay.portal.model.Layout> findByG_P( 857 long groupId, boolean privateLayout, int start, int end) 858 throws com.liferay.portal.kernel.exception.SystemException; 859 860 /** 861 * Returns an ordered range of all the layouts where groupId = ? and privateLayout = ?. 862 * 863 * <p> 864 * 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. 865 * </p> 866 * 867 * @param groupId the group ID 868 * @param privateLayout the private layout 869 * @param start the lower bound of the range of layouts 870 * @param end the upper bound of the range of layouts (not inclusive) 871 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 872 * @return the ordered range of matching layouts 873 * @throws SystemException if a system exception occurred 874 */ 875 public java.util.List<com.liferay.portal.model.Layout> findByG_P( 876 long groupId, boolean privateLayout, int start, int end, 877 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 878 throws com.liferay.portal.kernel.exception.SystemException; 879 880 /** 881 * Returns the first layout in the ordered set where groupId = ? and privateLayout = ?. 882 * 883 * @param groupId the group ID 884 * @param privateLayout the private layout 885 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 886 * @return the first matching layout 887 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 888 * @throws SystemException if a system exception occurred 889 */ 890 public com.liferay.portal.model.Layout findByG_P_First(long groupId, 891 boolean privateLayout, 892 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 893 throws com.liferay.portal.NoSuchLayoutException, 894 com.liferay.portal.kernel.exception.SystemException; 895 896 /** 897 * Returns the first layout in the ordered set where groupId = ? and privateLayout = ?. 898 * 899 * @param groupId the group ID 900 * @param privateLayout the private layout 901 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 902 * @return the first matching layout, or <code>null</code> if a matching layout could not be found 903 * @throws SystemException if a system exception occurred 904 */ 905 public com.liferay.portal.model.Layout fetchByG_P_First(long groupId, 906 boolean privateLayout, 907 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 908 throws com.liferay.portal.kernel.exception.SystemException; 909 910 /** 911 * Returns the last layout in the ordered set where groupId = ? and privateLayout = ?. 912 * 913 * @param groupId the group ID 914 * @param privateLayout the private layout 915 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 916 * @return the last matching layout 917 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 918 * @throws SystemException if a system exception occurred 919 */ 920 public com.liferay.portal.model.Layout findByG_P_Last(long groupId, 921 boolean privateLayout, 922 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 923 throws com.liferay.portal.NoSuchLayoutException, 924 com.liferay.portal.kernel.exception.SystemException; 925 926 /** 927 * Returns the last layout in the ordered set where groupId = ? and privateLayout = ?. 928 * 929 * @param groupId the group ID 930 * @param privateLayout the private layout 931 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 932 * @return the last matching layout, or <code>null</code> if a matching layout could not be found 933 * @throws SystemException if a system exception occurred 934 */ 935 public com.liferay.portal.model.Layout fetchByG_P_Last(long groupId, 936 boolean privateLayout, 937 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 938 throws com.liferay.portal.kernel.exception.SystemException; 939 940 /** 941 * Returns the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ?. 942 * 943 * @param plid the primary key of the current layout 944 * @param groupId the group ID 945 * @param privateLayout the private layout 946 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 947 * @return the previous, current, and next layout 948 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 949 * @throws SystemException if a system exception occurred 950 */ 951 public com.liferay.portal.model.Layout[] findByG_P_PrevAndNext(long plid, 952 long groupId, boolean privateLayout, 953 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 954 throws com.liferay.portal.NoSuchLayoutException, 955 com.liferay.portal.kernel.exception.SystemException; 956 957 /** 958 * Returns all the layouts that the user has permission to view where groupId = ? and privateLayout = ?. 959 * 960 * @param groupId the group ID 961 * @param privateLayout the private layout 962 * @return the matching layouts that the user has permission to view 963 * @throws SystemException if a system exception occurred 964 */ 965 public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P( 966 long groupId, boolean privateLayout) 967 throws com.liferay.portal.kernel.exception.SystemException; 968 969 /** 970 * Returns a range of all the layouts that the user has permission to view where groupId = ? and privateLayout = ?. 971 * 972 * <p> 973 * 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. 974 * </p> 975 * 976 * @param groupId the group ID 977 * @param privateLayout the private layout 978 * @param start the lower bound of the range of layouts 979 * @param end the upper bound of the range of layouts (not inclusive) 980 * @return the range of matching layouts that the user has permission to view 981 * @throws SystemException if a system exception occurred 982 */ 983 public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P( 984 long groupId, boolean privateLayout, int start, int end) 985 throws com.liferay.portal.kernel.exception.SystemException; 986 987 /** 988 * Returns an ordered range of all the layouts that the user has permissions to view where groupId = ? and privateLayout = ?. 989 * 990 * <p> 991 * 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. 992 * </p> 993 * 994 * @param groupId the group ID 995 * @param privateLayout the private layout 996 * @param start the lower bound of the range of layouts 997 * @param end the upper bound of the range of layouts (not inclusive) 998 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 999 * @return the ordered range of matching layouts that the user has permission to view 1000 * @throws SystemException if a system exception occurred 1001 */ 1002 public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P( 1003 long groupId, boolean privateLayout, int start, int end, 1004 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1005 throws com.liferay.portal.kernel.exception.SystemException; 1006 1007 /** 1008 * Returns the layouts before and after the current layout in the ordered set of layouts that the user has permission to view where groupId = ? and privateLayout = ?. 1009 * 1010 * @param plid the primary key of the current layout 1011 * @param groupId the group ID 1012 * @param privateLayout the private layout 1013 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1014 * @return the previous, current, and next layout 1015 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 1016 * @throws SystemException if a system exception occurred 1017 */ 1018 public com.liferay.portal.model.Layout[] filterFindByG_P_PrevAndNext( 1019 long plid, long groupId, boolean privateLayout, 1020 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1021 throws com.liferay.portal.NoSuchLayoutException, 1022 com.liferay.portal.kernel.exception.SystemException; 1023 1024 /** 1025 * Returns the layout where groupId = ? and privateLayout = ? and layoutId = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. 1026 * 1027 * @param groupId the group ID 1028 * @param privateLayout the private layout 1029 * @param layoutId the layout ID 1030 * @return the matching layout 1031 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1032 * @throws SystemException if a system exception occurred 1033 */ 1034 public com.liferay.portal.model.Layout findByG_P_L(long groupId, 1035 boolean privateLayout, long layoutId) 1036 throws com.liferay.portal.NoSuchLayoutException, 1037 com.liferay.portal.kernel.exception.SystemException; 1038 1039 /** 1040 * Returns the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1041 * 1042 * @param groupId the group ID 1043 * @param privateLayout the private layout 1044 * @param layoutId the layout ID 1045 * @return the matching layout, or <code>null</code> if a matching layout could not be found 1046 * @throws SystemException if a system exception occurred 1047 */ 1048 public com.liferay.portal.model.Layout fetchByG_P_L(long groupId, 1049 boolean privateLayout, long layoutId) 1050 throws com.liferay.portal.kernel.exception.SystemException; 1051 1052 /** 1053 * Returns the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1054 * 1055 * @param groupId the group ID 1056 * @param privateLayout the private layout 1057 * @param layoutId the layout ID 1058 * @param retrieveFromCache whether to use the finder cache 1059 * @return the matching layout, or <code>null</code> if a matching layout could not be found 1060 * @throws SystemException if a system exception occurred 1061 */ 1062 public com.liferay.portal.model.Layout fetchByG_P_L(long groupId, 1063 boolean privateLayout, long layoutId, boolean retrieveFromCache) 1064 throws com.liferay.portal.kernel.exception.SystemException; 1065 1066 /** 1067 * Returns all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1068 * 1069 * @param groupId the group ID 1070 * @param privateLayout the private layout 1071 * @param parentLayoutId the parent layout ID 1072 * @return the matching layouts 1073 * @throws SystemException if a system exception occurred 1074 */ 1075 public java.util.List<com.liferay.portal.model.Layout> findByG_P_P( 1076 long groupId, boolean privateLayout, long parentLayoutId) 1077 throws com.liferay.portal.kernel.exception.SystemException; 1078 1079 /** 1080 * Returns a range of all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1081 * 1082 * <p> 1083 * 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. 1084 * </p> 1085 * 1086 * @param groupId the group ID 1087 * @param privateLayout the private layout 1088 * @param parentLayoutId the parent layout ID 1089 * @param start the lower bound of the range of layouts 1090 * @param end the upper bound of the range of layouts (not inclusive) 1091 * @return the range of matching layouts 1092 * @throws SystemException if a system exception occurred 1093 */ 1094 public java.util.List<com.liferay.portal.model.Layout> findByG_P_P( 1095 long groupId, boolean privateLayout, long parentLayoutId, int start, 1096 int end) throws com.liferay.portal.kernel.exception.SystemException; 1097 1098 /** 1099 * Returns an ordered range of all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1100 * 1101 * <p> 1102 * 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. 1103 * </p> 1104 * 1105 * @param groupId the group ID 1106 * @param privateLayout the private layout 1107 * @param parentLayoutId the parent layout ID 1108 * @param start the lower bound of the range of layouts 1109 * @param end the upper bound of the range of layouts (not inclusive) 1110 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1111 * @return the ordered range of matching layouts 1112 * @throws SystemException if a system exception occurred 1113 */ 1114 public java.util.List<com.liferay.portal.model.Layout> findByG_P_P( 1115 long groupId, boolean privateLayout, long parentLayoutId, int start, 1116 int end, 1117 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1118 throws com.liferay.portal.kernel.exception.SystemException; 1119 1120 /** 1121 * Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1122 * 1123 * @param groupId the group ID 1124 * @param privateLayout the private layout 1125 * @param parentLayoutId the parent layout ID 1126 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1127 * @return the first matching layout 1128 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1129 * @throws SystemException if a system exception occurred 1130 */ 1131 public com.liferay.portal.model.Layout findByG_P_P_First(long groupId, 1132 boolean privateLayout, long parentLayoutId, 1133 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1134 throws com.liferay.portal.NoSuchLayoutException, 1135 com.liferay.portal.kernel.exception.SystemException; 1136 1137 /** 1138 * Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1139 * 1140 * @param groupId the group ID 1141 * @param privateLayout the private layout 1142 * @param parentLayoutId the parent layout ID 1143 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1144 * @return the first matching layout, or <code>null</code> if a matching layout could not be found 1145 * @throws SystemException if a system exception occurred 1146 */ 1147 public com.liferay.portal.model.Layout fetchByG_P_P_First(long groupId, 1148 boolean privateLayout, long parentLayoutId, 1149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1150 throws com.liferay.portal.kernel.exception.SystemException; 1151 1152 /** 1153 * Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1154 * 1155 * @param groupId the group ID 1156 * @param privateLayout the private layout 1157 * @param parentLayoutId the parent layout ID 1158 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1159 * @return the last matching layout 1160 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1161 * @throws SystemException if a system exception occurred 1162 */ 1163 public com.liferay.portal.model.Layout findByG_P_P_Last(long groupId, 1164 boolean privateLayout, long parentLayoutId, 1165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1166 throws com.liferay.portal.NoSuchLayoutException, 1167 com.liferay.portal.kernel.exception.SystemException; 1168 1169 /** 1170 * Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1171 * 1172 * @param groupId the group ID 1173 * @param privateLayout the private layout 1174 * @param parentLayoutId the parent layout ID 1175 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1176 * @return the last matching layout, or <code>null</code> if a matching layout could not be found 1177 * @throws SystemException if a system exception occurred 1178 */ 1179 public com.liferay.portal.model.Layout fetchByG_P_P_Last(long groupId, 1180 boolean privateLayout, long parentLayoutId, 1181 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1182 throws com.liferay.portal.kernel.exception.SystemException; 1183 1184 /** 1185 * Returns the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1186 * 1187 * @param plid the primary key of the current layout 1188 * @param groupId the group ID 1189 * @param privateLayout the private layout 1190 * @param parentLayoutId the parent layout ID 1191 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1192 * @return the previous, current, and next layout 1193 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 1194 * @throws SystemException if a system exception occurred 1195 */ 1196 public com.liferay.portal.model.Layout[] findByG_P_P_PrevAndNext( 1197 long plid, long groupId, boolean privateLayout, long parentLayoutId, 1198 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1199 throws com.liferay.portal.NoSuchLayoutException, 1200 com.liferay.portal.kernel.exception.SystemException; 1201 1202 /** 1203 * Returns all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1204 * 1205 * @param groupId the group ID 1206 * @param privateLayout the private layout 1207 * @param parentLayoutId the parent layout ID 1208 * @return the matching layouts that the user has permission to view 1209 * @throws SystemException if a system exception occurred 1210 */ 1211 public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P( 1212 long groupId, boolean privateLayout, long parentLayoutId) 1213 throws com.liferay.portal.kernel.exception.SystemException; 1214 1215 /** 1216 * Returns a range of all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1217 * 1218 * <p> 1219 * 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. 1220 * </p> 1221 * 1222 * @param groupId the group ID 1223 * @param privateLayout the private layout 1224 * @param parentLayoutId the parent layout ID 1225 * @param start the lower bound of the range of layouts 1226 * @param end the upper bound of the range of layouts (not inclusive) 1227 * @return the range of matching layouts that the user has permission to view 1228 * @throws SystemException if a system exception occurred 1229 */ 1230 public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P( 1231 long groupId, boolean privateLayout, long parentLayoutId, int start, 1232 int end) throws com.liferay.portal.kernel.exception.SystemException; 1233 1234 /** 1235 * Returns an ordered range of all the layouts that the user has permissions to view where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1236 * 1237 * <p> 1238 * 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. 1239 * </p> 1240 * 1241 * @param groupId the group ID 1242 * @param privateLayout the private layout 1243 * @param parentLayoutId the parent layout ID 1244 * @param start the lower bound of the range of layouts 1245 * @param end the upper bound of the range of layouts (not inclusive) 1246 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1247 * @return the ordered range of matching layouts that the user has permission to view 1248 * @throws SystemException if a system exception occurred 1249 */ 1250 public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P( 1251 long groupId, boolean privateLayout, long parentLayoutId, int start, 1252 int end, 1253 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1254 throws com.liferay.portal.kernel.exception.SystemException; 1255 1256 /** 1257 * Returns the layouts before and after the current layout in the ordered set of layouts that the user has permission to view where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1258 * 1259 * @param plid the primary key of the current layout 1260 * @param groupId the group ID 1261 * @param privateLayout the private layout 1262 * @param parentLayoutId the parent layout ID 1263 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1264 * @return the previous, current, and next layout 1265 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 1266 * @throws SystemException if a system exception occurred 1267 */ 1268 public com.liferay.portal.model.Layout[] filterFindByG_P_P_PrevAndNext( 1269 long plid, long groupId, boolean privateLayout, long parentLayoutId, 1270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1271 throws com.liferay.portal.NoSuchLayoutException, 1272 com.liferay.portal.kernel.exception.SystemException; 1273 1274 /** 1275 * Returns the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. 1276 * 1277 * @param groupId the group ID 1278 * @param privateLayout the private layout 1279 * @param friendlyURL the friendly u r l 1280 * @return the matching layout 1281 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1282 * @throws SystemException if a system exception occurred 1283 */ 1284 public com.liferay.portal.model.Layout findByG_P_F(long groupId, 1285 boolean privateLayout, java.lang.String friendlyURL) 1286 throws com.liferay.portal.NoSuchLayoutException, 1287 com.liferay.portal.kernel.exception.SystemException; 1288 1289 /** 1290 * Returns the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1291 * 1292 * @param groupId the group ID 1293 * @param privateLayout the private layout 1294 * @param friendlyURL the friendly u r l 1295 * @return the matching layout, or <code>null</code> if a matching layout could not be found 1296 * @throws SystemException if a system exception occurred 1297 */ 1298 public com.liferay.portal.model.Layout fetchByG_P_F(long groupId, 1299 boolean privateLayout, java.lang.String friendlyURL) 1300 throws com.liferay.portal.kernel.exception.SystemException; 1301 1302 /** 1303 * Returns the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1304 * 1305 * @param groupId the group ID 1306 * @param privateLayout the private layout 1307 * @param friendlyURL the friendly u r l 1308 * @param retrieveFromCache whether to use the finder cache 1309 * @return the matching layout, or <code>null</code> if a matching layout could not be found 1310 * @throws SystemException if a system exception occurred 1311 */ 1312 public com.liferay.portal.model.Layout fetchByG_P_F(long groupId, 1313 boolean privateLayout, java.lang.String friendlyURL, 1314 boolean retrieveFromCache) 1315 throws com.liferay.portal.kernel.exception.SystemException; 1316 1317 /** 1318 * Returns all the layouts where groupId = ? and privateLayout = ? and type = ?. 1319 * 1320 * @param groupId the group ID 1321 * @param privateLayout the private layout 1322 * @param type the type 1323 * @return the matching layouts 1324 * @throws SystemException if a system exception occurred 1325 */ 1326 public java.util.List<com.liferay.portal.model.Layout> findByG_P_T( 1327 long groupId, boolean privateLayout, java.lang.String type) 1328 throws com.liferay.portal.kernel.exception.SystemException; 1329 1330 /** 1331 * Returns a range of all the layouts where groupId = ? and privateLayout = ? and type = ?. 1332 * 1333 * <p> 1334 * 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. 1335 * </p> 1336 * 1337 * @param groupId the group ID 1338 * @param privateLayout the private layout 1339 * @param type the type 1340 * @param start the lower bound of the range of layouts 1341 * @param end the upper bound of the range of layouts (not inclusive) 1342 * @return the range of matching layouts 1343 * @throws SystemException if a system exception occurred 1344 */ 1345 public java.util.List<com.liferay.portal.model.Layout> findByG_P_T( 1346 long groupId, boolean privateLayout, java.lang.String type, int start, 1347 int end) throws com.liferay.portal.kernel.exception.SystemException; 1348 1349 /** 1350 * Returns an ordered range of all the layouts where groupId = ? and privateLayout = ? and type = ?. 1351 * 1352 * <p> 1353 * 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. 1354 * </p> 1355 * 1356 * @param groupId the group ID 1357 * @param privateLayout the private layout 1358 * @param type the type 1359 * @param start the lower bound of the range of layouts 1360 * @param end the upper bound of the range of layouts (not inclusive) 1361 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1362 * @return the ordered range of matching layouts 1363 * @throws SystemException if a system exception occurred 1364 */ 1365 public java.util.List<com.liferay.portal.model.Layout> findByG_P_T( 1366 long groupId, boolean privateLayout, java.lang.String type, int start, 1367 int end, 1368 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1369 throws com.liferay.portal.kernel.exception.SystemException; 1370 1371 /** 1372 * Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. 1373 * 1374 * @param groupId the group ID 1375 * @param privateLayout the private layout 1376 * @param type the type 1377 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1378 * @return the first matching layout 1379 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1380 * @throws SystemException if a system exception occurred 1381 */ 1382 public com.liferay.portal.model.Layout findByG_P_T_First(long groupId, 1383 boolean privateLayout, java.lang.String type, 1384 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1385 throws com.liferay.portal.NoSuchLayoutException, 1386 com.liferay.portal.kernel.exception.SystemException; 1387 1388 /** 1389 * Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. 1390 * 1391 * @param groupId the group ID 1392 * @param privateLayout the private layout 1393 * @param type the type 1394 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1395 * @return the first matching layout, or <code>null</code> if a matching layout could not be found 1396 * @throws SystemException if a system exception occurred 1397 */ 1398 public com.liferay.portal.model.Layout fetchByG_P_T_First(long groupId, 1399 boolean privateLayout, java.lang.String type, 1400 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1401 throws com.liferay.portal.kernel.exception.SystemException; 1402 1403 /** 1404 * Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. 1405 * 1406 * @param groupId the group ID 1407 * @param privateLayout the private layout 1408 * @param type the type 1409 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1410 * @return the last matching layout 1411 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1412 * @throws SystemException if a system exception occurred 1413 */ 1414 public com.liferay.portal.model.Layout findByG_P_T_Last(long groupId, 1415 boolean privateLayout, java.lang.String type, 1416 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1417 throws com.liferay.portal.NoSuchLayoutException, 1418 com.liferay.portal.kernel.exception.SystemException; 1419 1420 /** 1421 * Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. 1422 * 1423 * @param groupId the group ID 1424 * @param privateLayout the private layout 1425 * @param type the type 1426 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1427 * @return the last matching layout, or <code>null</code> if a matching layout could not be found 1428 * @throws SystemException if a system exception occurred 1429 */ 1430 public com.liferay.portal.model.Layout fetchByG_P_T_Last(long groupId, 1431 boolean privateLayout, java.lang.String type, 1432 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1433 throws com.liferay.portal.kernel.exception.SystemException; 1434 1435 /** 1436 * Returns the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. 1437 * 1438 * @param plid the primary key of the current layout 1439 * @param groupId the group ID 1440 * @param privateLayout the private layout 1441 * @param type the type 1442 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1443 * @return the previous, current, and next layout 1444 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 1445 * @throws SystemException if a system exception occurred 1446 */ 1447 public com.liferay.portal.model.Layout[] findByG_P_T_PrevAndNext( 1448 long plid, long groupId, boolean privateLayout, java.lang.String type, 1449 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1450 throws com.liferay.portal.NoSuchLayoutException, 1451 com.liferay.portal.kernel.exception.SystemException; 1452 1453 /** 1454 * Returns all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and type = ?. 1455 * 1456 * @param groupId the group ID 1457 * @param privateLayout the private layout 1458 * @param type the type 1459 * @return the matching layouts that the user has permission to view 1460 * @throws SystemException if a system exception occurred 1461 */ 1462 public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_T( 1463 long groupId, boolean privateLayout, java.lang.String type) 1464 throws com.liferay.portal.kernel.exception.SystemException; 1465 1466 /** 1467 * Returns a range of all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and type = ?. 1468 * 1469 * <p> 1470 * 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. 1471 * </p> 1472 * 1473 * @param groupId the group ID 1474 * @param privateLayout the private layout 1475 * @param type the type 1476 * @param start the lower bound of the range of layouts 1477 * @param end the upper bound of the range of layouts (not inclusive) 1478 * @return the range of matching layouts that the user has permission to view 1479 * @throws SystemException if a system exception occurred 1480 */ 1481 public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_T( 1482 long groupId, boolean privateLayout, java.lang.String type, int start, 1483 int end) throws com.liferay.portal.kernel.exception.SystemException; 1484 1485 /** 1486 * Returns an ordered range of all the layouts that the user has permissions to view where groupId = ? and privateLayout = ? and type = ?. 1487 * 1488 * <p> 1489 * 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. 1490 * </p> 1491 * 1492 * @param groupId the group ID 1493 * @param privateLayout the private layout 1494 * @param type the type 1495 * @param start the lower bound of the range of layouts 1496 * @param end the upper bound of the range of layouts (not inclusive) 1497 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1498 * @return the ordered range of matching layouts that the user has permission to view 1499 * @throws SystemException if a system exception occurred 1500 */ 1501 public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_T( 1502 long groupId, boolean privateLayout, java.lang.String type, int start, 1503 int end, 1504 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1505 throws com.liferay.portal.kernel.exception.SystemException; 1506 1507 /** 1508 * Returns the layouts before and after the current layout in the ordered set of layouts that the user has permission to view where groupId = ? and privateLayout = ? and type = ?. 1509 * 1510 * @param plid the primary key of the current layout 1511 * @param groupId the group ID 1512 * @param privateLayout the private layout 1513 * @param type the type 1514 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1515 * @return the previous, current, and next layout 1516 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 1517 * @throws SystemException if a system exception occurred 1518 */ 1519 public com.liferay.portal.model.Layout[] filterFindByG_P_T_PrevAndNext( 1520 long plid, long groupId, boolean privateLayout, java.lang.String type, 1521 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1522 throws com.liferay.portal.NoSuchLayoutException, 1523 com.liferay.portal.kernel.exception.SystemException; 1524 1525 /** 1526 * Returns the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. 1527 * 1528 * @param groupId the group ID 1529 * @param privateLayout the private layout 1530 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 1531 * @return the matching layout 1532 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1533 * @throws SystemException if a system exception occurred 1534 */ 1535 public com.liferay.portal.model.Layout findByG_P_SPLU(long groupId, 1536 boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid) 1537 throws com.liferay.portal.NoSuchLayoutException, 1538 com.liferay.portal.kernel.exception.SystemException; 1539 1540 /** 1541 * Returns the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1542 * 1543 * @param groupId the group ID 1544 * @param privateLayout the private layout 1545 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 1546 * @return the matching layout, or <code>null</code> if a matching layout could not be found 1547 * @throws SystemException if a system exception occurred 1548 */ 1549 public com.liferay.portal.model.Layout fetchByG_P_SPLU(long groupId, 1550 boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid) 1551 throws com.liferay.portal.kernel.exception.SystemException; 1552 1553 /** 1554 * Returns the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1555 * 1556 * @param groupId the group ID 1557 * @param privateLayout the private layout 1558 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 1559 * @param retrieveFromCache whether to use the finder cache 1560 * @return the matching layout, or <code>null</code> if a matching layout could not be found 1561 * @throws SystemException if a system exception occurred 1562 */ 1563 public com.liferay.portal.model.Layout fetchByG_P_SPLU(long groupId, 1564 boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid, 1565 boolean retrieveFromCache) 1566 throws com.liferay.portal.kernel.exception.SystemException; 1567 1568 /** 1569 * Returns all the layouts. 1570 * 1571 * @return the layouts 1572 * @throws SystemException if a system exception occurred 1573 */ 1574 public java.util.List<com.liferay.portal.model.Layout> findAll() 1575 throws com.liferay.portal.kernel.exception.SystemException; 1576 1577 /** 1578 * Returns a range of all the layouts. 1579 * 1580 * <p> 1581 * 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. 1582 * </p> 1583 * 1584 * @param start the lower bound of the range of layouts 1585 * @param end the upper bound of the range of layouts (not inclusive) 1586 * @return the range of layouts 1587 * @throws SystemException if a system exception occurred 1588 */ 1589 public java.util.List<com.liferay.portal.model.Layout> findAll(int start, 1590 int end) throws com.liferay.portal.kernel.exception.SystemException; 1591 1592 /** 1593 * Returns an ordered range of all the layouts. 1594 * 1595 * <p> 1596 * 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. 1597 * </p> 1598 * 1599 * @param start the lower bound of the range of layouts 1600 * @param end the upper bound of the range of layouts (not inclusive) 1601 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1602 * @return the ordered range of layouts 1603 * @throws SystemException if a system exception occurred 1604 */ 1605 public java.util.List<com.liferay.portal.model.Layout> findAll(int start, 1606 int end, 1607 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1608 throws com.liferay.portal.kernel.exception.SystemException; 1609 1610 /** 1611 * Removes all the layouts where uuid = ? from the database. 1612 * 1613 * @param uuid the uuid 1614 * @throws SystemException if a system exception occurred 1615 */ 1616 public void removeByUuid(java.lang.String uuid) 1617 throws com.liferay.portal.kernel.exception.SystemException; 1618 1619 /** 1620 * Removes the layout where uuid = ? and groupId = ? and privateLayout = ? from the database. 1621 * 1622 * @param uuid the uuid 1623 * @param groupId the group ID 1624 * @param privateLayout the private layout 1625 * @return the layout that was removed 1626 * @throws SystemException if a system exception occurred 1627 */ 1628 public com.liferay.portal.model.Layout removeByUUID_G_P( 1629 java.lang.String uuid, long groupId, boolean privateLayout) 1630 throws com.liferay.portal.NoSuchLayoutException, 1631 com.liferay.portal.kernel.exception.SystemException; 1632 1633 /** 1634 * Removes all the layouts where groupId = ? from the database. 1635 * 1636 * @param groupId the group ID 1637 * @throws SystemException if a system exception occurred 1638 */ 1639 public void removeByGroupId(long groupId) 1640 throws com.liferay.portal.kernel.exception.SystemException; 1641 1642 /** 1643 * Removes all the layouts where companyId = ? from the database. 1644 * 1645 * @param companyId the company ID 1646 * @throws SystemException if a system exception occurred 1647 */ 1648 public void removeByCompanyId(long companyId) 1649 throws com.liferay.portal.kernel.exception.SystemException; 1650 1651 /** 1652 * Removes the layout where iconImageId = ? from the database. 1653 * 1654 * @param iconImageId the icon image ID 1655 * @return the layout that was removed 1656 * @throws SystemException if a system exception occurred 1657 */ 1658 public com.liferay.portal.model.Layout removeByIconImageId(long iconImageId) 1659 throws com.liferay.portal.NoSuchLayoutException, 1660 com.liferay.portal.kernel.exception.SystemException; 1661 1662 /** 1663 * Removes all the layouts where layoutPrototypeUuid = ? from the database. 1664 * 1665 * @param layoutPrototypeUuid the layout prototype uuid 1666 * @throws SystemException if a system exception occurred 1667 */ 1668 public void removeByLayoutPrototypeUuid( 1669 java.lang.String layoutPrototypeUuid) 1670 throws com.liferay.portal.kernel.exception.SystemException; 1671 1672 /** 1673 * Removes all the layouts where sourcePrototypeLayoutUuid = ? from the database. 1674 * 1675 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 1676 * @throws SystemException if a system exception occurred 1677 */ 1678 public void removeBySourcePrototypeLayoutUuid( 1679 java.lang.String sourcePrototypeLayoutUuid) 1680 throws com.liferay.portal.kernel.exception.SystemException; 1681 1682 /** 1683 * Removes all the layouts where groupId = ? and privateLayout = ? from the database. 1684 * 1685 * @param groupId the group ID 1686 * @param privateLayout the private layout 1687 * @throws SystemException if a system exception occurred 1688 */ 1689 public void removeByG_P(long groupId, boolean privateLayout) 1690 throws com.liferay.portal.kernel.exception.SystemException; 1691 1692 /** 1693 * Removes the layout where groupId = ? and privateLayout = ? and layoutId = ? from the database. 1694 * 1695 * @param groupId the group ID 1696 * @param privateLayout the private layout 1697 * @param layoutId the layout ID 1698 * @return the layout that was removed 1699 * @throws SystemException if a system exception occurred 1700 */ 1701 public com.liferay.portal.model.Layout removeByG_P_L(long groupId, 1702 boolean privateLayout, long layoutId) 1703 throws com.liferay.portal.NoSuchLayoutException, 1704 com.liferay.portal.kernel.exception.SystemException; 1705 1706 /** 1707 * Removes all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ? from the database. 1708 * 1709 * @param groupId the group ID 1710 * @param privateLayout the private layout 1711 * @param parentLayoutId the parent layout ID 1712 * @throws SystemException if a system exception occurred 1713 */ 1714 public void removeByG_P_P(long groupId, boolean privateLayout, 1715 long parentLayoutId) 1716 throws com.liferay.portal.kernel.exception.SystemException; 1717 1718 /** 1719 * Removes the layout where groupId = ? and privateLayout = ? and friendlyURL = ? from the database. 1720 * 1721 * @param groupId the group ID 1722 * @param privateLayout the private layout 1723 * @param friendlyURL the friendly u r l 1724 * @return the layout that was removed 1725 * @throws SystemException if a system exception occurred 1726 */ 1727 public com.liferay.portal.model.Layout removeByG_P_F(long groupId, 1728 boolean privateLayout, java.lang.String friendlyURL) 1729 throws com.liferay.portal.NoSuchLayoutException, 1730 com.liferay.portal.kernel.exception.SystemException; 1731 1732 /** 1733 * Removes all the layouts where groupId = ? and privateLayout = ? and type = ? from the database. 1734 * 1735 * @param groupId the group ID 1736 * @param privateLayout the private layout 1737 * @param type the type 1738 * @throws SystemException if a system exception occurred 1739 */ 1740 public void removeByG_P_T(long groupId, boolean privateLayout, 1741 java.lang.String type) 1742 throws com.liferay.portal.kernel.exception.SystemException; 1743 1744 /** 1745 * Removes the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? from the database. 1746 * 1747 * @param groupId the group ID 1748 * @param privateLayout the private layout 1749 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 1750 * @return the layout that was removed 1751 * @throws SystemException if a system exception occurred 1752 */ 1753 public com.liferay.portal.model.Layout removeByG_P_SPLU(long groupId, 1754 boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid) 1755 throws com.liferay.portal.NoSuchLayoutException, 1756 com.liferay.portal.kernel.exception.SystemException; 1757 1758 /** 1759 * Removes all the layouts from the database. 1760 * 1761 * @throws SystemException if a system exception occurred 1762 */ 1763 public void removeAll() 1764 throws com.liferay.portal.kernel.exception.SystemException; 1765 1766 /** 1767 * Returns the number of layouts where uuid = ?. 1768 * 1769 * @param uuid the uuid 1770 * @return the number of matching layouts 1771 * @throws SystemException if a system exception occurred 1772 */ 1773 public int countByUuid(java.lang.String uuid) 1774 throws com.liferay.portal.kernel.exception.SystemException; 1775 1776 /** 1777 * Returns the number of layouts where uuid = ? and groupId = ? and privateLayout = ?. 1778 * 1779 * @param uuid the uuid 1780 * @param groupId the group ID 1781 * @param privateLayout the private layout 1782 * @return the number of matching layouts 1783 * @throws SystemException if a system exception occurred 1784 */ 1785 public int countByUUID_G_P(java.lang.String uuid, long groupId, 1786 boolean privateLayout) 1787 throws com.liferay.portal.kernel.exception.SystemException; 1788 1789 /** 1790 * Returns the number of layouts where groupId = ?. 1791 * 1792 * @param groupId the group ID 1793 * @return the number of matching layouts 1794 * @throws SystemException if a system exception occurred 1795 */ 1796 public int countByGroupId(long groupId) 1797 throws com.liferay.portal.kernel.exception.SystemException; 1798 1799 /** 1800 * Returns the number of layouts that the user has permission to view where groupId = ?. 1801 * 1802 * @param groupId the group ID 1803 * @return the number of matching layouts that the user has permission to view 1804 * @throws SystemException if a system exception occurred 1805 */ 1806 public int filterCountByGroupId(long groupId) 1807 throws com.liferay.portal.kernel.exception.SystemException; 1808 1809 /** 1810 * Returns the number of layouts where companyId = ?. 1811 * 1812 * @param companyId the company ID 1813 * @return the number of matching layouts 1814 * @throws SystemException if a system exception occurred 1815 */ 1816 public int countByCompanyId(long companyId) 1817 throws com.liferay.portal.kernel.exception.SystemException; 1818 1819 /** 1820 * Returns the number of layouts where iconImageId = ?. 1821 * 1822 * @param iconImageId the icon image ID 1823 * @return the number of matching layouts 1824 * @throws SystemException if a system exception occurred 1825 */ 1826 public int countByIconImageId(long iconImageId) 1827 throws com.liferay.portal.kernel.exception.SystemException; 1828 1829 /** 1830 * Returns the number of layouts where layoutPrototypeUuid = ?. 1831 * 1832 * @param layoutPrototypeUuid the layout prototype uuid 1833 * @return the number of matching layouts 1834 * @throws SystemException if a system exception occurred 1835 */ 1836 public int countByLayoutPrototypeUuid(java.lang.String layoutPrototypeUuid) 1837 throws com.liferay.portal.kernel.exception.SystemException; 1838 1839 /** 1840 * Returns the number of layouts where sourcePrototypeLayoutUuid = ?. 1841 * 1842 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 1843 * @return the number of matching layouts 1844 * @throws SystemException if a system exception occurred 1845 */ 1846 public int countBySourcePrototypeLayoutUuid( 1847 java.lang.String sourcePrototypeLayoutUuid) 1848 throws com.liferay.portal.kernel.exception.SystemException; 1849 1850 /** 1851 * Returns the number of layouts where groupId = ? and privateLayout = ?. 1852 * 1853 * @param groupId the group ID 1854 * @param privateLayout the private layout 1855 * @return the number of matching layouts 1856 * @throws SystemException if a system exception occurred 1857 */ 1858 public int countByG_P(long groupId, boolean privateLayout) 1859 throws com.liferay.portal.kernel.exception.SystemException; 1860 1861 /** 1862 * Returns the number of layouts that the user has permission to view where groupId = ? and privateLayout = ?. 1863 * 1864 * @param groupId the group ID 1865 * @param privateLayout the private layout 1866 * @return the number of matching layouts that the user has permission to view 1867 * @throws SystemException if a system exception occurred 1868 */ 1869 public int filterCountByG_P(long groupId, boolean privateLayout) 1870 throws com.liferay.portal.kernel.exception.SystemException; 1871 1872 /** 1873 * Returns the number of layouts where groupId = ? and privateLayout = ? and layoutId = ?. 1874 * 1875 * @param groupId the group ID 1876 * @param privateLayout the private layout 1877 * @param layoutId the layout ID 1878 * @return the number of matching layouts 1879 * @throws SystemException if a system exception occurred 1880 */ 1881 public int countByG_P_L(long groupId, boolean privateLayout, long layoutId) 1882 throws com.liferay.portal.kernel.exception.SystemException; 1883 1884 /** 1885 * Returns the number of layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1886 * 1887 * @param groupId the group ID 1888 * @param privateLayout the private layout 1889 * @param parentLayoutId the parent layout ID 1890 * @return the number of matching layouts 1891 * @throws SystemException if a system exception occurred 1892 */ 1893 public int countByG_P_P(long groupId, boolean privateLayout, 1894 long parentLayoutId) 1895 throws com.liferay.portal.kernel.exception.SystemException; 1896 1897 /** 1898 * Returns the number of layouts that the user has permission to view where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1899 * 1900 * @param groupId the group ID 1901 * @param privateLayout the private layout 1902 * @param parentLayoutId the parent layout ID 1903 * @return the number of matching layouts that the user has permission to view 1904 * @throws SystemException if a system exception occurred 1905 */ 1906 public int filterCountByG_P_P(long groupId, boolean privateLayout, 1907 long parentLayoutId) 1908 throws com.liferay.portal.kernel.exception.SystemException; 1909 1910 /** 1911 * Returns the number of layouts where groupId = ? and privateLayout = ? and friendlyURL = ?. 1912 * 1913 * @param groupId the group ID 1914 * @param privateLayout the private layout 1915 * @param friendlyURL the friendly u r l 1916 * @return the number of matching layouts 1917 * @throws SystemException if a system exception occurred 1918 */ 1919 public int countByG_P_F(long groupId, boolean privateLayout, 1920 java.lang.String friendlyURL) 1921 throws com.liferay.portal.kernel.exception.SystemException; 1922 1923 /** 1924 * Returns the number of layouts where groupId = ? and privateLayout = ? and type = ?. 1925 * 1926 * @param groupId the group ID 1927 * @param privateLayout the private layout 1928 * @param type the type 1929 * @return the number of matching layouts 1930 * @throws SystemException if a system exception occurred 1931 */ 1932 public int countByG_P_T(long groupId, boolean privateLayout, 1933 java.lang.String type) 1934 throws com.liferay.portal.kernel.exception.SystemException; 1935 1936 /** 1937 * Returns the number of layouts that the user has permission to view where groupId = ? and privateLayout = ? and type = ?. 1938 * 1939 * @param groupId the group ID 1940 * @param privateLayout the private layout 1941 * @param type the type 1942 * @return the number of matching layouts that the user has permission to view 1943 * @throws SystemException if a system exception occurred 1944 */ 1945 public int filterCountByG_P_T(long groupId, boolean privateLayout, 1946 java.lang.String type) 1947 throws com.liferay.portal.kernel.exception.SystemException; 1948 1949 /** 1950 * Returns the number of layouts where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ?. 1951 * 1952 * @param groupId the group ID 1953 * @param privateLayout the private layout 1954 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 1955 * @return the number of matching layouts 1956 * @throws SystemException if a system exception occurred 1957 */ 1958 public int countByG_P_SPLU(long groupId, boolean privateLayout, 1959 java.lang.String sourcePrototypeLayoutUuid) 1960 throws com.liferay.portal.kernel.exception.SystemException; 1961 1962 /** 1963 * Returns the number of layouts. 1964 * 1965 * @return the number of layouts 1966 * @throws SystemException if a system exception occurred 1967 */ 1968 public int countAll() 1969 throws com.liferay.portal.kernel.exception.SystemException; 1970 }