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