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            /**
268            * Adds a template.
269            *
270            * @param userId the primary key of the template's creator/owner
271            * @param groupId the primary key of the group
272            * @param classNameId the primary key of the class name for template's
273            related model
274            * @param classPK the primary key of the template's related entity
275            * @param nameMap the template's locales and localized names
276            * @param descriptionMap the template's locales and localized descriptions
277            * @param type the template's type. For more information, see {@link
278            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
279            * @param mode the template's mode. For more information, see {@link
280            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
281            * @param language the template's script language. For more information,
282            see {@link
283            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
284            * @param script the template's script
285            * @param serviceContext the template's service context. Can set the UUID,
286            creation date, modification date, guest permissions, and group
287            permissions for the template.
288            * @return the template
289            * @throws PortalException if a portal exception occurred
290            * @throws SystemException if a system exception occurred
291            */
292            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate addTemplate(
293                    long userId, long groupId, long classNameId, long classPK,
294                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
295                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
296                    java.lang.String type, java.lang.String mode,
297                    java.lang.String language, java.lang.String script,
298                    com.liferay.portal.service.ServiceContext serviceContext)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    return _ddmTemplateLocalService.addTemplate(userId, groupId,
302                            classNameId, classPK, nameMap, descriptionMap, type, mode,
303                            language, script, serviceContext);
304            }
305    
306            /**
307            * Adds a template with additional parameters.
308            *
309            * @param userId the primary key of the template's creator/owner
310            * @param groupId the primary key of the group
311            * @param classNameId the primary key of the class name for template's
312            related model
313            * @param classPK the primary key of the template's related entity
314            * @param templateKey the unique string identifying the template
315            (optionally <code>null</code>)
316            * @param nameMap the template's locales and localized names
317            * @param descriptionMap the template's locales and localized descriptions
318            * @param type the template's type. For more information, see {@link
319            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
320            * @param mode the template's mode. For more information, see {@link
321            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
322            * @param language the template's script language. For more information,
323            see {@link
324            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
325            * @param script the template's script
326            * @param cacheable whether the template is cacheable
327            * @param smallImage whether the template has a small image
328            * @param smallImageURL the template's small image URL (optionally
329            <code>null</code>)
330            * @param smallImageFile the template's small image file (optionally
331            <code>null</code>)
332            * @param serviceContext the template's service context. Can set the UUID,
333            creation date, modification date, guest permissions, and group
334            permissions for the template.
335            * @return the template
336            * @throws PortalException if a portal exception occurred
337            * @throws SystemException if a system exception occurred
338            */
339            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate addTemplate(
340                    long userId, long groupId, long classNameId, long classPK,
341                    java.lang.String templateKey,
342                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
343                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
344                    java.lang.String type, java.lang.String mode,
345                    java.lang.String language, java.lang.String script, boolean cacheable,
346                    boolean smallImage, java.lang.String smallImageURL,
347                    java.io.File smallImageFile,
348                    com.liferay.portal.service.ServiceContext serviceContext)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    return _ddmTemplateLocalService.addTemplate(userId, groupId,
352                            classNameId, classPK, templateKey, nameMap, descriptionMap, type,
353                            mode, language, script, cacheable, smallImage, smallImageURL,
354                            smallImageFile, serviceContext);
355            }
356    
357            /**
358            * Adds the resources to the template.
359            *
360            * @param template the template to add resources to
361            * @param addGroupPermissions whether to add group permissions
362            * @param addGuestPermissions whether to add guest permissions
363            * @throws PortalException if a portal exception occurred
364            * @throws SystemException if a system exception occurred
365            */
366            public void addTemplateResources(
367                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template,
368                    boolean addGroupPermissions, boolean addGuestPermissions)
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException {
371                    _ddmTemplateLocalService.addTemplateResources(template,
372                            addGroupPermissions, addGuestPermissions);
373            }
374    
375            /**
376            * Adds the model resources with the permissions to the template.
377            *
378            * @param template the template to add resources to
379            * @param groupPermissions the group permissions to be added
380            * @param guestPermissions the guest permissions to be added
381            * @throws PortalException if a portal exception occurred
382            * @throws SystemException if a system exception occurred
383            */
384            public void addTemplateResources(
385                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template,
386                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
387                    throws com.liferay.portal.kernel.exception.PortalException,
388                            com.liferay.portal.kernel.exception.SystemException {
389                    _ddmTemplateLocalService.addTemplateResources(template,
390                            groupPermissions, guestPermissions);
391            }
392    
393            /**
394            * Copies the template, creating a new template with all the values
395            * extracted from the original one. This method supports defining a new name
396            * and description.
397            *
398            * @param userId the primary key of the template's creator/owner
399            * @param templateId the primary key of the template to be copied
400            * @param nameMap the new template's locales and localized names
401            * @param descriptionMap the new template's locales and localized
402            descriptions
403            * @param serviceContext the service context to be applied. Can set the
404            UUID, creation date, modification date, guest permissions, and
405            group permissions for the template.
406            * @return the new template
407            * @throws PortalException if a portal exception occurred
408            * @throws SystemException if a system exception occurred
409            */
410            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate copyTemplate(
411                    long userId, long templateId,
412                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
413                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
414                    com.liferay.portal.service.ServiceContext serviceContext)
415                    throws com.liferay.portal.kernel.exception.PortalException,
416                            com.liferay.portal.kernel.exception.SystemException {
417                    return _ddmTemplateLocalService.copyTemplate(userId, templateId,
418                            nameMap, descriptionMap, serviceContext);
419            }
420    
421            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate copyTemplate(
422                    long userId, long templateId,
423                    com.liferay.portal.service.ServiceContext serviceContext)
424                    throws com.liferay.portal.kernel.exception.PortalException,
425                            com.liferay.portal.kernel.exception.SystemException {
426                    return _ddmTemplateLocalService.copyTemplate(userId, templateId,
427                            serviceContext);
428            }
429    
430            /**
431            * Copies all the templates matching the class name ID, class PK, and type.
432            * This method creates new templates, extracting all the values from the old
433            * ones and updating their class PKs.
434            *
435            * @param userId the primary key of the template's creator/owner
436            * @param classNameId the primary key of the class name for template's
437            related model
438            * @param oldClassPK the primary key of the old template's related entity
439            * @param newClassPK the primary key of the new template's related entity
440            * @param type the template's type. For more information, see {@link
441            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
442            * @param serviceContext the service context to be applied. Can set the
443            creation date, modification date, guest permissions, and group
444            permissions for the new templates.
445            * @return the new templates
446            * @throws PortalException if a portal exception occurred
447            * @throws SystemException if a system exception occurred
448            */
449            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> copyTemplates(
450                    long userId, long classNameId, long oldClassPK, long newClassPK,
451                    java.lang.String type,
452                    com.liferay.portal.service.ServiceContext serviceContext)
453                    throws com.liferay.portal.kernel.exception.PortalException,
454                            com.liferay.portal.kernel.exception.SystemException {
455                    return _ddmTemplateLocalService.copyTemplates(userId, classNameId,
456                            oldClassPK, newClassPK, type, serviceContext);
457            }
458    
459            /**
460            * Deletes the template and its resources.
461            *
462            * @param template the template to be deleted
463            * @throws PortalException if a portal exception occurred
464            * @throws SystemException if a system exception occurred
465            */
466            public void deleteTemplate(
467                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template)
468                    throws com.liferay.portal.kernel.exception.PortalException,
469                            com.liferay.portal.kernel.exception.SystemException {
470                    _ddmTemplateLocalService.deleteTemplate(template);
471            }
472    
473            /**
474            * Deletes the template and its resources.
475            *
476            * @param templateId the primary key of the template to be deleted
477            * @throws PortalException if a portal exception occurred
478            * @throws SystemException if a system exception occurred
479            */
480            public void deleteTemplate(long templateId)
481                    throws com.liferay.portal.kernel.exception.PortalException,
482                            com.liferay.portal.kernel.exception.SystemException {
483                    _ddmTemplateLocalService.deleteTemplate(templateId);
484            }
485    
486            /**
487            * Deletes all the templates of the group.
488            *
489            * @param groupId the primary key of the group
490            * @throws PortalException if a portal exception occurred
491            * @throws SystemException if a system exception occurred
492            */
493            public void deleteTemplates(long groupId)
494                    throws com.liferay.portal.kernel.exception.PortalException,
495                            com.liferay.portal.kernel.exception.SystemException {
496                    _ddmTemplateLocalService.deleteTemplates(groupId);
497            }
498    
499            /**
500            * Returns the template matching the group and template key.
501            *
502            * @param groupId the primary key of the group
503            * @param classNameId the primary key of the class name for template's
504            related model
505            * @param templateKey the unique string identifying the template
506            * @return the matching template, or <code>null</code> if a matching
507            template could not be found
508            * @throws SystemException if a system exception occurred
509            */
510            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchTemplate(
511                    long groupId, long classNameId, java.lang.String templateKey)
512                    throws com.liferay.portal.kernel.exception.SystemException {
513                    return _ddmTemplateLocalService.fetchTemplate(groupId, classNameId,
514                            templateKey);
515            }
516    
517            /**
518            * Returns the template matching the group and template key, optionally in
519            * the global scope.
520            *
521            * <p>
522            * This method first searches in the given group. If the template is still
523            * not found and <code>includeGlobalTemplates</code> is set to
524            * <code>true</code>, this method searches the global group.
525            * </p>
526            *
527            * @param groupId the primary key of the group
528            * @param classNameId the primary key of the class name for template's
529            related model
530            * @param templateKey the unique string identifying the template
531            * @param includeGlobalTemplates whether to include the global scope in the
532            search
533            * @return the matching template, or <code>null</code> if a matching
534            template could not be found
535            * @throws PortalException if a portal exception occurred
536            * @throws SystemException if a system exception occurred
537            */
538            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchTemplate(
539                    long groupId, long classNameId, java.lang.String templateKey,
540                    boolean includeGlobalTemplates)
541                    throws com.liferay.portal.kernel.exception.PortalException,
542                            com.liferay.portal.kernel.exception.SystemException {
543                    return _ddmTemplateLocalService.fetchTemplate(groupId, classNameId,
544                            templateKey, includeGlobalTemplates);
545            }
546    
547            /**
548            * Returns the template matching the UUID and group.
549            *
550            * @param uuid the unique string identifying the template
551            * @param groupId the primary key of the group
552            * @return the matching template, or <code>null</code> if a matching
553            template could not be found
554            * @throws SystemException if a system exception occurred
555            */
556            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchTemplate(
557                    java.lang.String uuid, long groupId)
558                    throws com.liferay.portal.kernel.exception.SystemException {
559                    return _ddmTemplateLocalService.fetchTemplate(uuid, groupId);
560            }
561    
562            /**
563            * Returns the template with the ID.
564            *
565            * @param templateId the primary key of the template
566            * @return the template with the ID
567            * @throws PortalException if a matching template could not be found
568            * @throws SystemException if a system exception occurred
569            */
570            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
571                    long templateId)
572                    throws com.liferay.portal.kernel.exception.PortalException,
573                            com.liferay.portal.kernel.exception.SystemException {
574                    return _ddmTemplateLocalService.getTemplate(templateId);
575            }
576    
577            /**
578            * Returns the template matching the group and template key.
579            *
580            * @param groupId the primary key of the group
581            * @param classNameId the primary key of the class name for template's
582            related model
583            * @param templateKey the unique string identifying the template
584            * @return the matching template
585            * @throws PortalException if a matching template could not be found
586            * @throws SystemException if a system exception occurred
587            */
588            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
589                    long groupId, long classNameId, java.lang.String templateKey)
590                    throws com.liferay.portal.kernel.exception.PortalException,
591                            com.liferay.portal.kernel.exception.SystemException {
592                    return _ddmTemplateLocalService.getTemplate(groupId, classNameId,
593                            templateKey);
594            }
595    
596            /**
597            * Returns the template matching the group and template key, optionally in
598            * the global scope.
599            *
600            * <p>
601            * This method first searches in the group. If the template is still not
602            * found and <code>includeGlobalTemplates</code> is set to
603            * <code>true</code>, this method searches the global group.
604            * </p>
605            *
606            * @param groupId the primary key of the group
607            * @param classNameId the primary key of the class name for template's
608            related model
609            * @param templateKey the unique string identifying the template
610            * @param includeGlobalTemplates whether to include the global scope in the
611            search
612            * @return the matching template
613            * @throws PortalException if a matching template could not be found
614            * @throws SystemException if a system exception occurred
615            */
616            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
617                    long groupId, long classNameId, java.lang.String templateKey,
618                    boolean includeGlobalTemplates)
619                    throws com.liferay.portal.kernel.exception.PortalException,
620                            com.liferay.portal.kernel.exception.SystemException {
621                    return _ddmTemplateLocalService.getTemplate(groupId, classNameId,
622                            templateKey, includeGlobalTemplates);
623            }
624    
625            /**
626            * Returns all the templates with the class PK.
627            *
628            * @param classPK the primary key of the template's related entity
629            * @return the templates with the class PK
630            * @throws SystemException if a system exception occurred
631            */
632            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
633                    long classPK)
634                    throws com.liferay.portal.kernel.exception.SystemException {
635                    return _ddmTemplateLocalService.getTemplates(classPK);
636            }
637    
638            /**
639            * Returns all the templates matching the group and class name ID.
640            *
641            * @param groupId the primary key of the group
642            * @param classNameId the primary key of the class name for template's
643            related model
644            * @return the matching templates
645            * @throws SystemException if a system exception occurred
646            */
647            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
648                    long groupId, long classNameId)
649                    throws com.liferay.portal.kernel.exception.SystemException {
650                    return _ddmTemplateLocalService.getTemplates(groupId, classNameId);
651            }
652    
653            /**
654            * Returns all the templates matching the group, class name ID, and class
655            * PK.
656            *
657            * @param groupId the primary key of the group
658            * @param classNameId the primary key of the class name for template's
659            related model
660            * @param classPK the primary key of the template's related entity
661            * @return the matching templates
662            * @throws SystemException if a system exception occurred
663            */
664            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
665                    long groupId, long classNameId, long classPK)
666                    throws com.liferay.portal.kernel.exception.SystemException {
667                    return _ddmTemplateLocalService.getTemplates(groupId, classNameId,
668                            classPK);
669            }
670    
671            /**
672            * Returns all the templates matching the group, class name ID, class PK,
673            * and type.
674            *
675            * @param groupId the primary key of the group
676            * @param classNameId the primary key of the class name for template's
677            related model
678            * @param classPK the primary key of the template's related entity
679            * @param type the template's type. For more information, see {@link
680            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
681            * @return the matching templates
682            * @throws SystemException if a system exception occurred
683            */
684            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
685                    long groupId, long classNameId, long classPK, java.lang.String type)
686                    throws com.liferay.portal.kernel.exception.SystemException {
687                    return _ddmTemplateLocalService.getTemplates(groupId, classNameId,
688                            classPK, type);
689            }
690    
691            /**
692            * Returns all the templates matching the group, class name ID, class PK,
693            * type, and mode.
694            *
695            * @param groupId the primary key of the group
696            * @param classNameId the primary key of the class name for template's
697            related model
698            * @param classPK the primary key of the template's related entity
699            * @param type the template's type. For more information, see {@link
700            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
701            * @param mode the template's mode. For more information, see {@link
702            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
703            * @return the matching templates
704            * @throws SystemException if a system exception occurred
705            */
706            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
707                    long groupId, long classNameId, long classPK, java.lang.String type,
708                    java.lang.String mode)
709                    throws com.liferay.portal.kernel.exception.SystemException {
710                    return _ddmTemplateLocalService.getTemplates(groupId, classNameId,
711                            classPK, type, mode);
712            }
713    
714            /**
715            * Returns the number of templates belonging to the group.
716            *
717            * @param groupId the primary key of the group
718            * @return the number of templates belonging to the group
719            * @throws SystemException if a system exception occurred
720            */
721            public int getTemplatesCount(long groupId)
722                    throws com.liferay.portal.kernel.exception.SystemException {
723                    return _ddmTemplateLocalService.getTemplatesCount(groupId);
724            }
725    
726            /**
727            * Returns the number of templates matching the group and class name ID.
728            *
729            * @param groupId the primary key of the group
730            * @param classNameId the primary key of the class name for template's
731            related model
732            * @return the number of matching templates
733            * @throws SystemException if a system exception occurred
734            */
735            public int getTemplatesCount(long groupId, long classNameId)
736                    throws com.liferay.portal.kernel.exception.SystemException {
737                    return _ddmTemplateLocalService.getTemplatesCount(groupId, classNameId);
738            }
739    
740            /**
741            * Returns an ordered range of all the templates matching the group, class
742            * name ID, class PK, type, and mode, and matching the keywords in the
743            * template names and descriptions.
744            *
745            * <p>
746            * Useful when paginating results. Returns a maximum of <code>end -
747            * start</code> instances. <code>start</code> and <code>end</code> are not
748            * primary keys, they are indexes in the result set. Thus, <code>0</code>
749            * refers to the first result in the set. Setting both <code>start</code>
750            * and <code>end</code> to {@link
751            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
752            * result set.
753            * </p>
754            *
755            * @param companyId the primary key of the template's company
756            * @param groupId the primary key of the group
757            * @param classNameId the primary key of the class name for template's
758            related model
759            * @param classPK the primary key of the template's related entity
760            * @param keywords the keywords (space separated), which may occur in the
761            template's name or description (optionally <code>null</code>)
762            * @param type the template's type (optionally <code>null</code>). For more
763            information, see {@link
764            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
765            * @param mode the template's mode (optionally <code>null</code>). For more
766            information, see {@link
767            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
768            * @param start the lower bound of the range of templates to return
769            * @param end the upper bound of the range of templates to return (not
770            inclusive)
771            * @param orderByComparator the comparator to order the templates
772            (optionally <code>null</code>)
773            * @return the range of matching templates ordered by the comparator
774            * @throws SystemException if a system exception occurred
775            */
776            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
777                    long companyId, long groupId, long classNameId, long classPK,
778                    java.lang.String keywords, java.lang.String type,
779                    java.lang.String mode, int start, int end,
780                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
781                    throws com.liferay.portal.kernel.exception.SystemException {
782                    return _ddmTemplateLocalService.search(companyId, groupId, classNameId,
783                            classPK, keywords, type, mode, start, end, orderByComparator);
784            }
785    
786            /**
787            * Returns an ordered range of all the templates matching the group, class
788            * name ID, class PK, name keyword, description keyword, type, mode, and
789            * language.
790            *
791            * <p>
792            * Useful when paginating results. Returns a maximum of <code>end -
793            * start</code> instances. <code>start</code> and <code>end</code> are not
794            * primary keys, they are indexes in the result set. Thus, <code>0</code>
795            * refers to the first result in the set. Setting both <code>start</code>
796            * and <code>end</code> to {@link
797            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
798            * result set.
799            * </p>
800            *
801            * @param companyId the primary key of the template's company
802            * @param groupId the primary key of the group
803            * @param classNameId the primary key of the class name for template's
804            related model
805            * @param classPK the primary key of the template's related entity
806            * @param name the name keywords (optionally <code>null</code>)
807            * @param description the description keywords (optionally
808            <code>null</code>)
809            * @param type the template's type (optionally <code>null</code>). For more
810            information, see {@link
811            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
812            * @param mode the template's mode (optionally <code>null</code>). For more
813            information, see {@link
814            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
815            * @param language the template's script language (optionally
816            <code>null</code>). For more information, see {@link
817            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
818            * @param andOperator whether every field must match its keywords, or just
819            one field
820            * @param start the lower bound of the range of templates to return
821            * @param end the upper bound of the range of templates to return (not
822            inclusive)
823            * @param orderByComparator the comparator to order the templates
824            (optionally <code>null</code>)
825            * @return the range of matching templates ordered by the comparator
826            * @throws SystemException if a system exception occurred
827            */
828            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
829                    long companyId, long groupId, long classNameId, long classPK,
830                    java.lang.String name, java.lang.String description,
831                    java.lang.String type, java.lang.String mode,
832                    java.lang.String language, boolean andOperator, int start, int end,
833                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
834                    throws com.liferay.portal.kernel.exception.SystemException {
835                    return _ddmTemplateLocalService.search(companyId, groupId, classNameId,
836                            classPK, name, description, type, mode, language, andOperator,
837                            start, end, orderByComparator);
838            }
839    
840            /**
841            * Returns an ordered range of all the templates matching the group IDs,
842            * class Name IDs, class PK, type, and mode, and include the keywords on its
843            * names and descriptions.
844            *
845            * <p>
846            * Useful when paginating results. Returns a maximum of <code>end -
847            * start</code> instances. <code>start</code> and <code>end</code> are not
848            * primary keys, they are indexes in the result set. Thus, <code>0</code>
849            * refers to the first result in the set. Setting both <code>start</code>
850            * and <code>end</code> to {@link
851            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
852            * result set.
853            * </p>
854            *
855            * @param companyId the primary key of the template's company
856            * @param groupIds the primary keys of the groups
857            * @param classNameIds the primary keys of the entity's instances the
858            templates are related to
859            * @param classPK the primary key of the template's related entity
860            * @param keywords the keywords (space separated), which may occur in the
861            template's name or description (optionally <code>null</code>)
862            * @param type the template's type (optionally <code>null</code>). For more
863            information, see {@link
864            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
865            * @param mode the template's mode (optionally <code>null</code>). For more
866            information, see {@link
867            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
868            * @param start the lower bound of the range of templates to return
869            * @param end the upper bound of the range of templates to return (not
870            inclusive)
871            * @param orderByComparator the comparator to order the templates
872            (optionally <code>null</code>)
873            * @return the range of matching templates ordered by the comparator
874            * @throws SystemException if a system exception occurred
875            */
876            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
877                    long companyId, long[] groupIds, long[] classNameIds, long classPK,
878                    java.lang.String keywords, java.lang.String type,
879                    java.lang.String mode, int start, int end,
880                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
881                    throws com.liferay.portal.kernel.exception.SystemException {
882                    return _ddmTemplateLocalService.search(companyId, groupIds,
883                            classNameIds, classPK, keywords, type, mode, start, end,
884                            orderByComparator);
885            }
886    
887            /**
888            * Returns an ordered range of all the templates matching the group IDs,
889            * class name IDs, class PK, name keyword, description keyword, type, mode,
890            * and language.
891            *
892            * <p>
893            * Useful when paginating results. Returns a maximum of <code>end -
894            * start</code> instances. <code>start</code> and <code>end</code> are not
895            * primary keys, they are indexes in the result set. Thus, <code>0</code>
896            * refers to the first result in the set. Setting both <code>start</code>
897            * and <code>end</code> to {@link
898            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
899            * result set.
900            * </p>
901            *
902            * @param companyId the primary key of the template's company
903            * @param groupIds the primary keys of the groups
904            * @param classNameIds the primary keys of the entity's instances the
905            templates are related to
906            * @param classPK the primary key of the template's related entity
907            * @param name the name keywords (optionally <code>null</code>)
908            * @param description the description keywords (optionally
909            <code>null</code>)
910            * @param type the template's type (optionally <code>null</code>). For more
911            information, see {@link
912            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
913            * @param mode the template's mode (optionally <code>null</code>). For more
914            information, see {@link
915            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
916            * @param language the template's script language (optionally
917            <code>null</code>). For more information, see {@link
918            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
919            * @param andOperator whether every field must match its keywords, or just
920            one field.
921            * @param start the lower bound of the range of templates to return
922            * @param end the upper bound of the range of templates to return (not
923            inclusive)
924            * @param orderByComparator the comparator to order the templates
925            (optionally <code>null</code>)
926            * @return the range of matching templates ordered by the comparator
927            * @throws SystemException if a system exception occurred
928            */
929            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
930                    long companyId, long[] groupIds, long[] classNameIds, long classPK,
931                    java.lang.String name, java.lang.String description,
932                    java.lang.String type, java.lang.String mode,
933                    java.lang.String language, boolean andOperator, int start, int end,
934                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
935                    throws com.liferay.portal.kernel.exception.SystemException {
936                    return _ddmTemplateLocalService.search(companyId, groupIds,
937                            classNameIds, classPK, name, description, type, mode, language,
938                            andOperator, start, end, orderByComparator);
939            }
940    
941            /**
942            * Returns the number of templates matching the group, class name ID, class
943            * PK, type, and matching the keywords in the template names and
944            * descriptions.
945            *
946            * @param companyId the primary key of the template's company
947            * @param groupId the primary key of the group
948            * @param classNameId the primary key of the class name for template's
949            related model
950            * @param classPK the primary key of the template's related entity
951            * @param keywords the keywords (space separated), which may occur in the
952            template's name or description (optionally <code>null</code>)
953            * @param type the template's type (optionally <code>null</code>). For more
954            information, see {@link
955            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
956            * @param mode the template's mode (optionally <code>null</code>). For more
957            information, see {@link
958            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
959            * @return the number of matching templates
960            * @throws SystemException if a system exception occurred
961            */
962            public int searchCount(long companyId, long groupId, long classNameId,
963                    long classPK, java.lang.String keywords, java.lang.String type,
964                    java.lang.String mode)
965                    throws com.liferay.portal.kernel.exception.SystemException {
966                    return _ddmTemplateLocalService.searchCount(companyId, groupId,
967                            classNameId, classPK, keywords, type, mode);
968            }
969    
970            /**
971            * Returns the number of templates matching the group, class name ID, class
972            * PK, name keyword, description keyword, type, mode, and language.
973            *
974            * @param companyId the primary key of the template's company
975            * @param groupId the primary key of the group
976            * @param classNameId the primary key of the class name for template's
977            related model
978            * @param classPK the primary key of the template's related entity
979            * @param name the name keywords (optionally <code>null</code>)
980            * @param description the description keywords (optionally
981            <code>null</code>)
982            * @param type the template's type (optionally <code>null</code>). For more
983            information, see {@link
984            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
985            * @param mode the template's mode (optionally <code>null</code>). For more
986            information, see {@link
987            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
988            * @param language the template's script language (optionally
989            <code>null</code>). For more information, see {@link
990            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
991            * @param andOperator whether every field must match its keywords, or just
992            one field.
993            * @return the number of matching templates
994            * @throws SystemException if a system exception occurred
995            */
996            public int searchCount(long companyId, long groupId, long classNameId,
997                    long classPK, java.lang.String name, java.lang.String description,
998                    java.lang.String type, java.lang.String mode,
999                    java.lang.String language, boolean andOperator)
1000                    throws com.liferay.portal.kernel.exception.SystemException {
1001                    return _ddmTemplateLocalService.searchCount(companyId, groupId,
1002                            classNameId, classPK, name, description, type, mode, language,
1003                            andOperator);
1004            }
1005    
1006            /**
1007            * Returns the number of templates matching the group IDs, class name IDs,
1008            * class PK, type, and mode, and matching the keywords in the template names
1009            * and descriptions.
1010            *
1011            * @param companyId the primary key of the template's company
1012            * @param groupIds the primary keys of the groups
1013            * @param classNameIds the primary keys of the entity's instance the
1014            templates are related to
1015            * @param classPK the primary key of the template's related entity
1016            * @param keywords the keywords (space separated), which may occur in the
1017            template's name or description (optionally <code>null</code>)
1018            * @param type the template's type (optionally <code>null</code>). For more
1019            information, see {@link
1020            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
1021            * @param mode the template's mode (optionally <code>null</code>). For more
1022            information, see {@link
1023            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
1024            * @return the number of matching templates
1025            * @throws SystemException if a system exception occurred
1026            */
1027            public int searchCount(long companyId, long[] groupIds,
1028                    long[] classNameIds, long classPK, java.lang.String keywords,
1029                    java.lang.String type, java.lang.String mode)
1030                    throws com.liferay.portal.kernel.exception.SystemException {
1031                    return _ddmTemplateLocalService.searchCount(companyId, groupIds,
1032                            classNameIds, classPK, keywords, type, mode);
1033            }
1034    
1035            /**
1036            * Returns the number of templates matching the group IDs, class name IDs,
1037            * class PKs, name keyword, description keyword, type, mode, and language.
1038            *
1039            * @param companyId the primary key of the templates company
1040            * @param groupIds the primary keys of the groups
1041            * @param classNameIds the primary keys of the entity's instance the
1042            templates are related to
1043            * @param classPK the primary key of the template's related entity
1044            * @param name the name keywords (optionally <code>null</code>)
1045            * @param description the description keywords (optionally
1046            <code>null</code>)
1047            * @param type the template's type (optionally <code>null</code>). For more
1048            information, see {@link
1049            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
1050            * @param mode the template's mode (optionally <code>null</code>). For more
1051            information, see {@link
1052            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
1053            * @param language the template's script language (optionally
1054            <code>null</code>). For more information, see {@link
1055            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
1056            * @param andOperator whether every field must match its keywords, or just
1057            one field.
1058            * @return the number of matching templates
1059            * @throws SystemException if a system exception occurred
1060            */
1061            public int searchCount(long companyId, long[] groupIds,
1062                    long[] classNameIds, long classPK, java.lang.String name,
1063                    java.lang.String description, java.lang.String type,
1064                    java.lang.String mode, java.lang.String language, boolean andOperator)
1065                    throws com.liferay.portal.kernel.exception.SystemException {
1066                    return _ddmTemplateLocalService.searchCount(companyId, groupIds,
1067                            classNameIds, classPK, name, description, type, mode, language,
1068                            andOperator);
1069            }
1070    
1071            /**
1072            * Updates the template matching the ID.
1073            *
1074            * @param templateId the primary key of the template
1075            * @param nameMap the template's new locales and localized names
1076            * @param descriptionMap the template's new locales and localized
1077            description
1078            * @param type the template's type. For more information, see {@link
1079            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
1080            * @param mode the template's mode. For more information, see {@link
1081            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
1082            * @param language the template's script language. For more information,
1083            see {@link
1084            com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}.
1085            * @param script the template's script
1086            * @param cacheable whether the template is cacheable
1087            * @param smallImage whether the template has a small image
1088            * @param smallImageURL the template's small image URL (optionally
1089            <code>null</code>)
1090            * @param smallImageFile the template's small image file (optionally
1091            <code>null</code>)
1092            * @param serviceContext the service context to be applied. Can set the
1093            modification date.
1094            * @return the updated template
1095            * @throws PortalException if a portal exception occurred
1096            * @throws SystemException if a system exception occurred
1097            */
1098            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateTemplate(
1099                    long templateId,
1100                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
1101                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1102                    java.lang.String type, java.lang.String mode,
1103                    java.lang.String language, java.lang.String script, boolean cacheable,
1104                    boolean smallImage, java.lang.String smallImageURL,
1105                    java.io.File smallImageFile,
1106                    com.liferay.portal.service.ServiceContext serviceContext)
1107                    throws com.liferay.portal.kernel.exception.PortalException,
1108                            com.liferay.portal.kernel.exception.SystemException {
1109                    return _ddmTemplateLocalService.updateTemplate(templateId, nameMap,
1110                            descriptionMap, type, mode, language, script, cacheable,
1111                            smallImage, smallImageURL, smallImageFile, serviceContext);
1112            }
1113    
1114            /**
1115             * @deprecated Renamed to {@link #getWrappedService}
1116             */
1117            public DDMTemplateLocalService getWrappedDDMTemplateLocalService() {
1118                    return _ddmTemplateLocalService;
1119            }
1120    
1121            /**
1122             * @deprecated Renamed to {@link #setWrappedService}
1123             */
1124            public void setWrappedDDMTemplateLocalService(
1125                    DDMTemplateLocalService ddmTemplateLocalService) {
1126                    _ddmTemplateLocalService = ddmTemplateLocalService;
1127            }
1128    
1129            public DDMTemplateLocalService getWrappedService() {
1130                    return _ddmTemplateLocalService;
1131            }
1132    
1133            public void setWrappedService(
1134                    DDMTemplateLocalService ddmTemplateLocalService) {
1135                    _ddmTemplateLocalService = ddmTemplateLocalService;
1136            }
1137    
1138            private DDMTemplateLocalService _ddmTemplateLocalService;
1139    }