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(
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(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.SystemException {
110                    _dlAppHelperLocalService.getFileAsStream(userId, fileEntry,
111                            incrementCounter);
112            }
113    
114            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
115                    long groupId, long folderId, boolean active, int status)
116                    throws com.liferay.portal.kernel.exception.SystemException {
117                    return _dlAppHelperLocalService.getFileShortcuts(groupId, folderId,
118                            active, status);
119            }
120    
121            /**
122            * @deprecated {@link #getFileShortcuts(long, long, boolean, int)}
123            */
124            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
125                    long groupId, long folderId, int status)
126                    throws com.liferay.portal.kernel.exception.SystemException {
127                    return _dlAppHelperLocalService.getFileShortcuts(groupId, folderId,
128                            status);
129            }
130    
131            public int getFileShortcutsCount(long groupId, long folderId,
132                    boolean active, int status)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return _dlAppHelperLocalService.getFileShortcutsCount(groupId,
135                            folderId, active, status);
136            }
137    
138            /**
139            * @deprecated {@link #getFileShortcutsCount(long, long, boolean, int)}
140            */
141            public int getFileShortcutsCount(long groupId, long folderId, int status)
142                    throws com.liferay.portal.kernel.exception.SystemException {
143                    return _dlAppHelperLocalService.getFileShortcutsCount(groupId,
144                            folderId, status);
145            }
146    
147            public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getNoAssetFileEntries() {
148                    return _dlAppHelperLocalService.getNoAssetFileEntries();
149            }
150    
151            public void moveFileEntry(
152                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
153                    throws com.liferay.portal.kernel.exception.PortalException,
154                            com.liferay.portal.kernel.exception.SystemException {
155                    _dlAppHelperLocalService.moveFileEntry(fileEntry);
156            }
157    
158            public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryFromTrash(
159                    long userId,
160                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
161                    long newFolderId,
162                    com.liferay.portal.service.ServiceContext serviceContext)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return _dlAppHelperLocalService.moveFileEntryFromTrash(userId,
166                            fileEntry, newFolderId, serviceContext);
167            }
168    
169            /**
170            * Moves the file entry to the recycle bin.
171            *
172            * @param userId the primary key of the user moving the file entry
173            * @param fileEntry the file entry to be moved
174            * @return the moved file entry
175            * @throws PortalException if a user with the primary key could not be found
176            * @throws SystemException if a system exception occurred
177            */
178            public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryToTrash(
179                    long userId,
180                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
181                    throws com.liferay.portal.kernel.exception.PortalException,
182                            com.liferay.portal.kernel.exception.SystemException {
183                    return _dlAppHelperLocalService.moveFileEntryToTrash(userId, fileEntry);
184            }
185    
186            public com.liferay.portlet.documentlibrary.model.DLFileShortcut moveFileShortcutFromTrash(
187                    long userId,
188                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
189                    long newFolderId,
190                    com.liferay.portal.service.ServiceContext serviceContext)
191                    throws com.liferay.portal.kernel.exception.PortalException,
192                            com.liferay.portal.kernel.exception.SystemException {
193                    return _dlAppHelperLocalService.moveFileShortcutFromTrash(userId,
194                            dlFileShortcut, newFolderId, serviceContext);
195            }
196    
197            /**
198            * Moves the file shortcut to the recycle bin.
199            *
200            * @param userId the primary key of the user moving the file shortcut
201            * @param dlFileShortcut the file shortcut to be moved
202            * @return the moved file shortcut
203            * @throws PortalException if a user with the primary key could not be found
204            * @throws SystemException if a system exception occurred
205            */
206            public com.liferay.portlet.documentlibrary.model.DLFileShortcut moveFileShortcutToTrash(
207                    long userId,
208                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
209                    throws com.liferay.portal.kernel.exception.PortalException,
210                            com.liferay.portal.kernel.exception.SystemException {
211                    return _dlAppHelperLocalService.moveFileShortcutToTrash(userId,
212                            dlFileShortcut);
213            }
214    
215            public void moveFolder(
216                    com.liferay.portal.kernel.repository.model.Folder folder)
217                    throws com.liferay.portal.kernel.exception.PortalException,
218                            com.liferay.portal.kernel.exception.SystemException {
219                    _dlAppHelperLocalService.moveFolder(folder);
220            }
221    
222            public com.liferay.portal.kernel.repository.model.Folder moveFolderFromTrash(
223                    long userId, com.liferay.portal.kernel.repository.model.Folder folder,
224                    long parentFolderId,
225                    com.liferay.portal.service.ServiceContext serviceContext)
226                    throws com.liferay.portal.kernel.exception.PortalException,
227                            com.liferay.portal.kernel.exception.SystemException {
228                    return _dlAppHelperLocalService.moveFolderFromTrash(userId, folder,
229                            parentFolderId, serviceContext);
230            }
231    
232            /**
233            * Moves the folder to the recycle bin.
234            *
235            * @param userId the primary key of the user moving the folder
236            * @param folder the folder to be moved
237            * @return the moved folder
238            * @throws PortalException if a user with the primary key could not be found
239            * @throws SystemException if a system exception occurred
240            */
241            public com.liferay.portal.kernel.repository.model.Folder moveFolderToTrash(
242                    long userId, com.liferay.portal.kernel.repository.model.Folder folder)
243                    throws com.liferay.portal.kernel.exception.PortalException,
244                            com.liferay.portal.kernel.exception.SystemException {
245                    return _dlAppHelperLocalService.moveFolderToTrash(userId, folder);
246            }
247    
248            public void restoreFileEntryFromTrash(long userId,
249                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
250                    throws com.liferay.portal.kernel.exception.PortalException,
251                            com.liferay.portal.kernel.exception.SystemException {
252                    _dlAppHelperLocalService.restoreFileEntryFromTrash(userId, fileEntry);
253            }
254    
255            public void restoreFileShortcutFromTrash(long userId,
256                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
257                    throws com.liferay.portal.kernel.exception.PortalException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    _dlAppHelperLocalService.restoreFileShortcutFromTrash(userId,
260                            dlFileShortcut);
261            }
262    
263            public void restoreFolderFromTrash(long userId,
264                    com.liferay.portal.kernel.repository.model.Folder folder)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException {
267                    _dlAppHelperLocalService.restoreFolderFromTrash(userId, folder);
268            }
269    
270            public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
271                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
272                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
273                    long assetClassPk)
274                    throws com.liferay.portal.kernel.exception.PortalException,
275                            com.liferay.portal.kernel.exception.SystemException {
276                    return _dlAppHelperLocalService.updateAsset(userId, fileEntry,
277                            fileVersion, assetClassPk);
278            }
279    
280            public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
281                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
282                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
283                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
284                    long[] assetLinkEntryIds)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    return _dlAppHelperLocalService.updateAsset(userId, fileEntry,
288                            fileVersion, assetCategoryIds, assetTagNames, assetLinkEntryIds);
289            }
290    
291            public void updateDependentStatus(com.liferay.portal.model.User user,
292                    java.util.List<java.lang.Object> dlFileEntriesAndDLFolders, int status)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    _dlAppHelperLocalService.updateDependentStatus(user,
296                            dlFileEntriesAndDLFolders, status);
297            }
298    
299            public void updateFileEntry(long userId,
300                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
301                    com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
302                    com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion,
303                    long assetClassPk)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    _dlAppHelperLocalService.updateFileEntry(userId, fileEntry,
307                            sourceFileVersion, destinationFileVersion, assetClassPk);
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                    com.liferay.portal.service.ServiceContext serviceContext)
315                    throws com.liferay.portal.kernel.exception.PortalException,
316                            com.liferay.portal.kernel.exception.SystemException {
317                    _dlAppHelperLocalService.updateFileEntry(userId, fileEntry,
318                            sourceFileVersion, destinationFileVersion, serviceContext);
319            }
320    
321            public void updateFolder(
322                    com.liferay.portal.kernel.repository.model.Folder folder,
323                    com.liferay.portal.service.ServiceContext serviceContext)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    _dlAppHelperLocalService.updateFolder(folder, serviceContext);
327            }
328    
329            public void updateStatus(long userId,
330                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
331                    com.liferay.portal.kernel.repository.model.FileVersion latestFileVersion,
332                    int oldStatus, int newStatus,
333                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
334                    throws com.liferay.portal.kernel.exception.PortalException,
335                            com.liferay.portal.kernel.exception.SystemException {
336                    _dlAppHelperLocalService.updateStatus(userId, fileEntry,
337                            latestFileVersion, oldStatus, newStatus, workflowContext);
338            }
339    
340            /**
341             * @deprecated Renamed to {@link #getWrappedService}
342             */
343            public DLAppHelperLocalService getWrappedDLAppHelperLocalService() {
344                    return _dlAppHelperLocalService;
345            }
346    
347            /**
348             * @deprecated Renamed to {@link #setWrappedService}
349             */
350            public void setWrappedDLAppHelperLocalService(
351                    DLAppHelperLocalService dlAppHelperLocalService) {
352                    _dlAppHelperLocalService = dlAppHelperLocalService;
353            }
354    
355            public DLAppHelperLocalService getWrappedService() {
356                    return _dlAppHelperLocalService;
357            }
358    
359            public void setWrappedService(
360                    DLAppHelperLocalService dlAppHelperLocalService) {
361                    _dlAppHelperLocalService = dlAppHelperLocalService;
362            }
363    
364            private DLAppHelperLocalService _dlAppHelperLocalService;
365    }