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