001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link JournalTemplateLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       JournalTemplateLocalService
026     * @generated
027     */
028    public class JournalTemplateLocalServiceWrapper
029            implements JournalTemplateLocalService,
030                    ServiceWrapper<JournalTemplateLocalService> {
031            public JournalTemplateLocalServiceWrapper(
032                    JournalTemplateLocalService journalTemplateLocalService) {
033                    _journalTemplateLocalService = journalTemplateLocalService;
034            }
035    
036            /**
037            * Adds the journal template to the database. Also notifies the appropriate model listeners.
038            *
039            * @param journalTemplate the journal template
040            * @return the journal template that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
044                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _journalTemplateLocalService.addJournalTemplate(journalTemplate);
047            }
048    
049            /**
050            * Creates a new journal template with the primary key. Does not add the journal template to the database.
051            *
052            * @param id the primary key for the new journal template
053            * @return the new journal template
054            */
055            public com.liferay.portlet.journal.model.JournalTemplate createJournalTemplate(
056                    long id) {
057                    return _journalTemplateLocalService.createJournalTemplate(id);
058            }
059    
060            /**
061            * Deletes the journal template with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param id the primary key of the journal template
064            * @return the journal template that was removed
065            * @throws PortalException if a journal template with the primary key could not be found
066            * @throws SystemException if a system exception occurred
067            */
068            public com.liferay.portlet.journal.model.JournalTemplate deleteJournalTemplate(
069                    long id)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _journalTemplateLocalService.deleteJournalTemplate(id);
073            }
074    
075            /**
076            * Deletes the journal template from the database. Also notifies the appropriate model listeners.
077            *
078            * @param journalTemplate the journal template
079            * @return the journal template that was removed
080            * @throws SystemException if a system exception occurred
081            */
082            public com.liferay.portlet.journal.model.JournalTemplate deleteJournalTemplate(
083                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return _journalTemplateLocalService.deleteJournalTemplate(journalTemplate);
086            }
087    
088            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
089                    return _journalTemplateLocalService.dynamicQuery();
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns the matching rows.
094            *
095            * @param dynamicQuery the dynamic query
096            * @return the matching rows
097            * @throws SystemException if a system exception occurred
098            */
099            @SuppressWarnings("rawtypes")
100            public java.util.List dynamicQuery(
101                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return _journalTemplateLocalService.dynamicQuery(dynamicQuery);
104            }
105    
106            /**
107            * Performs a dynamic query on the database and returns a range of the matching rows.
108            *
109            * <p>
110            * 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.
111            * </p>
112            *
113            * @param dynamicQuery the dynamic query
114            * @param start the lower bound of the range of model instances
115            * @param end the upper bound of the range of model instances (not inclusive)
116            * @return the range of matching rows
117            * @throws SystemException if a system exception occurred
118            */
119            @SuppressWarnings("rawtypes")
120            public java.util.List dynamicQuery(
121                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122                    int end) throws com.liferay.portal.kernel.exception.SystemException {
123                    return _journalTemplateLocalService.dynamicQuery(dynamicQuery, start,
124                            end);
125            }
126    
127            /**
128            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
129            *
130            * <p>
131            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
132            * </p>
133            *
134            * @param dynamicQuery the dynamic query
135            * @param start the lower bound of the range of model instances
136            * @param end the upper bound of the range of model instances (not inclusive)
137            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
138            * @return the ordered range of matching rows
139            * @throws SystemException if a system exception occurred
140            */
141            @SuppressWarnings("rawtypes")
142            public java.util.List dynamicQuery(
143                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
144                    int end,
145                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return _journalTemplateLocalService.dynamicQuery(dynamicQuery, start,
148                            end, orderByComparator);
149            }
150    
151            /**
152            * Returns the number of rows that match the dynamic query.
153            *
154            * @param dynamicQuery the dynamic query
155            * @return the number of rows that match the dynamic query
156            * @throws SystemException if a system exception occurred
157            */
158            public long dynamicQueryCount(
159                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return _journalTemplateLocalService.dynamicQueryCount(dynamicQuery);
162            }
163    
164            public com.liferay.portlet.journal.model.JournalTemplate fetchJournalTemplate(
165                    long id) throws com.liferay.portal.kernel.exception.SystemException {
166                    return _journalTemplateLocalService.fetchJournalTemplate(id);
167            }
168    
169            /**
170            * Returns the journal template with the primary key.
171            *
172            * @param id the primary key of the journal template
173            * @return the journal template
174            * @throws PortalException if a journal template with the primary key could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplate(
178                    long id)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _journalTemplateLocalService.getJournalTemplate(id);
182            }
183    
184            public com.liferay.portal.model.PersistedModel getPersistedModel(
185                    java.io.Serializable primaryKeyObj)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return _journalTemplateLocalService.getPersistedModel(primaryKeyObj);
189            }
190    
191            /**
192            * Returns the journal template with the UUID in the group.
193            *
194            * @param uuid the UUID of journal template
195            * @param groupId the group id of the journal template
196            * @return the journal template
197            * @throws PortalException if a journal template with the UUID in the group could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplateByUuidAndGroupId(
201                    java.lang.String uuid, long groupId)
202                    throws com.liferay.portal.kernel.exception.PortalException,
203                            com.liferay.portal.kernel.exception.SystemException {
204                    return _journalTemplateLocalService.getJournalTemplateByUuidAndGroupId(uuid,
205                            groupId);
206            }
207    
208            /**
209            * Returns a range of all the journal templates.
210            *
211            * <p>
212            * 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.
213            * </p>
214            *
215            * @param start the lower bound of the range of journal templates
216            * @param end the upper bound of the range of journal templates (not inclusive)
217            * @return the range of journal templates
218            * @throws SystemException if a system exception occurred
219            */
220            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getJournalTemplates(
221                    int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _journalTemplateLocalService.getJournalTemplates(start, end);
224            }
225    
226            /**
227            * Returns the number of journal templates.
228            *
229            * @return the number of journal templates
230            * @throws SystemException if a system exception occurred
231            */
232            public int getJournalTemplatesCount()
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return _journalTemplateLocalService.getJournalTemplatesCount();
235            }
236    
237            /**
238            * Updates the journal template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
239            *
240            * @param journalTemplate the journal template
241            * @return the journal template that was updated
242            * @throws SystemException if a system exception occurred
243            */
244            public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
245                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return _journalTemplateLocalService.updateJournalTemplate(journalTemplate);
248            }
249    
250            /**
251            * Updates the journal template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
252            *
253            * @param journalTemplate the journal template
254            * @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.
255            * @return the journal template that was updated
256            * @throws SystemException if a system exception occurred
257            */
258            public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
259                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
260                    boolean merge)
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    return _journalTemplateLocalService.updateJournalTemplate(journalTemplate,
263                            merge);
264            }
265    
266            /**
267            * Returns the Spring bean ID for this bean.
268            *
269            * @return the Spring bean ID for this bean
270            */
271            public java.lang.String getBeanIdentifier() {
272                    return _journalTemplateLocalService.getBeanIdentifier();
273            }
274    
275            /**
276            * Sets the Spring bean ID for this bean.
277            *
278            * @param beanIdentifier the Spring bean ID for this bean
279            */
280            public void setBeanIdentifier(java.lang.String beanIdentifier) {
281                    _journalTemplateLocalService.setBeanIdentifier(beanIdentifier);
282            }
283    
284            public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
285                    long userId, long groupId, java.lang.String templateId,
286                    boolean autoTemplateId, java.lang.String structureId,
287                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
288                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
289                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
290                    boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
291                    java.io.File smallImageFile,
292                    com.liferay.portal.service.ServiceContext serviceContext)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    return _journalTemplateLocalService.addTemplate(userId, groupId,
296                            templateId, autoTemplateId, structureId, nameMap, descriptionMap,
297                            xsl, formatXsl, langType, cacheable, smallImage, smallImageURL,
298                            smallImageFile, serviceContext);
299            }
300    
301            public void addTemplateResources(
302                    com.liferay.portlet.journal.model.JournalTemplate template,
303                    boolean addGroupPermissions, boolean addGuestPermissions)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    _journalTemplateLocalService.addTemplateResources(template,
307                            addGroupPermissions, addGuestPermissions);
308            }
309    
310            public void addTemplateResources(
311                    com.liferay.portlet.journal.model.JournalTemplate template,
312                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    _journalTemplateLocalService.addTemplateResources(template,
316                            groupPermissions, guestPermissions);
317            }
318    
319            public void addTemplateResources(long groupId, java.lang.String templateId,
320                    boolean addGroupPermissions, boolean addGuestPermissions)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException {
323                    _journalTemplateLocalService.addTemplateResources(groupId, templateId,
324                            addGroupPermissions, addGuestPermissions);
325            }
326    
327            public void addTemplateResources(long groupId, java.lang.String templateId,
328                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
329                    throws com.liferay.portal.kernel.exception.PortalException,
330                            com.liferay.portal.kernel.exception.SystemException {
331                    _journalTemplateLocalService.addTemplateResources(groupId, templateId,
332                            groupPermissions, guestPermissions);
333            }
334    
335            public void checkNewLine(long groupId, java.lang.String templateId)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    _journalTemplateLocalService.checkNewLine(groupId, templateId);
339            }
340    
341            public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
342                    long userId, long groupId, java.lang.String oldTemplateId,
343                    java.lang.String newTemplateId, boolean autoTemplateId)
344                    throws com.liferay.portal.kernel.exception.PortalException,
345                            com.liferay.portal.kernel.exception.SystemException {
346                    return _journalTemplateLocalService.copyTemplate(userId, groupId,
347                            oldTemplateId, newTemplateId, autoTemplateId);
348            }
349    
350            public void deleteTemplate(
351                    com.liferay.portlet.journal.model.JournalTemplate template)
352                    throws com.liferay.portal.kernel.exception.PortalException,
353                            com.liferay.portal.kernel.exception.SystemException {
354                    _journalTemplateLocalService.deleteTemplate(template);
355            }
356    
357            public void deleteTemplate(long groupId, java.lang.String templateId)
358                    throws com.liferay.portal.kernel.exception.PortalException,
359                            com.liferay.portal.kernel.exception.SystemException {
360                    _journalTemplateLocalService.deleteTemplate(groupId, templateId);
361            }
362    
363            public void deleteTemplates(long groupId)
364                    throws com.liferay.portal.kernel.exception.PortalException,
365                            com.liferay.portal.kernel.exception.SystemException {
366                    _journalTemplateLocalService.deleteTemplates(groupId);
367            }
368    
369            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
370                    long groupId, java.lang.String structureId)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return _journalTemplateLocalService.getStructureTemplates(groupId,
373                            structureId);
374            }
375    
376            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
377                    long groupId, java.lang.String structureId, int start, int end)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return _journalTemplateLocalService.getStructureTemplates(groupId,
380                            structureId, start, end);
381            }
382    
383            public int getStructureTemplatesCount(long groupId,
384                    java.lang.String structureId)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return _journalTemplateLocalService.getStructureTemplatesCount(groupId,
387                            structureId);
388            }
389    
390            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
391                    long id)
392                    throws com.liferay.portal.kernel.exception.PortalException,
393                            com.liferay.portal.kernel.exception.SystemException {
394                    return _journalTemplateLocalService.getTemplate(id);
395            }
396    
397            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
398                    long groupId, java.lang.String templateId)
399                    throws com.liferay.portal.kernel.exception.PortalException,
400                            com.liferay.portal.kernel.exception.SystemException {
401                    return _journalTemplateLocalService.getTemplate(groupId, templateId);
402            }
403    
404            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
405                    long groupId, java.lang.String templateId,
406                    boolean includeGlobalTemplates)
407                    throws com.liferay.portal.kernel.exception.PortalException,
408                            com.liferay.portal.kernel.exception.SystemException {
409                    return _journalTemplateLocalService.getTemplate(groupId, templateId,
410                            includeGlobalTemplates);
411            }
412    
413            public com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
414                    long smallImageId)
415                    throws com.liferay.portal.kernel.exception.PortalException,
416                            com.liferay.portal.kernel.exception.SystemException {
417                    return _journalTemplateLocalService.getTemplateBySmallImageId(smallImageId);
418            }
419    
420            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return _journalTemplateLocalService.getTemplates();
423            }
424    
425            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
426                    long groupId)
427                    throws com.liferay.portal.kernel.exception.SystemException {
428                    return _journalTemplateLocalService.getTemplates(groupId);
429            }
430    
431            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
432                    long groupId, int start, int end)
433                    throws com.liferay.portal.kernel.exception.SystemException {
434                    return _journalTemplateLocalService.getTemplates(groupId, start, end);
435            }
436    
437            public int getTemplatesCount(long groupId)
438                    throws com.liferay.portal.kernel.exception.SystemException {
439                    return _journalTemplateLocalService.getTemplatesCount(groupId);
440            }
441    
442            public boolean hasTemplate(long groupId, java.lang.String templateId)
443                    throws com.liferay.portal.kernel.exception.SystemException {
444                    return _journalTemplateLocalService.hasTemplate(groupId, templateId);
445            }
446    
447            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
448                    long companyId, long[] groupIds, java.lang.String keywords,
449                    java.lang.String structureId, java.lang.String structureIdComparator,
450                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
451                    throws com.liferay.portal.kernel.exception.SystemException {
452                    return _journalTemplateLocalService.search(companyId, groupIds,
453                            keywords, structureId, structureIdComparator, start, end, obc);
454            }
455    
456            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
457                    long companyId, long[] groupIds, java.lang.String templateId,
458                    java.lang.String structureId, java.lang.String structureIdComparator,
459                    java.lang.String name, java.lang.String description,
460                    boolean andOperator, int start, int end,
461                    com.liferay.portal.kernel.util.OrderByComparator obc)
462                    throws com.liferay.portal.kernel.exception.SystemException {
463                    return _journalTemplateLocalService.search(companyId, groupIds,
464                            templateId, structureId, structureIdComparator, name, description,
465                            andOperator, start, end, obc);
466            }
467    
468            public int searchCount(long companyId, long[] groupIds,
469                    java.lang.String keywords, java.lang.String structureId,
470                    java.lang.String structureIdComparator)
471                    throws com.liferay.portal.kernel.exception.SystemException {
472                    return _journalTemplateLocalService.searchCount(companyId, groupIds,
473                            keywords, structureId, structureIdComparator);
474            }
475    
476            public int searchCount(long companyId, long[] groupIds,
477                    java.lang.String templateId, java.lang.String structureId,
478                    java.lang.String structureIdComparator, java.lang.String name,
479                    java.lang.String description, boolean andOperator)
480                    throws com.liferay.portal.kernel.exception.SystemException {
481                    return _journalTemplateLocalService.searchCount(companyId, groupIds,
482                            templateId, structureId, structureIdComparator, name, description,
483                            andOperator);
484            }
485    
486            public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
487                    long groupId, java.lang.String templateId,
488                    java.lang.String structureId,
489                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
490                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
491                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
492                    boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
493                    java.io.File smallImageFile,
494                    com.liferay.portal.service.ServiceContext serviceContext)
495                    throws com.liferay.portal.kernel.exception.PortalException,
496                            com.liferay.portal.kernel.exception.SystemException {
497                    return _journalTemplateLocalService.updateTemplate(groupId, templateId,
498                            structureId, nameMap, descriptionMap, xsl, formatXsl, langType,
499                            cacheable, smallImage, smallImageURL, smallImageFile, serviceContext);
500            }
501    
502            /**
503             * @deprecated Renamed to {@link #getWrappedService}
504             */
505            public JournalTemplateLocalService getWrappedJournalTemplateLocalService() {
506                    return _journalTemplateLocalService;
507            }
508    
509            /**
510             * @deprecated Renamed to {@link #setWrappedService}
511             */
512            public void setWrappedJournalTemplateLocalService(
513                    JournalTemplateLocalService journalTemplateLocalService) {
514                    _journalTemplateLocalService = journalTemplateLocalService;
515            }
516    
517            public JournalTemplateLocalService getWrappedService() {
518                    return _journalTemplateLocalService;
519            }
520    
521            public void setWrappedService(
522                    JournalTemplateLocalService journalTemplateLocalService) {
523                    _journalTemplateLocalService = journalTemplateLocalService;
524            }
525    
526            private JournalTemplateLocalService _journalTemplateLocalService;
527    }