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 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.document.library.kernel.model.DLFileVersion addDLFileVersion(
045                    com.liferay.document.library.kernel.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.document.library.kernel.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.document.library.kernel.model.DLFileVersion deleteDLFileVersion(
069                    com.liferay.document.library.kernel.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.document.library.kernel.model.DLFileVersion deleteDLFileVersion(
082                    long fileVersionId)
083                    throws com.liferay.portal.kernel.exception.PortalException {
084                    return _dlFileVersionLocalService.deleteDLFileVersion(fileVersionId);
085            }
086    
087            @Override
088            public com.liferay.document.library.kernel.model.DLFileVersion fetchDLFileVersion(
089                    long fileVersionId) {
090                    return _dlFileVersionLocalService.fetchDLFileVersion(fileVersionId);
091            }
092    
093            /**
094            * Returns the document library file version matching the UUID and group.
095            *
096            * @param uuid the document library file version's UUID
097            * @param groupId the primary key of the group
098            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
099            */
100            @Override
101            public com.liferay.document.library.kernel.model.DLFileVersion fetchDLFileVersionByUuidAndGroupId(
102                    java.lang.String uuid, long groupId) {
103                    return _dlFileVersionLocalService.fetchDLFileVersionByUuidAndGroupId(uuid,
104                            groupId);
105            }
106    
107            @Override
108            public com.liferay.document.library.kernel.model.DLFileVersion fetchLatestFileVersion(
109                    long fileEntryId, boolean excludeWorkingCopy) {
110                    return _dlFileVersionLocalService.fetchLatestFileVersion(fileEntryId,
111                            excludeWorkingCopy);
112            }
113    
114            /**
115            * Returns the document library file version with the primary key.
116            *
117            * @param fileVersionId the primary key of the document library file version
118            * @return the document library file version
119            * @throws PortalException if a document library file version with the primary key could not be found
120            */
121            @Override
122            public com.liferay.document.library.kernel.model.DLFileVersion getDLFileVersion(
123                    long fileVersionId)
124                    throws com.liferay.portal.kernel.exception.PortalException {
125                    return _dlFileVersionLocalService.getDLFileVersion(fileVersionId);
126            }
127    
128            /**
129            * Returns the document library file version matching the UUID and group.
130            *
131            * @param uuid the document library file version's UUID
132            * @param groupId the primary key of the group
133            * @return the matching document library file version
134            * @throws PortalException if a matching document library file version could not be found
135            */
136            @Override
137            public com.liferay.document.library.kernel.model.DLFileVersion getDLFileVersionByUuidAndGroupId(
138                    java.lang.String uuid, long groupId)
139                    throws com.liferay.portal.kernel.exception.PortalException {
140                    return _dlFileVersionLocalService.getDLFileVersionByUuidAndGroupId(uuid,
141                            groupId);
142            }
143    
144            @Override
145            public com.liferay.document.library.kernel.model.DLFileVersion getFileVersion(
146                    long fileEntryId, java.lang.String version)
147                    throws com.liferay.portal.kernel.exception.PortalException {
148                    return _dlFileVersionLocalService.getFileVersion(fileEntryId, version);
149            }
150    
151            @Override
152            public com.liferay.document.library.kernel.model.DLFileVersion getFileVersion(
153                    long fileVersionId)
154                    throws com.liferay.portal.kernel.exception.PortalException {
155                    return _dlFileVersionLocalService.getFileVersion(fileVersionId);
156            }
157    
158            @Override
159            public com.liferay.document.library.kernel.model.DLFileVersion getFileVersionByUuidAndGroupId(
160                    java.lang.String uuid, long groupId) {
161                    return _dlFileVersionLocalService.getFileVersionByUuidAndGroupId(uuid,
162                            groupId);
163            }
164    
165            @Override
166            public com.liferay.document.library.kernel.model.DLFileVersion getLatestFileVersion(
167                    long fileEntryId, boolean excludeWorkingCopy)
168                    throws com.liferay.portal.kernel.exception.PortalException {
169                    return _dlFileVersionLocalService.getLatestFileVersion(fileEntryId,
170                            excludeWorkingCopy);
171            }
172    
173            @Override
174            public com.liferay.document.library.kernel.model.DLFileVersion getLatestFileVersion(
175                    long userId, long fileEntryId)
176                    throws com.liferay.portal.kernel.exception.PortalException {
177                    return _dlFileVersionLocalService.getLatestFileVersion(userId,
178                            fileEntryId);
179            }
180    
181            /**
182            * Updates the document library file version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
183            *
184            * @param dlFileVersion the document library file version
185            * @return the document library file version that was updated
186            */
187            @Override
188            public com.liferay.document.library.kernel.model.DLFileVersion updateDLFileVersion(
189                    com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion) {
190                    return _dlFileVersionLocalService.updateDLFileVersion(dlFileVersion);
191            }
192    
193            @Override
194            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
195                    return _dlFileVersionLocalService.getActionableDynamicQuery();
196            }
197    
198            @Override
199            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
200                    return _dlFileVersionLocalService.dynamicQuery();
201            }
202    
203            @Override
204            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
205                    com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) {
206                    return _dlFileVersionLocalService.getExportActionableDynamicQuery(portletDataContext);
207            }
208    
209            @Override
210            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
211                    return _dlFileVersionLocalService.getIndexableActionableDynamicQuery();
212            }
213    
214            /**
215            * @throws PortalException
216            */
217            @Override
218            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
219                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
220                    throws com.liferay.portal.kernel.exception.PortalException {
221                    return _dlFileVersionLocalService.deletePersistedModel(persistedModel);
222            }
223    
224            @Override
225            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
226                    java.io.Serializable primaryKeyObj)
227                    throws com.liferay.portal.kernel.exception.PortalException {
228                    return _dlFileVersionLocalService.getPersistedModel(primaryKeyObj);
229            }
230    
231            /**
232            * Returns the number of document library file versions.
233            *
234            * @return the number of document library file versions
235            */
236            @Override
237            public int getDLFileVersionsCount() {
238                    return _dlFileVersionLocalService.getDLFileVersionsCount();
239            }
240    
241            @Override
242            public int getFileVersionsCount(long fileEntryId, int status) {
243                    return _dlFileVersionLocalService.getFileVersionsCount(fileEntryId,
244                            status);
245            }
246    
247            /**
248            * Returns the OSGi service identifier.
249            *
250            * @return the OSGi service identifier
251            */
252            @Override
253            public java.lang.String getOSGiServiceIdentifier() {
254                    return _dlFileVersionLocalService.getOSGiServiceIdentifier();
255            }
256    
257            /**
258            * Performs a dynamic query on the database and returns the matching rows.
259            *
260            * @param dynamicQuery the dynamic query
261            * @return the matching rows
262            */
263            @Override
264            public <T> java.util.List<T> dynamicQuery(
265                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
266                    return _dlFileVersionLocalService.dynamicQuery(dynamicQuery);
267            }
268    
269            /**
270            * Performs a dynamic query on the database and returns a range of the matching rows.
271            *
272            * <p>
273            * 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.
274            * </p>
275            *
276            * @param dynamicQuery the dynamic query
277            * @param start the lower bound of the range of model instances
278            * @param end the upper bound of the range of model instances (not inclusive)
279            * @return the range of matching rows
280            */
281            @Override
282            public <T> java.util.List<T> dynamicQuery(
283                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
284                    int end) {
285                    return _dlFileVersionLocalService.dynamicQuery(dynamicQuery, start, end);
286            }
287    
288            /**
289            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
290            *
291            * <p>
292            * 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.
293            * </p>
294            *
295            * @param dynamicQuery the dynamic query
296            * @param start the lower bound of the range of model instances
297            * @param end the upper bound of the range of model instances (not inclusive)
298            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
299            * @return the ordered range of matching rows
300            */
301            @Override
302            public <T> java.util.List<T> dynamicQuery(
303                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
304                    int end,
305                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
306                    return _dlFileVersionLocalService.dynamicQuery(dynamicQuery, start,
307                            end, orderByComparator);
308            }
309    
310            /**
311            * Returns a range of all the document library file versions.
312            *
313            * <p>
314            * 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.
315            * </p>
316            *
317            * @param start the lower bound of the range of document library file versions
318            * @param end the upper bound of the range of document library file versions (not inclusive)
319            * @return the range of document library file versions
320            */
321            @Override
322            public java.util.List<com.liferay.document.library.kernel.model.DLFileVersion> getDLFileVersions(
323                    int start, int end) {
324                    return _dlFileVersionLocalService.getDLFileVersions(start, end);
325            }
326    
327            /**
328            * Returns all the document library file versions matching the UUID and company.
329            *
330            * @param uuid the UUID of the document library file versions
331            * @param companyId the primary key of the company
332            * @return the matching document library file versions, or an empty list if no matches were found
333            */
334            @Override
335            public java.util.List<com.liferay.document.library.kernel.model.DLFileVersion> getDLFileVersionsByUuidAndCompanyId(
336                    java.lang.String uuid, long companyId) {
337                    return _dlFileVersionLocalService.getDLFileVersionsByUuidAndCompanyId(uuid,
338                            companyId);
339            }
340    
341            /**
342            * Returns a range of document library file versions matching the UUID and company.
343            *
344            * @param uuid the UUID of the document library file versions
345            * @param companyId the primary key of the company
346            * @param start the lower bound of the range of document library file versions
347            * @param end the upper bound of the range of document library file versions (not inclusive)
348            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
349            * @return the range of matching document library file versions, or an empty list if no matches were found
350            */
351            @Override
352            public java.util.List<com.liferay.document.library.kernel.model.DLFileVersion> getDLFileVersionsByUuidAndCompanyId(
353                    java.lang.String uuid, long companyId, int start, int end,
354                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileVersion> orderByComparator) {
355                    return _dlFileVersionLocalService.getDLFileVersionsByUuidAndCompanyId(uuid,
356                            companyId, start, end, orderByComparator);
357            }
358    
359            @Override
360            public java.util.List<com.liferay.document.library.kernel.model.DLFileVersion> getFileVersions(
361                    long fileEntryId, int status) {
362                    return _dlFileVersionLocalService.getFileVersions(fileEntryId, status);
363            }
364    
365            /**
366            * Returns the number of rows matching the dynamic query.
367            *
368            * @param dynamicQuery the dynamic query
369            * @return the number of rows matching the dynamic query
370            */
371            @Override
372            public long dynamicQueryCount(
373                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
374                    return _dlFileVersionLocalService.dynamicQueryCount(dynamicQuery);
375            }
376    
377            /**
378            * Returns the number of rows matching the dynamic query.
379            *
380            * @param dynamicQuery the dynamic query
381            * @param projection the projection to apply to the query
382            * @return the number of rows matching the dynamic query
383            */
384            @Override
385            public long dynamicQueryCount(
386                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
387                    com.liferay.portal.kernel.dao.orm.Projection projection) {
388                    return _dlFileVersionLocalService.dynamicQueryCount(dynamicQuery,
389                            projection);
390            }
391    
392            @Override
393            public void rebuildTree(long companyId)
394                    throws com.liferay.portal.kernel.exception.PortalException {
395                    _dlFileVersionLocalService.rebuildTree(companyId);
396            }
397    
398            @Override
399            public void setTreePaths(long folderId, java.lang.String treePath)
400                    throws com.liferay.portal.kernel.exception.PortalException {
401                    _dlFileVersionLocalService.setTreePaths(folderId, treePath);
402            }
403    
404            @Override
405            public DLFileVersionLocalService getWrappedService() {
406                    return _dlFileVersionLocalService;
407            }
408    
409            @Override
410            public void setWrappedService(
411                    DLFileVersionLocalService dlFileVersionLocalService) {
412                    _dlFileVersionLocalService = dlFileVersionLocalService;
413            }
414    
415            private DLFileVersionLocalService _dlFileVersionLocalService;
416    }