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            * @throws PortalException if a d d m template with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            public void deleteDDMTemplate(long templateId)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    _ddmTemplateLocalService.deleteDDMTemplate(templateId);
070            }
071    
072            /**
073            * Deletes the d d m template from the database. Also notifies the appropriate model listeners.
074            *
075            * @param ddmTemplate the d d m template
076            * @throws SystemException if a system exception occurred
077            */
078            public void deleteDDMTemplate(
079                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    _ddmTemplateLocalService.deleteDDMTemplate(ddmTemplate);
082            }
083    
084            /**
085            * Performs a dynamic query on the database and returns the matching rows.
086            *
087            * @param dynamicQuery the dynamic query
088            * @return the matching rows
089            * @throws SystemException if a system exception occurred
090            */
091            @SuppressWarnings("rawtypes")
092            public java.util.List dynamicQuery(
093                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094                    throws com.liferay.portal.kernel.exception.SystemException {
095                    return _ddmTemplateLocalService.dynamicQuery(dynamicQuery);
096            }
097    
098            /**
099            * Performs a dynamic query on the database and returns a range of the matching rows.
100            *
101            * <p>
102            * 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.
103            * </p>
104            *
105            * @param dynamicQuery the dynamic query
106            * @param start the lower bound of the range of model instances
107            * @param end the upper bound of the range of model instances (not inclusive)
108            * @return the range of matching rows
109            * @throws SystemException if a system exception occurred
110            */
111            @SuppressWarnings("rawtypes")
112            public java.util.List dynamicQuery(
113                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
114                    int end) throws com.liferay.portal.kernel.exception.SystemException {
115                    return _ddmTemplateLocalService.dynamicQuery(dynamicQuery, start, end);
116            }
117    
118            /**
119            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param dynamicQuery the dynamic query
126            * @param start the lower bound of the range of model instances
127            * @param end the upper bound of the range of model instances (not inclusive)
128            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
129            * @return the ordered range of matching rows
130            * @throws SystemException if a system exception occurred
131            */
132            @SuppressWarnings("rawtypes")
133            public java.util.List dynamicQuery(
134                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
135                    int end,
136                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137                    throws com.liferay.portal.kernel.exception.SystemException {
138                    return _ddmTemplateLocalService.dynamicQuery(dynamicQuery, start, end,
139                            orderByComparator);
140            }
141    
142            /**
143            * Returns the number of rows that match the dynamic query.
144            *
145            * @param dynamicQuery the dynamic query
146            * @return the number of rows that match the dynamic query
147            * @throws SystemException if a system exception occurred
148            */
149            public long dynamicQueryCount(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _ddmTemplateLocalService.dynamicQueryCount(dynamicQuery);
153            }
154    
155            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchDDMTemplate(
156                    long templateId)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _ddmTemplateLocalService.fetchDDMTemplate(templateId);
159            }
160    
161            /**
162            * Returns the d d m template with the primary key.
163            *
164            * @param templateId the primary key of the d d m template
165            * @return the d d m template
166            * @throws PortalException if a d d m template with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getDDMTemplate(
170                    long templateId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _ddmTemplateLocalService.getDDMTemplate(templateId);
174            }
175    
176            public com.liferay.portal.model.PersistedModel getPersistedModel(
177                    java.io.Serializable primaryKeyObj)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _ddmTemplateLocalService.getPersistedModel(primaryKeyObj);
181            }
182    
183            /**
184            * Returns the d d m template with the UUID in the group.
185            *
186            * @param uuid the UUID of d d m template
187            * @param groupId the group id of the d d m template
188            * @return the d d m template
189            * @throws PortalException if a d d m template with the UUID in the group could not be found
190            * @throws SystemException if a system exception occurred
191            */
192            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getDDMTemplateByUuidAndGroupId(
193                    java.lang.String uuid, long groupId)
194                    throws com.liferay.portal.kernel.exception.PortalException,
195                            com.liferay.portal.kernel.exception.SystemException {
196                    return _ddmTemplateLocalService.getDDMTemplateByUuidAndGroupId(uuid,
197                            groupId);
198            }
199    
200            /**
201            * Returns a range of all the d d m templates.
202            *
203            * <p>
204            * 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.
205            * </p>
206            *
207            * @param start the lower bound of the range of d d m templates
208            * @param end the upper bound of the range of d d m templates (not inclusive)
209            * @return the range of d d m templates
210            * @throws SystemException if a system exception occurred
211            */
212            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getDDMTemplates(
213                    int start, int end)
214                    throws com.liferay.portal.kernel.exception.SystemException {
215                    return _ddmTemplateLocalService.getDDMTemplates(start, end);
216            }
217    
218            /**
219            * Returns the number of d d m templates.
220            *
221            * @return the number of d d m templates
222            * @throws SystemException if a system exception occurred
223            */
224            public int getDDMTemplatesCount()
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return _ddmTemplateLocalService.getDDMTemplatesCount();
227            }
228    
229            /**
230            * Updates the d d m template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
231            *
232            * @param ddmTemplate the d d m template
233            * @return the d d m template that was updated
234            * @throws SystemException if a system exception occurred
235            */
236            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateDDMTemplate(
237                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate)
238                    throws com.liferay.portal.kernel.exception.SystemException {
239                    return _ddmTemplateLocalService.updateDDMTemplate(ddmTemplate);
240            }
241    
242            /**
243            * Updates the d d m template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
244            *
245            * @param ddmTemplate the d d m template
246            * @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.
247            * @return the d d m template that was updated
248            * @throws SystemException if a system exception occurred
249            */
250            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateDDMTemplate(
251                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate,
252                    boolean merge)
253                    throws com.liferay.portal.kernel.exception.SystemException {
254                    return _ddmTemplateLocalService.updateDDMTemplate(ddmTemplate, merge);
255            }
256    
257            /**
258            * Returns the Spring bean ID for this bean.
259            *
260            * @return the Spring bean ID for this bean
261            */
262            public java.lang.String getBeanIdentifier() {
263                    return _ddmTemplateLocalService.getBeanIdentifier();
264            }
265    
266            /**
267            * Sets the Spring bean ID for this bean.
268            *
269            * @param beanIdentifier the Spring bean ID for this bean
270            */
271            public void setBeanIdentifier(java.lang.String beanIdentifier) {
272                    _ddmTemplateLocalService.setBeanIdentifier(beanIdentifier);
273            }
274    
275            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate addTemplate(
276                    long userId, long groupId, long structureId,
277                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
278                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
279                    java.lang.String type, java.lang.String mode,
280                    java.lang.String language, java.lang.String script,
281                    com.liferay.portal.service.ServiceContext serviceContext)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException {
284                    return _ddmTemplateLocalService.addTemplate(userId, groupId,
285                            structureId, nameMap, descriptionMap, type, mode, language, script,
286                            serviceContext);
287            }
288    
289            public void addTemplateResources(
290                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template,
291                    boolean addGroupPermissions, boolean addGuestPermissions)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    _ddmTemplateLocalService.addTemplateResources(template,
295                            addGroupPermissions, addGuestPermissions);
296            }
297    
298            public void addTemplateResources(
299                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template,
300                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    _ddmTemplateLocalService.addTemplateResources(template,
304                            groupPermissions, guestPermissions);
305            }
306    
307            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> copyTemplates(
308                    long userId, long structureId, long newStructureId,
309                    java.lang.String type,
310                    com.liferay.portal.service.ServiceContext serviceContext)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    return _ddmTemplateLocalService.copyTemplates(userId, structureId,
314                            newStructureId, type, serviceContext);
315            }
316    
317            public void deleteTemplate(
318                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    _ddmTemplateLocalService.deleteTemplate(template);
322            }
323    
324            public void deleteTemplate(long templateId)
325                    throws com.liferay.portal.kernel.exception.PortalException,
326                            com.liferay.portal.kernel.exception.SystemException {
327                    _ddmTemplateLocalService.deleteTemplate(templateId);
328            }
329    
330            public void deleteTemplates(long groupId)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    _ddmTemplateLocalService.deleteTemplates(groupId);
334            }
335    
336            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
337                    long templateId)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException {
340                    return _ddmTemplateLocalService.getTemplate(templateId);
341            }
342    
343            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
344                    long structureId)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return _ddmTemplateLocalService.getTemplates(structureId);
347            }
348    
349            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
350                    long structureId, java.lang.String type)
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return _ddmTemplateLocalService.getTemplates(structureId, type);
353            }
354    
355            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
356                    long structureId, java.lang.String type, java.lang.String mode)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return _ddmTemplateLocalService.getTemplates(structureId, type, mode);
359            }
360    
361            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
362                    long companyId, long groupId, long structureId,
363                    java.lang.String keywords, java.lang.String type,
364                    java.lang.String mode, int start, int end,
365                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return _ddmTemplateLocalService.search(companyId, groupId, structureId,
368                            keywords, type, mode, start, end, orderByComparator);
369            }
370    
371            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
372                    long companyId, long groupId, long structureId, java.lang.String name,
373                    java.lang.String description, java.lang.String type,
374                    java.lang.String mode, java.lang.String language, boolean andOperator,
375                    int start, int end,
376                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
377                    throws com.liferay.portal.kernel.exception.SystemException {
378                    return _ddmTemplateLocalService.search(companyId, groupId, structureId,
379                            name, description, type, mode, language, andOperator, start, end,
380                            orderByComparator);
381            }
382    
383            public int searchCount(long companyId, long groupId, long structureId,
384                    java.lang.String keywords, java.lang.String type, java.lang.String mode)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return _ddmTemplateLocalService.searchCount(companyId, groupId,
387                            structureId, keywords, type, mode);
388            }
389    
390            public int searchCount(long companyId, long groupId, long structureId,
391                    java.lang.String name, java.lang.String description,
392                    java.lang.String type, java.lang.String mode,
393                    java.lang.String language, boolean andOperator)
394                    throws com.liferay.portal.kernel.exception.SystemException {
395                    return _ddmTemplateLocalService.searchCount(companyId, groupId,
396                            structureId, name, description, type, mode, language, andOperator);
397            }
398    
399            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateTemplate(
400                    long templateId,
401                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
402                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
403                    java.lang.String type, java.lang.String mode,
404                    java.lang.String language, java.lang.String script,
405                    com.liferay.portal.service.ServiceContext serviceContext)
406                    throws com.liferay.portal.kernel.exception.PortalException,
407                            com.liferay.portal.kernel.exception.SystemException {
408                    return _ddmTemplateLocalService.updateTemplate(templateId, nameMap,
409                            descriptionMap, type, mode, language, script, serviceContext);
410            }
411    
412            /**
413             * @deprecated Renamed to {@link #getWrappedService}
414             */
415            public DDMTemplateLocalService getWrappedDDMTemplateLocalService() {
416                    return _ddmTemplateLocalService;
417            }
418    
419            /**
420             * @deprecated Renamed to {@link #setWrappedService}
421             */
422            public void setWrappedDDMTemplateLocalService(
423                    DDMTemplateLocalService ddmTemplateLocalService) {
424                    _ddmTemplateLocalService = ddmTemplateLocalService;
425            }
426    
427            public DDMTemplateLocalService getWrappedService() {
428                    return _ddmTemplateLocalService;
429            }
430    
431            public void setWrappedService(
432                    DDMTemplateLocalService ddmTemplateLocalService) {
433                    _ddmTemplateLocalService = ddmTemplateLocalService;
434            }
435    
436            private DDMTemplateLocalService _ddmTemplateLocalService;
437    }