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     * Provides a wrapper for {@link DDMContentLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see DDMContentLocalService
024     * @generated
025     */
026    public class DDMContentLocalServiceWrapper implements DDMContentLocalService,
027            ServiceWrapper<DDMContentLocalService> {
028            public DDMContentLocalServiceWrapper(
029                    DDMContentLocalService ddmContentLocalService) {
030                    _ddmContentLocalService = ddmContentLocalService;
031            }
032    
033            /**
034            * Adds the d d m content to the database. Also notifies the appropriate model listeners.
035            *
036            * @param ddmContent the d d m content
037            * @return the d d m content that was added
038            * @throws SystemException if a system exception occurred
039            */
040            @Override
041            public com.liferay.portlet.dynamicdatamapping.model.DDMContent addDDMContent(
042                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _ddmContentLocalService.addDDMContent(ddmContent);
045            }
046    
047            /**
048            * Creates a new d d m content with the primary key. Does not add the d d m content to the database.
049            *
050            * @param contentId the primary key for the new d d m content
051            * @return the new d d m content
052            */
053            @Override
054            public com.liferay.portlet.dynamicdatamapping.model.DDMContent createDDMContent(
055                    long contentId) {
056                    return _ddmContentLocalService.createDDMContent(contentId);
057            }
058    
059            /**
060            * Deletes the d d m content with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param contentId the primary key of the d d m content
063            * @return the d d m content that was removed
064            * @throws PortalException if a d d m content with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            @Override
068            public com.liferay.portlet.dynamicdatamapping.model.DDMContent deleteDDMContent(
069                    long contentId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _ddmContentLocalService.deleteDDMContent(contentId);
073            }
074    
075            /**
076            * Deletes the d d m content from the database. Also notifies the appropriate model listeners.
077            *
078            * @param ddmContent the d d m content
079            * @return the d d m content that was removed
080            * @throws SystemException if a system exception occurred
081            */
082            @Override
083            public com.liferay.portlet.dynamicdatamapping.model.DDMContent deleteDDMContent(
084                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
085                    throws com.liferay.portal.kernel.exception.SystemException {
086                    return _ddmContentLocalService.deleteDDMContent(ddmContent);
087            }
088    
089            @Override
090            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
091                    return _ddmContentLocalService.dynamicQuery();
092            }
093    
094            /**
095            * Performs a dynamic query on the database and returns the matching rows.
096            *
097            * @param dynamicQuery the dynamic query
098            * @return the matching rows
099            * @throws SystemException if a system exception occurred
100            */
101            @Override
102            @SuppressWarnings("rawtypes")
103            public java.util.List dynamicQuery(
104                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
105                    throws com.liferay.portal.kernel.exception.SystemException {
106                    return _ddmContentLocalService.dynamicQuery(dynamicQuery);
107            }
108    
109            /**
110            * Performs a dynamic query on the database and returns a range of the matching rows.
111            *
112            * <p>
113            * 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.DDMContentModelImpl}. 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.
114            * </p>
115            *
116            * @param dynamicQuery the dynamic query
117            * @param start the lower bound of the range of model instances
118            * @param end the upper bound of the range of model instances (not inclusive)
119            * @return the range of matching rows
120            * @throws SystemException if a system exception occurred
121            */
122            @Override
123            @SuppressWarnings("rawtypes")
124            public java.util.List dynamicQuery(
125                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126                    int end) throws com.liferay.portal.kernel.exception.SystemException {
127                    return _ddmContentLocalService.dynamicQuery(dynamicQuery, start, end);
128            }
129    
130            /**
131            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
132            *
133            * <p>
134            * 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.DDMContentModelImpl}. 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.
135            * </p>
136            *
137            * @param dynamicQuery the dynamic query
138            * @param start the lower bound of the range of model instances
139            * @param end the upper bound of the range of model instances (not inclusive)
140            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
141            * @return the ordered range of matching rows
142            * @throws SystemException if a system exception occurred
143            */
144            @Override
145            @SuppressWarnings("rawtypes")
146            public java.util.List dynamicQuery(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148                    int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return _ddmContentLocalService.dynamicQuery(dynamicQuery, start, end,
152                            orderByComparator);
153            }
154    
155            /**
156            * Returns the number of rows that match the dynamic query.
157            *
158            * @param dynamicQuery the dynamic query
159            * @return the number of rows that match the dynamic query
160            * @throws SystemException if a system exception occurred
161            */
162            @Override
163            public long dynamicQueryCount(
164                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return _ddmContentLocalService.dynamicQueryCount(dynamicQuery);
167            }
168    
169            /**
170            * Returns the number of rows that match the dynamic query.
171            *
172            * @param dynamicQuery the dynamic query
173            * @param projection the projection to apply to the query
174            * @return the number of rows that match the dynamic query
175            * @throws SystemException if a system exception occurred
176            */
177            @Override
178            public long dynamicQueryCount(
179                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
180                    com.liferay.portal.kernel.dao.orm.Projection projection)
181                    throws com.liferay.portal.kernel.exception.SystemException {
182                    return _ddmContentLocalService.dynamicQueryCount(dynamicQuery,
183                            projection);
184            }
185    
186            @Override
187            public com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchDDMContent(
188                    long contentId)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return _ddmContentLocalService.fetchDDMContent(contentId);
191            }
192    
193            /**
194            * Returns the d d m content with the matching UUID and company.
195            *
196            * @param uuid the d d m content's UUID
197            * @param companyId the primary key of the company
198            * @return the matching d d m content, or <code>null</code> if a matching d d m content could not be found
199            * @throws SystemException if a system exception occurred
200            */
201            @Override
202            public com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchDDMContentByUuidAndCompanyId(
203                    java.lang.String uuid, long companyId)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _ddmContentLocalService.fetchDDMContentByUuidAndCompanyId(uuid,
206                            companyId);
207            }
208    
209            /**
210            * Returns the d d m content matching the UUID and group.
211            *
212            * @param uuid the d d m content's UUID
213            * @param groupId the primary key of the group
214            * @return the matching d d m content, or <code>null</code> if a matching d d m content could not be found
215            * @throws SystemException if a system exception occurred
216            */
217            @Override
218            public com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchDDMContentByUuidAndGroupId(
219                    java.lang.String uuid, long groupId)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _ddmContentLocalService.fetchDDMContentByUuidAndGroupId(uuid,
222                            groupId);
223            }
224    
225            /**
226            * Returns the d d m content with the primary key.
227            *
228            * @param contentId the primary key of the d d m content
229            * @return the d d m content
230            * @throws PortalException if a d d m content with the primary key could not be found
231            * @throws SystemException if a system exception occurred
232            */
233            @Override
234            public com.liferay.portlet.dynamicdatamapping.model.DDMContent getDDMContent(
235                    long contentId)
236                    throws com.liferay.portal.kernel.exception.PortalException,
237                            com.liferay.portal.kernel.exception.SystemException {
238                    return _ddmContentLocalService.getDDMContent(contentId);
239            }
240    
241            @Override
242            public com.liferay.portal.model.PersistedModel getPersistedModel(
243                    java.io.Serializable primaryKeyObj)
244                    throws com.liferay.portal.kernel.exception.PortalException,
245                            com.liferay.portal.kernel.exception.SystemException {
246                    return _ddmContentLocalService.getPersistedModel(primaryKeyObj);
247            }
248    
249            /**
250            * Returns the d d m content with the matching UUID and company.
251            *
252            * @param uuid the d d m content's UUID
253            * @param companyId the primary key of the company
254            * @return the matching d d m content
255            * @throws PortalException if a matching d d m content could not be found
256            * @throws SystemException if a system exception occurred
257            */
258            @Override
259            public com.liferay.portlet.dynamicdatamapping.model.DDMContent getDDMContentByUuidAndCompanyId(
260                    java.lang.String uuid, long companyId)
261                    throws com.liferay.portal.kernel.exception.PortalException,
262                            com.liferay.portal.kernel.exception.SystemException {
263                    return _ddmContentLocalService.getDDMContentByUuidAndCompanyId(uuid,
264                            companyId);
265            }
266    
267            /**
268            * Returns the d d m content matching the UUID and group.
269            *
270            * @param uuid the d d m content's UUID
271            * @param groupId the primary key of the group
272            * @return the matching d d m content
273            * @throws PortalException if a matching d d m content could not be found
274            * @throws SystemException if a system exception occurred
275            */
276            @Override
277            public com.liferay.portlet.dynamicdatamapping.model.DDMContent getDDMContentByUuidAndGroupId(
278                    java.lang.String uuid, long groupId)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    return _ddmContentLocalService.getDDMContentByUuidAndGroupId(uuid,
282                            groupId);
283            }
284    
285            /**
286            * Returns a range of all the d d m contents.
287            *
288            * <p>
289            * 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.DDMContentModelImpl}. 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.
290            * </p>
291            *
292            * @param start the lower bound of the range of d d m contents
293            * @param end the upper bound of the range of d d m contents (not inclusive)
294            * @return the range of d d m contents
295            * @throws SystemException if a system exception occurred
296            */
297            @Override
298            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getDDMContents(
299                    int start, int end)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    return _ddmContentLocalService.getDDMContents(start, end);
302            }
303    
304            /**
305            * Returns the number of d d m contents.
306            *
307            * @return the number of d d m contents
308            * @throws SystemException if a system exception occurred
309            */
310            @Override
311            public int getDDMContentsCount()
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    return _ddmContentLocalService.getDDMContentsCount();
314            }
315    
316            /**
317            * Updates the d d m content in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
318            *
319            * @param ddmContent the d d m content
320            * @return the d d m content that was updated
321            * @throws SystemException if a system exception occurred
322            */
323            @Override
324            public com.liferay.portlet.dynamicdatamapping.model.DDMContent updateDDMContent(
325                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    return _ddmContentLocalService.updateDDMContent(ddmContent);
328            }
329    
330            /**
331            * Returns the Spring bean ID for this bean.
332            *
333            * @return the Spring bean ID for this bean
334            */
335            @Override
336            public java.lang.String getBeanIdentifier() {
337                    return _ddmContentLocalService.getBeanIdentifier();
338            }
339    
340            /**
341            * Sets the Spring bean ID for this bean.
342            *
343            * @param beanIdentifier the Spring bean ID for this bean
344            */
345            @Override
346            public void setBeanIdentifier(java.lang.String beanIdentifier) {
347                    _ddmContentLocalService.setBeanIdentifier(beanIdentifier);
348            }
349    
350            @Override
351            public com.liferay.portlet.dynamicdatamapping.model.DDMContent addContent(
352                    long userId, long groupId, java.lang.String name,
353                    java.lang.String description, java.lang.String xml,
354                    com.liferay.portal.service.ServiceContext serviceContext)
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    return _ddmContentLocalService.addContent(userId, groupId, name,
358                            description, xml, serviceContext);
359            }
360    
361            @Override
362            public void deleteContent(
363                    com.liferay.portlet.dynamicdatamapping.model.DDMContent content)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    _ddmContentLocalService.deleteContent(content);
366            }
367    
368            @Override
369            public void deleteContents(long groupId)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    _ddmContentLocalService.deleteContents(groupId);
372            }
373    
374            @Override
375            public com.liferay.portlet.dynamicdatamapping.model.DDMContent getContent(
376                    long contentId)
377                    throws com.liferay.portal.kernel.exception.PortalException,
378                            com.liferay.portal.kernel.exception.SystemException {
379                    return _ddmContentLocalService.getContent(contentId);
380            }
381    
382            @Override
383            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents()
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return _ddmContentLocalService.getContents();
386            }
387    
388            @Override
389            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents(
390                    long groupId)
391                    throws com.liferay.portal.kernel.exception.SystemException {
392                    return _ddmContentLocalService.getContents(groupId);
393            }
394    
395            @Override
396            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents(
397                    long groupId, int start, int end)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return _ddmContentLocalService.getContents(groupId, start, end);
400            }
401    
402            @Override
403            public int getContentsCount(long groupId)
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    return _ddmContentLocalService.getContentsCount(groupId);
406            }
407    
408            @Override
409            public com.liferay.portlet.dynamicdatamapping.model.DDMContent updateContent(
410                    long contentId, java.lang.String name, java.lang.String description,
411                    java.lang.String xml,
412                    com.liferay.portal.service.ServiceContext serviceContext)
413                    throws com.liferay.portal.kernel.exception.PortalException,
414                            com.liferay.portal.kernel.exception.SystemException {
415                    return _ddmContentLocalService.updateContent(contentId, name,
416                            description, xml, serviceContext);
417            }
418    
419            /**
420             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
421             */
422            public DDMContentLocalService getWrappedDDMContentLocalService() {
423                    return _ddmContentLocalService;
424            }
425    
426            /**
427             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
428             */
429            public void setWrappedDDMContentLocalService(
430                    DDMContentLocalService ddmContentLocalService) {
431                    _ddmContentLocalService = ddmContentLocalService;
432            }
433    
434            @Override
435            public DDMContentLocalService getWrappedService() {
436                    return _ddmContentLocalService;
437            }
438    
439            @Override
440            public void setWrappedService(DDMContentLocalService ddmContentLocalService) {
441                    _ddmContentLocalService = ddmContentLocalService;
442            }
443    
444            private DDMContentLocalService _ddmContentLocalService;
445    }