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