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 DLAppHelperLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DLAppHelperLocalService
026     * @generated
027     */
028    public class DLAppHelperLocalServiceWrapper implements DLAppHelperLocalService,
029            ServiceWrapper<DLAppHelperLocalService> {
030            public DLAppHelperLocalServiceWrapper(
031                    DLAppHelperLocalService dlAppHelperLocalService) {
032                    _dlAppHelperLocalService = dlAppHelperLocalService;
033            }
034    
035            /**
036            * Returns the Spring bean ID for this bean.
037            *
038            * @return the Spring bean ID for this bean
039            */
040            public java.lang.String getBeanIdentifier() {
041                    return _dlAppHelperLocalService.getBeanIdentifier();
042            }
043    
044            /**
045            * Sets the Spring bean ID for this bean.
046            *
047            * @param beanIdentifier the Spring bean ID for this bean
048            */
049            public void setBeanIdentifier(java.lang.String beanIdentifier) {
050                    _dlAppHelperLocalService.setBeanIdentifier(beanIdentifier);
051            }
052    
053            public void addFileEntry(long userId,
054                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
055                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
056                    com.liferay.portal.service.ServiceContext serviceContext)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException {
059                    _dlAppHelperLocalService.addFileEntry(userId, fileEntry, fileVersion,
060                            serviceContext);
061            }
062    
063            public void addFolder(long userId,
064                    com.liferay.portal.kernel.repository.model.Folder folder,
065                    com.liferay.portal.service.ServiceContext serviceContext)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    _dlAppHelperLocalService.addFolder(userId, folder, serviceContext);
069            }
070    
071            public void cancelCheckOut(long userId,
072                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
073                    com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
074                    com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion,
075                    com.liferay.portal.kernel.repository.model.FileVersion draftFileVersion,
076                    com.liferay.portal.service.ServiceContext serviceContext)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException {
079                    _dlAppHelperLocalService.cancelCheckOut(userId, fileEntry,
080                            sourceFileVersion, destinationFileVersion, draftFileVersion,
081                            serviceContext);
082            }
083    
084            public void checkAssetEntry(long userId,
085                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
086                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException {
089                    _dlAppHelperLocalService.checkAssetEntry(userId, fileEntry, fileVersion);
090            }
091    
092            public void deleteFileEntry(
093                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException {
096                    _dlAppHelperLocalService.deleteFileEntry(fileEntry);
097            }
098    
099            public void deleteFolder(
100                    com.liferay.portal.kernel.repository.model.Folder folder)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    _dlAppHelperLocalService.deleteFolder(folder);
104            }
105    
106            public void getFileAsStream(long userId,
107                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
108                    boolean incrementCounter)
109                    throws com.liferay.portal.kernel.exception.PortalException,
110                            com.liferay.portal.kernel.exception.SystemException {
111                    _dlAppHelperLocalService.getFileAsStream(userId, fileEntry,
112                            incrementCounter);
113            }
114    
115            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
116                    long groupId, long folderId, boolean active, int status)
117                    throws com.liferay.portal.kernel.exception.SystemException {
118                    return _dlAppHelperLocalService.getFileShortcuts(groupId, folderId,
119                            active, status);
120            }
121    
122            /**
123            * @deprecated {@link #getFileShortcuts(long, long, boolean, int)}
124            */
125            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
126                    long groupId, long folderId, int status)
127                    throws com.liferay.portal.kernel.exception.SystemException {
128                    return _dlAppHelperLocalService.getFileShortcuts(groupId, folderId,
129                            status);
130            }
131    
132            public int getFileShortcutsCount(long groupId, long folderId,
133                    boolean active, int status)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return _dlAppHelperLocalService.getFileShortcutsCount(groupId,
136                            folderId, active, status);
137            }
138    
139            /**
140            * @deprecated {@link #getFileShortcutsCount(long, long, boolean, int)}
141            */
142            public int getFileShortcutsCount(long groupId, long folderId, int status)
143                    throws com.liferay.portal.kernel.exception.SystemException {
144                    return _dlAppHelperLocalService.getFileShortcutsCount(groupId,
145                            folderId, status);
146            }
147    
148            public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getNoAssetFileEntries() {
149                    return _dlAppHelperLocalService.getNoAssetFileEntries();
150            }
151    
152            public void moveFileEntry(
153                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
154                    throws com.liferay.portal.kernel.exception.PortalException,
155                            com.liferay.portal.kernel.exception.SystemException {
156                    _dlAppHelperLocalService.moveFileEntry(fileEntry);
157            }
158    
159            public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryFromTrash(
160                    long userId,
161                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
162                    long newFolderId,
163                    com.liferay.portal.service.ServiceContext serviceContext)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException {
166                    return _dlAppHelperLocalService.moveFileEntryFromTrash(userId,
167                            fileEntry, newFolderId, serviceContext);
168            }
169    
170            /**
171            * Moves the file entry to the recycle bin.
172            *
173            * @param userId the primary key of the user moving the file entry
174            * @param fileEntry the file entry to be moved
175            * @return the moved file entry
176            * @throws PortalException if a user with the primary key could not be found
177            * @throws SystemException if a system exception occurred
178            */
179            public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryToTrash(
180                    long userId,
181                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
182                    throws com.liferay.portal.kernel.exception.PortalException,
183                            com.liferay.portal.kernel.exception.SystemException {
184                    return _dlAppHelperLocalService.moveFileEntryToTrash(userId, fileEntry);
185            }
186    
187            public com.liferay.portlet.documentlibrary.model.DLFileShortcut moveFileShortcutFromTrash(
188                    long userId,
189                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
190                    long newFolderId,
191                    com.liferay.portal.service.ServiceContext serviceContext)
192                    throws com.liferay.portal.kernel.exception.PortalException,
193                            com.liferay.portal.kernel.exception.SystemException {
194                    return _dlAppHelperLocalService.moveFileShortcutFromTrash(userId,
195                            dlFileShortcut, newFolderId, serviceContext);
196            }
197    
198            /**
199            * Moves the file shortcut to the recycle bin.
200            *
201            * @param userId the primary key of the user moving the file shortcut
202            * @param dlFileShortcut the file shortcut to be moved
203            * @return the moved file shortcut
204            * @throws PortalException if a user with the primary key could not be found
205            * @throws SystemException if a system exception occurred
206            */
207            public com.liferay.portlet.documentlibrary.model.DLFileShortcut moveFileShortcutToTrash(
208                    long userId,
209                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
210                    throws com.liferay.portal.kernel.exception.PortalException,
211                            com.liferay.portal.kernel.exception.SystemException {
212                    return _dlAppHelperLocalService.moveFileShortcutToTrash(userId,
213                            dlFileShortcut);
214            }
215    
216            public void moveFolder(
217                    com.liferay.portal.kernel.repository.model.Folder folder)
218                    throws com.liferay.portal.kernel.exception.PortalException,
219                            com.liferay.portal.kernel.exception.SystemException {
220                    _dlAppHelperLocalService.moveFolder(folder);
221            }
222    
223            public com.liferay.portal.kernel.repository.model.Folder moveFolderFromTrash(
224                    long userId, com.liferay.portal.kernel.repository.model.Folder folder,
225                    long parentFolderId,
226                    com.liferay.portal.service.ServiceContext serviceContext)
227                    throws com.liferay.portal.kernel.exception.PortalException,
228                            com.liferay.portal.kernel.exception.SystemException {
229                    return _dlAppHelperLocalService.moveFolderFromTrash(userId, folder,
230                            parentFolderId, serviceContext);
231            }
232    
233            /**
234            * Moves the folder to the recycle bin.
235            *
236            * @param userId the primary key of the user moving the folder
237            * @param folder the folder to be moved
238            * @return the moved folder
239            * @throws PortalException if a user with the primary key could not be found
240            * @throws SystemException if a system exception occurred
241            */
242            public com.liferay.portal.kernel.repository.model.Folder moveFolderToTrash(
243                    long userId, com.liferay.portal.kernel.repository.model.Folder folder)
244                    throws com.liferay.portal.kernel.exception.PortalException,
245                            com.liferay.portal.kernel.exception.SystemException {
246                    return _dlAppHelperLocalService.moveFolderToTrash(userId, folder);
247            }
248    
249            public void restoreFileEntryFromTrash(long userId,
250                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
251                    throws com.liferay.portal.kernel.exception.PortalException,
252                            com.liferay.portal.kernel.exception.SystemException {
253                    _dlAppHelperLocalService.restoreFileEntryFromTrash(userId, fileEntry);
254            }
255    
256            public void restoreFileShortcutFromTrash(long userId,
257                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException {
260                    _dlAppHelperLocalService.restoreFileShortcutFromTrash(userId,
261                            dlFileShortcut);
262            }
263    
264            public void restoreFolderFromTrash(long userId,
265                    com.liferay.portal.kernel.repository.model.Folder folder)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException {
268                    _dlAppHelperLocalService.restoreFolderFromTrash(userId, folder);
269            }
270    
271            public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
272                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
273                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
274                    long assetClassPk)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    return _dlAppHelperLocalService.updateAsset(userId, fileEntry,
278                            fileVersion, assetClassPk);
279            }
280    
281            public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
282                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
283                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
284                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
285                    long[] assetLinkEntryIds)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    return _dlAppHelperLocalService.updateAsset(userId, fileEntry,
289                            fileVersion, assetCategoryIds, assetTagNames, assetLinkEntryIds);
290            }
291    
292            public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
293                    com.liferay.portal.kernel.repository.model.Folder folder,
294                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
295                    long[] assetLinkEntryIds)
296                    throws com.liferay.portal.kernel.exception.PortalException,
297                            com.liferay.portal.kernel.exception.SystemException {
298                    return _dlAppHelperLocalService.updateAsset(userId, folder,
299                            assetCategoryIds, assetTagNames, assetLinkEntryIds);
300            }
301    
302            public void updateDependentStatus(com.liferay.portal.model.User user,
303                    java.util.List<java.lang.Object> dlFileEntriesAndDLFolders, int status)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    _dlAppHelperLocalService.updateDependentStatus(user,
307                            dlFileEntriesAndDLFolders, status);
308            }
309    
310            public void updateFileEntry(long userId,
311                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
312                    com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
313                    com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion,
314                    long assetClassPk)
315                    throws com.liferay.portal.kernel.exception.PortalException,
316                            com.liferay.portal.kernel.exception.SystemException {
317                    _dlAppHelperLocalService.updateFileEntry(userId, fileEntry,
318                            sourceFileVersion, destinationFileVersion, assetClassPk);
319            }
320    
321            public void updateFileEntry(long userId,
322                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
323                    com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
324                    com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion,
325                    com.liferay.portal.service.ServiceContext serviceContext)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    _dlAppHelperLocalService.updateFileEntry(userId, fileEntry,
329                            sourceFileVersion, destinationFileVersion, serviceContext);
330            }
331    
332            public void updateFolder(long userId,
333                    com.liferay.portal.kernel.repository.model.Folder folder,
334                    com.liferay.portal.service.ServiceContext serviceContext)
335                    throws com.liferay.portal.kernel.exception.PortalException,
336                            com.liferay.portal.kernel.exception.SystemException {
337                    _dlAppHelperLocalService.updateFolder(userId, folder, serviceContext);
338            }
339    
340            public void updateStatus(long userId,
341                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
342                    com.liferay.portal.kernel.repository.model.FileVersion latestFileVersion,
343                    int oldStatus, int newStatus,
344                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
345                    com.liferay.portal.service.ServiceContext serviceContext)
346                    throws com.liferay.portal.kernel.exception.PortalException,
347                            com.liferay.portal.kernel.exception.SystemException {
348                    _dlAppHelperLocalService.updateStatus(userId, fileEntry,
349                            latestFileVersion, oldStatus, newStatus, workflowContext,
350                            serviceContext);
351            }
352    
353            /**
354             * @deprecated Renamed to {@link #getWrappedService}
355             */
356            public DLAppHelperLocalService getWrappedDLAppHelperLocalService() {
357                    return _dlAppHelperLocalService;
358            }
359    
360            /**
361             * @deprecated Renamed to {@link #setWrappedService}
362             */
363            public void setWrappedDLAppHelperLocalService(
364                    DLAppHelperLocalService dlAppHelperLocalService) {
365                    _dlAppHelperLocalService = dlAppHelperLocalService;
366            }
367    
368            public DLAppHelperLocalService getWrappedService() {
369                    return _dlAppHelperLocalService;
370            }
371    
372            public void setWrappedService(
373                    DLAppHelperLocalService dlAppHelperLocalService) {
374                    _dlAppHelperLocalService = dlAppHelperLocalService;
375            }
376    
377            private DLAppHelperLocalService _dlAppHelperLocalService;
378    }