001    /**
002     * Copyright (c) 2000-2011 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     * 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.
024     * </p>
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see LayoutPersistenceImpl
032     * @see LayoutUtil
033     * @generated
034     */
035    public interface LayoutPersistence extends BasePersistence<Layout> {
036            /**
037            * Caches the layout in the entity cache if it is enabled.
038            *
039            * @param layout the layout to cache
040            */
041            public void cacheResult(com.liferay.portal.model.Layout layout);
042    
043            /**
044            * Caches the layouts in the entity cache if it is enabled.
045            *
046            * @param layouts the layouts to cache
047            */
048            public void cacheResult(
049                    java.util.List<com.liferay.portal.model.Layout> layouts);
050    
051            /**
052            * Creates a new layout with the primary key. Does not add the layout to the database.
053            *
054            * @param plid the primary key for the new layout
055            * @return the new layout
056            */
057            public com.liferay.portal.model.Layout create(long plid);
058    
059            /**
060            * Removes the layout with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param plid the primary key of the layout to remove
063            * @return the layout that was removed
064            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portal.model.Layout remove(long plid)
068                    throws com.liferay.portal.NoSuchLayoutException,
069                            com.liferay.portal.kernel.exception.SystemException;
070    
071            public com.liferay.portal.model.Layout updateImpl(
072                    com.liferay.portal.model.Layout layout, boolean merge)
073                    throws com.liferay.portal.kernel.exception.SystemException;
074    
075            /**
076            * Finds the layout with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
077            *
078            * @param plid the primary key of the layout to find
079            * @return the layout
080            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
081            * @throws SystemException if a system exception occurred
082            */
083            public com.liferay.portal.model.Layout findByPrimaryKey(long plid)
084                    throws com.liferay.portal.NoSuchLayoutException,
085                            com.liferay.portal.kernel.exception.SystemException;
086    
087            /**
088            * Finds the layout with the primary key or returns <code>null</code> if it could not be found.
089            *
090            * @param plid the primary key of the layout to find
091            * @return the layout, or <code>null</code> if a layout with the primary key could not be found
092            * @throws SystemException if a system exception occurred
093            */
094            public com.liferay.portal.model.Layout fetchByPrimaryKey(long plid)
095                    throws com.liferay.portal.kernel.exception.SystemException;
096    
097            /**
098            * Finds all the layouts where uuid = &#63;.
099            *
100            * @param uuid the uuid to search with
101            * @return the matching layouts
102            * @throws SystemException if a system exception occurred
103            */
104            public java.util.List<com.liferay.portal.model.Layout> findByUuid(
105                    java.lang.String uuid)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            /**
109            * Finds a range of all the layouts where uuid = &#63;.
110            *
111            * <p>
112            * 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.
113            * </p>
114            *
115            * @param uuid the uuid to search with
116            * @param start the lower bound of the range of layouts to return
117            * @param end the upper bound of the range of layouts to return (not inclusive)
118            * @return the range of matching layouts
119            * @throws SystemException if a system exception occurred
120            */
121            public java.util.List<com.liferay.portal.model.Layout> findByUuid(
122                    java.lang.String uuid, int start, int end)
123                    throws com.liferay.portal.kernel.exception.SystemException;
124    
125            /**
126            * Finds an ordered range of all the layouts where uuid = &#63;.
127            *
128            * <p>
129            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
130            * </p>
131            *
132            * @param uuid the uuid to search with
133            * @param start the lower bound of the range of layouts to return
134            * @param end the upper bound of the range of layouts to return (not inclusive)
135            * @param orderByComparator the comparator to order the results by
136            * @return the ordered range of matching layouts
137            * @throws SystemException if a system exception occurred
138            */
139            public java.util.List<com.liferay.portal.model.Layout> findByUuid(
140                    java.lang.String uuid, int start, int end,
141                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            /**
145            * Finds the first layout in the ordered set where uuid = &#63;.
146            *
147            * <p>
148            * 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.
149            * </p>
150            *
151            * @param uuid the uuid to search with
152            * @param orderByComparator the comparator to order the set by
153            * @return the first matching layout
154            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
155            * @throws SystemException if a system exception occurred
156            */
157            public com.liferay.portal.model.Layout findByUuid_First(
158                    java.lang.String uuid,
159                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160                    throws com.liferay.portal.NoSuchLayoutException,
161                            com.liferay.portal.kernel.exception.SystemException;
162    
163            /**
164            * Finds the last layout in the ordered set where uuid = &#63;.
165            *
166            * <p>
167            * 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.
168            * </p>
169            *
170            * @param uuid the uuid to search with
171            * @param orderByComparator the comparator to order the set by
172            * @return the last matching layout
173            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portal.model.Layout findByUuid_Last(
177                    java.lang.String uuid,
178                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179                    throws com.liferay.portal.NoSuchLayoutException,
180                            com.liferay.portal.kernel.exception.SystemException;
181    
182            /**
183            * Finds the layouts before and after the current layout in the ordered set where uuid = &#63;.
184            *
185            * <p>
186            * 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.
187            * </p>
188            *
189            * @param plid the primary key of the current layout
190            * @param uuid the uuid to search with
191            * @param orderByComparator the comparator to order the set by
192            * @return the previous, current, and next layout
193            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
194            * @throws SystemException if a system exception occurred
195            */
196            public com.liferay.portal.model.Layout[] findByUuid_PrevAndNext(long plid,
197                    java.lang.String uuid,
198                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199                    throws com.liferay.portal.NoSuchLayoutException,
200                            com.liferay.portal.kernel.exception.SystemException;
201    
202            /**
203            * Finds the layout where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
204            *
205            * @param uuid the uuid to search with
206            * @param groupId the group id to search with
207            * @return the matching layout
208            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
209            * @throws SystemException if a system exception occurred
210            */
211            public com.liferay.portal.model.Layout findByUUID_G(java.lang.String uuid,
212                    long groupId)
213                    throws com.liferay.portal.NoSuchLayoutException,
214                            com.liferay.portal.kernel.exception.SystemException;
215    
216            /**
217            * Finds the layout where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
218            *
219            * @param uuid the uuid to search with
220            * @param groupId the group id to search with
221            * @return the matching layout, or <code>null</code> if a matching layout could not be found
222            * @throws SystemException if a system exception occurred
223            */
224            public com.liferay.portal.model.Layout fetchByUUID_G(
225                    java.lang.String uuid, long groupId)
226                    throws com.liferay.portal.kernel.exception.SystemException;
227    
228            /**
229            * Finds the layout where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
230            *
231            * @param uuid the uuid to search with
232            * @param groupId the group id to search with
233            * @return the matching layout, or <code>null</code> if a matching layout could not be found
234            * @throws SystemException if a system exception occurred
235            */
236            public com.liferay.portal.model.Layout fetchByUUID_G(
237                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
238                    throws com.liferay.portal.kernel.exception.SystemException;
239    
240            /**
241            * Finds all the layouts where groupId = &#63;.
242            *
243            * @param groupId the group id to search with
244            * @return the matching layouts
245            * @throws SystemException if a system exception occurred
246            */
247            public java.util.List<com.liferay.portal.model.Layout> findByGroupId(
248                    long groupId)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            /**
252            * Finds a range of all the layouts where groupId = &#63;.
253            *
254            * <p>
255            * 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.
256            * </p>
257            *
258            * @param groupId the group id to search with
259            * @param start the lower bound of the range of layouts to return
260            * @param end the upper bound of the range of layouts to return (not inclusive)
261            * @return the range of matching layouts
262            * @throws SystemException if a system exception occurred
263            */
264            public java.util.List<com.liferay.portal.model.Layout> findByGroupId(
265                    long groupId, int start, int end)
266                    throws com.liferay.portal.kernel.exception.SystemException;
267    
268            /**
269            * Finds an ordered range of all the layouts where groupId = &#63;.
270            *
271            * <p>
272            * 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.
273            * </p>
274            *
275            * @param groupId the group id to search with
276            * @param start the lower bound of the range of layouts to return
277            * @param end the upper bound of the range of layouts to return (not inclusive)
278            * @param orderByComparator the comparator to order the results by
279            * @return the ordered range of matching layouts
280            * @throws SystemException if a system exception occurred
281            */
282            public java.util.List<com.liferay.portal.model.Layout> findByGroupId(
283                    long groupId, int start, int end,
284                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
285                    throws com.liferay.portal.kernel.exception.SystemException;
286    
287            /**
288            * Finds the first layout in the ordered set where groupId = &#63;.
289            *
290            * <p>
291            * 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.
292            * </p>
293            *
294            * @param groupId the group id to search with
295            * @param orderByComparator the comparator to order the set by
296            * @return the first matching layout
297            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
298            * @throws SystemException if a system exception occurred
299            */
300            public com.liferay.portal.model.Layout findByGroupId_First(long groupId,
301                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
302                    throws com.liferay.portal.NoSuchLayoutException,
303                            com.liferay.portal.kernel.exception.SystemException;
304    
305            /**
306            * Finds the last layout in the ordered set where groupId = &#63;.
307            *
308            * <p>
309            * 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.
310            * </p>
311            *
312            * @param groupId the group id to search with
313            * @param orderByComparator the comparator to order the set by
314            * @return the last matching layout
315            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
316            * @throws SystemException if a system exception occurred
317            */
318            public com.liferay.portal.model.Layout findByGroupId_Last(long groupId,
319                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320                    throws com.liferay.portal.NoSuchLayoutException,
321                            com.liferay.portal.kernel.exception.SystemException;
322    
323            /**
324            * Finds the layouts before and after the current layout in the ordered set where groupId = &#63;.
325            *
326            * <p>
327            * 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.
328            * </p>
329            *
330            * @param plid the primary key of the current layout
331            * @param groupId the group id to search with
332            * @param orderByComparator the comparator to order the set by
333            * @return the previous, current, and next layout
334            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
335            * @throws SystemException if a system exception occurred
336            */
337            public com.liferay.portal.model.Layout[] findByGroupId_PrevAndNext(
338                    long plid, long groupId,
339                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340                    throws com.liferay.portal.NoSuchLayoutException,
341                            com.liferay.portal.kernel.exception.SystemException;
342    
343            /**
344            * Filters by the user's permissions and finds all the layouts where groupId = &#63;.
345            *
346            * @param groupId the group id to search with
347            * @return the matching layouts that the user has permission to view
348            * @throws SystemException if a system exception occurred
349            */
350            public java.util.List<com.liferay.portal.model.Layout> filterFindByGroupId(
351                    long groupId)
352                    throws com.liferay.portal.kernel.exception.SystemException;
353    
354            /**
355            * Filters by the user's permissions and finds a range of all the layouts where groupId = &#63;.
356            *
357            * <p>
358            * 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.
359            * </p>
360            *
361            * @param groupId the group id to search with
362            * @param start the lower bound of the range of layouts to return
363            * @param end the upper bound of the range of layouts to return (not inclusive)
364            * @return the range of matching layouts that the user has permission to view
365            * @throws SystemException if a system exception occurred
366            */
367            public java.util.List<com.liferay.portal.model.Layout> filterFindByGroupId(
368                    long groupId, int start, int end)
369                    throws com.liferay.portal.kernel.exception.SystemException;
370    
371            /**
372            * Filters by the user's permissions and finds an ordered range of all the layouts where groupId = &#63;.
373            *
374            * <p>
375            * 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.
376            * </p>
377            *
378            * @param groupId the group id to search with
379            * @param start the lower bound of the range of layouts to return
380            * @param end the upper bound of the range of layouts to return (not inclusive)
381            * @param orderByComparator the comparator to order the results by
382            * @return the ordered range of matching layouts that the user has permission to view
383            * @throws SystemException if a system exception occurred
384            */
385            public java.util.List<com.liferay.portal.model.Layout> filterFindByGroupId(
386                    long groupId, int start, int end,
387                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
388                    throws com.liferay.portal.kernel.exception.SystemException;
389    
390            /**
391            * Finds all the layouts where companyId = &#63;.
392            *
393            * @param companyId the company id to search with
394            * @return the matching layouts
395            * @throws SystemException if a system exception occurred
396            */
397            public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
398                    long companyId)
399                    throws com.liferay.portal.kernel.exception.SystemException;
400    
401            /**
402            * Finds a range of all the layouts where companyId = &#63;.
403            *
404            * <p>
405            * 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.
406            * </p>
407            *
408            * @param companyId the company id to search with
409            * @param start the lower bound of the range of layouts to return
410            * @param end the upper bound of the range of layouts to return (not inclusive)
411            * @return the range of matching layouts
412            * @throws SystemException if a system exception occurred
413            */
414            public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
415                    long companyId, int start, int end)
416                    throws com.liferay.portal.kernel.exception.SystemException;
417    
418            /**
419            * Finds an ordered range of all the layouts where companyId = &#63;.
420            *
421            * <p>
422            * 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.
423            * </p>
424            *
425            * @param companyId the company id to search with
426            * @param start the lower bound of the range of layouts to return
427            * @param end the upper bound of the range of layouts to return (not inclusive)
428            * @param orderByComparator the comparator to order the results by
429            * @return the ordered range of matching layouts
430            * @throws SystemException if a system exception occurred
431            */
432            public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
433                    long companyId, int start, int end,
434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435                    throws com.liferay.portal.kernel.exception.SystemException;
436    
437            /**
438            * Finds the first layout in the ordered set where companyId = &#63;.
439            *
440            * <p>
441            * 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.
442            * </p>
443            *
444            * @param companyId the company id to search with
445            * @param orderByComparator the comparator to order the set by
446            * @return the first matching layout
447            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
448            * @throws SystemException if a system exception occurred
449            */
450            public com.liferay.portal.model.Layout findByCompanyId_First(
451                    long companyId,
452                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
453                    throws com.liferay.portal.NoSuchLayoutException,
454                            com.liferay.portal.kernel.exception.SystemException;
455    
456            /**
457            * Finds the last layout in the ordered set where companyId = &#63;.
458            *
459            * <p>
460            * 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.
461            * </p>
462            *
463            * @param companyId the company id to search with
464            * @param orderByComparator the comparator to order the set by
465            * @return the last matching layout
466            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
467            * @throws SystemException if a system exception occurred
468            */
469            public com.liferay.portal.model.Layout findByCompanyId_Last(
470                    long companyId,
471                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
472                    throws com.liferay.portal.NoSuchLayoutException,
473                            com.liferay.portal.kernel.exception.SystemException;
474    
475            /**
476            * Finds the layouts before and after the current layout in the ordered set where companyId = &#63;.
477            *
478            * <p>
479            * 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.
480            * </p>
481            *
482            * @param plid the primary key of the current layout
483            * @param companyId the company id to search with
484            * @param orderByComparator the comparator to order the set by
485            * @return the previous, current, and next layout
486            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
487            * @throws SystemException if a system exception occurred
488            */
489            public com.liferay.portal.model.Layout[] findByCompanyId_PrevAndNext(
490                    long plid, long companyId,
491                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
492                    throws com.liferay.portal.NoSuchLayoutException,
493                            com.liferay.portal.kernel.exception.SystemException;
494    
495            /**
496            * Finds the layout where dlFolderId = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
497            *
498            * @param dlFolderId the dl folder id to search with
499            * @return the matching layout
500            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
501            * @throws SystemException if a system exception occurred
502            */
503            public com.liferay.portal.model.Layout findByDLFolderId(long dlFolderId)
504                    throws com.liferay.portal.NoSuchLayoutException,
505                            com.liferay.portal.kernel.exception.SystemException;
506    
507            /**
508            * Finds the layout where dlFolderId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
509            *
510            * @param dlFolderId the dl folder id to search with
511            * @return the matching layout, or <code>null</code> if a matching layout could not be found
512            * @throws SystemException if a system exception occurred
513            */
514            public com.liferay.portal.model.Layout fetchByDLFolderId(long dlFolderId)
515                    throws com.liferay.portal.kernel.exception.SystemException;
516    
517            /**
518            * Finds the layout where dlFolderId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
519            *
520            * @param dlFolderId the dl folder id to search with
521            * @return the matching layout, or <code>null</code> if a matching layout could not be found
522            * @throws SystemException if a system exception occurred
523            */
524            public com.liferay.portal.model.Layout fetchByDLFolderId(long dlFolderId,
525                    boolean retrieveFromCache)
526                    throws com.liferay.portal.kernel.exception.SystemException;
527    
528            /**
529            * Finds the layout where iconImageId = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
530            *
531            * @param iconImageId the icon image id to search with
532            * @return the matching layout
533            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
534            * @throws SystemException if a system exception occurred
535            */
536            public com.liferay.portal.model.Layout findByIconImageId(long iconImageId)
537                    throws com.liferay.portal.NoSuchLayoutException,
538                            com.liferay.portal.kernel.exception.SystemException;
539    
540            /**
541            * Finds the layout where iconImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
542            *
543            * @param iconImageId the icon image id to search with
544            * @return the matching layout, or <code>null</code> if a matching layout could not be found
545            * @throws SystemException if a system exception occurred
546            */
547            public com.liferay.portal.model.Layout fetchByIconImageId(long iconImageId)
548                    throws com.liferay.portal.kernel.exception.SystemException;
549    
550            /**
551            * Finds the layout where iconImageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
552            *
553            * @param iconImageId the icon image id to search with
554            * @return the matching layout, or <code>null</code> if a matching layout could not be found
555            * @throws SystemException if a system exception occurred
556            */
557            public com.liferay.portal.model.Layout fetchByIconImageId(
558                    long iconImageId, boolean retrieveFromCache)
559                    throws com.liferay.portal.kernel.exception.SystemException;
560    
561            /**
562            * Finds all the layouts where groupId = &#63; and privateLayout = &#63;.
563            *
564            * @param groupId the group id to search with
565            * @param privateLayout the private layout to search with
566            * @return the matching layouts
567            * @throws SystemException if a system exception occurred
568            */
569            public java.util.List<com.liferay.portal.model.Layout> findByG_P(
570                    long groupId, boolean privateLayout)
571                    throws com.liferay.portal.kernel.exception.SystemException;
572    
573            /**
574            * Finds a range of all the layouts where groupId = &#63; and privateLayout = &#63;.
575            *
576            * <p>
577            * 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.
578            * </p>
579            *
580            * @param groupId the group id to search with
581            * @param privateLayout the private layout to search with
582            * @param start the lower bound of the range of layouts to return
583            * @param end the upper bound of the range of layouts to return (not inclusive)
584            * @return the range of matching layouts
585            * @throws SystemException if a system exception occurred
586            */
587            public java.util.List<com.liferay.portal.model.Layout> findByG_P(
588                    long groupId, boolean privateLayout, int start, int end)
589                    throws com.liferay.portal.kernel.exception.SystemException;
590    
591            /**
592            * Finds an ordered range of all the layouts where groupId = &#63; and privateLayout = &#63;.
593            *
594            * <p>
595            * 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.
596            * </p>
597            *
598            * @param groupId the group id to search with
599            * @param privateLayout the private layout to search with
600            * @param start the lower bound of the range of layouts to return
601            * @param end the upper bound of the range of layouts to return (not inclusive)
602            * @param orderByComparator the comparator to order the results by
603            * @return the ordered range of matching layouts
604            * @throws SystemException if a system exception occurred
605            */
606            public java.util.List<com.liferay.portal.model.Layout> findByG_P(
607                    long groupId, boolean privateLayout, int start, int end,
608                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
609                    throws com.liferay.portal.kernel.exception.SystemException;
610    
611            /**
612            * Finds the first layout in the ordered set where groupId = &#63; and privateLayout = &#63;.
613            *
614            * <p>
615            * 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.
616            * </p>
617            *
618            * @param groupId the group id to search with
619            * @param privateLayout the private layout to search with
620            * @param orderByComparator the comparator to order the set by
621            * @return the first matching layout
622            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
623            * @throws SystemException if a system exception occurred
624            */
625            public com.liferay.portal.model.Layout findByG_P_First(long groupId,
626                    boolean privateLayout,
627                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
628                    throws com.liferay.portal.NoSuchLayoutException,
629                            com.liferay.portal.kernel.exception.SystemException;
630    
631            /**
632            * Finds the last layout in the ordered set where groupId = &#63; and privateLayout = &#63;.
633            *
634            * <p>
635            * 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.
636            * </p>
637            *
638            * @param groupId the group id to search with
639            * @param privateLayout the private layout to search with
640            * @param orderByComparator the comparator to order the set by
641            * @return the last matching layout
642            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
643            * @throws SystemException if a system exception occurred
644            */
645            public com.liferay.portal.model.Layout findByG_P_Last(long groupId,
646                    boolean privateLayout,
647                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
648                    throws com.liferay.portal.NoSuchLayoutException,
649                            com.liferay.portal.kernel.exception.SystemException;
650    
651            /**
652            * Finds the layouts before and after the current layout in the ordered set where groupId = &#63; and privateLayout = &#63;.
653            *
654            * <p>
655            * 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.
656            * </p>
657            *
658            * @param plid the primary key of the current layout
659            * @param groupId the group id to search with
660            * @param privateLayout the private layout to search with
661            * @param orderByComparator the comparator to order the set by
662            * @return the previous, current, and next layout
663            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
664            * @throws SystemException if a system exception occurred
665            */
666            public com.liferay.portal.model.Layout[] findByG_P_PrevAndNext(long plid,
667                    long groupId, boolean privateLayout,
668                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
669                    throws com.liferay.portal.NoSuchLayoutException,
670                            com.liferay.portal.kernel.exception.SystemException;
671    
672            /**
673            * Filters by the user's permissions and finds all the layouts where groupId = &#63; and privateLayout = &#63;.
674            *
675            * @param groupId the group id to search with
676            * @param privateLayout the private layout to search with
677            * @return the matching layouts that the user has permission to view
678            * @throws SystemException if a system exception occurred
679            */
680            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P(
681                    long groupId, boolean privateLayout)
682                    throws com.liferay.portal.kernel.exception.SystemException;
683    
684            /**
685            * Filters by the user's permissions and finds a range of all the layouts where groupId = &#63; and privateLayout = &#63;.
686            *
687            * <p>
688            * 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.
689            * </p>
690            *
691            * @param groupId the group id to search with
692            * @param privateLayout the private layout to search with
693            * @param start the lower bound of the range of layouts to return
694            * @param end the upper bound of the range of layouts to return (not inclusive)
695            * @return the range of matching layouts that the user has permission to view
696            * @throws SystemException if a system exception occurred
697            */
698            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P(
699                    long groupId, boolean privateLayout, int start, int end)
700                    throws com.liferay.portal.kernel.exception.SystemException;
701    
702            /**
703            * Filters by the user's permissions and finds an ordered range of all the layouts where groupId = &#63; and privateLayout = &#63;.
704            *
705            * <p>
706            * 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.
707            * </p>
708            *
709            * @param groupId the group id to search with
710            * @param privateLayout the private layout to search with
711            * @param start the lower bound of the range of layouts to return
712            * @param end the upper bound of the range of layouts to return (not inclusive)
713            * @param orderByComparator the comparator to order the results by
714            * @return the ordered range of matching layouts that the user has permission to view
715            * @throws SystemException if a system exception occurred
716            */
717            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P(
718                    long groupId, boolean privateLayout, int start, int end,
719                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
720                    throws com.liferay.portal.kernel.exception.SystemException;
721    
722            /**
723            * Finds the layout where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
724            *
725            * @param groupId the group id to search with
726            * @param privateLayout the private layout to search with
727            * @param layoutId the layout id to search with
728            * @return the matching layout
729            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
730            * @throws SystemException if a system exception occurred
731            */
732            public com.liferay.portal.model.Layout findByG_P_L(long groupId,
733                    boolean privateLayout, long layoutId)
734                    throws com.liferay.portal.NoSuchLayoutException,
735                            com.liferay.portal.kernel.exception.SystemException;
736    
737            /**
738            * Finds the layout where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
739            *
740            * @param groupId the group id to search with
741            * @param privateLayout the private layout to search with
742            * @param layoutId the layout id to search with
743            * @return the matching layout, or <code>null</code> if a matching layout could not be found
744            * @throws SystemException if a system exception occurred
745            */
746            public com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
747                    boolean privateLayout, long layoutId)
748                    throws com.liferay.portal.kernel.exception.SystemException;
749    
750            /**
751            * Finds the layout where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
752            *
753            * @param groupId the group id to search with
754            * @param privateLayout the private layout to search with
755            * @param layoutId the layout id to search with
756            * @return the matching layout, or <code>null</code> if a matching layout could not be found
757            * @throws SystemException if a system exception occurred
758            */
759            public com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
760                    boolean privateLayout, long layoutId, boolean retrieveFromCache)
761                    throws com.liferay.portal.kernel.exception.SystemException;
762    
763            /**
764            * Finds all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
765            *
766            * @param groupId the group id to search with
767            * @param privateLayout the private layout to search with
768            * @param parentLayoutId the parent layout id to search with
769            * @return the matching layouts
770            * @throws SystemException if a system exception occurred
771            */
772            public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
773                    long groupId, boolean privateLayout, long parentLayoutId)
774                    throws com.liferay.portal.kernel.exception.SystemException;
775    
776            /**
777            * Finds a range of all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
778            *
779            * <p>
780            * 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.
781            * </p>
782            *
783            * @param groupId the group id to search with
784            * @param privateLayout the private layout to search with
785            * @param parentLayoutId the parent layout id to search with
786            * @param start the lower bound of the range of layouts to return
787            * @param end the upper bound of the range of layouts to return (not inclusive)
788            * @return the range of matching layouts
789            * @throws SystemException if a system exception occurred
790            */
791            public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
792                    long groupId, boolean privateLayout, long parentLayoutId, int start,
793                    int end) throws com.liferay.portal.kernel.exception.SystemException;
794    
795            /**
796            * Finds an ordered range of all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
797            *
798            * <p>
799            * 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.
800            * </p>
801            *
802            * @param groupId the group id to search with
803            * @param privateLayout the private layout to search with
804            * @param parentLayoutId the parent layout id to search with
805            * @param start the lower bound of the range of layouts to return
806            * @param end the upper bound of the range of layouts to return (not inclusive)
807            * @param orderByComparator the comparator to order the results by
808            * @return the ordered range of matching layouts
809            * @throws SystemException if a system exception occurred
810            */
811            public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
812                    long groupId, boolean privateLayout, long parentLayoutId, int start,
813                    int end,
814                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
815                    throws com.liferay.portal.kernel.exception.SystemException;
816    
817            /**
818            * Finds the first layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
819            *
820            * <p>
821            * 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.
822            * </p>
823            *
824            * @param groupId the group id to search with
825            * @param privateLayout the private layout to search with
826            * @param parentLayoutId the parent layout id to search with
827            * @param orderByComparator the comparator to order the set by
828            * @return the first matching layout
829            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
830            * @throws SystemException if a system exception occurred
831            */
832            public com.liferay.portal.model.Layout findByG_P_P_First(long groupId,
833                    boolean privateLayout, long parentLayoutId,
834                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
835                    throws com.liferay.portal.NoSuchLayoutException,
836                            com.liferay.portal.kernel.exception.SystemException;
837    
838            /**
839            * Finds the last layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
840            *
841            * <p>
842            * 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.
843            * </p>
844            *
845            * @param groupId the group id to search with
846            * @param privateLayout the private layout to search with
847            * @param parentLayoutId the parent layout id to search with
848            * @param orderByComparator the comparator to order the set by
849            * @return the last matching layout
850            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
851            * @throws SystemException if a system exception occurred
852            */
853            public com.liferay.portal.model.Layout findByG_P_P_Last(long groupId,
854                    boolean privateLayout, long parentLayoutId,
855                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
856                    throws com.liferay.portal.NoSuchLayoutException,
857                            com.liferay.portal.kernel.exception.SystemException;
858    
859            /**
860            * Finds the layouts before and after the current layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
861            *
862            * <p>
863            * 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.
864            * </p>
865            *
866            * @param plid the primary key of the current layout
867            * @param groupId the group id to search with
868            * @param privateLayout the private layout to search with
869            * @param parentLayoutId the parent layout id to search with
870            * @param orderByComparator the comparator to order the set by
871            * @return the previous, current, and next layout
872            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
873            * @throws SystemException if a system exception occurred
874            */
875            public com.liferay.portal.model.Layout[] findByG_P_P_PrevAndNext(
876                    long plid, long groupId, boolean privateLayout, long parentLayoutId,
877                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
878                    throws com.liferay.portal.NoSuchLayoutException,
879                            com.liferay.portal.kernel.exception.SystemException;
880    
881            /**
882            * Filters by the user's permissions and finds all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
883            *
884            * @param groupId the group id to search with
885            * @param privateLayout the private layout to search with
886            * @param parentLayoutId the parent layout id to search with
887            * @return the matching layouts that the user has permission to view
888            * @throws SystemException if a system exception occurred
889            */
890            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P(
891                    long groupId, boolean privateLayout, long parentLayoutId)
892                    throws com.liferay.portal.kernel.exception.SystemException;
893    
894            /**
895            * Filters by the user's permissions and finds a range of all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
896            *
897            * <p>
898            * 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.
899            * </p>
900            *
901            * @param groupId the group id to search with
902            * @param privateLayout the private layout to search with
903            * @param parentLayoutId the parent layout id to search with
904            * @param start the lower bound of the range of layouts to return
905            * @param end the upper bound of the range of layouts to return (not inclusive)
906            * @return the range of matching layouts that the user has permission to view
907            * @throws SystemException if a system exception occurred
908            */
909            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P(
910                    long groupId, boolean privateLayout, long parentLayoutId, int start,
911                    int end) throws com.liferay.portal.kernel.exception.SystemException;
912    
913            /**
914            * Filters by the user's permissions and finds an ordered range of all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
915            *
916            * <p>
917            * 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.
918            * </p>
919            *
920            * @param groupId the group id to search with
921            * @param privateLayout the private layout to search with
922            * @param parentLayoutId the parent layout id to search with
923            * @param start the lower bound of the range of layouts to return
924            * @param end the upper bound of the range of layouts to return (not inclusive)
925            * @param orderByComparator the comparator to order the results by
926            * @return the ordered range of matching layouts that the user has permission to view
927            * @throws SystemException if a system exception occurred
928            */
929            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P(
930                    long groupId, boolean privateLayout, long parentLayoutId, int start,
931                    int end,
932                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
933                    throws com.liferay.portal.kernel.exception.SystemException;
934    
935            /**
936            * Finds the layout where groupId = &#63; and privateLayout = &#63; and friendlyURL = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
937            *
938            * @param groupId the group id to search with
939            * @param privateLayout the private layout to search with
940            * @param friendlyURL the friendly u r l to search with
941            * @return the matching layout
942            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
943            * @throws SystemException if a system exception occurred
944            */
945            public com.liferay.portal.model.Layout findByG_P_F(long groupId,
946                    boolean privateLayout, java.lang.String friendlyURL)
947                    throws com.liferay.portal.NoSuchLayoutException,
948                            com.liferay.portal.kernel.exception.SystemException;
949    
950            /**
951            * Finds the layout where groupId = &#63; and privateLayout = &#63; and friendlyURL = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
952            *
953            * @param groupId the group id to search with
954            * @param privateLayout the private layout to search with
955            * @param friendlyURL the friendly u r l to search with
956            * @return the matching layout, or <code>null</code> if a matching layout could not be found
957            * @throws SystemException if a system exception occurred
958            */
959            public com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
960                    boolean privateLayout, java.lang.String friendlyURL)
961                    throws com.liferay.portal.kernel.exception.SystemException;
962    
963            /**
964            * Finds the layout where groupId = &#63; and privateLayout = &#63; and friendlyURL = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
965            *
966            * @param groupId the group id to search with
967            * @param privateLayout the private layout to search with
968            * @param friendlyURL the friendly u r l to search with
969            * @return the matching layout, or <code>null</code> if a matching layout could not be found
970            * @throws SystemException if a system exception occurred
971            */
972            public com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
973                    boolean privateLayout, java.lang.String friendlyURL,
974                    boolean retrieveFromCache)
975                    throws com.liferay.portal.kernel.exception.SystemException;
976    
977            /**
978            * Finds all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
979            *
980            * @param groupId the group id to search with
981            * @param privateLayout the private layout to search with
982            * @param type the type to search with
983            * @return the matching layouts
984            * @throws SystemException if a system exception occurred
985            */
986            public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
987                    long groupId, boolean privateLayout, java.lang.String type)
988                    throws com.liferay.portal.kernel.exception.SystemException;
989    
990            /**
991            * Finds a range of all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
992            *
993            * <p>
994            * 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.
995            * </p>
996            *
997            * @param groupId the group id to search with
998            * @param privateLayout the private layout to search with
999            * @param type the type to search with
1000            * @param start the lower bound of the range of layouts to return
1001            * @param end the upper bound of the range of layouts to return (not inclusive)
1002            * @return the range of matching layouts
1003            * @throws SystemException if a system exception occurred
1004            */
1005            public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
1006                    long groupId, boolean privateLayout, java.lang.String type, int start,
1007                    int end) throws com.liferay.portal.kernel.exception.SystemException;
1008    
1009            /**
1010            * Finds an ordered range of all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1011            *
1012            * <p>
1013            * 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.
1014            * </p>
1015            *
1016            * @param groupId the group id to search with
1017            * @param privateLayout the private layout to search with
1018            * @param type the type to search with
1019            * @param start the lower bound of the range of layouts to return
1020            * @param end the upper bound of the range of layouts to return (not inclusive)
1021            * @param orderByComparator the comparator to order the results by
1022            * @return the ordered range of matching layouts
1023            * @throws SystemException if a system exception occurred
1024            */
1025            public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
1026                    long groupId, boolean privateLayout, java.lang.String type, int start,
1027                    int end,
1028                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1029                    throws com.liferay.portal.kernel.exception.SystemException;
1030    
1031            /**
1032            * Finds the first layout in the ordered set where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1033            *
1034            * <p>
1035            * 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.
1036            * </p>
1037            *
1038            * @param groupId the group id to search with
1039            * @param privateLayout the private layout to search with
1040            * @param type the type to search with
1041            * @param orderByComparator the comparator to order the set by
1042            * @return the first matching layout
1043            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
1044            * @throws SystemException if a system exception occurred
1045            */
1046            public com.liferay.portal.model.Layout findByG_P_T_First(long groupId,
1047                    boolean privateLayout, java.lang.String type,
1048                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1049                    throws com.liferay.portal.NoSuchLayoutException,
1050                            com.liferay.portal.kernel.exception.SystemException;
1051    
1052            /**
1053            * Finds the last layout in the ordered set where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1054            *
1055            * <p>
1056            * 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.
1057            * </p>
1058            *
1059            * @param groupId the group id to search with
1060            * @param privateLayout the private layout to search with
1061            * @param type the type to search with
1062            * @param orderByComparator the comparator to order the set by
1063            * @return the last matching layout
1064            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
1065            * @throws SystemException if a system exception occurred
1066            */
1067            public com.liferay.portal.model.Layout findByG_P_T_Last(long groupId,
1068                    boolean privateLayout, java.lang.String type,
1069                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1070                    throws com.liferay.portal.NoSuchLayoutException,
1071                            com.liferay.portal.kernel.exception.SystemException;
1072    
1073            /**
1074            * Finds the layouts before and after the current layout in the ordered set where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1075            *
1076            * <p>
1077            * 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.
1078            * </p>
1079            *
1080            * @param plid the primary key of the current layout
1081            * @param groupId the group id to search with
1082            * @param privateLayout the private layout to search with
1083            * @param type the type to search with
1084            * @param orderByComparator the comparator to order the set by
1085            * @return the previous, current, and next layout
1086            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
1087            * @throws SystemException if a system exception occurred
1088            */
1089            public com.liferay.portal.model.Layout[] findByG_P_T_PrevAndNext(
1090                    long plid, long groupId, boolean privateLayout, java.lang.String type,
1091                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1092                    throws com.liferay.portal.NoSuchLayoutException,
1093                            com.liferay.portal.kernel.exception.SystemException;
1094    
1095            /**
1096            * Filters by the user's permissions and finds all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1097            *
1098            * @param groupId the group id to search with
1099            * @param privateLayout the private layout to search with
1100            * @param type the type to search with
1101            * @return the matching layouts that the user has permission to view
1102            * @throws SystemException if a system exception occurred
1103            */
1104            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_T(
1105                    long groupId, boolean privateLayout, java.lang.String type)
1106                    throws com.liferay.portal.kernel.exception.SystemException;
1107    
1108            /**
1109            * Filters by the user's permissions and finds a range of all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1110            *
1111            * <p>
1112            * 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.
1113            * </p>
1114            *
1115            * @param groupId the group id to search with
1116            * @param privateLayout the private layout to search with
1117            * @param type the type to search with
1118            * @param start the lower bound of the range of layouts to return
1119            * @param end the upper bound of the range of layouts to return (not inclusive)
1120            * @return the range of matching layouts that the user has permission to view
1121            * @throws SystemException if a system exception occurred
1122            */
1123            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_T(
1124                    long groupId, boolean privateLayout, java.lang.String type, int start,
1125                    int end) throws com.liferay.portal.kernel.exception.SystemException;
1126    
1127            /**
1128            * Filters by the user's permissions and finds an ordered range of all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1129            *
1130            * <p>
1131            * 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.
1132            * </p>
1133            *
1134            * @param groupId the group id to search with
1135            * @param privateLayout the private layout to search with
1136            * @param type the type to search with
1137            * @param start the lower bound of the range of layouts to return
1138            * @param end the upper bound of the range of layouts to return (not inclusive)
1139            * @param orderByComparator the comparator to order the results by
1140            * @return the ordered range of matching layouts that the user has permission to view
1141            * @throws SystemException if a system exception occurred
1142            */
1143            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_T(
1144                    long groupId, boolean privateLayout, java.lang.String type, int start,
1145                    int end,
1146                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1147                    throws com.liferay.portal.kernel.exception.SystemException;
1148    
1149            /**
1150            * Finds all the layouts.
1151            *
1152            * @return the layouts
1153            * @throws SystemException if a system exception occurred
1154            */
1155            public java.util.List<com.liferay.portal.model.Layout> findAll()
1156                    throws com.liferay.portal.kernel.exception.SystemException;
1157    
1158            /**
1159            * Finds a range of all the layouts.
1160            *
1161            * <p>
1162            * 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.
1163            * </p>
1164            *
1165            * @param start the lower bound of the range of layouts to return
1166            * @param end the upper bound of the range of layouts to return (not inclusive)
1167            * @return the range of layouts
1168            * @throws SystemException if a system exception occurred
1169            */
1170            public java.util.List<com.liferay.portal.model.Layout> findAll(int start,
1171                    int end) throws com.liferay.portal.kernel.exception.SystemException;
1172    
1173            /**
1174            * Finds an ordered range of all the layouts.
1175            *
1176            * <p>
1177            * 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.
1178            * </p>
1179            *
1180            * @param start the lower bound of the range of layouts to return
1181            * @param end the upper bound of the range of layouts to return (not inclusive)
1182            * @param orderByComparator the comparator to order the results by
1183            * @return the ordered range of layouts
1184            * @throws SystemException if a system exception occurred
1185            */
1186            public java.util.List<com.liferay.portal.model.Layout> findAll(int start,
1187                    int end,
1188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1189                    throws com.liferay.portal.kernel.exception.SystemException;
1190    
1191            /**
1192            * Removes all the layouts where uuid = &#63; from the database.
1193            *
1194            * @param uuid the uuid to search with
1195            * @throws SystemException if a system exception occurred
1196            */
1197            public void removeByUuid(java.lang.String uuid)
1198                    throws com.liferay.portal.kernel.exception.SystemException;
1199    
1200            /**
1201            * Removes the layout where uuid = &#63; and groupId = &#63; from the database.
1202            *
1203            * @param uuid the uuid to search with
1204            * @param groupId the group id to search with
1205            * @throws SystemException if a system exception occurred
1206            */
1207            public void removeByUUID_G(java.lang.String uuid, long groupId)
1208                    throws com.liferay.portal.NoSuchLayoutException,
1209                            com.liferay.portal.kernel.exception.SystemException;
1210    
1211            /**
1212            * Removes all the layouts where groupId = &#63; from the database.
1213            *
1214            * @param groupId the group id to search with
1215            * @throws SystemException if a system exception occurred
1216            */
1217            public void removeByGroupId(long groupId)
1218                    throws com.liferay.portal.kernel.exception.SystemException;
1219    
1220            /**
1221            * Removes all the layouts where companyId = &#63; from the database.
1222            *
1223            * @param companyId the company id to search with
1224            * @throws SystemException if a system exception occurred
1225            */
1226            public void removeByCompanyId(long companyId)
1227                    throws com.liferay.portal.kernel.exception.SystemException;
1228    
1229            /**
1230            * Removes the layout where dlFolderId = &#63; from the database.
1231            *
1232            * @param dlFolderId the dl folder id to search with
1233            * @throws SystemException if a system exception occurred
1234            */
1235            public void removeByDLFolderId(long dlFolderId)
1236                    throws com.liferay.portal.NoSuchLayoutException,
1237                            com.liferay.portal.kernel.exception.SystemException;
1238    
1239            /**
1240            * Removes the layout where iconImageId = &#63; from the database.
1241            *
1242            * @param iconImageId the icon image id to search with
1243            * @throws SystemException if a system exception occurred
1244            */
1245            public void removeByIconImageId(long iconImageId)
1246                    throws com.liferay.portal.NoSuchLayoutException,
1247                            com.liferay.portal.kernel.exception.SystemException;
1248    
1249            /**
1250            * Removes all the layouts where groupId = &#63; and privateLayout = &#63; from the database.
1251            *
1252            * @param groupId the group id to search with
1253            * @param privateLayout the private layout to search with
1254            * @throws SystemException if a system exception occurred
1255            */
1256            public void removeByG_P(long groupId, boolean privateLayout)
1257                    throws com.liferay.portal.kernel.exception.SystemException;
1258    
1259            /**
1260            * Removes the layout where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; from the database.
1261            *
1262            * @param groupId the group id to search with
1263            * @param privateLayout the private layout to search with
1264            * @param layoutId the layout id to search with
1265            * @throws SystemException if a system exception occurred
1266            */
1267            public void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
1268                    throws com.liferay.portal.NoSuchLayoutException,
1269                            com.liferay.portal.kernel.exception.SystemException;
1270    
1271            /**
1272            * Removes all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; from the database.
1273            *
1274            * @param groupId the group id to search with
1275            * @param privateLayout the private layout to search with
1276            * @param parentLayoutId the parent layout id to search with
1277            * @throws SystemException if a system exception occurred
1278            */
1279            public void removeByG_P_P(long groupId, boolean privateLayout,
1280                    long parentLayoutId)
1281                    throws com.liferay.portal.kernel.exception.SystemException;
1282    
1283            /**
1284            * Removes the layout where groupId = &#63; and privateLayout = &#63; and friendlyURL = &#63; from the database.
1285            *
1286            * @param groupId the group id to search with
1287            * @param privateLayout the private layout to search with
1288            * @param friendlyURL the friendly u r l to search with
1289            * @throws SystemException if a system exception occurred
1290            */
1291            public void removeByG_P_F(long groupId, boolean privateLayout,
1292                    java.lang.String friendlyURL)
1293                    throws com.liferay.portal.NoSuchLayoutException,
1294                            com.liferay.portal.kernel.exception.SystemException;
1295    
1296            /**
1297            * Removes all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63; from the database.
1298            *
1299            * @param groupId the group id to search with
1300            * @param privateLayout the private layout to search with
1301            * @param type the type to search with
1302            * @throws SystemException if a system exception occurred
1303            */
1304            public void removeByG_P_T(long groupId, boolean privateLayout,
1305                    java.lang.String type)
1306                    throws com.liferay.portal.kernel.exception.SystemException;
1307    
1308            /**
1309            * Removes all the layouts from the database.
1310            *
1311            * @throws SystemException if a system exception occurred
1312            */
1313            public void removeAll()
1314                    throws com.liferay.portal.kernel.exception.SystemException;
1315    
1316            /**
1317            * Counts all the layouts where uuid = &#63;.
1318            *
1319            * @param uuid the uuid to search with
1320            * @return the number of matching layouts
1321            * @throws SystemException if a system exception occurred
1322            */
1323            public int countByUuid(java.lang.String uuid)
1324                    throws com.liferay.portal.kernel.exception.SystemException;
1325    
1326            /**
1327            * Counts all the layouts where uuid = &#63; and groupId = &#63;.
1328            *
1329            * @param uuid the uuid to search with
1330            * @param groupId the group id to search with
1331            * @return the number of matching layouts
1332            * @throws SystemException if a system exception occurred
1333            */
1334            public int countByUUID_G(java.lang.String uuid, long groupId)
1335                    throws com.liferay.portal.kernel.exception.SystemException;
1336    
1337            /**
1338            * Counts all the layouts where groupId = &#63;.
1339            *
1340            * @param groupId the group id to search with
1341            * @return the number of matching layouts
1342            * @throws SystemException if a system exception occurred
1343            */
1344            public int countByGroupId(long groupId)
1345                    throws com.liferay.portal.kernel.exception.SystemException;
1346    
1347            /**
1348            * Filters by the user's permissions and counts all the layouts where groupId = &#63;.
1349            *
1350            * @param groupId the group id to search with
1351            * @return the number of matching layouts that the user has permission to view
1352            * @throws SystemException if a system exception occurred
1353            */
1354            public int filterCountByGroupId(long groupId)
1355                    throws com.liferay.portal.kernel.exception.SystemException;
1356    
1357            /**
1358            * Counts all the layouts where companyId = &#63;.
1359            *
1360            * @param companyId the company id to search with
1361            * @return the number of matching layouts
1362            * @throws SystemException if a system exception occurred
1363            */
1364            public int countByCompanyId(long companyId)
1365                    throws com.liferay.portal.kernel.exception.SystemException;
1366    
1367            /**
1368            * Counts all the layouts where dlFolderId = &#63;.
1369            *
1370            * @param dlFolderId the dl folder id to search with
1371            * @return the number of matching layouts
1372            * @throws SystemException if a system exception occurred
1373            */
1374            public int countByDLFolderId(long dlFolderId)
1375                    throws com.liferay.portal.kernel.exception.SystemException;
1376    
1377            /**
1378            * Counts all the layouts where iconImageId = &#63;.
1379            *
1380            * @param iconImageId the icon image id to search with
1381            * @return the number of matching layouts
1382            * @throws SystemException if a system exception occurred
1383            */
1384            public int countByIconImageId(long iconImageId)
1385                    throws com.liferay.portal.kernel.exception.SystemException;
1386    
1387            /**
1388            * Counts all the layouts where groupId = &#63; and privateLayout = &#63;.
1389            *
1390            * @param groupId the group id to search with
1391            * @param privateLayout the private layout to search with
1392            * @return the number of matching layouts
1393            * @throws SystemException if a system exception occurred
1394            */
1395            public int countByG_P(long groupId, boolean privateLayout)
1396                    throws com.liferay.portal.kernel.exception.SystemException;
1397    
1398            /**
1399            * Filters by the user's permissions and counts all the layouts where groupId = &#63; and privateLayout = &#63;.
1400            *
1401            * @param groupId the group id to search with
1402            * @param privateLayout the private layout to search with
1403            * @return the number of matching layouts that the user has permission to view
1404            * @throws SystemException if a system exception occurred
1405            */
1406            public int filterCountByG_P(long groupId, boolean privateLayout)
1407                    throws com.liferay.portal.kernel.exception.SystemException;
1408    
1409            /**
1410            * Counts all the layouts where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
1411            *
1412            * @param groupId the group id to search with
1413            * @param privateLayout the private layout to search with
1414            * @param layoutId the layout id to search with
1415            * @return the number of matching layouts
1416            * @throws SystemException if a system exception occurred
1417            */
1418            public int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
1419                    throws com.liferay.portal.kernel.exception.SystemException;
1420    
1421            /**
1422            * Counts all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1423            *
1424            * @param groupId the group id to search with
1425            * @param privateLayout the private layout to search with
1426            * @param parentLayoutId the parent layout id to search with
1427            * @return the number of matching layouts
1428            * @throws SystemException if a system exception occurred
1429            */
1430            public int countByG_P_P(long groupId, boolean privateLayout,
1431                    long parentLayoutId)
1432                    throws com.liferay.portal.kernel.exception.SystemException;
1433    
1434            /**
1435            * Filters by the user's permissions and counts all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1436            *
1437            * @param groupId the group id to search with
1438            * @param privateLayout the private layout to search with
1439            * @param parentLayoutId the parent layout id to search with
1440            * @return the number of matching layouts that the user has permission to view
1441            * @throws SystemException if a system exception occurred
1442            */
1443            public int filterCountByG_P_P(long groupId, boolean privateLayout,
1444                    long parentLayoutId)
1445                    throws com.liferay.portal.kernel.exception.SystemException;
1446    
1447            /**
1448            * Counts all the layouts where groupId = &#63; and privateLayout = &#63; and friendlyURL = &#63;.
1449            *
1450            * @param groupId the group id to search with
1451            * @param privateLayout the private layout to search with
1452            * @param friendlyURL the friendly u r l to search with
1453            * @return the number of matching layouts
1454            * @throws SystemException if a system exception occurred
1455            */
1456            public int countByG_P_F(long groupId, boolean privateLayout,
1457                    java.lang.String friendlyURL)
1458                    throws com.liferay.portal.kernel.exception.SystemException;
1459    
1460            /**
1461            * Counts all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1462            *
1463            * @param groupId the group id to search with
1464            * @param privateLayout the private layout to search with
1465            * @param type the type to search with
1466            * @return the number of matching layouts
1467            * @throws SystemException if a system exception occurred
1468            */
1469            public int countByG_P_T(long groupId, boolean privateLayout,
1470                    java.lang.String type)
1471                    throws com.liferay.portal.kernel.exception.SystemException;
1472    
1473            /**
1474            * Filters by the user's permissions and counts all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1475            *
1476            * @param groupId the group id to search with
1477            * @param privateLayout the private layout to search with
1478            * @param type the type to search with
1479            * @return the number of matching layouts that the user has permission to view
1480            * @throws SystemException if a system exception occurred
1481            */
1482            public int filterCountByG_P_T(long groupId, boolean privateLayout,
1483                    java.lang.String type)
1484                    throws com.liferay.portal.kernel.exception.SystemException;
1485    
1486            /**
1487            * Counts all the layouts.
1488            *
1489            * @return the number of layouts
1490            * @throws SystemException if a system exception occurred
1491            */
1492            public int countAll()
1493                    throws com.liferay.portal.kernel.exception.SystemException;
1494    }