001    /**
002     * Copyright (c) 2000-2010 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    /**
018     * <p>
019     * This class is a wrapper for {@link DLFileShortcutLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       DLFileShortcutLocalService
024     * @generated
025     */
026    public class DLFileShortcutLocalServiceWrapper
027            implements DLFileShortcutLocalService {
028            public DLFileShortcutLocalServiceWrapper(
029                    DLFileShortcutLocalService dlFileShortcutLocalService) {
030                    _dlFileShortcutLocalService = dlFileShortcutLocalService;
031            }
032    
033            /**
034            * Adds the d l file shortcut to the database. Also notifies the appropriate model listeners.
035            *
036            * @param dlFileShortcut the d l file shortcut to add
037            * @return the d l file shortcut that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portlet.documentlibrary.model.DLFileShortcut addDLFileShortcut(
041                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _dlFileShortcutLocalService.addDLFileShortcut(dlFileShortcut);
044            }
045    
046            /**
047            * Creates a new d l file shortcut with the primary key. Does not add the d l file shortcut to the database.
048            *
049            * @param fileShortcutId the primary key for the new d l file shortcut
050            * @return the new d l file shortcut
051            */
052            public com.liferay.portlet.documentlibrary.model.DLFileShortcut createDLFileShortcut(
053                    long fileShortcutId) {
054                    return _dlFileShortcutLocalService.createDLFileShortcut(fileShortcutId);
055            }
056    
057            /**
058            * Deletes the d l file shortcut with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param fileShortcutId the primary key of the d l file shortcut to delete
061            * @throws PortalException if a d l file shortcut with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteDLFileShortcut(long fileShortcutId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _dlFileShortcutLocalService.deleteDLFileShortcut(fileShortcutId);
068            }
069    
070            /**
071            * Deletes the d l file shortcut from the database. Also notifies the appropriate model listeners.
072            *
073            * @param dlFileShortcut the d l file shortcut to delete
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteDLFileShortcut(
077                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _dlFileShortcutLocalService.deleteDLFileShortcut(dlFileShortcut);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query to search with
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _dlFileShortcutLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * 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.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query to search with
104            * @param start the lower bound of the range of model instances to return
105            * @param end the upper bound of the range of model instances to return (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _dlFileShortcutLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query to search with
124            * @param start the lower bound of the range of model instances to return
125            * @param end the upper bound of the range of model instances to return (not inclusive)
126            * @param orderByComparator the comparator to order the results by
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _dlFileShortcutLocalService.dynamicQuery(dynamicQuery, start,
137                            end, orderByComparator);
138            }
139    
140            /**
141            * Counts the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query to search with
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _dlFileShortcutLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            /**
154            * Gets the d l file shortcut with the primary key.
155            *
156            * @param fileShortcutId the primary key of the d l file shortcut to get
157            * @return the d l file shortcut
158            * @throws PortalException if a d l file shortcut with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcut(
162                    long fileShortcutId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return _dlFileShortcutLocalService.getDLFileShortcut(fileShortcutId);
166            }
167    
168            /**
169            * Gets the d l file shortcut with the UUID and group id.
170            *
171            * @param uuid the UUID of d l file shortcut to get
172            * @param groupId the group id of the d l file shortcut to get
173            * @return the d l file shortcut
174            * @throws PortalException if a d l file shortcut with the UUID and group id could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcutByUuidAndGroupId(
178                    java.lang.String uuid, long groupId)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _dlFileShortcutLocalService.getDLFileShortcutByUuidAndGroupId(uuid,
182                            groupId);
183            }
184    
185            /**
186            * Gets a range of all the d l file shortcuts.
187            *
188            * <p>
189            * 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.
190            * </p>
191            *
192            * @param start the lower bound of the range of d l file shortcuts to return
193            * @param end the upper bound of the range of d l file shortcuts to return (not inclusive)
194            * @return the range of d l file shortcuts
195            * @throws SystemException if a system exception occurred
196            */
197            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcuts(
198                    int start, int end)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return _dlFileShortcutLocalService.getDLFileShortcuts(start, end);
201            }
202    
203            /**
204            * Gets the number of d l file shortcuts.
205            *
206            * @return the number of d l file shortcuts
207            * @throws SystemException if a system exception occurred
208            */
209            public int getDLFileShortcutsCount()
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return _dlFileShortcutLocalService.getDLFileShortcutsCount();
212            }
213    
214            /**
215            * Updates the d l file shortcut in the database. Also notifies the appropriate model listeners.
216            *
217            * @param dlFileShortcut the d l file shortcut to update
218            * @return the d l file shortcut that was updated
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
222                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return _dlFileShortcutLocalService.updateDLFileShortcut(dlFileShortcut);
225            }
226    
227            /**
228            * Updates the d l file shortcut in the database. Also notifies the appropriate model listeners.
229            *
230            * @param dlFileShortcut the d l file shortcut to update
231            * @param merge whether to merge the d l file shortcut with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
232            * @return the d l file shortcut that was updated
233            * @throws SystemException if a system exception occurred
234            */
235            public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
236                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
237                    boolean merge)
238                    throws com.liferay.portal.kernel.exception.SystemException {
239                    return _dlFileShortcutLocalService.updateDLFileShortcut(dlFileShortcut,
240                            merge);
241            }
242    
243            public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
244                    long userId, long groupId, long folderId, long toFolderId,
245                    java.lang.String toName,
246                    com.liferay.portal.service.ServiceContext serviceContext)
247                    throws com.liferay.portal.kernel.exception.PortalException,
248                            com.liferay.portal.kernel.exception.SystemException {
249                    return _dlFileShortcutLocalService.addFileShortcut(userId, groupId,
250                            folderId, toFolderId, toName, serviceContext);
251            }
252    
253            public void addFileShortcutResources(
254                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
255                    boolean addCommunityPermissions, boolean addGuestPermissions)
256                    throws com.liferay.portal.kernel.exception.PortalException,
257                            com.liferay.portal.kernel.exception.SystemException {
258                    _dlFileShortcutLocalService.addFileShortcutResources(fileShortcut,
259                            addCommunityPermissions, addGuestPermissions);
260            }
261    
262            public void addFileShortcutResources(
263                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
264                    java.lang.String[] communityPermissions,
265                    java.lang.String[] guestPermissions)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException {
268                    _dlFileShortcutLocalService.addFileShortcutResources(fileShortcut,
269                            communityPermissions, guestPermissions);
270            }
271    
272            public void addFileShortcutResources(long fileShortcutId,
273                    boolean addCommunityPermissions, boolean addGuestPermissions)
274                    throws com.liferay.portal.kernel.exception.PortalException,
275                            com.liferay.portal.kernel.exception.SystemException {
276                    _dlFileShortcutLocalService.addFileShortcutResources(fileShortcutId,
277                            addCommunityPermissions, addGuestPermissions);
278            }
279    
280            public void addFileShortcutResources(long fileShortcutId,
281                    java.lang.String[] communityPermissions,
282                    java.lang.String[] guestPermissions)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException {
285                    _dlFileShortcutLocalService.addFileShortcutResources(fileShortcutId,
286                            communityPermissions, guestPermissions);
287            }
288    
289            public void deleteFileShortcut(
290                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException {
293                    _dlFileShortcutLocalService.deleteFileShortcut(fileShortcut);
294            }
295    
296            public void deleteFileShortcut(long fileShortcutId)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    _dlFileShortcutLocalService.deleteFileShortcut(fileShortcutId);
300            }
301    
302            public void deleteFileShortcuts(long groupId, long toFolderId,
303                    java.lang.String toName)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    _dlFileShortcutLocalService.deleteFileShortcuts(groupId, toFolderId,
307                            toName);
308            }
309    
310            public com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
311                    long fileShortcutId)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    return _dlFileShortcutLocalService.getFileShortcut(fileShortcutId);
315            }
316    
317            public void updateAsset(long userId,
318                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
319                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    _dlFileShortcutLocalService.updateAsset(userId, fileShortcut,
323                            assetCategoryIds, assetTagNames);
324            }
325    
326            public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
327                    long userId, long fileShortcutId, long folderId, long toFolderId,
328                    java.lang.String toName,
329                    com.liferay.portal.service.ServiceContext serviceContext)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    return _dlFileShortcutLocalService.updateFileShortcut(userId,
333                            fileShortcutId, folderId, toFolderId, toName, serviceContext);
334            }
335    
336            public void updateFileShortcuts(long groupId, long oldToFolderId,
337                    java.lang.String oldToName, long newToFolderId,
338                    java.lang.String newToName)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    _dlFileShortcutLocalService.updateFileShortcuts(groupId, oldToFolderId,
341                            oldToName, newToFolderId, newToName);
342            }
343    
344            public DLFileShortcutLocalService getWrappedDLFileShortcutLocalService() {
345                    return _dlFileShortcutLocalService;
346            }
347    
348            private DLFileShortcutLocalService _dlFileShortcutLocalService;
349    }