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