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 DLFileRankLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see DLFileRankLocalService
026     * @generated
027     */
028    @ProviderType
029    public class DLFileRankLocalServiceWrapper implements DLFileRankLocalService,
030            ServiceWrapper<DLFileRankLocalService> {
031            public DLFileRankLocalServiceWrapper(
032                    DLFileRankLocalService dlFileRankLocalService) {
033                    _dlFileRankLocalService = dlFileRankLocalService;
034            }
035    
036            /**
037            * Adds the document library file rank to the database. Also notifies the appropriate model listeners.
038            *
039            * @param dlFileRank the document library file rank
040            * @return the document library file rank that was added
041            */
042            @Override
043            public com.liferay.portlet.documentlibrary.model.DLFileRank addDLFileRank(
044                    com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) {
045                    return _dlFileRankLocalService.addDLFileRank(dlFileRank);
046            }
047    
048            @Override
049            public com.liferay.portlet.documentlibrary.model.DLFileRank addFileRank(
050                    long groupId, long companyId, long userId, long fileEntryId,
051                    com.liferay.portal.service.ServiceContext serviceContext) {
052                    return _dlFileRankLocalService.addFileRank(groupId, companyId, userId,
053                            fileEntryId, serviceContext);
054            }
055    
056            @Override
057            public void checkFileRanks() {
058                    _dlFileRankLocalService.checkFileRanks();
059            }
060    
061            /**
062            * Creates a new document library file rank with the primary key. Does not add the document library file rank to the database.
063            *
064            * @param fileRankId the primary key for the new document library file rank
065            * @return the new document library file rank
066            */
067            @Override
068            public com.liferay.portlet.documentlibrary.model.DLFileRank createDLFileRank(
069                    long fileRankId) {
070                    return _dlFileRankLocalService.createDLFileRank(fileRankId);
071            }
072    
073            /**
074            * Deletes the document library file rank from the database. Also notifies the appropriate model listeners.
075            *
076            * @param dlFileRank the document library file rank
077            * @return the document library file rank that was removed
078            */
079            @Override
080            public com.liferay.portlet.documentlibrary.model.DLFileRank deleteDLFileRank(
081                    com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) {
082                    return _dlFileRankLocalService.deleteDLFileRank(dlFileRank);
083            }
084    
085            /**
086            * Deletes the document library file rank with the primary key from the database. Also notifies the appropriate model listeners.
087            *
088            * @param fileRankId the primary key of the document library file rank
089            * @return the document library file rank that was removed
090            * @throws PortalException if a document library file rank with the primary key could not be found
091            */
092            @Override
093            public com.liferay.portlet.documentlibrary.model.DLFileRank deleteDLFileRank(
094                    long fileRankId)
095                    throws com.liferay.portal.kernel.exception.PortalException {
096                    return _dlFileRankLocalService.deleteDLFileRank(fileRankId);
097            }
098    
099            @Override
100            public void deleteFileRank(
101                    com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) {
102                    _dlFileRankLocalService.deleteFileRank(dlFileRank);
103            }
104    
105            @Override
106            public void deleteFileRank(long fileRankId)
107                    throws com.liferay.portal.kernel.exception.PortalException {
108                    _dlFileRankLocalService.deleteFileRank(fileRankId);
109            }
110    
111            @Override
112            public void deleteFileRanksByFileEntryId(long fileEntryId) {
113                    _dlFileRankLocalService.deleteFileRanksByFileEntryId(fileEntryId);
114            }
115    
116            @Override
117            public void deleteFileRanksByUserId(long userId) {
118                    _dlFileRankLocalService.deleteFileRanksByUserId(userId);
119            }
120    
121            /**
122            * @throws PortalException
123            */
124            @Override
125            public com.liferay.portal.model.PersistedModel deletePersistedModel(
126                    com.liferay.portal.model.PersistedModel persistedModel)
127                    throws com.liferay.portal.kernel.exception.PortalException {
128                    return _dlFileRankLocalService.deletePersistedModel(persistedModel);
129            }
130    
131            @Override
132            public void disableFileRanks(long fileEntryId) {
133                    _dlFileRankLocalService.disableFileRanks(fileEntryId);
134            }
135    
136            @Override
137            public void disableFileRanksByFolderId(long folderId)
138                    throws com.liferay.portal.kernel.exception.PortalException {
139                    _dlFileRankLocalService.disableFileRanksByFolderId(folderId);
140            }
141    
142            @Override
143            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
144                    return _dlFileRankLocalService.dynamicQuery();
145            }
146    
147            /**
148            * Performs a dynamic query on the database and returns the matching rows.
149            *
150            * @param dynamicQuery the dynamic query
151            * @return the matching rows
152            */
153            @Override
154            public <T> java.util.List<T> dynamicQuery(
155                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
156                    return _dlFileRankLocalService.dynamicQuery(dynamicQuery);
157            }
158    
159            /**
160            * Performs a dynamic query on the database and returns a range of the matching rows.
161            *
162            * <p>
163            * 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.DLFileRankModelImpl}. 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.
164            * </p>
165            *
166            * @param dynamicQuery the dynamic query
167            * @param start the lower bound of the range of model instances
168            * @param end the upper bound of the range of model instances (not inclusive)
169            * @return the range of matching rows
170            */
171            @Override
172            public <T> java.util.List<T> dynamicQuery(
173                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
174                    int end) {
175                    return _dlFileRankLocalService.dynamicQuery(dynamicQuery, start, end);
176            }
177    
178            /**
179            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
180            *
181            * <p>
182            * 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.DLFileRankModelImpl}. 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.
183            * </p>
184            *
185            * @param dynamicQuery the dynamic query
186            * @param start the lower bound of the range of model instances
187            * @param end the upper bound of the range of model instances (not inclusive)
188            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
189            * @return the ordered range of matching rows
190            */
191            @Override
192            public <T> java.util.List<T> dynamicQuery(
193                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
194                    int end,
195                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
196                    return _dlFileRankLocalService.dynamicQuery(dynamicQuery, start, end,
197                            orderByComparator);
198            }
199    
200            /**
201            * Returns the number of rows matching the dynamic query.
202            *
203            * @param dynamicQuery the dynamic query
204            * @return the number of rows matching the dynamic query
205            */
206            @Override
207            public long dynamicQueryCount(
208                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
209                    return _dlFileRankLocalService.dynamicQueryCount(dynamicQuery);
210            }
211    
212            /**
213            * Returns the number of rows matching the dynamic query.
214            *
215            * @param dynamicQuery the dynamic query
216            * @param projection the projection to apply to the query
217            * @return the number of rows matching the dynamic query
218            */
219            @Override
220            public long dynamicQueryCount(
221                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
222                    com.liferay.portal.kernel.dao.orm.Projection projection) {
223                    return _dlFileRankLocalService.dynamicQueryCount(dynamicQuery,
224                            projection);
225            }
226    
227            @Override
228            public void enableFileRanks(long fileEntryId) {
229                    _dlFileRankLocalService.enableFileRanks(fileEntryId);
230            }
231    
232            @Override
233            public void enableFileRanksByFolderId(long folderId)
234                    throws com.liferay.portal.kernel.exception.PortalException {
235                    _dlFileRankLocalService.enableFileRanksByFolderId(folderId);
236            }
237    
238            @Override
239            public com.liferay.portlet.documentlibrary.model.DLFileRank fetchDLFileRank(
240                    long fileRankId) {
241                    return _dlFileRankLocalService.fetchDLFileRank(fileRankId);
242            }
243    
244            @Override
245            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
246                    return _dlFileRankLocalService.getActionableDynamicQuery();
247            }
248    
249            /**
250            * Returns the document library file rank with the primary key.
251            *
252            * @param fileRankId the primary key of the document library file rank
253            * @return the document library file rank
254            * @throws PortalException if a document library file rank with the primary key could not be found
255            */
256            @Override
257            public com.liferay.portlet.documentlibrary.model.DLFileRank getDLFileRank(
258                    long fileRankId)
259                    throws com.liferay.portal.kernel.exception.PortalException {
260                    return _dlFileRankLocalService.getDLFileRank(fileRankId);
261            }
262    
263            /**
264            * Returns a range of all the document library file ranks.
265            *
266            * <p>
267            * 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.DLFileRankModelImpl}. 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.
268            * </p>
269            *
270            * @param start the lower bound of the range of document library file ranks
271            * @param end the upper bound of the range of document library file ranks (not inclusive)
272            * @return the range of document library file ranks
273            */
274            @Override
275            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> getDLFileRanks(
276                    int start, int end) {
277                    return _dlFileRankLocalService.getDLFileRanks(start, end);
278            }
279    
280            /**
281            * Returns the number of document library file ranks.
282            *
283            * @return the number of document library file ranks
284            */
285            @Override
286            public int getDLFileRanksCount() {
287                    return _dlFileRankLocalService.getDLFileRanksCount();
288            }
289    
290            @Override
291            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> getFileRanks(
292                    long groupId, long userId) {
293                    return _dlFileRankLocalService.getFileRanks(groupId, userId);
294            }
295    
296            @Override
297            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
298                    return _dlFileRankLocalService.getIndexableActionableDynamicQuery();
299            }
300    
301            /**
302            * Returns the OSGi service identifier.
303            *
304            * @return the OSGi service identifier
305            */
306            @Override
307            public java.lang.String getOSGiServiceIdentifier() {
308                    return _dlFileRankLocalService.getOSGiServiceIdentifier();
309            }
310    
311            @Override
312            public com.liferay.portal.model.PersistedModel getPersistedModel(
313                    java.io.Serializable primaryKeyObj)
314                    throws com.liferay.portal.kernel.exception.PortalException {
315                    return _dlFileRankLocalService.getPersistedModel(primaryKeyObj);
316            }
317    
318            /**
319            * Updates the document library file rank in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
320            *
321            * @param dlFileRank the document library file rank
322            * @return the document library file rank that was updated
323            */
324            @Override
325            public com.liferay.portlet.documentlibrary.model.DLFileRank updateDLFileRank(
326                    com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) {
327                    return _dlFileRankLocalService.updateDLFileRank(dlFileRank);
328            }
329    
330            @Override
331            public com.liferay.portlet.documentlibrary.model.DLFileRank updateFileRank(
332                    long groupId, long companyId, long userId, long fileEntryId,
333                    com.liferay.portal.service.ServiceContext serviceContext) {
334                    return _dlFileRankLocalService.updateFileRank(groupId, companyId,
335                            userId, fileEntryId, serviceContext);
336            }
337    
338            @Override
339            public DLFileRankLocalService getWrappedService() {
340                    return _dlFileRankLocalService;
341            }
342    
343            @Override
344            public void setWrappedService(DLFileRankLocalService dlFileRankLocalService) {
345                    _dlFileRankLocalService = dlFileRankLocalService;
346            }
347    
348            private DLFileRankLocalService _dlFileRankLocalService;
349    }