001    /**
002     * Copyright (c) 2000-2011 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
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
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
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
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
104            * @param start the lower bound of the range of model instances
105            * @param end the upper bound of the range of model instances (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
125            * @param start the lower bound of the range of model instances
126            * @param end the upper bound of the range of model instances (not inclusive)
127            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns the number of rows that match the dynamic query.
143            *
144            * @param dynamicQuery the dynamic query
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            * Returns the journal template with the primary key.
156            *
157            * @param id the primary key of the journal template
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            public com.liferay.portal.model.PersistedModel getPersistedModel(
170                    java.io.Serializable primaryKeyObj)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _journalTemplateLocalService.getPersistedModel(primaryKeyObj);
174            }
175    
176            /**
177            * Returns the journal template with the UUID in the group.
178            *
179            * @param uuid the UUID of journal template
180            * @param groupId the group id of the journal template
181            * @return the journal template
182            * @throws PortalException if a journal template with the UUID in the group could not be found
183            * @throws SystemException if a system exception occurred
184            */
185            public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplateByUuidAndGroupId(
186                    java.lang.String uuid, long groupId)
187                    throws com.liferay.portal.kernel.exception.PortalException,
188                            com.liferay.portal.kernel.exception.SystemException {
189                    return _journalTemplateLocalService.getJournalTemplateByUuidAndGroupId(uuid,
190                            groupId);
191            }
192    
193            /**
194            * Returns a range of all the journal templates.
195            *
196            * <p>
197            * 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.
198            * </p>
199            *
200            * @param start the lower bound of the range of journal templates
201            * @param end the upper bound of the range of journal templates (not inclusive)
202            * @return the range of journal templates
203            * @throws SystemException if a system exception occurred
204            */
205            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getJournalTemplates(
206                    int start, int end)
207                    throws com.liferay.portal.kernel.exception.SystemException {
208                    return _journalTemplateLocalService.getJournalTemplates(start, end);
209            }
210    
211            /**
212            * Returns the number of journal templates.
213            *
214            * @return the number of journal templates
215            * @throws SystemException if a system exception occurred
216            */
217            public int getJournalTemplatesCount()
218                    throws com.liferay.portal.kernel.exception.SystemException {
219                    return _journalTemplateLocalService.getJournalTemplatesCount();
220            }
221    
222            /**
223            * Updates the journal template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
224            *
225            * @param journalTemplate the journal template
226            * @return the journal template that was updated
227            * @throws SystemException if a system exception occurred
228            */
229            public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
230                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return _journalTemplateLocalService.updateJournalTemplate(journalTemplate);
233            }
234    
235            /**
236            * Updates the journal template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
237            *
238            * @param journalTemplate the journal template
239            * @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.
240            * @return the journal template that was updated
241            * @throws SystemException if a system exception occurred
242            */
243            public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
244                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
245                    boolean merge)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return _journalTemplateLocalService.updateJournalTemplate(journalTemplate,
248                            merge);
249            }
250    
251            /**
252            * Returns the Spring bean ID for this bean.
253            *
254            * @return the Spring bean ID for this bean
255            */
256            public java.lang.String getBeanIdentifier() {
257                    return _journalTemplateLocalService.getBeanIdentifier();
258            }
259    
260            /**
261            * Sets the Spring bean ID for this bean.
262            *
263            * @param beanIdentifier the Spring bean ID for this bean
264            */
265            public void setBeanIdentifier(java.lang.String beanIdentifier) {
266                    _journalTemplateLocalService.setBeanIdentifier(beanIdentifier);
267            }
268    
269            public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
270                    long userId, long groupId, java.lang.String templateId,
271                    boolean autoTemplateId, java.lang.String structureId,
272                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
273                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
274                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
275                    boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
276                    java.io.File smallImageFile,
277                    com.liferay.portal.service.ServiceContext serviceContext)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    return _journalTemplateLocalService.addTemplate(userId, groupId,
281                            templateId, autoTemplateId, structureId, nameMap, descriptionMap,
282                            xsl, formatXsl, langType, cacheable, smallImage, smallImageURL,
283                            smallImageFile, serviceContext);
284            }
285    
286            public void addTemplateResources(long groupId, java.lang.String templateId,
287                    boolean addGroupPermissions, boolean addGuestPermissions)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    _journalTemplateLocalService.addTemplateResources(groupId, templateId,
291                            addGroupPermissions, addGuestPermissions);
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(long groupId, java.lang.String templateId,
304                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
305                    throws com.liferay.portal.kernel.exception.PortalException,
306                            com.liferay.portal.kernel.exception.SystemException {
307                    _journalTemplateLocalService.addTemplateResources(groupId, templateId,
308                            groupPermissions, guestPermissions);
309            }
310    
311            public void addTemplateResources(
312                    com.liferay.portlet.journal.model.JournalTemplate template,
313                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
314                    throws com.liferay.portal.kernel.exception.PortalException,
315                            com.liferay.portal.kernel.exception.SystemException {
316                    _journalTemplateLocalService.addTemplateResources(template,
317                            groupPermissions, guestPermissions);
318            }
319    
320            public void checkNewLine(long groupId, java.lang.String templateId)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException {
323                    _journalTemplateLocalService.checkNewLine(groupId, templateId);
324            }
325    
326            public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
327                    long userId, long groupId, java.lang.String oldTemplateId,
328                    java.lang.String newTemplateId, boolean autoTemplateId)
329                    throws com.liferay.portal.kernel.exception.PortalException,
330                            com.liferay.portal.kernel.exception.SystemException {
331                    return _journalTemplateLocalService.copyTemplate(userId, groupId,
332                            oldTemplateId, newTemplateId, autoTemplateId);
333            }
334    
335            public void deleteTemplate(long groupId, java.lang.String templateId)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    _journalTemplateLocalService.deleteTemplate(groupId, templateId);
339            }
340    
341            public void deleteTemplate(
342                    com.liferay.portlet.journal.model.JournalTemplate template)
343                    throws com.liferay.portal.kernel.exception.PortalException,
344                            com.liferay.portal.kernel.exception.SystemException {
345                    _journalTemplateLocalService.deleteTemplate(template);
346            }
347    
348            public void deleteTemplates(long groupId)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    _journalTemplateLocalService.deleteTemplates(groupId);
352            }
353    
354            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
355                    long groupId, java.lang.String structureId)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return _journalTemplateLocalService.getStructureTemplates(groupId,
358                            structureId);
359            }
360    
361            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
362                    long groupId, java.lang.String structureId, int start, int end)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _journalTemplateLocalService.getStructureTemplates(groupId,
365                            structureId, start, end);
366            }
367    
368            public int getStructureTemplatesCount(long groupId,
369                    java.lang.String structureId)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return _journalTemplateLocalService.getStructureTemplatesCount(groupId,
372                            structureId);
373            }
374    
375            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
376                    long id)
377                    throws com.liferay.portal.kernel.exception.PortalException,
378                            com.liferay.portal.kernel.exception.SystemException {
379                    return _journalTemplateLocalService.getTemplate(id);
380            }
381    
382            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
383                    long groupId, java.lang.String templateId)
384                    throws com.liferay.portal.kernel.exception.PortalException,
385                            com.liferay.portal.kernel.exception.SystemException {
386                    return _journalTemplateLocalService.getTemplate(groupId, templateId);
387            }
388    
389            public com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
390                    long smallImageId)
391                    throws com.liferay.portal.kernel.exception.PortalException,
392                            com.liferay.portal.kernel.exception.SystemException {
393                    return _journalTemplateLocalService.getTemplateBySmallImageId(smallImageId);
394            }
395    
396            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return _journalTemplateLocalService.getTemplates();
399            }
400    
401            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
402                    long groupId)
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    return _journalTemplateLocalService.getTemplates(groupId);
405            }
406    
407            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
408                    long groupId, int start, int end)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    return _journalTemplateLocalService.getTemplates(groupId, start, end);
411            }
412    
413            public int getTemplatesCount(long groupId)
414                    throws com.liferay.portal.kernel.exception.SystemException {
415                    return _journalTemplateLocalService.getTemplatesCount(groupId);
416            }
417    
418            public boolean hasTemplate(long groupId, java.lang.String templateId)
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return _journalTemplateLocalService.hasTemplate(groupId, templateId);
421            }
422    
423            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
424                    long companyId, long[] groupIds, java.lang.String keywords,
425                    java.lang.String structureId, java.lang.String structureIdComparator,
426                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
427                    throws com.liferay.portal.kernel.exception.SystemException {
428                    return _journalTemplateLocalService.search(companyId, groupIds,
429                            keywords, structureId, structureIdComparator, start, end, obc);
430            }
431    
432            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
433                    long companyId, long[] groupIds, java.lang.String templateId,
434                    java.lang.String structureId, java.lang.String structureIdComparator,
435                    java.lang.String name, java.lang.String description,
436                    boolean andOperator, int start, int end,
437                    com.liferay.portal.kernel.util.OrderByComparator obc)
438                    throws com.liferay.portal.kernel.exception.SystemException {
439                    return _journalTemplateLocalService.search(companyId, groupIds,
440                            templateId, structureId, structureIdComparator, name, description,
441                            andOperator, start, end, obc);
442            }
443    
444            public int searchCount(long companyId, long[] groupIds,
445                    java.lang.String keywords, java.lang.String structureId,
446                    java.lang.String structureIdComparator)
447                    throws com.liferay.portal.kernel.exception.SystemException {
448                    return _journalTemplateLocalService.searchCount(companyId, groupIds,
449                            keywords, structureId, structureIdComparator);
450            }
451    
452            public int searchCount(long companyId, long[] groupIds,
453                    java.lang.String templateId, java.lang.String structureId,
454                    java.lang.String structureIdComparator, java.lang.String name,
455                    java.lang.String description, boolean andOperator)
456                    throws com.liferay.portal.kernel.exception.SystemException {
457                    return _journalTemplateLocalService.searchCount(companyId, groupIds,
458                            templateId, structureId, structureIdComparator, name, description,
459                            andOperator);
460            }
461    
462            public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
463                    long groupId, java.lang.String templateId,
464                    java.lang.String structureId,
465                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
466                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
467                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
468                    boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
469                    java.io.File smallImageFile,
470                    com.liferay.portal.service.ServiceContext serviceContext)
471                    throws com.liferay.portal.kernel.exception.PortalException,
472                            com.liferay.portal.kernel.exception.SystemException {
473                    return _journalTemplateLocalService.updateTemplate(groupId, templateId,
474                            structureId, nameMap, descriptionMap, xsl, formatXsl, langType,
475                            cacheable, smallImage, smallImageURL, smallImageFile, serviceContext);
476            }
477    
478            public JournalTemplateLocalService getWrappedJournalTemplateLocalService() {
479                    return _journalTemplateLocalService;
480            }
481    
482            public void setWrappedJournalTemplateLocalService(
483                    JournalTemplateLocalService journalTemplateLocalService) {
484                    _journalTemplateLocalService = journalTemplateLocalService;
485            }
486    
487            private JournalTemplateLocalService _journalTemplateLocalService;
488    }