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