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 DDMContentLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DDMContentLocalService
026     * @generated
027     */
028    public class DDMContentLocalServiceWrapper implements DDMContentLocalService,
029            ServiceWrapper<DDMContentLocalService> {
030            public DDMContentLocalServiceWrapper(
031                    DDMContentLocalService ddmContentLocalService) {
032                    _ddmContentLocalService = ddmContentLocalService;
033            }
034    
035            /**
036            * Adds the d d m content to the database. Also notifies the appropriate model listeners.
037            *
038            * @param ddmContent the d d m content
039            * @return the d d m content that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.dynamicdatamapping.model.DDMContent addDDMContent(
043                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _ddmContentLocalService.addDDMContent(ddmContent);
046            }
047    
048            /**
049            * Creates a new d d m content with the primary key. Does not add the d d m content to the database.
050            *
051            * @param contentId the primary key for the new d d m content
052            * @return the new d d m content
053            */
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            * @throws PortalException if a d d m content with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            public void deleteDDMContent(long contentId)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    _ddmContentLocalService.deleteDDMContent(contentId);
070            }
071    
072            /**
073            * Deletes the d d m content from the database. Also notifies the appropriate model listeners.
074            *
075            * @param ddmContent the d d m content
076            * @throws SystemException if a system exception occurred
077            */
078            public void deleteDDMContent(
079                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    _ddmContentLocalService.deleteDDMContent(ddmContent);
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 _ddmContentLocalService.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 _ddmContentLocalService.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 _ddmContentLocalService.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 _ddmContentLocalService.dynamicQueryCount(dynamicQuery);
153            }
154    
155            public com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchDDMContent(
156                    long contentId)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _ddmContentLocalService.fetchDDMContent(contentId);
159            }
160    
161            /**
162            * Returns the d d m content with the primary key.
163            *
164            * @param contentId the primary key of the d d m content
165            * @return the d d m content
166            * @throws PortalException if a d d m content with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            public com.liferay.portlet.dynamicdatamapping.model.DDMContent getDDMContent(
170                    long contentId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _ddmContentLocalService.getDDMContent(contentId);
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 _ddmContentLocalService.getPersistedModel(primaryKeyObj);
181            }
182    
183            /**
184            * Returns the d d m content with the UUID in the group.
185            *
186            * @param uuid the UUID of d d m content
187            * @param groupId the group id of the d d m content
188            * @return the d d m content
189            * @throws PortalException if a d d m content 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.DDMContent getDDMContentByUuidAndGroupId(
193                    java.lang.String uuid, long groupId)
194                    throws com.liferay.portal.kernel.exception.PortalException,
195                            com.liferay.portal.kernel.exception.SystemException {
196                    return _ddmContentLocalService.getDDMContentByUuidAndGroupId(uuid,
197                            groupId);
198            }
199    
200            /**
201            * Returns a range of all the d d m contents.
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 contents
208            * @param end the upper bound of the range of d d m contents (not inclusive)
209            * @return the range of d d m contents
210            * @throws SystemException if a system exception occurred
211            */
212            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getDDMContents(
213                    int start, int end)
214                    throws com.liferay.portal.kernel.exception.SystemException {
215                    return _ddmContentLocalService.getDDMContents(start, end);
216            }
217    
218            /**
219            * Returns the number of d d m contents.
220            *
221            * @return the number of d d m contents
222            * @throws SystemException if a system exception occurred
223            */
224            public int getDDMContentsCount()
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return _ddmContentLocalService.getDDMContentsCount();
227            }
228    
229            /**
230            * Updates the d d m content in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
231            *
232            * @param ddmContent the d d m content
233            * @return the d d m content that was updated
234            * @throws SystemException if a system exception occurred
235            */
236            public com.liferay.portlet.dynamicdatamapping.model.DDMContent updateDDMContent(
237                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
238                    throws com.liferay.portal.kernel.exception.SystemException {
239                    return _ddmContentLocalService.updateDDMContent(ddmContent);
240            }
241    
242            /**
243            * Updates the d d m content in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
244            *
245            * @param ddmContent the d d m content
246            * @param merge whether to merge the d d m content 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 content that was updated
248            * @throws SystemException if a system exception occurred
249            */
250            public com.liferay.portlet.dynamicdatamapping.model.DDMContent updateDDMContent(
251                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent,
252                    boolean merge)
253                    throws com.liferay.portal.kernel.exception.SystemException {
254                    return _ddmContentLocalService.updateDDMContent(ddmContent, 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 _ddmContentLocalService.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                    _ddmContentLocalService.setBeanIdentifier(beanIdentifier);
273            }
274    
275            public com.liferay.portlet.dynamicdatamapping.model.DDMContent addContent(
276                    long userId, long groupId, java.lang.String name,
277                    java.lang.String description, java.lang.String xml,
278                    com.liferay.portal.service.ServiceContext serviceContext)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    return _ddmContentLocalService.addContent(userId, groupId, name,
282                            description, xml, serviceContext);
283            }
284    
285            public void deleteContent(
286                    com.liferay.portlet.dynamicdatamapping.model.DDMContent content)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    _ddmContentLocalService.deleteContent(content);
289            }
290    
291            public void deleteContents(long groupId)
292                    throws com.liferay.portal.kernel.exception.SystemException {
293                    _ddmContentLocalService.deleteContents(groupId);
294            }
295    
296            public com.liferay.portlet.dynamicdatamapping.model.DDMContent getContent(
297                    long contentId)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException {
300                    return _ddmContentLocalService.getContent(contentId);
301            }
302    
303            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents()
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    return _ddmContentLocalService.getContents();
306            }
307    
308            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents(
309                    long groupId)
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    return _ddmContentLocalService.getContents(groupId);
312            }
313    
314            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents(
315                    long groupId, int start, int end)
316                    throws com.liferay.portal.kernel.exception.SystemException {
317                    return _ddmContentLocalService.getContents(groupId, start, end);
318            }
319    
320            public int getContentsCount(long groupId)
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    return _ddmContentLocalService.getContentsCount(groupId);
323            }
324    
325            public com.liferay.portlet.dynamicdatamapping.model.DDMContent updateContent(
326                    long contentId, java.lang.String name, java.lang.String description,
327                    java.lang.String xml,
328                    com.liferay.portal.service.ServiceContext serviceContext)
329                    throws com.liferay.portal.kernel.exception.PortalException,
330                            com.liferay.portal.kernel.exception.SystemException {
331                    return _ddmContentLocalService.updateContent(contentId, name,
332                            description, xml, serviceContext);
333            }
334    
335            /**
336             * @deprecated Renamed to {@link #getWrappedService}
337             */
338            public DDMContentLocalService getWrappedDDMContentLocalService() {
339                    return _ddmContentLocalService;
340            }
341    
342            /**
343             * @deprecated Renamed to {@link #setWrappedService}
344             */
345            public void setWrappedDDMContentLocalService(
346                    DDMContentLocalService ddmContentLocalService) {
347                    _ddmContentLocalService = ddmContentLocalService;
348            }
349    
350            public DDMContentLocalService getWrappedService() {
351                    return _ddmContentLocalService;
352            }
353    
354            public void setWrappedService(DDMContentLocalService ddmContentLocalService) {
355                    _ddmContentLocalService = ddmContentLocalService;
356            }
357    
358            private DDMContentLocalService _ddmContentLocalService;
359    }