001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.journal.service.persistence;
016    
017    import com.liferay.portal.kernel.exception.SystemException;
018    import com.liferay.portal.service.persistence.BasePersistence;
019    
020    import com.liferay.portlet.journal.model.JournalTemplate;
021    
022    /**
023     * The persistence interface for the journal template service.
024     *
025     * <p>
026     * Caching information and settings can be found in <code>portal.properties</code>
027     * </p>
028     *
029     * @author Brian Wing Shun Chan
030     * @see JournalTemplatePersistenceImpl
031     * @see JournalTemplateUtil
032     * @generated
033     */
034    public interface JournalTemplatePersistence extends BasePersistence<JournalTemplate> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link JournalTemplateUtil} to access the journal template persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Caches the journal template in the entity cache if it is enabled.
043            *
044            * @param journalTemplate the journal template to cache
045            */
046            public void cacheResult(
047                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate);
048    
049            /**
050            * Caches the journal templates in the entity cache if it is enabled.
051            *
052            * @param journalTemplates the journal templates to cache
053            */
054            public void cacheResult(
055                    java.util.List<com.liferay.portlet.journal.model.JournalTemplate> journalTemplates);
056    
057            /**
058            * Creates a new journal template with the primary key. Does not add the journal template to the database.
059            *
060            * @param id the primary key for the new journal template
061            * @return the new journal template
062            */
063            public com.liferay.portlet.journal.model.JournalTemplate create(long id);
064    
065            /**
066            * Removes the journal template with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param id the primary key of the journal template to remove
069            * @return the journal template that was removed
070            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.journal.model.JournalTemplate remove(long id)
074                    throws com.liferay.portal.kernel.exception.SystemException,
075                            com.liferay.portlet.journal.NoSuchTemplateException;
076    
077            public com.liferay.portlet.journal.model.JournalTemplate updateImpl(
078                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
079                    boolean merge)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            /**
083            * Finds the journal template with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found.
084            *
085            * @param id the primary key of the journal template to find
086            * @return the journal template
087            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
088            * @throws SystemException if a system exception occurred
089            */
090            public com.liferay.portlet.journal.model.JournalTemplate findByPrimaryKey(
091                    long id)
092                    throws com.liferay.portal.kernel.exception.SystemException,
093                            com.liferay.portlet.journal.NoSuchTemplateException;
094    
095            /**
096            * Finds the journal template with the primary key or returns <code>null</code> if it could not be found.
097            *
098            * @param id the primary key of the journal template to find
099            * @return the journal template, or <code>null</code> if a journal template with the primary key could not be found
100            * @throws SystemException if a system exception occurred
101            */
102            public com.liferay.portlet.journal.model.JournalTemplate fetchByPrimaryKey(
103                    long id) throws com.liferay.portal.kernel.exception.SystemException;
104    
105            /**
106            * Finds all the journal templates where uuid = &#63;.
107            *
108            * @param uuid the uuid to search with
109            * @return the matching journal templates
110            * @throws SystemException if a system exception occurred
111            */
112            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
113                    java.lang.String uuid)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Finds a range of all the journal templates where uuid = &#63;.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param uuid the uuid to search with
124            * @param start the lower bound of the range of journal templates to return
125            * @param end the upper bound of the range of journal templates to return (not inclusive)
126            * @return the range of matching journal templates
127            * @throws SystemException if a system exception occurred
128            */
129            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
130                    java.lang.String uuid, int start, int end)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            /**
134            * Finds an ordered range of all the journal templates where uuid = &#63;.
135            *
136            * <p>
137            * 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.
138            * </p>
139            *
140            * @param uuid the uuid to search with
141            * @param start the lower bound of the range of journal templates to return
142            * @param end the upper bound of the range of journal templates to return (not inclusive)
143            * @param orderByComparator the comparator to order the results by
144            * @return the ordered range of matching journal templates
145            * @throws SystemException if a system exception occurred
146            */
147            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
148                    java.lang.String uuid, int start, int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            /**
153            * Finds the first journal template in the ordered set where uuid = &#63;.
154            *
155            * <p>
156            * 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.
157            * </p>
158            *
159            * @param uuid the uuid to search with
160            * @param orderByComparator the comparator to order the set by
161            * @return the first matching journal template
162            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
163            * @throws SystemException if a system exception occurred
164            */
165            public com.liferay.portlet.journal.model.JournalTemplate findByUuid_First(
166                    java.lang.String uuid,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.kernel.exception.SystemException,
169                            com.liferay.portlet.journal.NoSuchTemplateException;
170    
171            /**
172            * Finds the last journal template in the ordered set where uuid = &#63;.
173            *
174            * <p>
175            * 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.
176            * </p>
177            *
178            * @param uuid the uuid to search with
179            * @param orderByComparator the comparator to order the set by
180            * @return the last matching journal template
181            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public com.liferay.portlet.journal.model.JournalTemplate findByUuid_Last(
185                    java.lang.String uuid,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.kernel.exception.SystemException,
188                            com.liferay.portlet.journal.NoSuchTemplateException;
189    
190            /**
191            * Finds the journal templates before and after the current journal template in the ordered set where uuid = &#63;.
192            *
193            * <p>
194            * 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.
195            * </p>
196            *
197            * @param id the primary key of the current journal template
198            * @param uuid the uuid to search with
199            * @param orderByComparator the comparator to order the set by
200            * @return the previous, current, and next journal template
201            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.journal.model.JournalTemplate[] findByUuid_PrevAndNext(
205                    long id, java.lang.String uuid,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException,
208                            com.liferay.portlet.journal.NoSuchTemplateException;
209    
210            /**
211            * Finds the journal template where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found.
212            *
213            * @param uuid the uuid to search with
214            * @param groupId the group ID to search with
215            * @return the matching journal template
216            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.journal.model.JournalTemplate findByUUID_G(
220                    java.lang.String uuid, long groupId)
221                    throws com.liferay.portal.kernel.exception.SystemException,
222                            com.liferay.portlet.journal.NoSuchTemplateException;
223    
224            /**
225            * Finds the journal template where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
226            *
227            * @param uuid the uuid to search with
228            * @param groupId the group ID to search with
229            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
233                    java.lang.String uuid, long groupId)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * Finds the journal template where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
238            *
239            * @param uuid the uuid to search with
240            * @param groupId the group ID to search with
241            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
242            * @throws SystemException if a system exception occurred
243            */
244            public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
245                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
246                    throws com.liferay.portal.kernel.exception.SystemException;
247    
248            /**
249            * Finds all the journal templates where groupId = &#63;.
250            *
251            * @param groupId the group ID to search with
252            * @return the matching journal templates
253            * @throws SystemException if a system exception occurred
254            */
255            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
256                    long groupId)
257                    throws com.liferay.portal.kernel.exception.SystemException;
258    
259            /**
260            * Finds a range of all the journal templates where groupId = &#63;.
261            *
262            * <p>
263            * 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.
264            * </p>
265            *
266            * @param groupId the group ID to search with
267            * @param start the lower bound of the range of journal templates to return
268            * @param end the upper bound of the range of journal templates to return (not inclusive)
269            * @return the range of matching journal templates
270            * @throws SystemException if a system exception occurred
271            */
272            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
273                    long groupId, int start, int end)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            /**
277            * Finds an ordered range of all the journal templates where groupId = &#63;.
278            *
279            * <p>
280            * 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.
281            * </p>
282            *
283            * @param groupId the group ID to search with
284            * @param start the lower bound of the range of journal templates to return
285            * @param end the upper bound of the range of journal templates to return (not inclusive)
286            * @param orderByComparator the comparator to order the results by
287            * @return the ordered range of matching journal templates
288            * @throws SystemException if a system exception occurred
289            */
290            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
291                    long groupId, int start, int end,
292                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293                    throws com.liferay.portal.kernel.exception.SystemException;
294    
295            /**
296            * Finds the first journal template in the ordered set where groupId = &#63;.
297            *
298            * <p>
299            * 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.
300            * </p>
301            *
302            * @param groupId the group ID to search with
303            * @param orderByComparator the comparator to order the set by
304            * @return the first matching journal template
305            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
306            * @throws SystemException if a system exception occurred
307            */
308            public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_First(
309                    long groupId,
310                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311                    throws com.liferay.portal.kernel.exception.SystemException,
312                            com.liferay.portlet.journal.NoSuchTemplateException;
313    
314            /**
315            * Finds the last journal template in the ordered set where groupId = &#63;.
316            *
317            * <p>
318            * 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.
319            * </p>
320            *
321            * @param groupId the group ID to search with
322            * @param orderByComparator the comparator to order the set by
323            * @return the last matching journal template
324            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
325            * @throws SystemException if a system exception occurred
326            */
327            public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_Last(
328                    long groupId,
329                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
330                    throws com.liferay.portal.kernel.exception.SystemException,
331                            com.liferay.portlet.journal.NoSuchTemplateException;
332    
333            /**
334            * Finds the journal templates before and after the current journal template in the ordered set where groupId = &#63;.
335            *
336            * <p>
337            * 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.
338            * </p>
339            *
340            * @param id the primary key of the current journal template
341            * @param groupId the group ID to search with
342            * @param orderByComparator the comparator to order the set by
343            * @return the previous, current, and next journal template
344            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
345            * @throws SystemException if a system exception occurred
346            */
347            public com.liferay.portlet.journal.model.JournalTemplate[] findByGroupId_PrevAndNext(
348                    long id, long groupId,
349                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
350                    throws com.liferay.portal.kernel.exception.SystemException,
351                            com.liferay.portlet.journal.NoSuchTemplateException;
352    
353            /**
354            * Filters by the user's permissions and finds all the journal templates where groupId = &#63;.
355            *
356            * @param groupId the group ID to search with
357            * @return the matching journal templates that the user has permission to view
358            * @throws SystemException if a system exception occurred
359            */
360            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
361                    long groupId)
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            /**
365            * Filters by the user's permissions and finds a range of all the journal templates where groupId = &#63;.
366            *
367            * <p>
368            * 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.
369            * </p>
370            *
371            * @param groupId the group ID to search with
372            * @param start the lower bound of the range of journal templates to return
373            * @param end the upper bound of the range of journal templates to return (not inclusive)
374            * @return the range of matching journal templates that the user has permission to view
375            * @throws SystemException if a system exception occurred
376            */
377            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
378                    long groupId, int start, int end)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * Filters by the user's permissions and finds an ordered range of all the journal templates where groupId = &#63;.
383            *
384            * <p>
385            * 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.
386            * </p>
387            *
388            * @param groupId the group ID to search with
389            * @param start the lower bound of the range of journal templates to return
390            * @param end the upper bound of the range of journal templates to return (not inclusive)
391            * @param orderByComparator the comparator to order the results by
392            * @return the ordered range of matching journal templates that the user has permission to view
393            * @throws SystemException if a system exception occurred
394            */
395            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
396                    long groupId, int start, int end,
397                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
398                    throws com.liferay.portal.kernel.exception.SystemException;
399    
400            /**
401            * Filters the journal templates before and after the current journal template in the ordered set where groupId = &#63;.
402            *
403            * <p>
404            * 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.
405            * </p>
406            *
407            * @param id the primary key of the current journal template
408            * @param groupId the group ID to search with
409            * @param orderByComparator the comparator to order the set by
410            * @return the previous, current, and next journal template
411            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
412            * @throws SystemException if a system exception occurred
413            */
414            public com.liferay.portlet.journal.model.JournalTemplate[] filterFindByGroupId_PrevAndNext(
415                    long id, long groupId,
416                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
417                    throws com.liferay.portal.kernel.exception.SystemException,
418                            com.liferay.portlet.journal.NoSuchTemplateException;
419    
420            /**
421            * Finds all the journal templates where templateId = &#63;.
422            *
423            * @param templateId the template ID to search with
424            * @return the matching journal templates
425            * @throws SystemException if a system exception occurred
426            */
427            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
428                    java.lang.String templateId)
429                    throws com.liferay.portal.kernel.exception.SystemException;
430    
431            /**
432            * Finds a range of all the journal templates where templateId = &#63;.
433            *
434            * <p>
435            * 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.
436            * </p>
437            *
438            * @param templateId the template ID to search with
439            * @param start the lower bound of the range of journal templates to return
440            * @param end the upper bound of the range of journal templates to return (not inclusive)
441            * @return the range of matching journal templates
442            * @throws SystemException if a system exception occurred
443            */
444            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
445                    java.lang.String templateId, int start, int end)
446                    throws com.liferay.portal.kernel.exception.SystemException;
447    
448            /**
449            * Finds an ordered range of all the journal templates where templateId = &#63;.
450            *
451            * <p>
452            * 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.
453            * </p>
454            *
455            * @param templateId the template ID to search with
456            * @param start the lower bound of the range of journal templates to return
457            * @param end the upper bound of the range of journal templates to return (not inclusive)
458            * @param orderByComparator the comparator to order the results by
459            * @return the ordered range of matching journal templates
460            * @throws SystemException if a system exception occurred
461            */
462            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
463                    java.lang.String templateId, int start, int end,
464                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Finds the first journal template in the ordered set where templateId = &#63;.
469            *
470            * <p>
471            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
472            * </p>
473            *
474            * @param templateId the template ID to search with
475            * @param orderByComparator the comparator to order the set by
476            * @return the first matching journal template
477            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
478            * @throws SystemException if a system exception occurred
479            */
480            public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First(
481                    java.lang.String templateId,
482                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
483                    throws com.liferay.portal.kernel.exception.SystemException,
484                            com.liferay.portlet.journal.NoSuchTemplateException;
485    
486            /**
487            * Finds the last journal template in the ordered set where templateId = &#63;.
488            *
489            * <p>
490            * 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.
491            * </p>
492            *
493            * @param templateId the template ID to search with
494            * @param orderByComparator the comparator to order the set by
495            * @return the last matching journal template
496            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
497            * @throws SystemException if a system exception occurred
498            */
499            public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last(
500                    java.lang.String templateId,
501                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
502                    throws com.liferay.portal.kernel.exception.SystemException,
503                            com.liferay.portlet.journal.NoSuchTemplateException;
504    
505            /**
506            * Finds the journal templates before and after the current journal template in the ordered set where templateId = &#63;.
507            *
508            * <p>
509            * 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.
510            * </p>
511            *
512            * @param id the primary key of the current journal template
513            * @param templateId the template ID to search with
514            * @param orderByComparator the comparator to order the set by
515            * @return the previous, current, and next journal template
516            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
517            * @throws SystemException if a system exception occurred
518            */
519            public com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext(
520                    long id, java.lang.String templateId,
521                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
522                    throws com.liferay.portal.kernel.exception.SystemException,
523                            com.liferay.portlet.journal.NoSuchTemplateException;
524    
525            /**
526            * Finds the journal template where smallImageId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found.
527            *
528            * @param smallImageId the small image ID to search with
529            * @return the matching journal template
530            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
531            * @throws SystemException if a system exception occurred
532            */
533            public com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId(
534                    long smallImageId)
535                    throws com.liferay.portal.kernel.exception.SystemException,
536                            com.liferay.portlet.journal.NoSuchTemplateException;
537    
538            /**
539            * Finds the journal template where smallImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
540            *
541            * @param smallImageId the small image ID to search with
542            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
543            * @throws SystemException if a system exception occurred
544            */
545            public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
546                    long smallImageId)
547                    throws com.liferay.portal.kernel.exception.SystemException;
548    
549            /**
550            * Finds the journal template where smallImageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
551            *
552            * @param smallImageId the small image ID to search with
553            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
554            * @throws SystemException if a system exception occurred
555            */
556            public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
557                    long smallImageId, boolean retrieveFromCache)
558                    throws com.liferay.portal.kernel.exception.SystemException;
559    
560            /**
561            * Finds the journal template where groupId = &#63; and templateId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found.
562            *
563            * @param groupId the group ID to search with
564            * @param templateId the template ID to search with
565            * @return the matching journal template
566            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
567            * @throws SystemException if a system exception occurred
568            */
569            public com.liferay.portlet.journal.model.JournalTemplate findByG_T(
570                    long groupId, java.lang.String templateId)
571                    throws com.liferay.portal.kernel.exception.SystemException,
572                            com.liferay.portlet.journal.NoSuchTemplateException;
573    
574            /**
575            * Finds the journal template where groupId = &#63; and templateId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
576            *
577            * @param groupId the group ID to search with
578            * @param templateId the template ID to search with
579            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
580            * @throws SystemException if a system exception occurred
581            */
582            public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
583                    long groupId, java.lang.String templateId)
584                    throws com.liferay.portal.kernel.exception.SystemException;
585    
586            /**
587            * Finds the journal template where groupId = &#63; and templateId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
588            *
589            * @param groupId the group ID to search with
590            * @param templateId the template ID to search with
591            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
592            * @throws SystemException if a system exception occurred
593            */
594            public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
595                    long groupId, java.lang.String templateId, boolean retrieveFromCache)
596                    throws com.liferay.portal.kernel.exception.SystemException;
597    
598            /**
599            * Finds all the journal templates where groupId = &#63; and structureId = &#63;.
600            *
601            * @param groupId the group ID to search with
602            * @param structureId the structure ID to search with
603            * @return the matching journal templates
604            * @throws SystemException if a system exception occurred
605            */
606            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
607                    long groupId, java.lang.String structureId)
608                    throws com.liferay.portal.kernel.exception.SystemException;
609    
610            /**
611            * Finds a range of all the journal templates where groupId = &#63; and structureId = &#63;.
612            *
613            * <p>
614            * 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.
615            * </p>
616            *
617            * @param groupId the group ID to search with
618            * @param structureId the structure ID to search with
619            * @param start the lower bound of the range of journal templates to return
620            * @param end the upper bound of the range of journal templates to return (not inclusive)
621            * @return the range of matching journal templates
622            * @throws SystemException if a system exception occurred
623            */
624            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
625                    long groupId, java.lang.String structureId, int start, int end)
626                    throws com.liferay.portal.kernel.exception.SystemException;
627    
628            /**
629            * Finds an ordered range of all the journal templates where groupId = &#63; and structureId = &#63;.
630            *
631            * <p>
632            * 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.
633            * </p>
634            *
635            * @param groupId the group ID to search with
636            * @param structureId the structure ID to search with
637            * @param start the lower bound of the range of journal templates to return
638            * @param end the upper bound of the range of journal templates to return (not inclusive)
639            * @param orderByComparator the comparator to order the results by
640            * @return the ordered range of matching journal templates
641            * @throws SystemException if a system exception occurred
642            */
643            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
644                    long groupId, java.lang.String structureId, int start, int end,
645                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
646                    throws com.liferay.portal.kernel.exception.SystemException;
647    
648            /**
649            * Finds the first journal template in the ordered set where groupId = &#63; and structureId = &#63;.
650            *
651            * <p>
652            * 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.
653            * </p>
654            *
655            * @param groupId the group ID to search with
656            * @param structureId the structure ID to search with
657            * @param orderByComparator the comparator to order the set by
658            * @return the first matching journal template
659            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
660            * @throws SystemException if a system exception occurred
661            */
662            public com.liferay.portlet.journal.model.JournalTemplate findByG_S_First(
663                    long groupId, java.lang.String structureId,
664                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
665                    throws com.liferay.portal.kernel.exception.SystemException,
666                            com.liferay.portlet.journal.NoSuchTemplateException;
667    
668            /**
669            * Finds the last journal template in the ordered set where groupId = &#63; and structureId = &#63;.
670            *
671            * <p>
672            * 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.
673            * </p>
674            *
675            * @param groupId the group ID to search with
676            * @param structureId the structure ID to search with
677            * @param orderByComparator the comparator to order the set by
678            * @return the last matching journal template
679            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
680            * @throws SystemException if a system exception occurred
681            */
682            public com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last(
683                    long groupId, java.lang.String structureId,
684                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
685                    throws com.liferay.portal.kernel.exception.SystemException,
686                            com.liferay.portlet.journal.NoSuchTemplateException;
687    
688            /**
689            * Finds the journal templates before and after the current journal template in the ordered set where groupId = &#63; and structureId = &#63;.
690            *
691            * <p>
692            * 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.
693            * </p>
694            *
695            * @param id the primary key of the current journal template
696            * @param groupId the group ID to search with
697            * @param structureId the structure ID to search with
698            * @param orderByComparator the comparator to order the set by
699            * @return the previous, current, and next journal template
700            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
701            * @throws SystemException if a system exception occurred
702            */
703            public com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext(
704                    long id, long groupId, java.lang.String structureId,
705                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
706                    throws com.liferay.portal.kernel.exception.SystemException,
707                            com.liferay.portlet.journal.NoSuchTemplateException;
708    
709            /**
710            * Filters by the user's permissions and finds all the journal templates where groupId = &#63; and structureId = &#63;.
711            *
712            * @param groupId the group ID to search with
713            * @param structureId the structure ID to search with
714            * @return the matching journal templates that the user has permission to view
715            * @throws SystemException if a system exception occurred
716            */
717            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
718                    long groupId, java.lang.String structureId)
719                    throws com.liferay.portal.kernel.exception.SystemException;
720    
721            /**
722            * Filters by the user's permissions and finds a range of all the journal templates where groupId = &#63; and structureId = &#63;.
723            *
724            * <p>
725            * 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.
726            * </p>
727            *
728            * @param groupId the group ID to search with
729            * @param structureId the structure ID to search with
730            * @param start the lower bound of the range of journal templates to return
731            * @param end the upper bound of the range of journal templates to return (not inclusive)
732            * @return the range of matching journal templates that the user has permission to view
733            * @throws SystemException if a system exception occurred
734            */
735            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
736                    long groupId, java.lang.String structureId, int start, int end)
737                    throws com.liferay.portal.kernel.exception.SystemException;
738    
739            /**
740            * Filters by the user's permissions and finds an ordered range of all the journal templates where groupId = &#63; and structureId = &#63;.
741            *
742            * <p>
743            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
744            * </p>
745            *
746            * @param groupId the group ID to search with
747            * @param structureId the structure ID to search with
748            * @param start the lower bound of the range of journal templates to return
749            * @param end the upper bound of the range of journal templates to return (not inclusive)
750            * @param orderByComparator the comparator to order the results by
751            * @return the ordered range of matching journal templates that the user has permission to view
752            * @throws SystemException if a system exception occurred
753            */
754            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
755                    long groupId, java.lang.String structureId, int start, int end,
756                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
757                    throws com.liferay.portal.kernel.exception.SystemException;
758    
759            /**
760            * Filters the journal templates before and after the current journal template in the ordered set where groupId = &#63; and structureId = &#63;.
761            *
762            * <p>
763            * 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.
764            * </p>
765            *
766            * @param id the primary key of the current journal template
767            * @param groupId the group ID to search with
768            * @param structureId the structure ID to search with
769            * @param orderByComparator the comparator to order the set by
770            * @return the previous, current, and next journal template
771            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
772            * @throws SystemException if a system exception occurred
773            */
774            public com.liferay.portlet.journal.model.JournalTemplate[] filterFindByG_S_PrevAndNext(
775                    long id, long groupId, java.lang.String structureId,
776                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
777                    throws com.liferay.portal.kernel.exception.SystemException,
778                            com.liferay.portlet.journal.NoSuchTemplateException;
779    
780            /**
781            * Finds all the journal templates.
782            *
783            * @return the journal templates
784            * @throws SystemException if a system exception occurred
785            */
786            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll()
787                    throws com.liferay.portal.kernel.exception.SystemException;
788    
789            /**
790            * Finds a range of all the journal templates.
791            *
792            * <p>
793            * 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.
794            * </p>
795            *
796            * @param start the lower bound of the range of journal templates to return
797            * @param end the upper bound of the range of journal templates to return (not inclusive)
798            * @return the range of journal templates
799            * @throws SystemException if a system exception occurred
800            */
801            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
802                    int start, int end)
803                    throws com.liferay.portal.kernel.exception.SystemException;
804    
805            /**
806            * Finds an ordered range of all the journal templates.
807            *
808            * <p>
809            * 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.
810            * </p>
811            *
812            * @param start the lower bound of the range of journal templates to return
813            * @param end the upper bound of the range of journal templates to return (not inclusive)
814            * @param orderByComparator the comparator to order the results by
815            * @return the ordered range of journal templates
816            * @throws SystemException if a system exception occurred
817            */
818            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
819                    int start, int end,
820                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
821                    throws com.liferay.portal.kernel.exception.SystemException;
822    
823            /**
824            * Removes all the journal templates where uuid = &#63; from the database.
825            *
826            * @param uuid the uuid to search with
827            * @throws SystemException if a system exception occurred
828            */
829            public void removeByUuid(java.lang.String uuid)
830                    throws com.liferay.portal.kernel.exception.SystemException;
831    
832            /**
833            * Removes the journal template where uuid = &#63; and groupId = &#63; from the database.
834            *
835            * @param uuid the uuid to search with
836            * @param groupId the group ID to search with
837            * @throws SystemException if a system exception occurred
838            */
839            public void removeByUUID_G(java.lang.String uuid, long groupId)
840                    throws com.liferay.portal.kernel.exception.SystemException,
841                            com.liferay.portlet.journal.NoSuchTemplateException;
842    
843            /**
844            * Removes all the journal templates where groupId = &#63; from the database.
845            *
846            * @param groupId the group ID to search with
847            * @throws SystemException if a system exception occurred
848            */
849            public void removeByGroupId(long groupId)
850                    throws com.liferay.portal.kernel.exception.SystemException;
851    
852            /**
853            * Removes all the journal templates where templateId = &#63; from the database.
854            *
855            * @param templateId the template ID to search with
856            * @throws SystemException if a system exception occurred
857            */
858            public void removeByTemplateId(java.lang.String templateId)
859                    throws com.liferay.portal.kernel.exception.SystemException;
860    
861            /**
862            * Removes the journal template where smallImageId = &#63; from the database.
863            *
864            * @param smallImageId the small image ID to search with
865            * @throws SystemException if a system exception occurred
866            */
867            public void removeBySmallImageId(long smallImageId)
868                    throws com.liferay.portal.kernel.exception.SystemException,
869                            com.liferay.portlet.journal.NoSuchTemplateException;
870    
871            /**
872            * Removes the journal template where groupId = &#63; and templateId = &#63; from the database.
873            *
874            * @param groupId the group ID to search with
875            * @param templateId the template ID to search with
876            * @throws SystemException if a system exception occurred
877            */
878            public void removeByG_T(long groupId, java.lang.String templateId)
879                    throws com.liferay.portal.kernel.exception.SystemException,
880                            com.liferay.portlet.journal.NoSuchTemplateException;
881    
882            /**
883            * Removes all the journal templates where groupId = &#63; and structureId = &#63; from the database.
884            *
885            * @param groupId the group ID to search with
886            * @param structureId the structure ID to search with
887            * @throws SystemException if a system exception occurred
888            */
889            public void removeByG_S(long groupId, java.lang.String structureId)
890                    throws com.liferay.portal.kernel.exception.SystemException;
891    
892            /**
893            * Removes all the journal templates from the database.
894            *
895            * @throws SystemException if a system exception occurred
896            */
897            public void removeAll()
898                    throws com.liferay.portal.kernel.exception.SystemException;
899    
900            /**
901            * Counts all the journal templates where uuid = &#63;.
902            *
903            * @param uuid the uuid to search with
904            * @return the number of matching journal templates
905            * @throws SystemException if a system exception occurred
906            */
907            public int countByUuid(java.lang.String uuid)
908                    throws com.liferay.portal.kernel.exception.SystemException;
909    
910            /**
911            * Counts all the journal templates where uuid = &#63; and groupId = &#63;.
912            *
913            * @param uuid the uuid to search with
914            * @param groupId the group ID to search with
915            * @return the number of matching journal templates
916            * @throws SystemException if a system exception occurred
917            */
918            public int countByUUID_G(java.lang.String uuid, long groupId)
919                    throws com.liferay.portal.kernel.exception.SystemException;
920    
921            /**
922            * Counts all the journal templates where groupId = &#63;.
923            *
924            * @param groupId the group ID to search with
925            * @return the number of matching journal templates
926            * @throws SystemException if a system exception occurred
927            */
928            public int countByGroupId(long groupId)
929                    throws com.liferay.portal.kernel.exception.SystemException;
930    
931            /**
932            * Filters by the user's permissions and counts all the journal templates where groupId = &#63;.
933            *
934            * @param groupId the group ID to search with
935            * @return the number of matching journal templates that the user has permission to view
936            * @throws SystemException if a system exception occurred
937            */
938            public int filterCountByGroupId(long groupId)
939                    throws com.liferay.portal.kernel.exception.SystemException;
940    
941            /**
942            * Counts all the journal templates where templateId = &#63;.
943            *
944            * @param templateId the template ID to search with
945            * @return the number of matching journal templates
946            * @throws SystemException if a system exception occurred
947            */
948            public int countByTemplateId(java.lang.String templateId)
949                    throws com.liferay.portal.kernel.exception.SystemException;
950    
951            /**
952            * Counts all the journal templates where smallImageId = &#63;.
953            *
954            * @param smallImageId the small image ID to search with
955            * @return the number of matching journal templates
956            * @throws SystemException if a system exception occurred
957            */
958            public int countBySmallImageId(long smallImageId)
959                    throws com.liferay.portal.kernel.exception.SystemException;
960    
961            /**
962            * Counts all the journal templates where groupId = &#63; and templateId = &#63;.
963            *
964            * @param groupId the group ID to search with
965            * @param templateId the template ID to search with
966            * @return the number of matching journal templates
967            * @throws SystemException if a system exception occurred
968            */
969            public int countByG_T(long groupId, java.lang.String templateId)
970                    throws com.liferay.portal.kernel.exception.SystemException;
971    
972            /**
973            * Counts all the journal templates where groupId = &#63; and structureId = &#63;.
974            *
975            * @param groupId the group ID to search with
976            * @param structureId the structure ID to search with
977            * @return the number of matching journal templates
978            * @throws SystemException if a system exception occurred
979            */
980            public int countByG_S(long groupId, java.lang.String structureId)
981                    throws com.liferay.portal.kernel.exception.SystemException;
982    
983            /**
984            * Filters by the user's permissions and counts all the journal templates where groupId = &#63; and structureId = &#63;.
985            *
986            * @param groupId the group ID to search with
987            * @param structureId the structure ID to search with
988            * @return the number of matching journal templates that the user has permission to view
989            * @throws SystemException if a system exception occurred
990            */
991            public int filterCountByG_S(long groupId, java.lang.String structureId)
992                    throws com.liferay.portal.kernel.exception.SystemException;
993    
994            /**
995            * Counts all the journal templates.
996            *
997            * @return the number of journal templates
998            * @throws SystemException if a system exception occurred
999            */
1000            public int countAll()
1001                    throws com.liferay.portal.kernel.exception.SystemException;
1002    
1003            public JournalTemplate remove(JournalTemplate journalTemplate)
1004                    throws SystemException;
1005    }