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