001    /**
002     * Copyright (c) 2000-2010 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.portlet.journal.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link JournalTemplateLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       JournalTemplateLocalService
024     * @generated
025     */
026    public class JournalTemplateLocalServiceWrapper
027            implements JournalTemplateLocalService {
028            public JournalTemplateLocalServiceWrapper(
029                    JournalTemplateLocalService journalTemplateLocalService) {
030                    _journalTemplateLocalService = journalTemplateLocalService;
031            }
032    
033            /**
034            * Adds the journal template to the database. Also notifies the appropriate model listeners.
035            *
036            * @param journalTemplate the journal template to add
037            * @return the journal template that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
041                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _journalTemplateLocalService.addJournalTemplate(journalTemplate);
044            }
045    
046            /**
047            * Creates a new journal template with the primary key. Does not add the journal template to the database.
048            *
049            * @param id the primary key for the new journal template
050            * @return the new journal template
051            */
052            public com.liferay.portlet.journal.model.JournalTemplate createJournalTemplate(
053                    long id) {
054                    return _journalTemplateLocalService.createJournalTemplate(id);
055            }
056    
057            /**
058            * Deletes the journal template with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param id the primary key of the journal template to delete
061            * @throws PortalException if a journal template with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteJournalTemplate(long id)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _journalTemplateLocalService.deleteJournalTemplate(id);
068            }
069    
070            /**
071            * Deletes the journal template from the database. Also notifies the appropriate model listeners.
072            *
073            * @param journalTemplate the journal template to delete
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteJournalTemplate(
077                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _journalTemplateLocalService.deleteJournalTemplate(journalTemplate);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query to search with
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _journalTemplateLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * 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.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query to search with
104            * @param start the lower bound of the range of model instances to return
105            * @param end the upper bound of the range of model instances to return (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _journalTemplateLocalService.dynamicQuery(dynamicQuery, start,
114                            end);
115            }
116    
117            /**
118            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
119            *
120            * <p>
121            * 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.
122            * </p>
123            *
124            * @param dynamicQuery the dynamic query to search with
125            * @param start the lower bound of the range of model instances to return
126            * @param end the upper bound of the range of model instances to return (not inclusive)
127            * @param orderByComparator the comparator to order the results by
128            * @return the ordered range of matching rows
129            * @throws SystemException if a system exception occurred
130            */
131            @SuppressWarnings("rawtypes")
132            public java.util.List dynamicQuery(
133                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134                    int end,
135                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return _journalTemplateLocalService.dynamicQuery(dynamicQuery, start,
138                            end, orderByComparator);
139            }
140    
141            /**
142            * Counts the number of rows that match the dynamic query.
143            *
144            * @param dynamicQuery the dynamic query to search with
145            * @return the number of rows that match the dynamic query
146            * @throws SystemException if a system exception occurred
147            */
148            public long dynamicQueryCount(
149                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return _journalTemplateLocalService.dynamicQueryCount(dynamicQuery);
152            }
153    
154            /**
155            * Gets the journal template with the primary key.
156            *
157            * @param id the primary key of the journal template to get
158            * @return the journal template
159            * @throws PortalException if a journal template with the primary key could not be found
160            * @throws SystemException if a system exception occurred
161            */
162            public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplate(
163                    long id)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException {
166                    return _journalTemplateLocalService.getJournalTemplate(id);
167            }
168    
169            /**
170            * Gets the journal template with the UUID and group id.
171            *
172            * @param uuid the UUID of journal template to get
173            * @param groupId the group id of the journal template to get
174            * @return the journal template
175            * @throws PortalException if a journal template with the UUID and group id could not be found
176            * @throws SystemException if a system exception occurred
177            */
178            public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplateByUuidAndGroupId(
179                    java.lang.String uuid, long groupId)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    return _journalTemplateLocalService.getJournalTemplateByUuidAndGroupId(uuid,
183                            groupId);
184            }
185    
186            /**
187            * Gets a range of all the journal templates.
188            *
189            * <p>
190            * 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.
191            * </p>
192            *
193            * @param start the lower bound of the range of journal templates to return
194            * @param end the upper bound of the range of journal templates to return (not inclusive)
195            * @return the range of journal templates
196            * @throws SystemException if a system exception occurred
197            */
198            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getJournalTemplates(
199                    int start, int end)
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return _journalTemplateLocalService.getJournalTemplates(start, end);
202            }
203    
204            /**
205            * Gets the number of journal templates.
206            *
207            * @return the number of journal templates
208            * @throws SystemException if a system exception occurred
209            */
210            public int getJournalTemplatesCount()
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return _journalTemplateLocalService.getJournalTemplatesCount();
213            }
214    
215            /**
216            * Updates the journal template in the database. Also notifies the appropriate model listeners.
217            *
218            * @param journalTemplate the journal template to update
219            * @return the journal template that was updated
220            * @throws SystemException if a system exception occurred
221            */
222            public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
223                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
224                    throws com.liferay.portal.kernel.exception.SystemException {
225                    return _journalTemplateLocalService.updateJournalTemplate(journalTemplate);
226            }
227    
228            /**
229            * Updates the journal template in the database. Also notifies the appropriate model listeners.
230            *
231            * @param journalTemplate the journal template to update
232            * @param merge whether to merge the journal template with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
233            * @return the journal template that was updated
234            * @throws SystemException if a system exception occurred
235            */
236            public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
237                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
238                    boolean merge)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return _journalTemplateLocalService.updateJournalTemplate(journalTemplate,
241                            merge);
242            }
243    
244            public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
245                    long userId, long groupId, java.lang.String templateId,
246                    boolean autoTemplateId, java.lang.String structureId,
247                    java.lang.String name, java.lang.String description,
248                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
249                    boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
250                    java.io.File smallFile,
251                    com.liferay.portal.service.ServiceContext serviceContext)
252                    throws com.liferay.portal.kernel.exception.PortalException,
253                            com.liferay.portal.kernel.exception.SystemException {
254                    return _journalTemplateLocalService.addTemplate(userId, groupId,
255                            templateId, autoTemplateId, structureId, name, description, xsl,
256                            formatXsl, langType, cacheable, smallImage, smallImageURL,
257                            smallFile, serviceContext);
258            }
259    
260            public void addTemplateResources(long groupId, java.lang.String templateId,
261                    boolean addCommunityPermissions, boolean addGuestPermissions)
262                    throws com.liferay.portal.kernel.exception.PortalException,
263                            com.liferay.portal.kernel.exception.SystemException {
264                    _journalTemplateLocalService.addTemplateResources(groupId, templateId,
265                            addCommunityPermissions, addGuestPermissions);
266            }
267    
268            public void addTemplateResources(
269                    com.liferay.portlet.journal.model.JournalTemplate template,
270                    boolean addCommunityPermissions, boolean addGuestPermissions)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    _journalTemplateLocalService.addTemplateResources(template,
274                            addCommunityPermissions, addGuestPermissions);
275            }
276    
277            public void addTemplateResources(long groupId, java.lang.String templateId,
278                    java.lang.String[] communityPermissions,
279                    java.lang.String[] guestPermissions)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    _journalTemplateLocalService.addTemplateResources(groupId, templateId,
283                            communityPermissions, guestPermissions);
284            }
285    
286            public void addTemplateResources(
287                    com.liferay.portlet.journal.model.JournalTemplate template,
288                    java.lang.String[] communityPermissions,
289                    java.lang.String[] guestPermissions)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    _journalTemplateLocalService.addTemplateResources(template,
293                            communityPermissions, guestPermissions);
294            }
295    
296            public void checkNewLine(long groupId, java.lang.String templateId)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    _journalTemplateLocalService.checkNewLine(groupId, templateId);
300            }
301    
302            public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
303                    long userId, long groupId, java.lang.String oldTemplateId,
304                    java.lang.String newTemplateId, boolean autoTemplateId)
305                    throws com.liferay.portal.kernel.exception.PortalException,
306                            com.liferay.portal.kernel.exception.SystemException {
307                    return _journalTemplateLocalService.copyTemplate(userId, groupId,
308                            oldTemplateId, newTemplateId, autoTemplateId);
309            }
310    
311            public void deleteTemplate(long groupId, java.lang.String templateId)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    _journalTemplateLocalService.deleteTemplate(groupId, templateId);
315            }
316    
317            public void deleteTemplate(
318                    com.liferay.portlet.journal.model.JournalTemplate template)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    _journalTemplateLocalService.deleteTemplate(template);
322            }
323    
324            public void deleteTemplates(long groupId)
325                    throws com.liferay.portal.kernel.exception.PortalException,
326                            com.liferay.portal.kernel.exception.SystemException {
327                    _journalTemplateLocalService.deleteTemplates(groupId);
328            }
329    
330            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
331                    long groupId, java.lang.String structureId)
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    return _journalTemplateLocalService.getStructureTemplates(groupId,
334                            structureId);
335            }
336    
337            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
338                    long groupId, java.lang.String structureId, int start, int end)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    return _journalTemplateLocalService.getStructureTemplates(groupId,
341                            structureId, start, end);
342            }
343    
344            public int getStructureTemplatesCount(long groupId,
345                    java.lang.String structureId)
346                    throws com.liferay.portal.kernel.exception.SystemException {
347                    return _journalTemplateLocalService.getStructureTemplatesCount(groupId,
348                            structureId);
349            }
350    
351            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
352                    long id)
353                    throws com.liferay.portal.kernel.exception.PortalException,
354                            com.liferay.portal.kernel.exception.SystemException {
355                    return _journalTemplateLocalService.getTemplate(id);
356            }
357    
358            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
359                    long groupId, java.lang.String templateId)
360                    throws com.liferay.portal.kernel.exception.PortalException,
361                            com.liferay.portal.kernel.exception.SystemException {
362                    return _journalTemplateLocalService.getTemplate(groupId, templateId);
363            }
364    
365            public com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
366                    long smallImageId)
367                    throws com.liferay.portal.kernel.exception.PortalException,
368                            com.liferay.portal.kernel.exception.SystemException {
369                    return _journalTemplateLocalService.getTemplateBySmallImageId(smallImageId);
370            }
371    
372            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return _journalTemplateLocalService.getTemplates();
375            }
376    
377            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
378                    long groupId)
379                    throws com.liferay.portal.kernel.exception.SystemException {
380                    return _journalTemplateLocalService.getTemplates(groupId);
381            }
382    
383            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
384                    long groupId, int start, int end)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return _journalTemplateLocalService.getTemplates(groupId, start, end);
387            }
388    
389            public int getTemplatesCount(long groupId)
390                    throws com.liferay.portal.kernel.exception.SystemException {
391                    return _journalTemplateLocalService.getTemplatesCount(groupId);
392            }
393    
394            public boolean hasTemplate(long groupId, java.lang.String templateId)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    return _journalTemplateLocalService.hasTemplate(groupId, templateId);
397            }
398    
399            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
400                    long companyId, long groupId, java.lang.String keywords,
401                    java.lang.String structureId, java.lang.String structureIdComparator,
402                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    return _journalTemplateLocalService.search(companyId, groupId,
405                            keywords, structureId, structureIdComparator, start, end, obc);
406            }
407    
408            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
409                    long companyId, long groupId, java.lang.String templateId,
410                    java.lang.String structureId, java.lang.String structureIdComparator,
411                    java.lang.String name, java.lang.String description,
412                    boolean andOperator, int start, int end,
413                    com.liferay.portal.kernel.util.OrderByComparator obc)
414                    throws com.liferay.portal.kernel.exception.SystemException {
415                    return _journalTemplateLocalService.search(companyId, groupId,
416                            templateId, structureId, structureIdComparator, name, description,
417                            andOperator, start, end, obc);
418            }
419    
420            public int searchCount(long companyId, long groupId,
421                    java.lang.String keywords, java.lang.String structureId,
422                    java.lang.String structureIdComparator)
423                    throws com.liferay.portal.kernel.exception.SystemException {
424                    return _journalTemplateLocalService.searchCount(companyId, groupId,
425                            keywords, structureId, structureIdComparator);
426            }
427    
428            public int searchCount(long companyId, long groupId,
429                    java.lang.String templateId, java.lang.String structureId,
430                    java.lang.String structureIdComparator, java.lang.String name,
431                    java.lang.String description, boolean andOperator)
432                    throws com.liferay.portal.kernel.exception.SystemException {
433                    return _journalTemplateLocalService.searchCount(companyId, groupId,
434                            templateId, structureId, structureIdComparator, name, description,
435                            andOperator);
436            }
437    
438            public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
439                    long groupId, java.lang.String templateId,
440                    java.lang.String structureId, java.lang.String name,
441                    java.lang.String description, java.lang.String xsl, boolean formatXsl,
442                    java.lang.String langType, boolean cacheable, boolean smallImage,
443                    java.lang.String smallImageURL, java.io.File smallFile,
444                    com.liferay.portal.service.ServiceContext serviceContext)
445                    throws com.liferay.portal.kernel.exception.PortalException,
446                            com.liferay.portal.kernel.exception.SystemException {
447                    return _journalTemplateLocalService.updateTemplate(groupId, templateId,
448                            structureId, name, description, xsl, formatXsl, langType,
449                            cacheable, smallImage, smallImageURL, smallFile, serviceContext);
450            }
451    
452            public JournalTemplateLocalService getWrappedJournalTemplateLocalService() {
453                    return _journalTemplateLocalService;
454            }
455    
456            private JournalTemplateLocalService _journalTemplateLocalService;
457    }