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