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 that match the dynamic query.
157            *
158            * @param dynamicQuery the dynamic query
159            * @return the number of rows that match 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 that match 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 that match 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            @Override
265            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getDLFileVersionsByUuidAndCompanyId(
266                    java.lang.String uuid, long companyId) {
267                    return _dlFileVersionLocalService.getDLFileVersionsByUuidAndCompanyId(uuid,
268                            companyId);
269            }
270    
271            @Override
272            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getDLFileVersionsByUuidAndCompanyId(
273                    java.lang.String uuid, long companyId, int start, int end,
274                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
275                    return _dlFileVersionLocalService.getDLFileVersionsByUuidAndCompanyId(uuid,
276                            companyId, start, end, orderByComparator);
277            }
278    
279            /**
280            * Returns the number of document library file versions.
281            *
282            * @return the number of document library file versions
283            */
284            @Override
285            public int getDLFileVersionsCount() {
286                    return _dlFileVersionLocalService.getDLFileVersionsCount();
287            }
288    
289            @Override
290            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
291                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
292                    return _dlFileVersionLocalService.getExportActionableDynamicQuery(portletDataContext);
293            }
294    
295            @Override
296            public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion(
297                    long fileEntryId, java.lang.String version)
298                    throws com.liferay.portal.kernel.exception.PortalException {
299                    return _dlFileVersionLocalService.getFileVersion(fileEntryId, version);
300            }
301    
302            @Override
303            public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion(
304                    long fileVersionId)
305                    throws com.liferay.portal.kernel.exception.PortalException {
306                    return _dlFileVersionLocalService.getFileVersion(fileVersionId);
307            }
308    
309            @Override
310            public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersionByUuidAndGroupId(
311                    java.lang.String uuid, long groupId) {
312                    return _dlFileVersionLocalService.getFileVersionByUuidAndGroupId(uuid,
313                            groupId);
314            }
315    
316            @Override
317            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getFileVersions(
318                    long fileEntryId, int status) {
319                    return _dlFileVersionLocalService.getFileVersions(fileEntryId, status);
320            }
321    
322            @Override
323            public int getFileVersionsCount(long fileEntryId, int status) {
324                    return _dlFileVersionLocalService.getFileVersionsCount(fileEntryId,
325                            status);
326            }
327    
328            @Override
329            public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(
330                    long fileEntryId, boolean excludeWorkingCopy)
331                    throws com.liferay.portal.kernel.exception.PortalException {
332                    return _dlFileVersionLocalService.getLatestFileVersion(fileEntryId,
333                            excludeWorkingCopy);
334            }
335    
336            @Override
337            public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(
338                    long userId, long fileEntryId)
339                    throws com.liferay.portal.kernel.exception.PortalException {
340                    return _dlFileVersionLocalService.getLatestFileVersion(userId,
341                            fileEntryId);
342            }
343    
344            @Override
345            public com.liferay.portal.model.PersistedModel getPersistedModel(
346                    java.io.Serializable primaryKeyObj)
347                    throws com.liferay.portal.kernel.exception.PortalException {
348                    return _dlFileVersionLocalService.getPersistedModel(primaryKeyObj);
349            }
350    
351            @Override
352            public void rebuildTree(long companyId)
353                    throws com.liferay.portal.kernel.exception.PortalException {
354                    _dlFileVersionLocalService.rebuildTree(companyId);
355            }
356    
357            /**
358            * Sets the Spring bean ID for this bean.
359            *
360            * @param beanIdentifier the Spring bean ID for this bean
361            */
362            @Override
363            public void setBeanIdentifier(java.lang.String beanIdentifier) {
364                    _dlFileVersionLocalService.setBeanIdentifier(beanIdentifier);
365            }
366    
367            @Override
368            public void setTreePaths(long folderId, java.lang.String treePath)
369                    throws com.liferay.portal.kernel.exception.PortalException {
370                    _dlFileVersionLocalService.setTreePaths(folderId, treePath);
371            }
372    
373            /**
374            * Updates the document library file version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
375            *
376            * @param dlFileVersion the document library file version
377            * @return the document library file version that was updated
378            */
379            @Override
380            public com.liferay.portlet.documentlibrary.model.DLFileVersion updateDLFileVersion(
381                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) {
382                    return _dlFileVersionLocalService.updateDLFileVersion(dlFileVersion);
383            }
384    
385            /**
386             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
387             */
388            @Deprecated
389            public DLFileVersionLocalService getWrappedDLFileVersionLocalService() {
390                    return _dlFileVersionLocalService;
391            }
392    
393            /**
394             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
395             */
396            @Deprecated
397            public void setWrappedDLFileVersionLocalService(
398                    DLFileVersionLocalService dlFileVersionLocalService) {
399                    _dlFileVersionLocalService = dlFileVersionLocalService;
400            }
401    
402            @Override
403            public DLFileVersionLocalService getWrappedService() {
404                    return _dlFileVersionLocalService;
405            }
406    
407            @Override
408            public void setWrappedService(
409                    DLFileVersionLocalService dlFileVersionLocalService) {
410                    _dlFileVersionLocalService = dlFileVersionLocalService;
411            }
412    
413            private DLFileVersionLocalService _dlFileVersionLocalService;
414    }