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.
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.
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.
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.lang.String templateKey,
270                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
271                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
272                    java.lang.String type, java.lang.String mode,
273                    java.lang.String language, java.lang.String script, boolean cacheable,
274                    com.liferay.portal.service.ServiceContext serviceContext)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    return _ddmTemplateLocalService.addTemplate(userId, groupId,
278                            classNameId, classPK, templateKey, nameMap, descriptionMap, type,
279                            mode, language, script, cacheable, serviceContext);
280            }
281    
282            public void addTemplateResources(
283                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template,
284                    boolean addGroupPermissions, boolean addGuestPermissions)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    _ddmTemplateLocalService.addTemplateResources(template,
288                            addGroupPermissions, addGuestPermissions);
289            }
290    
291            public void addTemplateResources(
292                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template,
293                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    _ddmTemplateLocalService.addTemplateResources(template,
297                            groupPermissions, guestPermissions);
298            }
299    
300            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> copyTemplates(
301                    long userId, long classNameId, long oldClassPK, long newClassPK,
302                    java.lang.String type,
303                    com.liferay.portal.service.ServiceContext serviceContext)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    return _ddmTemplateLocalService.copyTemplates(userId, classNameId,
307                            oldClassPK, newClassPK, type, serviceContext);
308            }
309    
310            public void deleteTemplate(
311                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    _ddmTemplateLocalService.deleteTemplate(template);
315            }
316    
317            public void deleteTemplate(long templateId)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    _ddmTemplateLocalService.deleteTemplate(templateId);
321            }
322    
323            public void deleteTemplates(long groupId)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    _ddmTemplateLocalService.deleteTemplates(groupId);
327            }
328    
329            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchTemplate(
330                    long groupId, java.lang.String templateKey)
331                    throws com.liferay.portal.kernel.exception.SystemException {
332                    return _ddmTemplateLocalService.fetchTemplate(groupId, templateKey);
333            }
334    
335            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
336                    long templateId)
337                    throws com.liferay.portal.kernel.exception.PortalException,
338                            com.liferay.portal.kernel.exception.SystemException {
339                    return _ddmTemplateLocalService.getTemplate(templateId);
340            }
341    
342            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
343                    long groupId, java.lang.String templateKey)
344                    throws com.liferay.portal.kernel.exception.PortalException,
345                            com.liferay.portal.kernel.exception.SystemException {
346                    return _ddmTemplateLocalService.getTemplate(groupId, templateKey);
347            }
348    
349            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
350                    long classPK)
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return _ddmTemplateLocalService.getTemplates(classPK);
353            }
354    
355            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
356                    long groupId, long classNameId)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return _ddmTemplateLocalService.getTemplates(groupId, classNameId);
359            }
360    
361            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
362                    long groupId, long classNameId, long classPK)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _ddmTemplateLocalService.getTemplates(groupId, classNameId,
365                            classPK);
366            }
367    
368            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
369                    long classNameId, long classPK, java.lang.String type)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return _ddmTemplateLocalService.getTemplates(classNameId, classPK, type);
372            }
373    
374            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
375                    long classNameId, long classPK, java.lang.String type,
376                    java.lang.String mode)
377                    throws com.liferay.portal.kernel.exception.SystemException {
378                    return _ddmTemplateLocalService.getTemplates(classNameId, classPK,
379                            type, mode);
380            }
381    
382            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
383                    long companyId, long groupId, long classNameId, long classPK,
384                    java.lang.String keywords, java.lang.String type,
385                    java.lang.String mode, int start, int end,
386                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
387                    throws com.liferay.portal.kernel.exception.SystemException {
388                    return _ddmTemplateLocalService.search(companyId, groupId, classNameId,
389                            classPK, keywords, type, mode, start, end, orderByComparator);
390            }
391    
392            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
393                    long companyId, long groupId, long classNameId, long classPK,
394                    java.lang.String name, java.lang.String description,
395                    java.lang.String type, java.lang.String mode,
396                    java.lang.String language, boolean andOperator, int start, int end,
397                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return _ddmTemplateLocalService.search(companyId, groupId, classNameId,
400                            classPK, name, description, type, mode, language, andOperator,
401                            start, end, orderByComparator);
402            }
403    
404            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
405                    long companyId, long[] groupIds, long[] classNameIds, long classPK,
406                    java.lang.String keywords, java.lang.String type,
407                    java.lang.String mode, int start, int end,
408                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    return _ddmTemplateLocalService.search(companyId, groupIds,
411                            classNameIds, classPK, keywords, type, mode, start, end,
412                            orderByComparator);
413            }
414    
415            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
416                    long companyId, long[] groupIds, long[] classNameIds, long classPK,
417                    java.lang.String name, java.lang.String description,
418                    java.lang.String type, java.lang.String mode,
419                    java.lang.String language, boolean andOperator, int start, int end,
420                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return _ddmTemplateLocalService.search(companyId, groupIds,
423                            classNameIds, classPK, name, description, type, mode, language,
424                            andOperator, start, end, orderByComparator);
425            }
426    
427            public int searchCount(long companyId, long groupId, long classNameId,
428                    long classPK, java.lang.String keywords, java.lang.String type,
429                    java.lang.String mode)
430                    throws com.liferay.portal.kernel.exception.SystemException {
431                    return _ddmTemplateLocalService.searchCount(companyId, groupId,
432                            classNameId, classPK, keywords, type, mode);
433            }
434    
435            public int searchCount(long companyId, long groupId, long classNameId,
436                    long classPK, java.lang.String name, java.lang.String description,
437                    java.lang.String type, java.lang.String mode,
438                    java.lang.String language, boolean andOperator)
439                    throws com.liferay.portal.kernel.exception.SystemException {
440                    return _ddmTemplateLocalService.searchCount(companyId, groupId,
441                            classNameId, classPK, name, description, type, mode, language,
442                            andOperator);
443            }
444    
445            public int searchCount(long companyId, long[] groupIds,
446                    long[] classNameIds, long classPK, java.lang.String keywords,
447                    java.lang.String type, java.lang.String mode)
448                    throws com.liferay.portal.kernel.exception.SystemException {
449                    return _ddmTemplateLocalService.searchCount(companyId, groupIds,
450                            classNameIds, classPK, keywords, type, mode);
451            }
452    
453            public int searchCount(long companyId, long[] groupIds,
454                    long[] classNameIds, long classPK, java.lang.String name,
455                    java.lang.String description, java.lang.String type,
456                    java.lang.String mode, java.lang.String language, boolean andOperator)
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    return _ddmTemplateLocalService.searchCount(companyId, groupIds,
459                            classNameIds, classPK, name, description, type, mode, language,
460                            andOperator);
461            }
462    
463            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateTemplate(
464                    long templateId,
465                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
466                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
467                    java.lang.String type, java.lang.String mode,
468                    java.lang.String language, java.lang.String script, boolean cacheable,
469                    com.liferay.portal.service.ServiceContext serviceContext)
470                    throws com.liferay.portal.kernel.exception.PortalException,
471                            com.liferay.portal.kernel.exception.SystemException {
472                    return _ddmTemplateLocalService.updateTemplate(templateId, nameMap,
473                            descriptionMap, type, mode, language, script, cacheable,
474                            serviceContext);
475            }
476    
477            /**
478             * @deprecated Renamed to {@link #getWrappedService}
479             */
480            public DDMTemplateLocalService getWrappedDDMTemplateLocalService() {
481                    return _ddmTemplateLocalService;
482            }
483    
484            /**
485             * @deprecated Renamed to {@link #setWrappedService}
486             */
487            public void setWrappedDDMTemplateLocalService(
488                    DDMTemplateLocalService ddmTemplateLocalService) {
489                    _ddmTemplateLocalService = ddmTemplateLocalService;
490            }
491    
492            public DDMTemplateLocalService getWrappedService() {
493                    return _ddmTemplateLocalService;
494            }
495    
496            public void setWrappedService(
497                    DDMTemplateLocalService ddmTemplateLocalService) {
498                    _ddmTemplateLocalService = ddmTemplateLocalService;
499            }
500    
501            private DDMTemplateLocalService _ddmTemplateLocalService;
502    }