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.portlet.documentlibrary.model.DLFileVersion fetchLatestFileVersion(
204                    long fileEntryId, boolean excludeWorkingCopy) {
205                    return _dlFileVersionLocalService.fetchLatestFileVersion(fileEntryId,
206                            excludeWorkingCopy);
207            }
208    
209            @Override
210            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
211                    return _dlFileVersionLocalService.getActionableDynamicQuery();
212            }
213    
214            /**
215            * Returns the Spring bean ID for this bean.
216            *
217            * @return the Spring bean ID for this bean
218            */
219            @Override
220            public java.lang.String getBeanIdentifier() {
221                    return _dlFileVersionLocalService.getBeanIdentifier();
222            }
223    
224            /**
225            * Returns the document library file version with the primary key.
226            *
227            * @param fileVersionId the primary key of the document library file version
228            * @return the document library file version
229            * @throws PortalException if a document library file version with the primary key could not be found
230            */
231            @Override
232            public com.liferay.portlet.documentlibrary.model.DLFileVersion getDLFileVersion(
233                    long fileVersionId)
234                    throws com.liferay.portal.kernel.exception.PortalException {
235                    return _dlFileVersionLocalService.getDLFileVersion(fileVersionId);
236            }
237    
238            /**
239            * Returns the document library file version matching the UUID and group.
240            *
241            * @param uuid the document library file version's UUID
242            * @param groupId the primary key of the group
243            * @return the matching document library file version
244            * @throws PortalException if a matching document library file version could not be found
245            */
246            @Override
247            public com.liferay.portlet.documentlibrary.model.DLFileVersion getDLFileVersionByUuidAndGroupId(
248                    java.lang.String uuid, long groupId)
249                    throws com.liferay.portal.kernel.exception.PortalException {
250                    return _dlFileVersionLocalService.getDLFileVersionByUuidAndGroupId(uuid,
251                            groupId);
252            }
253    
254            /**
255            * Returns a range of all the document library file versions.
256            *
257            * <p>
258            * 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.
259            * </p>
260            *
261            * @param start the lower bound of the range of document library file versions
262            * @param end the upper bound of the range of document library file versions (not inclusive)
263            * @return the range of document library file versions
264            */
265            @Override
266            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getDLFileVersions(
267                    int start, int end) {
268                    return _dlFileVersionLocalService.getDLFileVersions(start, end);
269            }
270    
271            /**
272            * Returns all the document library file versions matching the UUID and company.
273            *
274            * @param uuid the UUID of the document library file versions
275            * @param companyId the primary key of the company
276            * @return the matching document library file versions, or an empty list if no matches were found
277            */
278            @Override
279            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getDLFileVersionsByUuidAndCompanyId(
280                    java.lang.String uuid, long companyId) {
281                    return _dlFileVersionLocalService.getDLFileVersionsByUuidAndCompanyId(uuid,
282                            companyId);
283            }
284    
285            /**
286            * Returns a range of document library file versions matching the UUID and company.
287            *
288            * @param uuid the UUID of the document library file versions
289            * @param companyId the primary key of the company
290            * @param start the lower bound of the range of document library file versions
291            * @param end the upper bound of the range of document library file versions (not inclusive)
292            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
293            * @return the range of matching document library file versions, or an empty list if no matches were found
294            */
295            @Override
296            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getDLFileVersionsByUuidAndCompanyId(
297                    java.lang.String uuid, long companyId, int start, int end,
298                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
299                    return _dlFileVersionLocalService.getDLFileVersionsByUuidAndCompanyId(uuid,
300                            companyId, start, end, orderByComparator);
301            }
302    
303            /**
304            * Returns the number of document library file versions.
305            *
306            * @return the number of document library file versions
307            */
308            @Override
309            public int getDLFileVersionsCount() {
310                    return _dlFileVersionLocalService.getDLFileVersionsCount();
311            }
312    
313            @Override
314            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
315                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
316                    return _dlFileVersionLocalService.getExportActionableDynamicQuery(portletDataContext);
317            }
318    
319            @Override
320            public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion(
321                    long fileEntryId, java.lang.String version)
322                    throws com.liferay.portal.kernel.exception.PortalException {
323                    return _dlFileVersionLocalService.getFileVersion(fileEntryId, version);
324            }
325    
326            @Override
327            public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion(
328                    long fileVersionId)
329                    throws com.liferay.portal.kernel.exception.PortalException {
330                    return _dlFileVersionLocalService.getFileVersion(fileVersionId);
331            }
332    
333            @Override
334            public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersionByUuidAndGroupId(
335                    java.lang.String uuid, long groupId) {
336                    return _dlFileVersionLocalService.getFileVersionByUuidAndGroupId(uuid,
337                            groupId);
338            }
339    
340            @Override
341            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getFileVersions(
342                    long fileEntryId, int status) {
343                    return _dlFileVersionLocalService.getFileVersions(fileEntryId, status);
344            }
345    
346            @Override
347            public int getFileVersionsCount(long fileEntryId, int status) {
348                    return _dlFileVersionLocalService.getFileVersionsCount(fileEntryId,
349                            status);
350            }
351    
352            @Override
353            public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(
354                    long fileEntryId, boolean excludeWorkingCopy)
355                    throws com.liferay.portal.kernel.exception.PortalException {
356                    return _dlFileVersionLocalService.getLatestFileVersion(fileEntryId,
357                            excludeWorkingCopy);
358            }
359    
360            @Override
361            public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(
362                    long userId, long fileEntryId)
363                    throws com.liferay.portal.kernel.exception.PortalException {
364                    return _dlFileVersionLocalService.getLatestFileVersion(userId,
365                            fileEntryId);
366            }
367    
368            @Override
369            public com.liferay.portal.model.PersistedModel getPersistedModel(
370                    java.io.Serializable primaryKeyObj)
371                    throws com.liferay.portal.kernel.exception.PortalException {
372                    return _dlFileVersionLocalService.getPersistedModel(primaryKeyObj);
373            }
374    
375            @Override
376            public void rebuildTree(long companyId)
377                    throws com.liferay.portal.kernel.exception.PortalException {
378                    _dlFileVersionLocalService.rebuildTree(companyId);
379            }
380    
381            /**
382            * Sets the Spring bean ID for this bean.
383            *
384            * @param beanIdentifier the Spring bean ID for this bean
385            */
386            @Override
387            public void setBeanIdentifier(java.lang.String beanIdentifier) {
388                    _dlFileVersionLocalService.setBeanIdentifier(beanIdentifier);
389            }
390    
391            @Override
392            public void setTreePaths(long folderId, java.lang.String treePath)
393                    throws com.liferay.portal.kernel.exception.PortalException {
394                    _dlFileVersionLocalService.setTreePaths(folderId, treePath);
395            }
396    
397            /**
398            * Updates the document library file version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
399            *
400            * @param dlFileVersion the document library file version
401            * @return the document library file version that was updated
402            */
403            @Override
404            public com.liferay.portlet.documentlibrary.model.DLFileVersion updateDLFileVersion(
405                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) {
406                    return _dlFileVersionLocalService.updateDLFileVersion(dlFileVersion);
407            }
408    
409            /**
410             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
411             */
412            @Deprecated
413            public DLFileVersionLocalService getWrappedDLFileVersionLocalService() {
414                    return _dlFileVersionLocalService;
415            }
416    
417            /**
418             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
419             */
420            @Deprecated
421            public void setWrappedDLFileVersionLocalService(
422                    DLFileVersionLocalService dlFileVersionLocalService) {
423                    _dlFileVersionLocalService = dlFileVersionLocalService;
424            }
425    
426            @Override
427            public DLFileVersionLocalService getWrappedService() {
428                    return _dlFileVersionLocalService;
429            }
430    
431            @Override
432            public void setWrappedService(
433                    DLFileVersionLocalService dlFileVersionLocalService) {
434                    _dlFileVersionLocalService = dlFileVersionLocalService;
435            }
436    
437            private DLFileVersionLocalService _dlFileVersionLocalService;
438    }