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