001    /**
002     * Copyright (c) 2000-2013 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            * Updates the d d m template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
251            *
252            * @param ddmTemplate the d d m template
253            * @param merge whether to merge the d d m template with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
254            * @return the d d m template that was updated
255            * @throws SystemException if a system exception occurred
256            */
257            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateDDMTemplate(
258                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate,
259                    boolean merge)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    return _ddmTemplateLocalService.updateDDMTemplate(ddmTemplate, merge);
262            }
263    
264            /**
265            * Returns the Spring bean ID for this bean.
266            *
267            * @return the Spring bean ID for this bean
268            */
269            public java.lang.String getBeanIdentifier() {
270                    return _ddmTemplateLocalService.getBeanIdentifier();
271            }
272    
273            /**
274            * Sets the Spring bean ID for this bean.
275            *
276            * @param beanIdentifier the Spring bean ID for this bean
277            */
278            public void setBeanIdentifier(java.lang.String beanIdentifier) {
279                    _ddmTemplateLocalService.setBeanIdentifier(beanIdentifier);
280            }
281    
282            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate addTemplate(
283                    long userId, long groupId, long structureId,
284                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
285                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
286                    java.lang.String type, java.lang.String mode,
287                    java.lang.String language, java.lang.String script,
288                    com.liferay.portal.service.ServiceContext serviceContext)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    return _ddmTemplateLocalService.addTemplate(userId, groupId,
292                            structureId, nameMap, descriptionMap, type, mode, language, script,
293                            serviceContext);
294            }
295    
296            public void addTemplateResources(
297                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template,
298                    boolean addGroupPermissions, boolean addGuestPermissions)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    _ddmTemplateLocalService.addTemplateResources(template,
302                            addGroupPermissions, addGuestPermissions);
303            }
304    
305            public void addTemplateResources(
306                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template,
307                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
308                    throws com.liferay.portal.kernel.exception.PortalException,
309                            com.liferay.portal.kernel.exception.SystemException {
310                    _ddmTemplateLocalService.addTemplateResources(template,
311                            groupPermissions, guestPermissions);
312            }
313    
314            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> copyTemplates(
315                    long userId, long structureId, long newStructureId,
316                    java.lang.String type,
317                    com.liferay.portal.service.ServiceContext serviceContext)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    return _ddmTemplateLocalService.copyTemplates(userId, structureId,
321                            newStructureId, type, serviceContext);
322            }
323    
324            public void deleteTemplate(
325                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    _ddmTemplateLocalService.deleteTemplate(template);
329            }
330    
331            public void deleteTemplate(long templateId)
332                    throws com.liferay.portal.kernel.exception.PortalException,
333                            com.liferay.portal.kernel.exception.SystemException {
334                    _ddmTemplateLocalService.deleteTemplate(templateId);
335            }
336    
337            public void deleteTemplates(long groupId)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException {
340                    _ddmTemplateLocalService.deleteTemplates(groupId);
341            }
342    
343            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
344                    long templateId)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    return _ddmTemplateLocalService.getTemplate(templateId);
348            }
349    
350            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
351                    long structureId)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    return _ddmTemplateLocalService.getTemplates(structureId);
354            }
355    
356            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
357                    long structureId, java.lang.String type)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return _ddmTemplateLocalService.getTemplates(structureId, type);
360            }
361    
362            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
363                    long structureId, java.lang.String type, java.lang.String mode)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return _ddmTemplateLocalService.getTemplates(structureId, type, mode);
366            }
367    
368            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
369                    long companyId, long groupId, long structureId,
370                    java.lang.String keywords, java.lang.String type,
371                    java.lang.String mode, int start, int end,
372                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return _ddmTemplateLocalService.search(companyId, groupId, structureId,
375                            keywords, type, mode, start, end, orderByComparator);
376            }
377    
378            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
379                    long companyId, long groupId, long structureId, java.lang.String name,
380                    java.lang.String description, java.lang.String type,
381                    java.lang.String mode, java.lang.String language, boolean andOperator,
382                    int start, int end,
383                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return _ddmTemplateLocalService.search(companyId, groupId, structureId,
386                            name, description, type, mode, language, andOperator, start, end,
387                            orderByComparator);
388            }
389    
390            public int searchCount(long companyId, long groupId, long structureId,
391                    java.lang.String keywords, java.lang.String type, java.lang.String mode)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return _ddmTemplateLocalService.searchCount(companyId, groupId,
394                            structureId, keywords, type, mode);
395            }
396    
397            public int searchCount(long companyId, long groupId, long structureId,
398                    java.lang.String name, java.lang.String description,
399                    java.lang.String type, java.lang.String mode,
400                    java.lang.String language, boolean andOperator)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    return _ddmTemplateLocalService.searchCount(companyId, groupId,
403                            structureId, name, description, type, mode, language, andOperator);
404            }
405    
406            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateTemplate(
407                    long templateId,
408                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
409                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
410                    java.lang.String type, java.lang.String mode,
411                    java.lang.String language, java.lang.String script,
412                    com.liferay.portal.service.ServiceContext serviceContext)
413                    throws com.liferay.portal.kernel.exception.PortalException,
414                            com.liferay.portal.kernel.exception.SystemException {
415                    return _ddmTemplateLocalService.updateTemplate(templateId, nameMap,
416                            descriptionMap, type, mode, language, script, serviceContext);
417            }
418    
419            /**
420             * @deprecated Renamed to {@link #getWrappedService}
421             */
422            public DDMTemplateLocalService getWrappedDDMTemplateLocalService() {
423                    return _ddmTemplateLocalService;
424            }
425    
426            /**
427             * @deprecated Renamed to {@link #setWrappedService}
428             */
429            public void setWrappedDDMTemplateLocalService(
430                    DDMTemplateLocalService ddmTemplateLocalService) {
431                    _ddmTemplateLocalService = ddmTemplateLocalService;
432            }
433    
434            public DDMTemplateLocalService getWrappedService() {
435                    return _ddmTemplateLocalService;
436            }
437    
438            public void setWrappedService(
439                    DDMTemplateLocalService ddmTemplateLocalService) {
440                    _ddmTemplateLocalService = ddmTemplateLocalService;
441            }
442    
443            private DDMTemplateLocalService _ddmTemplateLocalService;
444    }