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            * @throws PortalException if a journal template with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public void deleteJournalTemplate(long id)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    _journalTemplateLocalService.deleteJournalTemplate(id);
071            }
072    
073            /**
074            * Deletes the journal template from the database. Also notifies the appropriate model listeners.
075            *
076            * @param journalTemplate the journal template
077            * @throws SystemException if a system exception occurred
078            */
079            public void deleteJournalTemplate(
080                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    _journalTemplateLocalService.deleteJournalTemplate(journalTemplate);
083            }
084    
085            /**
086            * Performs a dynamic query on the database and returns the matching rows.
087            *
088            * @param dynamicQuery the dynamic query
089            * @return the matching rows
090            * @throws SystemException if a system exception occurred
091            */
092            @SuppressWarnings("rawtypes")
093            public java.util.List dynamicQuery(
094                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return _journalTemplateLocalService.dynamicQuery(dynamicQuery);
097            }
098    
099            /**
100            * Performs a dynamic query on the database and returns a range of the matching rows.
101            *
102            * <p>
103            * 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.
104            * </p>
105            *
106            * @param dynamicQuery the dynamic query
107            * @param start the lower bound of the range of model instances
108            * @param end the upper bound of the range of model instances (not inclusive)
109            * @return the range of matching rows
110            * @throws SystemException if a system exception occurred
111            */
112            @SuppressWarnings("rawtypes")
113            public java.util.List dynamicQuery(
114                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115                    int end) throws com.liferay.portal.kernel.exception.SystemException {
116                    return _journalTemplateLocalService.dynamicQuery(dynamicQuery, start,
117                            end);
118            }
119    
120            /**
121            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
122            *
123            * <p>
124            * 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.
125            * </p>
126            *
127            * @param dynamicQuery the dynamic query
128            * @param start the lower bound of the range of model instances
129            * @param end the upper bound of the range of model instances (not inclusive)
130            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
131            * @return the ordered range of matching rows
132            * @throws SystemException if a system exception occurred
133            */
134            @SuppressWarnings("rawtypes")
135            public java.util.List dynamicQuery(
136                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137                    int end,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException {
140                    return _journalTemplateLocalService.dynamicQuery(dynamicQuery, start,
141                            end, orderByComparator);
142            }
143    
144            /**
145            * Returns the number of rows that match the dynamic query.
146            *
147            * @param dynamicQuery the dynamic query
148            * @return the number of rows that match the dynamic query
149            * @throws SystemException if a system exception occurred
150            */
151            public long dynamicQueryCount(
152                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return _journalTemplateLocalService.dynamicQueryCount(dynamicQuery);
155            }
156    
157            public com.liferay.portlet.journal.model.JournalTemplate fetchJournalTemplate(
158                    long id) throws com.liferay.portal.kernel.exception.SystemException {
159                    return _journalTemplateLocalService.fetchJournalTemplate(id);
160            }
161    
162            /**
163            * Returns the journal template with the primary key.
164            *
165            * @param id the primary key of the journal template
166            * @return the journal template
167            * @throws PortalException if a journal template with the primary key could not be found
168            * @throws SystemException if a system exception occurred
169            */
170            public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplate(
171                    long id)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return _journalTemplateLocalService.getJournalTemplate(id);
175            }
176    
177            public com.liferay.portal.model.PersistedModel getPersistedModel(
178                    java.io.Serializable primaryKeyObj)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _journalTemplateLocalService.getPersistedModel(primaryKeyObj);
182            }
183    
184            /**
185            * Returns the journal template with the UUID in the group.
186            *
187            * @param uuid the UUID of journal template
188            * @param groupId the group id of the journal template
189            * @return the journal template
190            * @throws PortalException if a journal template with the UUID in the group could not be found
191            * @throws SystemException if a system exception occurred
192            */
193            public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplateByUuidAndGroupId(
194                    java.lang.String uuid, long groupId)
195                    throws com.liferay.portal.kernel.exception.PortalException,
196                            com.liferay.portal.kernel.exception.SystemException {
197                    return _journalTemplateLocalService.getJournalTemplateByUuidAndGroupId(uuid,
198                            groupId);
199            }
200    
201            /**
202            * Returns a range of all the journal templates.
203            *
204            * <p>
205            * 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.
206            * </p>
207            *
208            * @param start the lower bound of the range of journal templates
209            * @param end the upper bound of the range of journal templates (not inclusive)
210            * @return the range of journal templates
211            * @throws SystemException if a system exception occurred
212            */
213            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getJournalTemplates(
214                    int start, int end)
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _journalTemplateLocalService.getJournalTemplates(start, end);
217            }
218    
219            /**
220            * Returns the number of journal templates.
221            *
222            * @return the number of journal templates
223            * @throws SystemException if a system exception occurred
224            */
225            public int getJournalTemplatesCount()
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    return _journalTemplateLocalService.getJournalTemplatesCount();
228            }
229    
230            /**
231            * Updates the journal template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
232            *
233            * @param journalTemplate the journal template
234            * @return the journal template that was updated
235            * @throws SystemException if a system exception occurred
236            */
237            public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
238                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return _journalTemplateLocalService.updateJournalTemplate(journalTemplate);
241            }
242    
243            /**
244            * Updates the journal template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
245            *
246            * @param journalTemplate the journal template
247            * @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.
248            * @return the journal template that was updated
249            * @throws SystemException if a system exception occurred
250            */
251            public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
252                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
253                    boolean merge)
254                    throws com.liferay.portal.kernel.exception.SystemException {
255                    return _journalTemplateLocalService.updateJournalTemplate(journalTemplate,
256                            merge);
257            }
258    
259            /**
260            * Returns the Spring bean ID for this bean.
261            *
262            * @return the Spring bean ID for this bean
263            */
264            public java.lang.String getBeanIdentifier() {
265                    return _journalTemplateLocalService.getBeanIdentifier();
266            }
267    
268            /**
269            * Sets the Spring bean ID for this bean.
270            *
271            * @param beanIdentifier the Spring bean ID for this bean
272            */
273            public void setBeanIdentifier(java.lang.String beanIdentifier) {
274                    _journalTemplateLocalService.setBeanIdentifier(beanIdentifier);
275            }
276    
277            public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
278                    long userId, long groupId, java.lang.String templateId,
279                    boolean autoTemplateId, java.lang.String structureId,
280                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
281                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
282                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
283                    boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
284                    java.io.File smallImageFile,
285                    com.liferay.portal.service.ServiceContext serviceContext)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    return _journalTemplateLocalService.addTemplate(userId, groupId,
289                            templateId, autoTemplateId, structureId, nameMap, descriptionMap,
290                            xsl, formatXsl, langType, cacheable, smallImage, smallImageURL,
291                            smallImageFile, serviceContext);
292            }
293    
294            public void addTemplateResources(
295                    com.liferay.portlet.journal.model.JournalTemplate template,
296                    boolean addGroupPermissions, boolean addGuestPermissions)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    _journalTemplateLocalService.addTemplateResources(template,
300                            addGroupPermissions, addGuestPermissions);
301            }
302    
303            public void addTemplateResources(
304                    com.liferay.portlet.journal.model.JournalTemplate template,
305                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
306                    throws com.liferay.portal.kernel.exception.PortalException,
307                            com.liferay.portal.kernel.exception.SystemException {
308                    _journalTemplateLocalService.addTemplateResources(template,
309                            groupPermissions, guestPermissions);
310            }
311    
312            public void addTemplateResources(long groupId, java.lang.String templateId,
313                    boolean addGroupPermissions, boolean addGuestPermissions)
314                    throws com.liferay.portal.kernel.exception.PortalException,
315                            com.liferay.portal.kernel.exception.SystemException {
316                    _journalTemplateLocalService.addTemplateResources(groupId, templateId,
317                            addGroupPermissions, addGuestPermissions);
318            }
319    
320            public void addTemplateResources(long groupId, java.lang.String templateId,
321                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
322                    throws com.liferay.portal.kernel.exception.PortalException,
323                            com.liferay.portal.kernel.exception.SystemException {
324                    _journalTemplateLocalService.addTemplateResources(groupId, templateId,
325                            groupPermissions, guestPermissions);
326            }
327    
328            public void checkNewLine(long groupId, java.lang.String templateId)
329                    throws com.liferay.portal.kernel.exception.PortalException,
330                            com.liferay.portal.kernel.exception.SystemException {
331                    _journalTemplateLocalService.checkNewLine(groupId, templateId);
332            }
333    
334            public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
335                    long userId, long groupId, java.lang.String oldTemplateId,
336                    java.lang.String newTemplateId, boolean autoTemplateId)
337                    throws com.liferay.portal.kernel.exception.PortalException,
338                            com.liferay.portal.kernel.exception.SystemException {
339                    return _journalTemplateLocalService.copyTemplate(userId, groupId,
340                            oldTemplateId, newTemplateId, autoTemplateId);
341            }
342    
343            public void deleteTemplate(
344                    com.liferay.portlet.journal.model.JournalTemplate template)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    _journalTemplateLocalService.deleteTemplate(template);
348            }
349    
350            public void deleteTemplate(long groupId, java.lang.String templateId)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    _journalTemplateLocalService.deleteTemplate(groupId, templateId);
354            }
355    
356            public void deleteTemplates(long groupId)
357                    throws com.liferay.portal.kernel.exception.PortalException,
358                            com.liferay.portal.kernel.exception.SystemException {
359                    _journalTemplateLocalService.deleteTemplates(groupId);
360            }
361    
362            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
363                    long groupId, java.lang.String structureId)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return _journalTemplateLocalService.getStructureTemplates(groupId,
366                            structureId);
367            }
368    
369            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
370                    long groupId, java.lang.String structureId, int start, int end)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return _journalTemplateLocalService.getStructureTemplates(groupId,
373                            structureId, start, end);
374            }
375    
376            public int getStructureTemplatesCount(long groupId,
377                    java.lang.String structureId)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return _journalTemplateLocalService.getStructureTemplatesCount(groupId,
380                            structureId);
381            }
382    
383            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
384                    long id)
385                    throws com.liferay.portal.kernel.exception.PortalException,
386                            com.liferay.portal.kernel.exception.SystemException {
387                    return _journalTemplateLocalService.getTemplate(id);
388            }
389    
390            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
391                    long groupId, java.lang.String templateId)
392                    throws com.liferay.portal.kernel.exception.PortalException,
393                            com.liferay.portal.kernel.exception.SystemException {
394                    return _journalTemplateLocalService.getTemplate(groupId, templateId);
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    }