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