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