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