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