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 DLFileShortcutLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see DLFileShortcutLocalService
026     * @generated
027     */
028    @ProviderType
029    public class DLFileShortcutLocalServiceWrapper
030            implements DLFileShortcutLocalService,
031                    ServiceWrapper<DLFileShortcutLocalService> {
032            public DLFileShortcutLocalServiceWrapper(
033                    DLFileShortcutLocalService dlFileShortcutLocalService) {
034                    _dlFileShortcutLocalService = dlFileShortcutLocalService;
035            }
036    
037            /**
038            * Adds the document library file shortcut to the database. Also notifies the appropriate model listeners.
039            *
040            * @param dlFileShortcut the document library file shortcut
041            * @return the document library file shortcut that was added
042            */
043            @Override
044            public com.liferay.portlet.documentlibrary.model.DLFileShortcut addDLFileShortcut(
045                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut) {
046                    return _dlFileShortcutLocalService.addDLFileShortcut(dlFileShortcut);
047            }
048    
049            @Override
050            public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
051                    long userId, long groupId, long folderId, long toFileEntryId,
052                    com.liferay.portal.service.ServiceContext serviceContext)
053                    throws com.liferay.portal.kernel.exception.PortalException {
054                    return _dlFileShortcutLocalService.addFileShortcut(userId, groupId,
055                            folderId, toFileEntryId, serviceContext);
056            }
057    
058            @Override
059            public void addFileShortcutResources(
060                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
061                    boolean addGroupPermissions, boolean addGuestPermissions)
062                    throws com.liferay.portal.kernel.exception.PortalException {
063                    _dlFileShortcutLocalService.addFileShortcutResources(fileShortcut,
064                            addGroupPermissions, addGuestPermissions);
065            }
066    
067            @Override
068            public void addFileShortcutResources(
069                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
070                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
071                    throws com.liferay.portal.kernel.exception.PortalException {
072                    _dlFileShortcutLocalService.addFileShortcutResources(fileShortcut,
073                            groupPermissions, guestPermissions);
074            }
075    
076            @Override
077            public void addFileShortcutResources(long fileShortcutId,
078                    boolean addGroupPermissions, boolean addGuestPermissions)
079                    throws com.liferay.portal.kernel.exception.PortalException {
080                    _dlFileShortcutLocalService.addFileShortcutResources(fileShortcutId,
081                            addGroupPermissions, addGuestPermissions);
082            }
083    
084            @Override
085            public void addFileShortcutResources(long fileShortcutId,
086                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
087                    throws com.liferay.portal.kernel.exception.PortalException {
088                    _dlFileShortcutLocalService.addFileShortcutResources(fileShortcutId,
089                            groupPermissions, guestPermissions);
090            }
091    
092            /**
093            * Creates a new document library file shortcut with the primary key. Does not add the document library file shortcut to the database.
094            *
095            * @param fileShortcutId the primary key for the new document library file shortcut
096            * @return the new document library file shortcut
097            */
098            @Override
099            public com.liferay.portlet.documentlibrary.model.DLFileShortcut createDLFileShortcut(
100                    long fileShortcutId) {
101                    return _dlFileShortcutLocalService.createDLFileShortcut(fileShortcutId);
102            }
103    
104            /**
105            * Deletes the document library file shortcut from the database. Also notifies the appropriate model listeners.
106            *
107            * @param dlFileShortcut the document library file shortcut
108            * @return the document library file shortcut that was removed
109            */
110            @Override
111            public com.liferay.portlet.documentlibrary.model.DLFileShortcut deleteDLFileShortcut(
112                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut) {
113                    return _dlFileShortcutLocalService.deleteDLFileShortcut(dlFileShortcut);
114            }
115    
116            /**
117            * Deletes the document library file shortcut with the primary key from the database. Also notifies the appropriate model listeners.
118            *
119            * @param fileShortcutId the primary key of the document library file shortcut
120            * @return the document library file shortcut that was removed
121            * @throws PortalException if a document library file shortcut with the primary key could not be found
122            */
123            @Override
124            public com.liferay.portlet.documentlibrary.model.DLFileShortcut deleteDLFileShortcut(
125                    long fileShortcutId)
126                    throws com.liferay.portal.kernel.exception.PortalException {
127                    return _dlFileShortcutLocalService.deleteDLFileShortcut(fileShortcutId);
128            }
129    
130            @Override
131            public void deleteFileShortcut(
132                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
133                    throws com.liferay.portal.kernel.exception.PortalException {
134                    _dlFileShortcutLocalService.deleteFileShortcut(fileShortcut);
135            }
136    
137            @Override
138            public void deleteFileShortcut(long fileShortcutId)
139                    throws com.liferay.portal.kernel.exception.PortalException {
140                    _dlFileShortcutLocalService.deleteFileShortcut(fileShortcutId);
141            }
142    
143            @Override
144            public void deleteFileShortcuts(long groupId, long folderId)
145                    throws com.liferay.portal.kernel.exception.PortalException {
146                    _dlFileShortcutLocalService.deleteFileShortcuts(groupId, folderId);
147            }
148    
149            @Override
150            public void deleteFileShortcuts(long groupId, long folderId,
151                    boolean includeTrashedEntries)
152                    throws com.liferay.portal.kernel.exception.PortalException {
153                    _dlFileShortcutLocalService.deleteFileShortcuts(groupId, folderId,
154                            includeTrashedEntries);
155            }
156    
157            @Override
158            public void deleteFileShortcuts(long toFileEntryId)
159                    throws com.liferay.portal.kernel.exception.PortalException {
160                    _dlFileShortcutLocalService.deleteFileShortcuts(toFileEntryId);
161            }
162    
163            /**
164            * @throws PortalException
165            */
166            @Override
167            public com.liferay.portal.model.PersistedModel deletePersistedModel(
168                    com.liferay.portal.model.PersistedModel persistedModel)
169                    throws com.liferay.portal.kernel.exception.PortalException {
170                    return _dlFileShortcutLocalService.deletePersistedModel(persistedModel);
171            }
172    
173            @Override
174            public void disableFileShortcuts(long toFileEntryId) {
175                    _dlFileShortcutLocalService.disableFileShortcuts(toFileEntryId);
176            }
177    
178            @Override
179            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
180                    return _dlFileShortcutLocalService.dynamicQuery();
181            }
182    
183            /**
184            * Performs a dynamic query on the database and returns the matching rows.
185            *
186            * @param dynamicQuery the dynamic query
187            * @return the matching rows
188            */
189            @Override
190            public <T> java.util.List<T> dynamicQuery(
191                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
192                    return _dlFileShortcutLocalService.dynamicQuery(dynamicQuery);
193            }
194    
195            /**
196            * Performs a dynamic query on the database and returns a range of the matching rows.
197            *
198            * <p>
199            * 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.DLFileShortcutModelImpl}. 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.
200            * </p>
201            *
202            * @param dynamicQuery the dynamic query
203            * @param start the lower bound of the range of model instances
204            * @param end the upper bound of the range of model instances (not inclusive)
205            * @return the range of matching rows
206            */
207            @Override
208            public <T> java.util.List<T> dynamicQuery(
209                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
210                    int end) {
211                    return _dlFileShortcutLocalService.dynamicQuery(dynamicQuery, start, end);
212            }
213    
214            /**
215            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
216            *
217            * <p>
218            * 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.DLFileShortcutModelImpl}. 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.
219            * </p>
220            *
221            * @param dynamicQuery the dynamic query
222            * @param start the lower bound of the range of model instances
223            * @param end the upper bound of the range of model instances (not inclusive)
224            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
225            * @return the ordered range of matching rows
226            */
227            @Override
228            public <T> java.util.List<T> dynamicQuery(
229                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
230                    int end,
231                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
232                    return _dlFileShortcutLocalService.dynamicQuery(dynamicQuery, start,
233                            end, orderByComparator);
234            }
235    
236            /**
237            * Returns the number of rows matching the dynamic query.
238            *
239            * @param dynamicQuery the dynamic query
240            * @return the number of rows matching the dynamic query
241            */
242            @Override
243            public long dynamicQueryCount(
244                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
245                    return _dlFileShortcutLocalService.dynamicQueryCount(dynamicQuery);
246            }
247    
248            /**
249            * Returns the number of rows matching the dynamic query.
250            *
251            * @param dynamicQuery the dynamic query
252            * @param projection the projection to apply to the query
253            * @return the number of rows matching the dynamic query
254            */
255            @Override
256            public long dynamicQueryCount(
257                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
258                    com.liferay.portal.kernel.dao.orm.Projection projection) {
259                    return _dlFileShortcutLocalService.dynamicQueryCount(dynamicQuery,
260                            projection);
261            }
262    
263            @Override
264            public void enableFileShortcuts(long toFileEntryId) {
265                    _dlFileShortcutLocalService.enableFileShortcuts(toFileEntryId);
266            }
267    
268            @Override
269            public com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchDLFileShortcut(
270                    long fileShortcutId) {
271                    return _dlFileShortcutLocalService.fetchDLFileShortcut(fileShortcutId);
272            }
273    
274            /**
275            * Returns the document library file shortcut matching the UUID and group.
276            *
277            * @param uuid the document library file shortcut's UUID
278            * @param groupId the primary key of the group
279            * @return the matching document library file shortcut, or <code>null</code> if a matching document library file shortcut could not be found
280            */
281            @Override
282            public com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchDLFileShortcutByUuidAndGroupId(
283                    java.lang.String uuid, long groupId) {
284                    return _dlFileShortcutLocalService.fetchDLFileShortcutByUuidAndGroupId(uuid,
285                            groupId);
286            }
287    
288            @Override
289            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
290                    return _dlFileShortcutLocalService.getActionableDynamicQuery();
291            }
292    
293            /**
294            * Returns the Spring bean ID for this bean.
295            *
296            * @return the Spring bean ID for this bean
297            */
298            @Override
299            public java.lang.String getBeanIdentifier() {
300                    return _dlFileShortcutLocalService.getBeanIdentifier();
301            }
302    
303            /**
304            * Returns the document library file shortcut with the primary key.
305            *
306            * @param fileShortcutId the primary key of the document library file shortcut
307            * @return the document library file shortcut
308            * @throws PortalException if a document library file shortcut with the primary key could not be found
309            */
310            @Override
311            public com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcut(
312                    long fileShortcutId)
313                    throws com.liferay.portal.kernel.exception.PortalException {
314                    return _dlFileShortcutLocalService.getDLFileShortcut(fileShortcutId);
315            }
316    
317            /**
318            * Returns the document library file shortcut matching the UUID and group.
319            *
320            * @param uuid the document library file shortcut's UUID
321            * @param groupId the primary key of the group
322            * @return the matching document library file shortcut
323            * @throws PortalException if a matching document library file shortcut could not be found
324            */
325            @Override
326            public com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcutByUuidAndGroupId(
327                    java.lang.String uuid, long groupId)
328                    throws com.liferay.portal.kernel.exception.PortalException {
329                    return _dlFileShortcutLocalService.getDLFileShortcutByUuidAndGroupId(uuid,
330                            groupId);
331            }
332    
333            /**
334            * Returns a range of all the document library file shortcuts.
335            *
336            * <p>
337            * 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.DLFileShortcutModelImpl}. 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.
338            * </p>
339            *
340            * @param start the lower bound of the range of document library file shortcuts
341            * @param end the upper bound of the range of document library file shortcuts (not inclusive)
342            * @return the range of document library file shortcuts
343            */
344            @Override
345            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcuts(
346                    int start, int end) {
347                    return _dlFileShortcutLocalService.getDLFileShortcuts(start, end);
348            }
349    
350            /**
351            * Returns all the document library file shortcuts matching the UUID and company.
352            *
353            * @param uuid the UUID of the document library file shortcuts
354            * @param companyId the primary key of the company
355            * @return the matching document library file shortcuts, or an empty list if no matches were found
356            */
357            @Override
358            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcutsByUuidAndCompanyId(
359                    java.lang.String uuid, long companyId) {
360                    return _dlFileShortcutLocalService.getDLFileShortcutsByUuidAndCompanyId(uuid,
361                            companyId);
362            }
363    
364            /**
365            * Returns a range of document library file shortcuts matching the UUID and company.
366            *
367            * @param uuid the UUID of the document library file shortcuts
368            * @param companyId the primary key of the company
369            * @param start the lower bound of the range of document library file shortcuts
370            * @param end the upper bound of the range of document library file shortcuts (not inclusive)
371            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
372            * @return the range of matching document library file shortcuts, or an empty list if no matches were found
373            */
374            @Override
375            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcutsByUuidAndCompanyId(
376                    java.lang.String uuid, long companyId, int start, int end,
377                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileShortcut> orderByComparator) {
378                    return _dlFileShortcutLocalService.getDLFileShortcutsByUuidAndCompanyId(uuid,
379                            companyId, start, end, orderByComparator);
380            }
381    
382            /**
383            * Returns the number of document library file shortcuts.
384            *
385            * @return the number of document library file shortcuts
386            */
387            @Override
388            public int getDLFileShortcutsCount() {
389                    return _dlFileShortcutLocalService.getDLFileShortcutsCount();
390            }
391    
392            @Override
393            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
394                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
395                    return _dlFileShortcutLocalService.getExportActionableDynamicQuery(portletDataContext);
396            }
397    
398            @Override
399            public com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
400                    long fileShortcutId)
401                    throws com.liferay.portal.kernel.exception.PortalException {
402                    return _dlFileShortcutLocalService.getFileShortcut(fileShortcutId);
403            }
404    
405            @Override
406            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
407                    long groupId, long folderId, boolean active, int status, int start,
408                    int end) {
409                    return _dlFileShortcutLocalService.getFileShortcuts(groupId, folderId,
410                            active, status, start, end);
411            }
412    
413            @Override
414            public int getFileShortcutsCount(long groupId, long folderId,
415                    boolean active, int status) {
416                    return _dlFileShortcutLocalService.getFileShortcutsCount(groupId,
417                            folderId, active, status);
418            }
419    
420            @Override
421            public com.liferay.portal.model.PersistedModel getPersistedModel(
422                    java.io.Serializable primaryKeyObj)
423                    throws com.liferay.portal.kernel.exception.PortalException {
424                    return _dlFileShortcutLocalService.getPersistedModel(primaryKeyObj);
425            }
426    
427            @Override
428            public void rebuildTree(long companyId)
429                    throws com.liferay.portal.kernel.exception.PortalException {
430                    _dlFileShortcutLocalService.rebuildTree(companyId);
431            }
432    
433            /**
434            * Sets the Spring bean ID for this bean.
435            *
436            * @param beanIdentifier the Spring bean ID for this bean
437            */
438            @Override
439            public void setBeanIdentifier(java.lang.String beanIdentifier) {
440                    _dlFileShortcutLocalService.setBeanIdentifier(beanIdentifier);
441            }
442    
443            @Override
444            public void setTreePaths(long folderId, java.lang.String treePath)
445                    throws com.liferay.portal.kernel.exception.PortalException {
446                    _dlFileShortcutLocalService.setTreePaths(folderId, treePath);
447            }
448    
449            @Override
450            public void updateAsset(long userId,
451                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
452                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
453                    throws com.liferay.portal.kernel.exception.PortalException {
454                    _dlFileShortcutLocalService.updateAsset(userId, fileShortcut,
455                            assetCategoryIds, assetTagNames);
456            }
457    
458            /**
459            * Updates the document library file shortcut in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
460            *
461            * @param dlFileShortcut the document library file shortcut
462            * @return the document library file shortcut that was updated
463            */
464            @Override
465            public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
466                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut) {
467                    return _dlFileShortcutLocalService.updateDLFileShortcut(dlFileShortcut);
468            }
469    
470            @Override
471            public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
472                    long userId, long fileShortcutId, long folderId, long toFileEntryId,
473                    com.liferay.portal.service.ServiceContext serviceContext)
474                    throws com.liferay.portal.kernel.exception.PortalException {
475                    return _dlFileShortcutLocalService.updateFileShortcut(userId,
476                            fileShortcutId, folderId, toFileEntryId, serviceContext);
477            }
478    
479            @Override
480            public void updateFileShortcuts(long oldToFileEntryId, long newToFileEntryId) {
481                    _dlFileShortcutLocalService.updateFileShortcuts(oldToFileEntryId,
482                            newToFileEntryId);
483            }
484    
485            @Override
486            public void updateStatus(long userId, long fileShortcutId, int status,
487                    com.liferay.portal.service.ServiceContext serviceContext)
488                    throws com.liferay.portal.kernel.exception.PortalException {
489                    _dlFileShortcutLocalService.updateStatus(userId, fileShortcutId,
490                            status, serviceContext);
491            }
492    
493            /**
494             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
495             */
496            @Deprecated
497            public DLFileShortcutLocalService getWrappedDLFileShortcutLocalService() {
498                    return _dlFileShortcutLocalService;
499            }
500    
501            /**
502             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
503             */
504            @Deprecated
505            public void setWrappedDLFileShortcutLocalService(
506                    DLFileShortcutLocalService dlFileShortcutLocalService) {
507                    _dlFileShortcutLocalService = dlFileShortcutLocalService;
508            }
509    
510            @Override
511            public DLFileShortcutLocalService getWrappedService() {
512                    return _dlFileShortcutLocalService;
513            }
514    
515            @Override
516            public void setWrappedService(
517                    DLFileShortcutLocalService dlFileShortcutLocalService) {
518                    _dlFileShortcutLocalService = dlFileShortcutLocalService;
519            }
520    
521            private DLFileShortcutLocalService _dlFileShortcutLocalService;
522    }