001    /**
002     * Copyright (c) 2000-2012 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            * Returns the Spring bean ID for this bean.
252            *
253            * @return the Spring bean ID for this bean
254            */
255            public java.lang.String getBeanIdentifier() {
256                    return _journalTemplateLocalService.getBeanIdentifier();
257            }
258    
259            /**
260            * Sets the Spring bean ID for this bean.
261            *
262            * @param beanIdentifier the Spring bean ID for this bean
263            */
264            public void setBeanIdentifier(java.lang.String beanIdentifier) {
265                    _journalTemplateLocalService.setBeanIdentifier(beanIdentifier);
266            }
267    
268            public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
269                    long userId, long groupId, java.lang.String templateId,
270                    boolean autoTemplateId, java.lang.String structureId,
271                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
272                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
273                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
274                    boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
275                    java.io.File smallImageFile,
276                    com.liferay.portal.service.ServiceContext serviceContext)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException {
279                    return _journalTemplateLocalService.addTemplate(userId, groupId,
280                            templateId, autoTemplateId, structureId, nameMap, descriptionMap,
281                            xsl, formatXsl, langType, cacheable, smallImage, smallImageURL,
282                            smallImageFile, serviceContext);
283            }
284    
285            public void addTemplateResources(
286                    com.liferay.portlet.journal.model.JournalTemplate template,
287                    boolean addGroupPermissions, boolean addGuestPermissions)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    _journalTemplateLocalService.addTemplateResources(template,
291                            addGroupPermissions, addGuestPermissions);
292            }
293    
294            public void addTemplateResources(
295                    com.liferay.portlet.journal.model.JournalTemplate template,
296                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    _journalTemplateLocalService.addTemplateResources(template,
300                            groupPermissions, guestPermissions);
301            }
302    
303            public void addTemplateResources(long groupId, java.lang.String templateId,
304                    boolean addGroupPermissions, boolean addGuestPermissions)
305                    throws com.liferay.portal.kernel.exception.PortalException,
306                            com.liferay.portal.kernel.exception.SystemException {
307                    _journalTemplateLocalService.addTemplateResources(groupId, templateId,
308                            addGroupPermissions, addGuestPermissions);
309            }
310    
311            public void addTemplateResources(long groupId, java.lang.String templateId,
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(groupId, templateId,
316                            groupPermissions, guestPermissions);
317            }
318    
319            public void checkNewLine(long groupId, java.lang.String templateId)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    _journalTemplateLocalService.checkNewLine(groupId, templateId);
323            }
324    
325            public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
326                    long userId, long groupId, java.lang.String oldTemplateId,
327                    java.lang.String newTemplateId, boolean autoTemplateId)
328                    throws com.liferay.portal.kernel.exception.PortalException,
329                            com.liferay.portal.kernel.exception.SystemException {
330                    return _journalTemplateLocalService.copyTemplate(userId, groupId,
331                            oldTemplateId, newTemplateId, autoTemplateId);
332            }
333    
334            public void deleteTemplate(
335                    com.liferay.portlet.journal.model.JournalTemplate template)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    _journalTemplateLocalService.deleteTemplate(template);
339            }
340    
341            public void deleteTemplate(long groupId, java.lang.String templateId)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    _journalTemplateLocalService.deleteTemplate(groupId, templateId);
345            }
346    
347            public void deleteTemplates(long groupId)
348                    throws com.liferay.portal.kernel.exception.PortalException,
349                            com.liferay.portal.kernel.exception.SystemException {
350                    _journalTemplateLocalService.deleteTemplates(groupId);
351            }
352    
353            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
354                    long groupId, java.lang.String structureId)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return _journalTemplateLocalService.getStructureTemplates(groupId,
357                            structureId);
358            }
359    
360            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
361                    long groupId, java.lang.String structureId, int start, int end)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return _journalTemplateLocalService.getStructureTemplates(groupId,
364                            structureId, start, end);
365            }
366    
367            public int getStructureTemplatesCount(long groupId,
368                    java.lang.String structureId)
369                    throws com.liferay.portal.kernel.exception.SystemException {
370                    return _journalTemplateLocalService.getStructureTemplatesCount(groupId,
371                            structureId);
372            }
373    
374            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
375                    long id)
376                    throws com.liferay.portal.kernel.exception.PortalException,
377                            com.liferay.portal.kernel.exception.SystemException {
378                    return _journalTemplateLocalService.getTemplate(id);
379            }
380    
381            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
382                    long groupId, java.lang.String templateId)
383                    throws com.liferay.portal.kernel.exception.PortalException,
384                            com.liferay.portal.kernel.exception.SystemException {
385                    return _journalTemplateLocalService.getTemplate(groupId, templateId);
386            }
387    
388            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
389                    long groupId, java.lang.String templateId,
390                    boolean includeGlobalTemplates)
391                    throws com.liferay.portal.kernel.exception.PortalException,
392                            com.liferay.portal.kernel.exception.SystemException {
393                    return _journalTemplateLocalService.getTemplate(groupId, templateId,
394                            includeGlobalTemplates);
395            }
396    
397            public com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
398                    long smallImageId)
399                    throws com.liferay.portal.kernel.exception.PortalException,
400                            com.liferay.portal.kernel.exception.SystemException {
401                    return _journalTemplateLocalService.getTemplateBySmallImageId(smallImageId);
402            }
403    
404            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
405                    throws com.liferay.portal.kernel.exception.SystemException {
406                    return _journalTemplateLocalService.getTemplates();
407            }
408    
409            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
410                    long groupId)
411                    throws com.liferay.portal.kernel.exception.SystemException {
412                    return _journalTemplateLocalService.getTemplates(groupId);
413            }
414    
415            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
416                    long groupId, int start, int end)
417                    throws com.liferay.portal.kernel.exception.SystemException {
418                    return _journalTemplateLocalService.getTemplates(groupId, start, end);
419            }
420    
421            public int getTemplatesCount(long groupId)
422                    throws com.liferay.portal.kernel.exception.SystemException {
423                    return _journalTemplateLocalService.getTemplatesCount(groupId);
424            }
425    
426            public boolean hasTemplate(long groupId, java.lang.String templateId)
427                    throws com.liferay.portal.kernel.exception.SystemException {
428                    return _journalTemplateLocalService.hasTemplate(groupId, templateId);
429            }
430    
431            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
432                    long companyId, long[] groupIds, java.lang.String keywords,
433                    java.lang.String structureId, java.lang.String structureIdComparator,
434                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
435                    throws com.liferay.portal.kernel.exception.SystemException {
436                    return _journalTemplateLocalService.search(companyId, groupIds,
437                            keywords, structureId, structureIdComparator, start, end, obc);
438            }
439    
440            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
441                    long companyId, long[] groupIds, java.lang.String templateId,
442                    java.lang.String structureId, java.lang.String structureIdComparator,
443                    java.lang.String name, java.lang.String description,
444                    boolean andOperator, int start, int end,
445                    com.liferay.portal.kernel.util.OrderByComparator obc)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    return _journalTemplateLocalService.search(companyId, groupIds,
448                            templateId, structureId, structureIdComparator, name, description,
449                            andOperator, start, end, obc);
450            }
451    
452            public int searchCount(long companyId, long[] groupIds,
453                    java.lang.String keywords, java.lang.String structureId,
454                    java.lang.String structureIdComparator)
455                    throws com.liferay.portal.kernel.exception.SystemException {
456                    return _journalTemplateLocalService.searchCount(companyId, groupIds,
457                            keywords, structureId, structureIdComparator);
458            }
459    
460            public int searchCount(long companyId, long[] groupIds,
461                    java.lang.String templateId, java.lang.String structureId,
462                    java.lang.String structureIdComparator, java.lang.String name,
463                    java.lang.String description, boolean andOperator)
464                    throws com.liferay.portal.kernel.exception.SystemException {
465                    return _journalTemplateLocalService.searchCount(companyId, groupIds,
466                            templateId, structureId, structureIdComparator, name, description,
467                            andOperator);
468            }
469    
470            public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
471                    long groupId, java.lang.String templateId,
472                    java.lang.String structureId,
473                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
474                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
475                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
476                    boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
477                    java.io.File smallImageFile,
478                    com.liferay.portal.service.ServiceContext serviceContext)
479                    throws com.liferay.portal.kernel.exception.PortalException,
480                            com.liferay.portal.kernel.exception.SystemException {
481                    return _journalTemplateLocalService.updateTemplate(groupId, templateId,
482                            structureId, nameMap, descriptionMap, xsl, formatXsl, langType,
483                            cacheable, smallImage, smallImageURL, smallImageFile, serviceContext);
484            }
485    
486            /**
487             * @deprecated Renamed to {@link #getWrappedService}
488             */
489            public JournalTemplateLocalService getWrappedJournalTemplateLocalService() {
490                    return _journalTemplateLocalService;
491            }
492    
493            /**
494             * @deprecated Renamed to {@link #setWrappedService}
495             */
496            public void setWrappedJournalTemplateLocalService(
497                    JournalTemplateLocalService journalTemplateLocalService) {
498                    _journalTemplateLocalService = journalTemplateLocalService;
499            }
500    
501            public JournalTemplateLocalService getWrappedService() {
502                    return _journalTemplateLocalService;
503            }
504    
505            public void setWrappedService(
506                    JournalTemplateLocalService journalTemplateLocalService) {
507                    _journalTemplateLocalService = journalTemplateLocalService;
508            }
509    
510            private JournalTemplateLocalService _journalTemplateLocalService;
511    }