001    /**
002     * Copyright (c) 2000-2011 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    /**
018     * <p>
019     * This class is a wrapper for {@link DDMContentLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       DDMContentLocalService
024     * @generated
025     */
026    public class DDMContentLocalServiceWrapper implements DDMContentLocalService {
027            public DDMContentLocalServiceWrapper(
028                    DDMContentLocalService ddmContentLocalService) {
029                    _ddmContentLocalService = ddmContentLocalService;
030            }
031    
032            /**
033            * Adds the d d m content to the database. Also notifies the appropriate model listeners.
034            *
035            * @param ddmContent the d d m content
036            * @return the d d m content that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portlet.dynamicdatamapping.model.DDMContent addDDMContent(
040                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _ddmContentLocalService.addDDMContent(ddmContent);
043            }
044    
045            /**
046            * Creates a new d d m content with the primary key. Does not add the d d m content to the database.
047            *
048            * @param contentId the primary key for the new d d m content
049            * @return the new d d m content
050            */
051            public com.liferay.portlet.dynamicdatamapping.model.DDMContent createDDMContent(
052                    long contentId) {
053                    return _ddmContentLocalService.createDDMContent(contentId);
054            }
055    
056            /**
057            * Deletes the d d m content with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param contentId the primary key of the d d m content
060            * @throws PortalException if a d d m content with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public void deleteDDMContent(long contentId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    _ddmContentLocalService.deleteDDMContent(contentId);
067            }
068    
069            /**
070            * Deletes the d d m content from the database. Also notifies the appropriate model listeners.
071            *
072            * @param ddmContent the d d m content
073            * @throws SystemException if a system exception occurred
074            */
075            public void deleteDDMContent(
076                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
077                    throws com.liferay.portal.kernel.exception.SystemException {
078                    _ddmContentLocalService.deleteDDMContent(ddmContent);
079            }
080    
081            /**
082            * Performs a dynamic query on the database and returns the matching rows.
083            *
084            * @param dynamicQuery the dynamic query
085            * @return the matching rows
086            * @throws SystemException if a system exception occurred
087            */
088            @SuppressWarnings("rawtypes")
089            public java.util.List dynamicQuery(
090                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
091                    throws com.liferay.portal.kernel.exception.SystemException {
092                    return _ddmContentLocalService.dynamicQuery(dynamicQuery);
093            }
094    
095            /**
096            * Performs a dynamic query on the database and returns a range of the matching rows.
097            *
098            * <p>
099            * 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.
100            * </p>
101            *
102            * @param dynamicQuery the dynamic query
103            * @param start the lower bound of the range of model instances
104            * @param end the upper bound of the range of model instances (not inclusive)
105            * @return the range of matching rows
106            * @throws SystemException if a system exception occurred
107            */
108            @SuppressWarnings("rawtypes")
109            public java.util.List dynamicQuery(
110                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
111                    int end) throws com.liferay.portal.kernel.exception.SystemException {
112                    return _ddmContentLocalService.dynamicQuery(dynamicQuery, start, end);
113            }
114    
115            /**
116            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
117            *
118            * <p>
119            * 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.
120            * </p>
121            *
122            * @param dynamicQuery the dynamic query
123            * @param start the lower bound of the range of model instances
124            * @param end the upper bound of the range of model instances (not inclusive)
125            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
126            * @return the ordered range of matching rows
127            * @throws SystemException if a system exception occurred
128            */
129            @SuppressWarnings("rawtypes")
130            public java.util.List dynamicQuery(
131                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
132                    int end,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return _ddmContentLocalService.dynamicQuery(dynamicQuery, start, end,
136                            orderByComparator);
137            }
138    
139            /**
140            * Returns the number of rows that match the dynamic query.
141            *
142            * @param dynamicQuery the dynamic query
143            * @return the number of rows that match the dynamic query
144            * @throws SystemException if a system exception occurred
145            */
146            public long dynamicQueryCount(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return _ddmContentLocalService.dynamicQueryCount(dynamicQuery);
150            }
151    
152            /**
153            * Returns the d d m content with the primary key.
154            *
155            * @param contentId the primary key of the d d m content
156            * @return the d d m content
157            * @throws PortalException if a d d m content with the primary key could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portlet.dynamicdatamapping.model.DDMContent getDDMContent(
161                    long contentId)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    return _ddmContentLocalService.getDDMContent(contentId);
165            }
166    
167            public com.liferay.portal.model.PersistedModel getPersistedModel(
168                    java.io.Serializable primaryKeyObj)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    return _ddmContentLocalService.getPersistedModel(primaryKeyObj);
172            }
173    
174            /**
175            * Returns the d d m content with the UUID in the group.
176            *
177            * @param uuid the UUID of d d m content
178            * @param groupId the group id of the d d m content
179            * @return the d d m content
180            * @throws PortalException if a d d m content with the UUID in the group could not be found
181            * @throws SystemException if a system exception occurred
182            */
183            public com.liferay.portlet.dynamicdatamapping.model.DDMContent getDDMContentByUuidAndGroupId(
184                    java.lang.String uuid, long groupId)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _ddmContentLocalService.getDDMContentByUuidAndGroupId(uuid,
188                            groupId);
189            }
190    
191            /**
192            * Returns a range of all the d d m contents.
193            *
194            * <p>
195            * 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.
196            * </p>
197            *
198            * @param start the lower bound of the range of d d m contents
199            * @param end the upper bound of the range of d d m contents (not inclusive)
200            * @return the range of d d m contents
201            * @throws SystemException if a system exception occurred
202            */
203            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getDDMContents(
204                    int start, int end)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return _ddmContentLocalService.getDDMContents(start, end);
207            }
208    
209            /**
210            * Returns the number of d d m contents.
211            *
212            * @return the number of d d m contents
213            * @throws SystemException if a system exception occurred
214            */
215            public int getDDMContentsCount()
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return _ddmContentLocalService.getDDMContentsCount();
218            }
219    
220            /**
221            * Updates the d d m content in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
222            *
223            * @param ddmContent the d d m content
224            * @return the d d m content that was updated
225            * @throws SystemException if a system exception occurred
226            */
227            public com.liferay.portlet.dynamicdatamapping.model.DDMContent updateDDMContent(
228                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return _ddmContentLocalService.updateDDMContent(ddmContent);
231            }
232    
233            /**
234            * Updates the d d m content in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
235            *
236            * @param ddmContent the d d m content
237            * @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.
238            * @return the d d m content that was updated
239            * @throws SystemException if a system exception occurred
240            */
241            public com.liferay.portlet.dynamicdatamapping.model.DDMContent updateDDMContent(
242                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent,
243                    boolean merge)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return _ddmContentLocalService.updateDDMContent(ddmContent, merge);
246            }
247    
248            /**
249            * Returns the Spring bean ID for this bean.
250            *
251            * @return the Spring bean ID for this bean
252            */
253            public java.lang.String getBeanIdentifier() {
254                    return _ddmContentLocalService.getBeanIdentifier();
255            }
256    
257            /**
258            * Sets the Spring bean ID for this bean.
259            *
260            * @param beanIdentifier the Spring bean ID for this bean
261            */
262            public void setBeanIdentifier(java.lang.String beanIdentifier) {
263                    _ddmContentLocalService.setBeanIdentifier(beanIdentifier);
264            }
265    
266            public com.liferay.portlet.dynamicdatamapping.model.DDMContent addContent(
267                    long userId, long groupId, java.lang.String name,
268                    java.lang.String description, java.lang.String xml,
269                    com.liferay.portal.service.ServiceContext serviceContext)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    return _ddmContentLocalService.addContent(userId, groupId, name,
273                            description, xml, serviceContext);
274            }
275    
276            public void deleteContent(
277                    com.liferay.portlet.dynamicdatamapping.model.DDMContent content)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    _ddmContentLocalService.deleteContent(content);
280            }
281    
282            public void deleteContents(long groupId)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    _ddmContentLocalService.deleteContents(groupId);
285            }
286    
287            public com.liferay.portlet.dynamicdatamapping.model.DDMContent getContent(
288                    long contentId)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    return _ddmContentLocalService.getContent(contentId);
292            }
293    
294            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents()
295                    throws com.liferay.portal.kernel.exception.SystemException {
296                    return _ddmContentLocalService.getContents();
297            }
298    
299            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents(
300                    long groupId)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    return _ddmContentLocalService.getContents(groupId);
303            }
304    
305            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents(
306                    long groupId, int start, int end)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return _ddmContentLocalService.getContents(groupId, start, end);
309            }
310    
311            public int getContentsCount(long groupId)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    return _ddmContentLocalService.getContentsCount(groupId);
314            }
315    
316            public com.liferay.portlet.dynamicdatamapping.model.DDMContent updateContent(
317                    long contentId, java.lang.String name, java.lang.String description,
318                    java.lang.String xml,
319                    com.liferay.portal.service.ServiceContext serviceContext)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    return _ddmContentLocalService.updateContent(contentId, name,
323                            description, xml, serviceContext);
324            }
325    
326            public DDMContentLocalService getWrappedDDMContentLocalService() {
327                    return _ddmContentLocalService;
328            }
329    
330            public void setWrappedDDMContentLocalService(
331                    DDMContentLocalService ddmContentLocalService) {
332                    _ddmContentLocalService = ddmContentLocalService;
333            }
334    
335            private DDMContentLocalService _ddmContentLocalService;
336    }