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 DLFileVersionLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see DLFileVersionLocalService
026     * @generated
027     */
028    @ProviderType
029    public class DLFileVersionLocalServiceWrapper
030            implements DLFileVersionLocalService,
031                    ServiceWrapper<DLFileVersionLocalService> {
032            public DLFileVersionLocalServiceWrapper(
033                    DLFileVersionLocalService dlFileVersionLocalService) {
034                    _dlFileVersionLocalService = dlFileVersionLocalService;
035            }
036    
037            /**
038            * Adds the document library file version to the database. Also notifies the appropriate model listeners.
039            *
040            * @param dlFileVersion the document library file version
041            * @return the document library file version that was added
042            */
043            @Override
044            public com.liferay.portlet.documentlibrary.model.DLFileVersion addDLFileVersion(
045                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) {
046                    return _dlFileVersionLocalService.addDLFileVersion(dlFileVersion);
047            }
048    
049            /**
050            * Creates a new document library file version with the primary key. Does not add the document library file version to the database.
051            *
052            * @param fileVersionId the primary key for the new document library file version
053            * @return the new document library file version
054            */
055            @Override
056            public com.liferay.portlet.documentlibrary.model.DLFileVersion createDLFileVersion(
057                    long fileVersionId) {
058                    return _dlFileVersionLocalService.createDLFileVersion(fileVersionId);
059            }
060    
061            /**
062            * Deletes the document library file version from the database. Also notifies the appropriate model listeners.
063            *
064            * @param dlFileVersion the document library file version
065            * @return the document library file version that was removed
066            */
067            @Override
068            public com.liferay.portlet.documentlibrary.model.DLFileVersion deleteDLFileVersion(
069                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) {
070                    return _dlFileVersionLocalService.deleteDLFileVersion(dlFileVersion);
071            }
072    
073            /**
074            * Deletes the document library file version with the primary key from the database. Also notifies the appropriate model listeners.
075            *
076            * @param fileVersionId the primary key of the document library file version
077            * @return the document library file version that was removed
078            * @throws PortalException if a document library file version with the primary key could not be found
079            */
080            @Override
081            public com.liferay.portlet.documentlibrary.model.DLFileVersion deleteDLFileVersion(
082                    long fileVersionId)
083                    throws com.liferay.portal.kernel.exception.PortalException {
084                    return _dlFileVersionLocalService.deleteDLFileVersion(fileVersionId);
085            }
086    
087            /**
088            * @throws PortalException
089            */
090            @Override
091            public com.liferay.portal.model.PersistedModel deletePersistedModel(
092                    com.liferay.portal.model.PersistedModel persistedModel)
093                    throws com.liferay.portal.kernel.exception.PortalException {
094                    return _dlFileVersionLocalService.deletePersistedModel(persistedModel);
095            }
096    
097            @Override
098            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
099                    return _dlFileVersionLocalService.dynamicQuery();
100            }
101    
102            /**
103            * Performs a dynamic query on the database and returns the matching rows.
104            *
105            * @param dynamicQuery the dynamic query
106            * @return the matching rows
107            */
108            @Override
109            public <T> java.util.List<T> dynamicQuery(
110                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
111                    return _dlFileVersionLocalService.dynamicQuery(dynamicQuery);
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns a range of the matching rows.
116            *
117            * <p>
118            * 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.DLFileVersionModelImpl}. 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.
119            * </p>
120            *
121            * @param dynamicQuery the dynamic query
122            * @param start the lower bound of the range of model instances
123            * @param end the upper bound of the range of model instances (not inclusive)
124            * @return the range of matching rows
125            */
126            @Override
127            public <T> java.util.List<T> dynamicQuery(
128                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129                    int end) {
130                    return _dlFileVersionLocalService.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.DLFileVersionModelImpl}. 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            */
146            @Override
147            public <T> java.util.List<T> dynamicQuery(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
149                    int end,
150                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
151                    return _dlFileVersionLocalService.dynamicQuery(dynamicQuery, start,
152                            end, orderByComparator);
153            }
154    
155            /**
156            * Returns the number of rows matching the dynamic query.
157            *
158            * @param dynamicQuery the dynamic query
159            * @return the number of rows matching the dynamic query
160            */
161            @Override
162            public long dynamicQueryCount(
163                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
164                    return _dlFileVersionLocalService.dynamicQueryCount(dynamicQuery);
165            }
166    
167            /**
168            * Returns the number of rows matching the dynamic query.
169            *
170            * @param dynamicQuery the dynamic query
171            * @param projection the projection to apply to the query
172            * @return the number of rows matching the dynamic query
173            */
174            @Override
175            public long dynamicQueryCount(
176                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
177                    com.liferay.portal.kernel.dao.orm.Projection projection) {
178                    return _dlFileVersionLocalService.dynamicQueryCount(dynamicQuery,
179                            projection);
180            }
181    
182            @Override
183            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchDLFileVersion(
184                    long fileVersionId) {
185                    return _dlFileVersionLocalService.fetchDLFileVersion(fileVersionId);
186            }
187    
188            /**
189            * Returns the document library file version matching the UUID and group.
190            *
191            * @param uuid the document library file version's UUID
192            * @param groupId the primary key of the group
193            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
194            */
195            @Override
196            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchDLFileVersionByUuidAndGroupId(
197                    java.lang.String uuid, long groupId) {
198                    return _dlFileVersionLocalService.fetchDLFileVersionByUuidAndGroupId(uuid,
199                            groupId);
200            }
201    
202            @Override
203            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
204                    return _dlFileVersionLocalService.getActionableDynamicQuery();
205            }
206    
207            /**
208            * Returns the Spring bean ID for this bean.
209            *
210            * @return the Spring bean ID for this bean
211            */
212            @Override
213            public java.lang.String getBeanIdentifier() {
214                    return _dlFileVersionLocalService.getBeanIdentifier();
215            }
216    
217            /**
218            * Returns the document library file version with the primary key.
219            *
220            * @param fileVersionId the primary key of the document library file version
221            * @return the document library file version
222            * @throws PortalException if a document library file version with the primary key could not be found
223            */
224            @Override
225            public com.liferay.portlet.documentlibrary.model.DLFileVersion getDLFileVersion(
226                    long fileVersionId)
227                    throws com.liferay.portal.kernel.exception.PortalException {
228                    return _dlFileVersionLocalService.getDLFileVersion(fileVersionId);
229            }
230    
231            /**
232            * Returns the document library file version matching the UUID and group.
233            *
234            * @param uuid the document library file version's UUID
235            * @param groupId the primary key of the group
236            * @return the matching document library file version
237            * @throws PortalException if a matching document library file version could not be found
238            */
239            @Override
240            public com.liferay.portlet.documentlibrary.model.DLFileVersion getDLFileVersionByUuidAndGroupId(
241                    java.lang.String uuid, long groupId)
242                    throws com.liferay.portal.kernel.exception.PortalException {
243                    return _dlFileVersionLocalService.getDLFileVersionByUuidAndGroupId(uuid,
244                            groupId);
245            }
246    
247            /**
248            * Returns a range of all the document library file versions.
249            *
250            * <p>
251            * 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.DLFileVersionModelImpl}. 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.
252            * </p>
253            *
254            * @param start the lower bound of the range of document library file versions
255            * @param end the upper bound of the range of document library file versions (not inclusive)
256            * @return the range of document library file versions
257            */
258            @Override
259            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getDLFileVersions(
260                    int start, int end) {
261                    return _dlFileVersionLocalService.getDLFileVersions(start, end);
262            }
263    
264            /**
265            * Returns all the document library file versions matching the UUID and company.
266            *
267            * @param uuid the UUID of the document library file versions
268            * @param companyId the primary key of the company
269            * @return the matching document library file versions, or an empty list if no matches were found
270            */
271            @Override
272            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getDLFileVersionsByUuidAndCompanyId(
273                    java.lang.String uuid, long companyId) {
274                    return _dlFileVersionLocalService.getDLFileVersionsByUuidAndCompanyId(uuid,
275                            companyId);
276            }
277    
278            /**
279            * Returns a range of document library file versions matching the UUID and company.
280            *
281            * @param uuid the UUID of the document library file versions
282            * @param companyId the primary key of the company
283            * @param start the lower bound of the range of document library file versions
284            * @param end the upper bound of the range of document library file versions (not inclusive)
285            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
286            * @return the range of matching document library file versions, or an empty list if no matches were found
287            */
288            @Override
289            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getDLFileVersionsByUuidAndCompanyId(
290                    java.lang.String uuid, long companyId, int start, int end,
291                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
292                    return _dlFileVersionLocalService.getDLFileVersionsByUuidAndCompanyId(uuid,
293                            companyId, start, end, orderByComparator);
294            }
295    
296            /**
297            * Returns the number of document library file versions.
298            *
299            * @return the number of document library file versions
300            */
301            @Override
302            public int getDLFileVersionsCount() {
303                    return _dlFileVersionLocalService.getDLFileVersionsCount();
304            }
305    
306            @Override
307            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
308                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
309                    return _dlFileVersionLocalService.getExportActionableDynamicQuery(portletDataContext);
310            }
311    
312            @Override
313            public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion(
314                    long fileEntryId, java.lang.String version)
315                    throws com.liferay.portal.kernel.exception.PortalException {
316                    return _dlFileVersionLocalService.getFileVersion(fileEntryId, version);
317            }
318    
319            @Override
320            public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion(
321                    long fileVersionId)
322                    throws com.liferay.portal.kernel.exception.PortalException {
323                    return _dlFileVersionLocalService.getFileVersion(fileVersionId);
324            }
325    
326            @Override
327            public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersionByUuidAndGroupId(
328                    java.lang.String uuid, long groupId) {
329                    return _dlFileVersionLocalService.getFileVersionByUuidAndGroupId(uuid,
330                            groupId);
331            }
332    
333            @Override
334            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getFileVersions(
335                    long fileEntryId, int status) {
336                    return _dlFileVersionLocalService.getFileVersions(fileEntryId, status);
337            }
338    
339            @Override
340            public int getFileVersionsCount(long fileEntryId, int status) {
341                    return _dlFileVersionLocalService.getFileVersionsCount(fileEntryId,
342                            status);
343            }
344    
345            @Override
346            public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(
347                    long fileEntryId, boolean excludeWorkingCopy)
348                    throws com.liferay.portal.kernel.exception.PortalException {
349                    return _dlFileVersionLocalService.getLatestFileVersion(fileEntryId,
350                            excludeWorkingCopy);
351            }
352    
353            @Override
354            public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(
355                    long userId, long fileEntryId)
356                    throws com.liferay.portal.kernel.exception.PortalException {
357                    return _dlFileVersionLocalService.getLatestFileVersion(userId,
358                            fileEntryId);
359            }
360    
361            @Override
362            public com.liferay.portal.model.PersistedModel getPersistedModel(
363                    java.io.Serializable primaryKeyObj)
364                    throws com.liferay.portal.kernel.exception.PortalException {
365                    return _dlFileVersionLocalService.getPersistedModel(primaryKeyObj);
366            }
367    
368            @Override
369            public void rebuildTree(long companyId)
370                    throws com.liferay.portal.kernel.exception.PortalException {
371                    _dlFileVersionLocalService.rebuildTree(companyId);
372            }
373    
374            /**
375            * Sets the Spring bean ID for this bean.
376            *
377            * @param beanIdentifier the Spring bean ID for this bean
378            */
379            @Override
380            public void setBeanIdentifier(java.lang.String beanIdentifier) {
381                    _dlFileVersionLocalService.setBeanIdentifier(beanIdentifier);
382            }
383    
384            @Override
385            public void setTreePaths(long folderId, java.lang.String treePath)
386                    throws com.liferay.portal.kernel.exception.PortalException {
387                    _dlFileVersionLocalService.setTreePaths(folderId, treePath);
388            }
389    
390            /**
391            * Updates the document library file version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
392            *
393            * @param dlFileVersion the document library file version
394            * @return the document library file version that was updated
395            */
396            @Override
397            public com.liferay.portlet.documentlibrary.model.DLFileVersion updateDLFileVersion(
398                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) {
399                    return _dlFileVersionLocalService.updateDLFileVersion(dlFileVersion);
400            }
401    
402            /**
403             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
404             */
405            @Deprecated
406            public DLFileVersionLocalService getWrappedDLFileVersionLocalService() {
407                    return _dlFileVersionLocalService;
408            }
409    
410            /**
411             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
412             */
413            @Deprecated
414            public void setWrappedDLFileVersionLocalService(
415                    DLFileVersionLocalService dlFileVersionLocalService) {
416                    _dlFileVersionLocalService = dlFileVersionLocalService;
417            }
418    
419            @Override
420            public DLFileVersionLocalService getWrappedService() {
421                    return _dlFileVersionLocalService;
422            }
423    
424            @Override
425            public void setWrappedService(
426                    DLFileVersionLocalService dlFileVersionLocalService) {
427                    _dlFileVersionLocalService = dlFileVersionLocalService;
428            }
429    
430            private DLFileVersionLocalService _dlFileVersionLocalService;
431    }