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