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.dynamicdatamapping.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link DDMTemplateLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DDMTemplateLocalService
026     * @generated
027     */
028    public class DDMTemplateLocalServiceWrapper implements DDMTemplateLocalService,
029            ServiceWrapper<DDMTemplateLocalService> {
030            public DDMTemplateLocalServiceWrapper(
031                    DDMTemplateLocalService ddmTemplateLocalService) {
032                    _ddmTemplateLocalService = ddmTemplateLocalService;
033            }
034    
035            /**
036            * Adds the d d m template to the database. Also notifies the appropriate model listeners.
037            *
038            * @param ddmTemplate the d d m template
039            * @return the d d m template that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate addDDMTemplate(
043                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _ddmTemplateLocalService.addDDMTemplate(ddmTemplate);
046            }
047    
048            /**
049            * Creates a new d d m template with the primary key. Does not add the d d m template to the database.
050            *
051            * @param templateId the primary key for the new d d m template
052            * @return the new d d m template
053            */
054            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate createDDMTemplate(
055                    long templateId) {
056                    return _ddmTemplateLocalService.createDDMTemplate(templateId);
057            }
058    
059            /**
060            * Deletes the d d m template with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param templateId the primary key of the d d m template
063            * @return the d d m template that was removed
064            * @throws PortalException if a d d m template with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate deleteDDMTemplate(
068                    long templateId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _ddmTemplateLocalService.deleteDDMTemplate(templateId);
072            }
073    
074            /**
075            * Deletes the d d m template from the database. Also notifies the appropriate model listeners.
076            *
077            * @param ddmTemplate the d d m template
078            * @return the d d m template that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate deleteDDMTemplate(
082                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _ddmTemplateLocalService.deleteDDMTemplate(ddmTemplate);
085            }
086    
087            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
088                    return _ddmTemplateLocalService.dynamicQuery();
089            }
090    
091            /**
092            * Performs a dynamic query on the database and returns the matching rows.
093            *
094            * @param dynamicQuery the dynamic query
095            * @return the matching rows
096            * @throws SystemException if a system exception occurred
097            */
098            @SuppressWarnings("rawtypes")
099            public java.util.List dynamicQuery(
100                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _ddmTemplateLocalService.dynamicQuery(dynamicQuery);
103            }
104    
105            /**
106            * Performs a dynamic query on the database and returns a range of the matching rows.
107            *
108            * <p>
109            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
110            * </p>
111            *
112            * @param dynamicQuery the dynamic query
113            * @param start the lower bound of the range of model instances
114            * @param end the upper bound of the range of model instances (not inclusive)
115            * @return the range of matching rows
116            * @throws SystemException if a system exception occurred
117            */
118            @SuppressWarnings("rawtypes")
119            public java.util.List dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121                    int end) throws com.liferay.portal.kernel.exception.SystemException {
122                    return _ddmTemplateLocalService.dynamicQuery(dynamicQuery, start, end);
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
127            *
128            * <p>
129            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
130            * </p>
131            *
132            * @param dynamicQuery the dynamic query
133            * @param start the lower bound of the range of model instances
134            * @param end the upper bound of the range of model instances (not inclusive)
135            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
136            * @return the ordered range of matching rows
137            * @throws SystemException if a system exception occurred
138            */
139            @SuppressWarnings("rawtypes")
140            public java.util.List dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142                    int end,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return _ddmTemplateLocalService.dynamicQuery(dynamicQuery, start, end,
146                            orderByComparator);
147            }
148    
149            /**
150            * Returns the number of rows that match the dynamic query.
151            *
152            * @param dynamicQuery the dynamic query
153            * @return the number of rows that match the dynamic query
154            * @throws SystemException if a system exception occurred
155            */
156            public long dynamicQueryCount(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _ddmTemplateLocalService.dynamicQueryCount(dynamicQuery);
160            }
161    
162            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchDDMTemplate(
163                    long templateId)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _ddmTemplateLocalService.fetchDDMTemplate(templateId);
166            }
167    
168            /**
169            * Returns the d d m template with the primary key.
170            *
171            * @param templateId the primary key of the d d m template
172            * @return the d d m template
173            * @throws PortalException if a d d m template with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getDDMTemplate(
177                    long templateId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _ddmTemplateLocalService.getDDMTemplate(templateId);
181            }
182    
183            public com.liferay.portal.model.PersistedModel getPersistedModel(
184                    java.io.Serializable primaryKeyObj)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _ddmTemplateLocalService.getPersistedModel(primaryKeyObj);
188            }
189    
190            /**
191            * Returns the d d m template with the UUID in the group.
192            *
193            * @param uuid the UUID of d d m template
194            * @param groupId the group id of the d d m template
195            * @return the d d m template
196            * @throws PortalException if a d d m template with the UUID in the group could not be found
197            * @throws SystemException if a system exception occurred
198            */
199            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getDDMTemplateByUuidAndGroupId(
200                    java.lang.String uuid, long groupId)
201                    throws com.liferay.portal.kernel.exception.PortalException,
202                            com.liferay.portal.kernel.exception.SystemException {
203                    return _ddmTemplateLocalService.getDDMTemplateByUuidAndGroupId(uuid,
204                            groupId);
205            }
206    
207            /**
208            * Returns a range of all the d d m templates.
209            *
210            * <p>
211            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
212            * </p>
213            *
214            * @param start the lower bound of the range of d d m templates
215            * @param end the upper bound of the range of d d m templates (not inclusive)
216            * @return the range of d d m templates
217            * @throws SystemException if a system exception occurred
218            */
219            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getDDMTemplates(
220                    int start, int end)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _ddmTemplateLocalService.getDDMTemplates(start, end);
223            }
224    
225            /**
226            * Returns the number of d d m templates.
227            *
228            * @return the number of d d m templates
229            * @throws SystemException if a system exception occurred
230            */
231            public int getDDMTemplatesCount()
232                    throws com.liferay.portal.kernel.exception.SystemException {
233                    return _ddmTemplateLocalService.getDDMTemplatesCount();
234            }
235    
236            /**
237            * Updates the d d m template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
238            *
239            * @param ddmTemplate the d d m template
240            * @return the d d m template that was updated
241            * @throws SystemException if a system exception occurred
242            */
243            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateDDMTemplate(
244                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate)
245                    throws com.liferay.portal.kernel.exception.SystemException {
246                    return _ddmTemplateLocalService.updateDDMTemplate(ddmTemplate);
247            }
248    
249            /**
250            * Returns the Spring bean ID for this bean.
251            *
252            * @return the Spring bean ID for this bean
253            */
254            public java.lang.String getBeanIdentifier() {
255                    return _ddmTemplateLocalService.getBeanIdentifier();
256            }
257    
258            /**
259            * Sets the Spring bean ID for this bean.
260            *
261            * @param beanIdentifier the Spring bean ID for this bean
262            */
263            public void setBeanIdentifier(java.lang.String beanIdentifier) {
264                    _ddmTemplateLocalService.setBeanIdentifier(beanIdentifier);
265            }
266    
267            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate addTemplate(
268                    long userId, long groupId, long classNameId, long classPK,
269                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
270                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
271                    java.lang.String type, java.lang.String mode,
272                    java.lang.String language, java.lang.String script,
273                    com.liferay.portal.service.ServiceContext serviceContext)
274                    throws com.liferay.portal.kernel.exception.PortalException,
275                            com.liferay.portal.kernel.exception.SystemException {
276                    return _ddmTemplateLocalService.addTemplate(userId, groupId,
277                            classNameId, classPK, nameMap, descriptionMap, type, mode,
278                            language, script, serviceContext);
279            }
280    
281            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate addTemplate(
282                    long userId, long groupId, long classNameId, long classPK,
283                    java.lang.String templateKey,
284                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
285                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
286                    java.lang.String type, java.lang.String mode,
287                    java.lang.String language, java.lang.String script, boolean cacheable,
288                    boolean smallImage, java.lang.String smallImageURL,
289                    java.io.File smallImageFile,
290                    com.liferay.portal.service.ServiceContext serviceContext)
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException {
293                    return _ddmTemplateLocalService.addTemplate(userId, groupId,
294                            classNameId, classPK, templateKey, nameMap, descriptionMap, type,
295                            mode, language, script, cacheable, smallImage, smallImageURL,
296                            smallImageFile, serviceContext);
297            }
298    
299            public void addTemplateResources(
300                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template,
301                    boolean addGroupPermissions, boolean addGuestPermissions)
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException {
304                    _ddmTemplateLocalService.addTemplateResources(template,
305                            addGroupPermissions, addGuestPermissions);
306            }
307    
308            public void addTemplateResources(
309                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template,
310                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    _ddmTemplateLocalService.addTemplateResources(template,
314                            groupPermissions, guestPermissions);
315            }
316    
317            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate copyTemplate(
318                    long userId, long templateId,
319                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
320                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
321                    com.liferay.portal.service.ServiceContext serviceContext)
322                    throws com.liferay.portal.kernel.exception.PortalException,
323                            com.liferay.portal.kernel.exception.SystemException {
324                    return _ddmTemplateLocalService.copyTemplate(userId, templateId,
325                            nameMap, descriptionMap, serviceContext);
326            }
327    
328            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> copyTemplates(
329                    long userId, long classNameId, long oldClassPK, long newClassPK,
330                    java.lang.String type,
331                    com.liferay.portal.service.ServiceContext serviceContext)
332                    throws com.liferay.portal.kernel.exception.PortalException,
333                            com.liferay.portal.kernel.exception.SystemException {
334                    return _ddmTemplateLocalService.copyTemplates(userId, classNameId,
335                            oldClassPK, newClassPK, type, serviceContext);
336            }
337    
338            public void deleteTemplate(
339                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template)
340                    throws com.liferay.portal.kernel.exception.PortalException,
341                            com.liferay.portal.kernel.exception.SystemException {
342                    _ddmTemplateLocalService.deleteTemplate(template);
343            }
344    
345            public void deleteTemplate(long templateId)
346                    throws com.liferay.portal.kernel.exception.PortalException,
347                            com.liferay.portal.kernel.exception.SystemException {
348                    _ddmTemplateLocalService.deleteTemplate(templateId);
349            }
350    
351            public void deleteTemplates(long groupId)
352                    throws com.liferay.portal.kernel.exception.PortalException,
353                            com.liferay.portal.kernel.exception.SystemException {
354                    _ddmTemplateLocalService.deleteTemplates(groupId);
355            }
356    
357            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchTemplate(
358                    long groupId, java.lang.String templateKey)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return _ddmTemplateLocalService.fetchTemplate(groupId, templateKey);
361            }
362    
363            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
364                    long templateId)
365                    throws com.liferay.portal.kernel.exception.PortalException,
366                            com.liferay.portal.kernel.exception.SystemException {
367                    return _ddmTemplateLocalService.getTemplate(templateId);
368            }
369    
370            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
371                    long groupId, java.lang.String templateKey)
372                    throws com.liferay.portal.kernel.exception.PortalException,
373                            com.liferay.portal.kernel.exception.SystemException {
374                    return _ddmTemplateLocalService.getTemplate(groupId, templateKey);
375            }
376    
377            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
378                    long groupId, java.lang.String templateKey,
379                    boolean includeGlobalTemplates)
380                    throws com.liferay.portal.kernel.exception.PortalException,
381                            com.liferay.portal.kernel.exception.SystemException {
382                    return _ddmTemplateLocalService.getTemplate(groupId, templateKey,
383                            includeGlobalTemplates);
384            }
385    
386            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
387                    long classPK)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _ddmTemplateLocalService.getTemplates(classPK);
390            }
391    
392            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
393                    long groupId, long classNameId)
394                    throws com.liferay.portal.kernel.exception.SystemException {
395                    return _ddmTemplateLocalService.getTemplates(groupId, classNameId);
396            }
397    
398            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
399                    long groupId, long classNameId, long classPK)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    return _ddmTemplateLocalService.getTemplates(groupId, classNameId,
402                            classPK);
403            }
404    
405            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
406                    long classNameId, long classPK, java.lang.String type)
407                    throws com.liferay.portal.kernel.exception.SystemException {
408                    return _ddmTemplateLocalService.getTemplates(classNameId, classPK, type);
409            }
410    
411            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
412                    long classNameId, long classPK, java.lang.String type,
413                    java.lang.String mode)
414                    throws com.liferay.portal.kernel.exception.SystemException {
415                    return _ddmTemplateLocalService.getTemplates(classNameId, classPK,
416                            type, mode);
417            }
418    
419            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
420                    long companyId, long groupId, long classNameId, long classPK,
421                    java.lang.String keywords, java.lang.String type,
422                    java.lang.String mode, int start, int end,
423                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
424                    throws com.liferay.portal.kernel.exception.SystemException {
425                    return _ddmTemplateLocalService.search(companyId, groupId, classNameId,
426                            classPK, keywords, type, mode, start, end, orderByComparator);
427            }
428    
429            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
430                    long companyId, long groupId, long classNameId, long classPK,
431                    java.lang.String name, java.lang.String description,
432                    java.lang.String type, java.lang.String mode,
433                    java.lang.String language, boolean andOperator, int start, int end,
434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435                    throws com.liferay.portal.kernel.exception.SystemException {
436                    return _ddmTemplateLocalService.search(companyId, groupId, classNameId,
437                            classPK, name, description, type, mode, language, andOperator,
438                            start, end, orderByComparator);
439            }
440    
441            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
442                    long companyId, long[] groupIds, long[] classNameIds, long classPK,
443                    java.lang.String keywords, java.lang.String type,
444                    java.lang.String mode, int start, int end,
445                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    return _ddmTemplateLocalService.search(companyId, groupIds,
448                            classNameIds, classPK, keywords, type, mode, start, end,
449                            orderByComparator);
450            }
451    
452            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
453                    long companyId, long[] groupIds, long[] classNameIds, long classPK,
454                    java.lang.String name, java.lang.String description,
455                    java.lang.String type, java.lang.String mode,
456                    java.lang.String language, boolean andOperator, int start, int end,
457                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
458                    throws com.liferay.portal.kernel.exception.SystemException {
459                    return _ddmTemplateLocalService.search(companyId, groupIds,
460                            classNameIds, classPK, name, description, type, mode, language,
461                            andOperator, start, end, orderByComparator);
462            }
463    
464            public int searchCount(long companyId, long groupId, long classNameId,
465                    long classPK, java.lang.String keywords, java.lang.String type,
466                    java.lang.String mode)
467                    throws com.liferay.portal.kernel.exception.SystemException {
468                    return _ddmTemplateLocalService.searchCount(companyId, groupId,
469                            classNameId, classPK, keywords, type, mode);
470            }
471    
472            public int searchCount(long companyId, long groupId, long classNameId,
473                    long classPK, java.lang.String name, java.lang.String description,
474                    java.lang.String type, java.lang.String mode,
475                    java.lang.String language, boolean andOperator)
476                    throws com.liferay.portal.kernel.exception.SystemException {
477                    return _ddmTemplateLocalService.searchCount(companyId, groupId,
478                            classNameId, classPK, name, description, type, mode, language,
479                            andOperator);
480            }
481    
482            public int searchCount(long companyId, long[] groupIds,
483                    long[] classNameIds, long classPK, java.lang.String keywords,
484                    java.lang.String type, java.lang.String mode)
485                    throws com.liferay.portal.kernel.exception.SystemException {
486                    return _ddmTemplateLocalService.searchCount(companyId, groupIds,
487                            classNameIds, classPK, keywords, type, mode);
488            }
489    
490            public int searchCount(long companyId, long[] groupIds,
491                    long[] classNameIds, long classPK, java.lang.String name,
492                    java.lang.String description, java.lang.String type,
493                    java.lang.String mode, java.lang.String language, boolean andOperator)
494                    throws com.liferay.portal.kernel.exception.SystemException {
495                    return _ddmTemplateLocalService.searchCount(companyId, groupIds,
496                            classNameIds, classPK, name, description, type, mode, language,
497                            andOperator);
498            }
499    
500            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateTemplate(
501                    long templateId,
502                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
503                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
504                    java.lang.String type, java.lang.String mode,
505                    java.lang.String language, java.lang.String script, boolean cacheable,
506                    boolean smallImage, java.lang.String smallImageURL,
507                    java.io.File smallImageFile,
508                    com.liferay.portal.service.ServiceContext serviceContext)
509                    throws com.liferay.portal.kernel.exception.PortalException,
510                            com.liferay.portal.kernel.exception.SystemException {
511                    return _ddmTemplateLocalService.updateTemplate(templateId, nameMap,
512                            descriptionMap, type, mode, language, script, cacheable,
513                            smallImage, smallImageURL, smallImageFile, serviceContext);
514            }
515    
516            /**
517             * @deprecated Renamed to {@link #getWrappedService}
518             */
519            public DDMTemplateLocalService getWrappedDDMTemplateLocalService() {
520                    return _ddmTemplateLocalService;
521            }
522    
523            /**
524             * @deprecated Renamed to {@link #setWrappedService}
525             */
526            public void setWrappedDDMTemplateLocalService(
527                    DDMTemplateLocalService ddmTemplateLocalService) {
528                    _ddmTemplateLocalService = ddmTemplateLocalService;
529            }
530    
531            public DDMTemplateLocalService getWrappedService() {
532                    return _ddmTemplateLocalService;
533            }
534    
535            public void setWrappedService(
536                    DDMTemplateLocalService ddmTemplateLocalService) {
537                    _ddmTemplateLocalService = ddmTemplateLocalService;
538            }
539    
540            private DDMTemplateLocalService _ddmTemplateLocalService;
541    }