001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.lang.String name, java.lang.String description,
273                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
274                    boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
275                    java.io.File smallFile,
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, name, description, xsl,
281                            formatXsl, langType, cacheable, smallImage, smallImageURL,
282                            smallFile, serviceContext);
283            }
284    
285            public void addTemplateResources(
286                    com.liferay.portlet.journal.model.JournalTemplate template,
287                    boolean addCommunityPermissions, boolean addGuestPermissions)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    _journalTemplateLocalService.addTemplateResources(template,
291                            addCommunityPermissions, addGuestPermissions);
292            }
293    
294            public void addTemplateResources(
295                    com.liferay.portlet.journal.model.JournalTemplate template,
296                    java.lang.String[] communityPermissions,
297                    java.lang.String[] guestPermissions)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException {
300                    _journalTemplateLocalService.addTemplateResources(template,
301                            communityPermissions, guestPermissions);
302            }
303    
304            public void addTemplateResources(long groupId, java.lang.String templateId,
305                    boolean addCommunityPermissions, boolean addGuestPermissions)
306                    throws com.liferay.portal.kernel.exception.PortalException,
307                            com.liferay.portal.kernel.exception.SystemException {
308                    _journalTemplateLocalService.addTemplateResources(groupId, templateId,
309                            addCommunityPermissions, addGuestPermissions);
310            }
311    
312            public void addTemplateResources(long groupId, java.lang.String templateId,
313                    java.lang.String[] communityPermissions,
314                    java.lang.String[] guestPermissions)
315                    throws com.liferay.portal.kernel.exception.PortalException,
316                            com.liferay.portal.kernel.exception.SystemException {
317                    _journalTemplateLocalService.addTemplateResources(groupId, templateId,
318                            communityPermissions, guestPermissions);
319            }
320    
321            public void checkNewLine(long groupId, java.lang.String templateId)
322                    throws com.liferay.portal.kernel.exception.PortalException,
323                            com.liferay.portal.kernel.exception.SystemException {
324                    _journalTemplateLocalService.checkNewLine(groupId, templateId);
325            }
326    
327            public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
328                    long userId, long groupId, java.lang.String oldTemplateId,
329                    java.lang.String newTemplateId, boolean autoTemplateId)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    return _journalTemplateLocalService.copyTemplate(userId, groupId,
333                            oldTemplateId, newTemplateId, autoTemplateId);
334            }
335    
336            public void deleteTemplate(
337                    com.liferay.portlet.journal.model.JournalTemplate template)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException {
340                    _journalTemplateLocalService.deleteTemplate(template);
341            }
342    
343            public void deleteTemplate(long groupId, java.lang.String templateId)
344                    throws com.liferay.portal.kernel.exception.PortalException,
345                            com.liferay.portal.kernel.exception.SystemException {
346                    _journalTemplateLocalService.deleteTemplate(groupId, templateId);
347            }
348    
349            public void deleteTemplates(long groupId)
350                    throws com.liferay.portal.kernel.exception.PortalException,
351                            com.liferay.portal.kernel.exception.SystemException {
352                    _journalTemplateLocalService.deleteTemplates(groupId);
353            }
354    
355            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
356                    long groupId, java.lang.String structureId)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return _journalTemplateLocalService.getStructureTemplates(groupId,
359                            structureId);
360            }
361    
362            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
363                    long groupId, java.lang.String structureId, int start, int end)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return _journalTemplateLocalService.getStructureTemplates(groupId,
366                            structureId, start, end);
367            }
368    
369            public int getStructureTemplatesCount(long groupId,
370                    java.lang.String structureId)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return _journalTemplateLocalService.getStructureTemplatesCount(groupId,
373                            structureId);
374            }
375    
376            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
377                    long id)
378                    throws com.liferay.portal.kernel.exception.PortalException,
379                            com.liferay.portal.kernel.exception.SystemException {
380                    return _journalTemplateLocalService.getTemplate(id);
381            }
382    
383            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
384                    long groupId, java.lang.String templateId)
385                    throws com.liferay.portal.kernel.exception.PortalException,
386                            com.liferay.portal.kernel.exception.SystemException {
387                    return _journalTemplateLocalService.getTemplate(groupId, templateId);
388            }
389    
390            public com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
391                    long smallImageId)
392                    throws com.liferay.portal.kernel.exception.PortalException,
393                            com.liferay.portal.kernel.exception.SystemException {
394                    return _journalTemplateLocalService.getTemplateBySmallImageId(smallImageId);
395            }
396    
397            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return _journalTemplateLocalService.getTemplates();
400            }
401    
402            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
403                    long groupId)
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    return _journalTemplateLocalService.getTemplates(groupId);
406            }
407    
408            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
409                    long groupId, int start, int end)
410                    throws com.liferay.portal.kernel.exception.SystemException {
411                    return _journalTemplateLocalService.getTemplates(groupId, start, end);
412            }
413    
414            public int getTemplatesCount(long groupId)
415                    throws com.liferay.portal.kernel.exception.SystemException {
416                    return _journalTemplateLocalService.getTemplatesCount(groupId);
417            }
418    
419            public boolean hasTemplate(long groupId, java.lang.String templateId)
420                    throws com.liferay.portal.kernel.exception.SystemException {
421                    return _journalTemplateLocalService.hasTemplate(groupId, templateId);
422            }
423    
424            /**
425            * @deprecated {@link #search(long, long[], String, String, String, int,
426            int, OrderByComparator)}
427            */
428            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
429                    long companyId, long groupId, java.lang.String keywords,
430                    java.lang.String structureId, java.lang.String structureIdComparator,
431                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
432                    throws com.liferay.portal.kernel.exception.SystemException {
433                    return _journalTemplateLocalService.search(companyId, groupId,
434                            keywords, structureId, structureIdComparator, start, end, obc);
435            }
436    
437            /**
438            * @deprecated {@link #search(long, long[], String, String, String, String,
439            String, boolean, int, int, OrderByComparator)}
440            */
441            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
442                    long companyId, long groupId, java.lang.String templateId,
443                    java.lang.String structureId, java.lang.String structureIdComparator,
444                    java.lang.String name, java.lang.String description,
445                    boolean andOperator, int start, int end,
446                    com.liferay.portal.kernel.util.OrderByComparator obc)
447                    throws com.liferay.portal.kernel.exception.SystemException {
448                    return _journalTemplateLocalService.search(companyId, groupId,
449                            templateId, structureId, structureIdComparator, name, description,
450                            andOperator, start, end, obc);
451            }
452    
453            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
454                    long companyId, long[] groupIds, java.lang.String keywords,
455                    java.lang.String structureId, java.lang.String structureIdComparator,
456                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    return _journalTemplateLocalService.search(companyId, groupIds,
459                            keywords, structureId, structureIdComparator, start, end, obc);
460            }
461    
462            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
463                    long companyId, long[] groupIds, java.lang.String templateId,
464                    java.lang.String structureId, java.lang.String structureIdComparator,
465                    java.lang.String name, java.lang.String description,
466                    boolean andOperator, int start, int end,
467                    com.liferay.portal.kernel.util.OrderByComparator obc)
468                    throws com.liferay.portal.kernel.exception.SystemException {
469                    return _journalTemplateLocalService.search(companyId, groupIds,
470                            templateId, structureId, structureIdComparator, name, description,
471                            andOperator, start, end, obc);
472            }
473    
474            /**
475            * @deprecated {@link #searchCount(long, long[], String, String, String)}
476            */
477            public int searchCount(long companyId, long groupId,
478                    java.lang.String keywords, java.lang.String structureId,
479                    java.lang.String structureIdComparator)
480                    throws com.liferay.portal.kernel.exception.SystemException {
481                    return _journalTemplateLocalService.searchCount(companyId, groupId,
482                            keywords, structureId, structureIdComparator);
483            }
484    
485            /**
486            * @deprecated {@link #searchCount(long, long[], String, String, String,
487            String, String, boolean)}
488            */
489            public int searchCount(long companyId, long groupId,
490                    java.lang.String templateId, java.lang.String structureId,
491                    java.lang.String structureIdComparator, java.lang.String name,
492                    java.lang.String description, boolean andOperator)
493                    throws com.liferay.portal.kernel.exception.SystemException {
494                    return _journalTemplateLocalService.searchCount(companyId, groupId,
495                            templateId, structureId, structureIdComparator, name, description,
496                            andOperator);
497            }
498    
499            public int searchCount(long companyId, long[] groupIds,
500                    java.lang.String keywords, java.lang.String structureId,
501                    java.lang.String structureIdComparator)
502                    throws com.liferay.portal.kernel.exception.SystemException {
503                    return _journalTemplateLocalService.searchCount(companyId, groupIds,
504                            keywords, structureId, structureIdComparator);
505            }
506    
507            public int searchCount(long companyId, long[] groupIds,
508                    java.lang.String templateId, java.lang.String structureId,
509                    java.lang.String structureIdComparator, java.lang.String name,
510                    java.lang.String description, boolean andOperator)
511                    throws com.liferay.portal.kernel.exception.SystemException {
512                    return _journalTemplateLocalService.searchCount(companyId, groupIds,
513                            templateId, structureId, structureIdComparator, name, description,
514                            andOperator);
515            }
516    
517            public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
518                    long groupId, java.lang.String templateId,
519                    java.lang.String structureId, java.lang.String name,
520                    java.lang.String description, java.lang.String xsl, boolean formatXsl,
521                    java.lang.String langType, boolean cacheable, boolean smallImage,
522                    java.lang.String smallImageURL, java.io.File smallFile,
523                    com.liferay.portal.service.ServiceContext serviceContext)
524                    throws com.liferay.portal.kernel.exception.PortalException,
525                            com.liferay.portal.kernel.exception.SystemException {
526                    return _journalTemplateLocalService.updateTemplate(groupId, templateId,
527                            structureId, name, description, xsl, formatXsl, langType,
528                            cacheable, smallImage, smallImageURL, smallFile, serviceContext);
529            }
530    
531            public JournalTemplateLocalService getWrappedJournalTemplateLocalService() {
532                    return _journalTemplateLocalService;
533            }
534    
535            public void setWrappedJournalTemplateLocalService(
536                    JournalTemplateLocalService journalTemplateLocalService) {
537                    _journalTemplateLocalService = journalTemplateLocalService;
538            }
539    
540            private JournalTemplateLocalService _journalTemplateLocalService;
541    }