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 that match the dynamic query.
238            *
239            * @param dynamicQuery the dynamic query
240            * @return the number of rows that match 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 that match 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 that match 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            @Override
351            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcutsByUuidAndCompanyId(
352                    java.lang.String uuid, long companyId) {
353                    return _dlFileShortcutLocalService.getDLFileShortcutsByUuidAndCompanyId(uuid,
354                            companyId);
355            }
356    
357            @Override
358            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcutsByUuidAndCompanyId(
359                    java.lang.String uuid, long companyId, int start, int end,
360                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileShortcut> orderByComparator) {
361                    return _dlFileShortcutLocalService.getDLFileShortcutsByUuidAndCompanyId(uuid,
362                            companyId, start, end, orderByComparator);
363            }
364    
365            /**
366            * Returns the number of document library file shortcuts.
367            *
368            * @return the number of document library file shortcuts
369            */
370            @Override
371            public int getDLFileShortcutsCount() {
372                    return _dlFileShortcutLocalService.getDLFileShortcutsCount();
373            }
374    
375            @Override
376            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
377                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
378                    return _dlFileShortcutLocalService.getExportActionableDynamicQuery(portletDataContext);
379            }
380    
381            @Override
382            public com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
383                    long fileShortcutId)
384                    throws com.liferay.portal.kernel.exception.PortalException {
385                    return _dlFileShortcutLocalService.getFileShortcut(fileShortcutId);
386            }
387    
388            @Override
389            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
390                    long groupId, long folderId, boolean active, int status, int start,
391                    int end) {
392                    return _dlFileShortcutLocalService.getFileShortcuts(groupId, folderId,
393                            active, status, start, end);
394            }
395    
396            @Override
397            public int getFileShortcutsCount(long groupId, long folderId,
398                    boolean active, int status) {
399                    return _dlFileShortcutLocalService.getFileShortcutsCount(groupId,
400                            folderId, active, status);
401            }
402    
403            @Override
404            public com.liferay.portal.model.PersistedModel getPersistedModel(
405                    java.io.Serializable primaryKeyObj)
406                    throws com.liferay.portal.kernel.exception.PortalException {
407                    return _dlFileShortcutLocalService.getPersistedModel(primaryKeyObj);
408            }
409    
410            @Override
411            public void rebuildTree(long companyId)
412                    throws com.liferay.portal.kernel.exception.PortalException {
413                    _dlFileShortcutLocalService.rebuildTree(companyId);
414            }
415    
416            /**
417            * Sets the Spring bean ID for this bean.
418            *
419            * @param beanIdentifier the Spring bean ID for this bean
420            */
421            @Override
422            public void setBeanIdentifier(java.lang.String beanIdentifier) {
423                    _dlFileShortcutLocalService.setBeanIdentifier(beanIdentifier);
424            }
425    
426            @Override
427            public void setTreePaths(long folderId, java.lang.String treePath)
428                    throws com.liferay.portal.kernel.exception.PortalException {
429                    _dlFileShortcutLocalService.setTreePaths(folderId, treePath);
430            }
431    
432            @Override
433            public void updateAsset(long userId,
434                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
435                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
436                    throws com.liferay.portal.kernel.exception.PortalException {
437                    _dlFileShortcutLocalService.updateAsset(userId, fileShortcut,
438                            assetCategoryIds, assetTagNames);
439            }
440    
441            /**
442            * Updates the document library file shortcut in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
443            *
444            * @param dlFileShortcut the document library file shortcut
445            * @return the document library file shortcut that was updated
446            */
447            @Override
448            public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
449                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut) {
450                    return _dlFileShortcutLocalService.updateDLFileShortcut(dlFileShortcut);
451            }
452    
453            @Override
454            public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
455                    long userId, long fileShortcutId, long folderId, long toFileEntryId,
456                    com.liferay.portal.service.ServiceContext serviceContext)
457                    throws com.liferay.portal.kernel.exception.PortalException {
458                    return _dlFileShortcutLocalService.updateFileShortcut(userId,
459                            fileShortcutId, folderId, toFileEntryId, serviceContext);
460            }
461    
462            @Override
463            public void updateFileShortcuts(long oldToFileEntryId, long newToFileEntryId) {
464                    _dlFileShortcutLocalService.updateFileShortcuts(oldToFileEntryId,
465                            newToFileEntryId);
466            }
467    
468            @Override
469            public void updateStatus(long userId, long fileShortcutId, int status,
470                    com.liferay.portal.service.ServiceContext serviceContext)
471                    throws com.liferay.portal.kernel.exception.PortalException {
472                    _dlFileShortcutLocalService.updateStatus(userId, fileShortcutId,
473                            status, serviceContext);
474            }
475    
476            /**
477             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
478             */
479            @Deprecated
480            public DLFileShortcutLocalService getWrappedDLFileShortcutLocalService() {
481                    return _dlFileShortcutLocalService;
482            }
483    
484            /**
485             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
486             */
487            @Deprecated
488            public void setWrappedDLFileShortcutLocalService(
489                    DLFileShortcutLocalService dlFileShortcutLocalService) {
490                    _dlFileShortcutLocalService = dlFileShortcutLocalService;
491            }
492    
493            @Override
494            public DLFileShortcutLocalService getWrappedService() {
495                    return _dlFileShortcutLocalService;
496            }
497    
498            @Override
499            public void setWrappedService(
500                    DLFileShortcutLocalService dlFileShortcutLocalService) {
501                    _dlFileShortcutLocalService = dlFileShortcutLocalService;
502            }
503    
504            private DLFileShortcutLocalService _dlFileShortcutLocalService;
505    }