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 document library file shortcut with the primary key.
296            *
297            * @param fileShortcutId the primary key of the document library file shortcut
298            * @return the document library file shortcut
299            * @throws PortalException if a document library file shortcut with the primary key could not be found
300            */
301            @Override
302            public com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcut(
303                    long fileShortcutId)
304                    throws com.liferay.portal.kernel.exception.PortalException {
305                    return _dlFileShortcutLocalService.getDLFileShortcut(fileShortcutId);
306            }
307    
308            /**
309            * Returns the document library file shortcut matching the UUID and group.
310            *
311            * @param uuid the document library file shortcut's UUID
312            * @param groupId the primary key of the group
313            * @return the matching document library file shortcut
314            * @throws PortalException if a matching document library file shortcut could not be found
315            */
316            @Override
317            public com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcutByUuidAndGroupId(
318                    java.lang.String uuid, long groupId)
319                    throws com.liferay.portal.kernel.exception.PortalException {
320                    return _dlFileShortcutLocalService.getDLFileShortcutByUuidAndGroupId(uuid,
321                            groupId);
322            }
323    
324            /**
325            * Returns a range of all the document library file shortcuts.
326            *
327            * <p>
328            * 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.
329            * </p>
330            *
331            * @param start the lower bound of the range of document library file shortcuts
332            * @param end the upper bound of the range of document library file shortcuts (not inclusive)
333            * @return the range of document library file shortcuts
334            */
335            @Override
336            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcuts(
337                    int start, int end) {
338                    return _dlFileShortcutLocalService.getDLFileShortcuts(start, end);
339            }
340    
341            /**
342            * Returns all the document library file shortcuts matching the UUID and company.
343            *
344            * @param uuid the UUID of the document library file shortcuts
345            * @param companyId the primary key of the company
346            * @return the matching document library file shortcuts, or an empty list if no matches were found
347            */
348            @Override
349            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcutsByUuidAndCompanyId(
350                    java.lang.String uuid, long companyId) {
351                    return _dlFileShortcutLocalService.getDLFileShortcutsByUuidAndCompanyId(uuid,
352                            companyId);
353            }
354    
355            /**
356            * Returns a range of document library file shortcuts matching the UUID and company.
357            *
358            * @param uuid the UUID of the document library file shortcuts
359            * @param companyId the primary key of the company
360            * @param start the lower bound of the range of document library file shortcuts
361            * @param end the upper bound of the range of document library file shortcuts (not inclusive)
362            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
363            * @return the range of matching document library file shortcuts, or an empty list if no matches were found
364            */
365            @Override
366            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcutsByUuidAndCompanyId(
367                    java.lang.String uuid, long companyId, int start, int end,
368                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileShortcut> orderByComparator) {
369                    return _dlFileShortcutLocalService.getDLFileShortcutsByUuidAndCompanyId(uuid,
370                            companyId, start, end, orderByComparator);
371            }
372    
373            /**
374            * Returns the number of document library file shortcuts.
375            *
376            * @return the number of document library file shortcuts
377            */
378            @Override
379            public int getDLFileShortcutsCount() {
380                    return _dlFileShortcutLocalService.getDLFileShortcutsCount();
381            }
382    
383            @Override
384            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
385                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
386                    return _dlFileShortcutLocalService.getExportActionableDynamicQuery(portletDataContext);
387            }
388    
389            @Override
390            public com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
391                    long fileShortcutId)
392                    throws com.liferay.portal.kernel.exception.PortalException {
393                    return _dlFileShortcutLocalService.getFileShortcut(fileShortcutId);
394            }
395    
396            @Override
397            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
398                    long groupId, long folderId, boolean active, int status, int start,
399                    int end) {
400                    return _dlFileShortcutLocalService.getFileShortcuts(groupId, folderId,
401                            active, status, start, end);
402            }
403    
404            @Override
405            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
406                    long toFileEntryId) {
407                    return _dlFileShortcutLocalService.getFileShortcuts(toFileEntryId);
408            }
409    
410            @Override
411            public int getFileShortcutsCount(long groupId, long folderId,
412                    boolean active, int status) {
413                    return _dlFileShortcutLocalService.getFileShortcutsCount(groupId,
414                            folderId, active, status);
415            }
416    
417            /**
418            * Returns the OSGi service identifier.
419            *
420            * @return the OSGi service identifier
421            */
422            @Override
423            public java.lang.String getOSGiServiceIdentifier() {
424                    return _dlFileShortcutLocalService.getOSGiServiceIdentifier();
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            @Override
441            public void setTreePaths(long folderId, java.lang.String treePath)
442                    throws com.liferay.portal.kernel.exception.PortalException {
443                    _dlFileShortcutLocalService.setTreePaths(folderId, treePath);
444            }
445    
446            @Override
447            public void updateAsset(long userId,
448                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
449                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
450                    throws com.liferay.portal.kernel.exception.PortalException {
451                    _dlFileShortcutLocalService.updateAsset(userId, fileShortcut,
452                            assetCategoryIds, assetTagNames);
453            }
454    
455            /**
456            * Updates the document library file shortcut in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
457            *
458            * @param dlFileShortcut the document library file shortcut
459            * @return the document library file shortcut that was updated
460            */
461            @Override
462            public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
463                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut) {
464                    return _dlFileShortcutLocalService.updateDLFileShortcut(dlFileShortcut);
465            }
466    
467            @Override
468            public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
469                    long userId, long fileShortcutId, long repositoryId, long folderId,
470                    long toFileEntryId,
471                    com.liferay.portal.service.ServiceContext serviceContext)
472                    throws com.liferay.portal.kernel.exception.PortalException {
473                    return _dlFileShortcutLocalService.updateFileShortcut(userId,
474                            fileShortcutId, repositoryId, folderId, toFileEntryId,
475                            serviceContext);
476            }
477    
478            @Override
479            public void updateFileShortcuts(long oldToFileEntryId, long newToFileEntryId) {
480                    _dlFileShortcutLocalService.updateFileShortcuts(oldToFileEntryId,
481                            newToFileEntryId);
482            }
483    
484            @Override
485            public void updateFileShortcutsActive(long toFileEntryId, boolean active) {
486                    _dlFileShortcutLocalService.updateFileShortcutsActive(toFileEntryId,
487                            active);
488            }
489    
490            @Override
491            public void updateStatus(long userId, long fileShortcutId, int status,
492                    com.liferay.portal.service.ServiceContext serviceContext)
493                    throws com.liferay.portal.kernel.exception.PortalException {
494                    _dlFileShortcutLocalService.updateStatus(userId, fileShortcutId,
495                            status, serviceContext);
496            }
497    
498            /**
499             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
500             */
501            @Deprecated
502            public DLFileShortcutLocalService getWrappedDLFileShortcutLocalService() {
503                    return _dlFileShortcutLocalService;
504            }
505    
506            /**
507             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
508             */
509            @Deprecated
510            public void setWrappedDLFileShortcutLocalService(
511                    DLFileShortcutLocalService dlFileShortcutLocalService) {
512                    _dlFileShortcutLocalService = dlFileShortcutLocalService;
513            }
514    
515            @Override
516            public DLFileShortcutLocalService getWrappedService() {
517                    return _dlFileShortcutLocalService;
518            }
519    
520            @Override
521            public void setWrappedService(
522                    DLFileShortcutLocalService dlFileShortcutLocalService) {
523                    _dlFileShortcutLocalService = dlFileShortcutLocalService;
524            }
525    
526            private DLFileShortcutLocalService _dlFileShortcutLocalService;
527    }