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     * <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            * @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            public com.liferay.portlet.dynamicdatamapping.model.DDMContent deleteDDMContent(
068                    long contentId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _ddmContentLocalService.deleteDDMContent(contentId);
072            }
073    
074            /**
075            * Deletes the d d m content from the database. Also notifies the appropriate model listeners.
076            *
077            * @param ddmContent the d d m content
078            * @return the d d m content that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portlet.dynamicdatamapping.model.DDMContent deleteDDMContent(
082                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _ddmContentLocalService.deleteDDMContent(ddmContent);
085            }
086    
087            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
088                    return _ddmContentLocalService.dynamicQuery();
089            }
090    
091            /**
092            * Performs a dynamic query on the database and returns the matching rows.
093            *
094            * @param dynamicQuery the dynamic query
095            * @return the matching rows
096            * @throws SystemException if a system exception occurred
097            */
098            @SuppressWarnings("rawtypes")
099            public java.util.List dynamicQuery(
100                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _ddmContentLocalService.dynamicQuery(dynamicQuery);
103            }
104    
105            /**
106            * Performs a dynamic query on the database and returns a range of the matching rows.
107            *
108            * <p>
109            * 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.
110            * </p>
111            *
112            * @param dynamicQuery the dynamic query
113            * @param start the lower bound of the range of model instances
114            * @param end the upper bound of the range of model instances (not inclusive)
115            * @return the range of matching rows
116            * @throws SystemException if a system exception occurred
117            */
118            @SuppressWarnings("rawtypes")
119            public java.util.List dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121                    int end) throws com.liferay.portal.kernel.exception.SystemException {
122                    return _ddmContentLocalService.dynamicQuery(dynamicQuery, start, end);
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
127            *
128            * <p>
129            * 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.
130            * </p>
131            *
132            * @param dynamicQuery the dynamic query
133            * @param start the lower bound of the range of model instances
134            * @param end the upper bound of the range of model instances (not inclusive)
135            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
136            * @return the ordered range of matching rows
137            * @throws SystemException if a system exception occurred
138            */
139            @SuppressWarnings("rawtypes")
140            public java.util.List dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142                    int end,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return _ddmContentLocalService.dynamicQuery(dynamicQuery, start, end,
146                            orderByComparator);
147            }
148    
149            /**
150            * Returns the number of rows that match the dynamic query.
151            *
152            * @param dynamicQuery the dynamic query
153            * @return the number of rows that match the dynamic query
154            * @throws SystemException if a system exception occurred
155            */
156            public long dynamicQueryCount(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _ddmContentLocalService.dynamicQueryCount(dynamicQuery);
160            }
161    
162            public com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchDDMContent(
163                    long contentId)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _ddmContentLocalService.fetchDDMContent(contentId);
166            }
167    
168            /**
169            * Returns the d d m content with the primary key.
170            *
171            * @param contentId the primary key of the d d m content
172            * @return the d d m content
173            * @throws PortalException if a d d m content with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.dynamicdatamapping.model.DDMContent getDDMContent(
177                    long contentId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _ddmContentLocalService.getDDMContent(contentId);
181            }
182    
183            public com.liferay.portal.model.PersistedModel getPersistedModel(
184                    java.io.Serializable primaryKeyObj)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _ddmContentLocalService.getPersistedModel(primaryKeyObj);
188            }
189    
190            /**
191            * Returns the d d m content with the UUID in the group.
192            *
193            * @param uuid the UUID of d d m content
194            * @param groupId the group id of the d d m content
195            * @return the d d m content
196            * @throws PortalException if a d d m content with the UUID in the group could not be found
197            * @throws SystemException if a system exception occurred
198            */
199            public com.liferay.portlet.dynamicdatamapping.model.DDMContent getDDMContentByUuidAndGroupId(
200                    java.lang.String uuid, long groupId)
201                    throws com.liferay.portal.kernel.exception.PortalException,
202                            com.liferay.portal.kernel.exception.SystemException {
203                    return _ddmContentLocalService.getDDMContentByUuidAndGroupId(uuid,
204                            groupId);
205            }
206    
207            /**
208            * Returns a range of all the d d m contents.
209            *
210            * <p>
211            * 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.
212            * </p>
213            *
214            * @param start the lower bound of the range of d d m contents
215            * @param end the upper bound of the range of d d m contents (not inclusive)
216            * @return the range of d d m contents
217            * @throws SystemException if a system exception occurred
218            */
219            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getDDMContents(
220                    int start, int end)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _ddmContentLocalService.getDDMContents(start, end);
223            }
224    
225            /**
226            * Returns the number of d d m contents.
227            *
228            * @return the number of d d m contents
229            * @throws SystemException if a system exception occurred
230            */
231            public int getDDMContentsCount()
232                    throws com.liferay.portal.kernel.exception.SystemException {
233                    return _ddmContentLocalService.getDDMContentsCount();
234            }
235    
236            /**
237            * Updates the d d m content in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
238            *
239            * @param ddmContent the d d m content
240            * @return the d d m content that was updated
241            * @throws SystemException if a system exception occurred
242            */
243            public com.liferay.portlet.dynamicdatamapping.model.DDMContent updateDDMContent(
244                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
245                    throws com.liferay.portal.kernel.exception.SystemException {
246                    return _ddmContentLocalService.updateDDMContent(ddmContent);
247            }
248    
249            /**
250            * Updates the d d m content in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
251            *
252            * @param ddmContent the d d m content
253            * @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.
254            * @return the d d m content that was updated
255            * @throws SystemException if a system exception occurred
256            */
257            public com.liferay.portlet.dynamicdatamapping.model.DDMContent updateDDMContent(
258                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent,
259                    boolean merge)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    return _ddmContentLocalService.updateDDMContent(ddmContent, merge);
262            }
263    
264            /**
265            * Returns the Spring bean ID for this bean.
266            *
267            * @return the Spring bean ID for this bean
268            */
269            public java.lang.String getBeanIdentifier() {
270                    return _ddmContentLocalService.getBeanIdentifier();
271            }
272    
273            /**
274            * Sets the Spring bean ID for this bean.
275            *
276            * @param beanIdentifier the Spring bean ID for this bean
277            */
278            public void setBeanIdentifier(java.lang.String beanIdentifier) {
279                    _ddmContentLocalService.setBeanIdentifier(beanIdentifier);
280            }
281    
282            public com.liferay.portlet.dynamicdatamapping.model.DDMContent addContent(
283                    long userId, long groupId, java.lang.String name,
284                    java.lang.String description, java.lang.String xml,
285                    com.liferay.portal.service.ServiceContext serviceContext)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    return _ddmContentLocalService.addContent(userId, groupId, name,
289                            description, xml, serviceContext);
290            }
291    
292            public void deleteContent(
293                    com.liferay.portlet.dynamicdatamapping.model.DDMContent content)
294                    throws com.liferay.portal.kernel.exception.SystemException {
295                    _ddmContentLocalService.deleteContent(content);
296            }
297    
298            public void deleteContents(long groupId)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    _ddmContentLocalService.deleteContents(groupId);
301            }
302    
303            public com.liferay.portlet.dynamicdatamapping.model.DDMContent getContent(
304                    long contentId)
305                    throws com.liferay.portal.kernel.exception.PortalException,
306                            com.liferay.portal.kernel.exception.SystemException {
307                    return _ddmContentLocalService.getContent(contentId);
308            }
309    
310            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents()
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return _ddmContentLocalService.getContents();
313            }
314    
315            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents(
316                    long groupId)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    return _ddmContentLocalService.getContents(groupId);
319            }
320    
321            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents(
322                    long groupId, int start, int end)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    return _ddmContentLocalService.getContents(groupId, start, end);
325            }
326    
327            public int getContentsCount(long groupId)
328                    throws com.liferay.portal.kernel.exception.SystemException {
329                    return _ddmContentLocalService.getContentsCount(groupId);
330            }
331    
332            public com.liferay.portlet.dynamicdatamapping.model.DDMContent updateContent(
333                    long contentId, java.lang.String name, java.lang.String description,
334                    java.lang.String xml,
335                    com.liferay.portal.service.ServiceContext serviceContext)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    return _ddmContentLocalService.updateContent(contentId, name,
339                            description, xml, serviceContext);
340            }
341    
342            /**
343             * @deprecated Renamed to {@link #getWrappedService}
344             */
345            public DDMContentLocalService getWrappedDDMContentLocalService() {
346                    return _ddmContentLocalService;
347            }
348    
349            /**
350             * @deprecated Renamed to {@link #setWrappedService}
351             */
352            public void setWrappedDDMContentLocalService(
353                    DDMContentLocalService ddmContentLocalService) {
354                    _ddmContentLocalService = ddmContentLocalService;
355            }
356    
357            public DDMContentLocalService getWrappedService() {
358                    return _ddmContentLocalService;
359            }
360    
361            public void setWrappedService(DDMContentLocalService ddmContentLocalService) {
362                    _ddmContentLocalService = ddmContentLocalService;
363            }
364    
365            private DDMContentLocalService _ddmContentLocalService;
366    }