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