001    /**
002     * Copyright (c) 2000-present 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.document.library.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link DLAppLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see DLAppLocalService
026     * @generated
027     */
028    @ProviderType
029    public class DLAppLocalServiceWrapper implements DLAppLocalService,
030            ServiceWrapper<DLAppLocalService> {
031            public DLAppLocalServiceWrapper(DLAppLocalService dlAppLocalService) {
032                    _dlAppLocalService = dlAppLocalService;
033            }
034    
035            /**
036            * Adds the file rank to the existing file entry. This method is only
037            * supported by the Liferay repository.
038            *
039            * @param repositoryId the primary key of the repository
040            * @param companyId the primary key of the company
041            * @param userId the primary key of the file rank's creator/owner
042            * @param fileEntryId the primary key of the file entry
043            * @param serviceContext the service context to be applied
044            * @return the file rank
045            */
046            @Override
047            public com.liferay.document.library.kernel.model.DLFileRank addFileRank(
048                    long repositoryId, long companyId, long userId, long fileEntryId,
049                    com.liferay.portal.kernel.service.ServiceContext serviceContext) {
050                    return _dlAppLocalService.addFileRank(repositoryId, companyId, userId,
051                            fileEntryId, serviceContext);
052            }
053    
054            /**
055            * Updates a file rank to the existing file entry. This method is only
056            * supported by the Liferay repository.
057            *
058            * @param repositoryId the primary key of the file rank's repository
059            * @param companyId the primary key of the file rank's company
060            * @param userId the primary key of the file rank's creator/owner
061            * @param fileEntryId the primary key of the file rank's file entry
062            * @param serviceContext the service context to be applied
063            * @return the file rank
064            */
065            @Override
066            public com.liferay.document.library.kernel.model.DLFileRank updateFileRank(
067                    long repositoryId, long companyId, long userId, long fileEntryId,
068                    com.liferay.portal.kernel.service.ServiceContext serviceContext) {
069                    return _dlAppLocalService.updateFileRank(repositoryId, companyId,
070                            userId, fileEntryId, serviceContext);
071            }
072    
073            @Override
074            public com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(
075                    long userId, long repositoryId, long folderId,
076                    java.lang.String sourceFileName, java.lang.String mimeType,
077                    byte[] bytes,
078                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
079                    throws com.liferay.portal.kernel.exception.PortalException {
080                    return _dlAppLocalService.addFileEntry(userId, repositoryId, folderId,
081                            sourceFileName, mimeType, bytes, serviceContext);
082            }
083    
084            /**
085            * Adds a file entry and associated metadata based on a byte array.
086            *
087            * <p>
088            * This method takes two file names, the <code>sourceFileName</code> and the
089            * <code>title</code>. The <code>sourceFileName</code> corresponds to the
090            * name of the actual file being uploaded. The <code>title</code>
091            * corresponds to a name the client wishes to assign this file after it has
092            * been uploaded to the portal. If it is <code>null</code>, the <code>
093            * sourceFileName</code> will be used.
094            * </p>
095            *
096            * @param userId the primary key of the file entry's creator/owner
097            * @param repositoryId the primary key of the file entry's repository
098            * @param folderId the primary key of the file entry's parent folder
099            * @param sourceFileName the original file's name
100            * @param mimeType the file's MIME type
101            * @param title the name to be assigned to the file (optionally <code>null
102            </code>)
103            * @param description the file's description
104            * @param changeLog the file's version change log
105            * @param bytes the file's data (optionally <code>null</code>)
106            * @param serviceContext the service context to be applied. Can set the
107            asset category IDs, asset tag names, and expando bridge
108            attributes for the file entry. In a Liferay repository, it may
109            include:  <ul> <li> fileEntryTypeId - ID for a custom file entry
110            type </li> <li> fieldsMap - mapping for fields associated with a
111            custom file entry type </li> </ul>
112            * @return the file entry
113            */
114            @Override
115            public com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(
116                    long userId, long repositoryId, long folderId,
117                    java.lang.String sourceFileName, java.lang.String mimeType,
118                    java.lang.String title, java.lang.String description,
119                    java.lang.String changeLog, byte[] bytes,
120                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
121                    throws com.liferay.portal.kernel.exception.PortalException {
122                    return _dlAppLocalService.addFileEntry(userId, repositoryId, folderId,
123                            sourceFileName, mimeType, title, description, changeLog, bytes,
124                            serviceContext);
125            }
126    
127            /**
128            * Adds a file entry and associated metadata based on a {@link File} object.
129            *
130            * <p>
131            * This method takes two file names, the <code>sourceFileName</code> and the
132            * <code>title</code>. The <code>sourceFileName</code> corresponds to the
133            * name of the actual file being uploaded. The <code>title</code>
134            * corresponds to a name the client wishes to assign this file after it has
135            * been uploaded to the portal. If it is <code>null</code>, the <code>
136            * sourceFileName</code> will be used.
137            * </p>
138            *
139            * @param userId the primary key of the file entry's creator/owner
140            * @param repositoryId the primary key of the repository
141            * @param folderId the primary key of the file entry's parent folder
142            * @param sourceFileName the original file's name
143            * @param mimeType the file's MIME type
144            * @param title the name to be assigned to the file (optionally <code>null
145            </code>)
146            * @param description the file's description
147            * @param changeLog the file's version change log
148            * @param file the file's data (optionally <code>null</code>)
149            * @param serviceContext the service context to be applied. Can set the
150            asset category IDs, asset tag names, and expando bridge
151            attributes for the file entry. In a Liferay repository, it may
152            include:  <ul> <li> fileEntryTypeId - ID for a custom file entry
153            type </li> <li> fieldsMap - mapping for fields associated with a
154            custom file entry type </li> </ul>
155            * @return the file entry
156            */
157            @Override
158            public com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(
159                    long userId, long repositoryId, long folderId,
160                    java.lang.String sourceFileName, java.lang.String mimeType,
161                    java.lang.String title, java.lang.String description,
162                    java.lang.String changeLog, java.io.File file,
163                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
164                    throws com.liferay.portal.kernel.exception.PortalException {
165                    return _dlAppLocalService.addFileEntry(userId, repositoryId, folderId,
166                            sourceFileName, mimeType, title, description, changeLog, file,
167                            serviceContext);
168            }
169    
170            /**
171            * Adds a file entry and associated metadata based on an {@link InputStream}
172            * object.
173            *
174            * <p>
175            * This method takes two file names, the <code>sourceFileName</code> and the
176            * <code>title</code>. The <code>sourceFileName</code> corresponds to the
177            * name of the actual file being uploaded. The <code>title</code>
178            * corresponds to a name the client wishes to assign this file after it has
179            * been uploaded to the portal. If it is <code>null</code>, the <code>
180            * sourceFileName</code> will be used.
181            * </p>
182            *
183            * @param userId the primary key of the file entry's creator/owner
184            * @param repositoryId the primary key of the repository
185            * @param folderId the primary key of the file entry's parent folder
186            * @param sourceFileName the original file's name
187            * @param mimeType the file's MIME type
188            * @param title the name to be assigned to the file (optionally <code>null
189            </code>)
190            * @param description the file's description
191            * @param changeLog the file's version change log
192            * @param is the file's data (optionally <code>null</code>)
193            * @param size the file's size (optionally <code>0</code>)
194            * @param serviceContext the service context to be applied. Can set the
195            asset category IDs, asset tag names, and expando bridge
196            attributes for the file entry. In a Liferay repository, it may
197            include:  <ul> <li> fileEntryTypeId - ID for a custom file entry
198            type </li> <li> fieldsMap - mapping for fields associated with a
199            custom file entry type </li> </ul>
200            * @return the file entry
201            */
202            @Override
203            public com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(
204                    long userId, long repositoryId, long folderId,
205                    java.lang.String sourceFileName, java.lang.String mimeType,
206                    java.lang.String title, java.lang.String description,
207                    java.lang.String changeLog, java.io.InputStream is, long size,
208                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
209                    throws com.liferay.portal.kernel.exception.PortalException {
210                    return _dlAppLocalService.addFileEntry(userId, repositoryId, folderId,
211                            sourceFileName, mimeType, title, description, changeLog, is, size,
212                            serviceContext);
213            }
214    
215            /**
216            * Returns the file entry with the primary key.
217            *
218            * @param fileEntryId the primary key of the file entry
219            * @return the file entry with the primary key
220            */
221            @Override
222            public com.liferay.portal.kernel.repository.model.FileEntry getFileEntry(
223                    long fileEntryId)
224                    throws com.liferay.portal.kernel.exception.PortalException {
225                    return _dlAppLocalService.getFileEntry(fileEntryId);
226            }
227    
228            /**
229            * Returns the file entry with the title in the folder.
230            *
231            * @param groupId the primary key of the file entry's group
232            * @param folderId the primary key of the file entry's folder
233            * @param title the file entry's title
234            * @return the file entry with the title in the folder
235            */
236            @Override
237            public com.liferay.portal.kernel.repository.model.FileEntry getFileEntry(
238                    long groupId, long folderId, java.lang.String title)
239                    throws com.liferay.portal.kernel.exception.PortalException {
240                    return _dlAppLocalService.getFileEntry(groupId, folderId, title);
241            }
242    
243            /**
244            * Returns the file entry with the UUID and group.
245            *
246            * @param uuid the file entry's UUID
247            * @param groupId the primary key of the file entry's group
248            * @return the file entry with the UUID and group
249            */
250            @Override
251            public com.liferay.portal.kernel.repository.model.FileEntry getFileEntryByUuidAndGroupId(
252                    java.lang.String uuid, long groupId)
253                    throws com.liferay.portal.kernel.exception.PortalException {
254                    return _dlAppLocalService.getFileEntryByUuidAndGroupId(uuid, groupId);
255            }
256    
257            /**
258            * Moves the file entry to the new folder.
259            *
260            * @param userId the primary key of the user
261            * @param fileEntryId the primary key of the file entry
262            * @param newFolderId the primary key of the new folder
263            * @param serviceContext the service context to be applied
264            * @return the file entry
265            */
266            @Override
267            public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntry(
268                    long userId, long fileEntryId, long newFolderId,
269                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
270                    throws com.liferay.portal.kernel.exception.PortalException {
271                    return _dlAppLocalService.moveFileEntry(userId, fileEntryId,
272                            newFolderId, serviceContext);
273            }
274    
275            /**
276            * Updates a file entry and associated metadata based on a byte array
277            * object. If the file data is <code>null</code>, then only the associated
278            * metadata (i.e., <code>title</code>, <code>description</code>, and
279            * parameters in the <code>serviceContext</code>) will be updated.
280            *
281            * <p>
282            * This method takes two file names, the <code>sourceFileName</code> and the
283            * <code>title</code>. The <code>sourceFileName</code> corresponds to the
284            * name of the actual file being uploaded. The <code>title</code>
285            * corresponds to a name the client wishes to assign this file after it has
286            * been uploaded to the portal.
287            * </p>
288            *
289            * @param userId the primary key of the user
290            * @param fileEntryId the primary key of the file entry
291            * @param sourceFileName the original file's name (optionally
292            <code>null</code>)
293            * @param mimeType the file's MIME type (optionally <code>null</code>)
294            * @param title the new name to be assigned to the file (optionally <code>
295            <code>null</code></code>)
296            * @param description the file's new description
297            * @param changeLog the file's version change log (optionally
298            <code>null</code>)
299            * @param majorVersion whether the new file version is a major version
300            * @param bytes the file's data (optionally <code>null</code>)
301            * @param serviceContext the service context to be applied. Can set the
302            asset category IDs, asset tag names, and expando bridge
303            attributes for the file entry. In a Liferay repository, it may
304            include:  <ul> <li> fileEntryTypeId - ID for a custom file entry
305            type </li> <li> fieldsMap - mapping for fields associated with a
306            custom file entry type </li> </ul>
307            * @return the file entry
308            */
309            @Override
310            public com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(
311                    long userId, long fileEntryId, java.lang.String sourceFileName,
312                    java.lang.String mimeType, java.lang.String title,
313                    java.lang.String description, java.lang.String changeLog,
314                    boolean majorVersion, byte[] bytes,
315                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
316                    throws com.liferay.portal.kernel.exception.PortalException {
317                    return _dlAppLocalService.updateFileEntry(userId, fileEntryId,
318                            sourceFileName, mimeType, title, description, changeLog,
319                            majorVersion, bytes, serviceContext);
320            }
321    
322            /**
323            * Updates a file entry and associated metadata based on a {@link File}
324            * object. If the file data is <code>null</code>, then only the associated
325            * metadata (i.e., <code>title</code>, <code>description</code>, and
326            * parameters in the <code>serviceContext</code>) will be updated.
327            *
328            * <p>
329            * This method takes two file names, the <code>sourceFileName</code> and the
330            * <code>title</code>. The <code>sourceFileName</code> corresponds to the
331            * name of the actual file being uploaded. The <code>title</code>
332            * corresponds to a name the client wishes to assign this file after it has
333            * been uploaded to the portal.
334            * </p>
335            *
336            * @param userId the primary key of the user
337            * @param fileEntryId the primary key of the file entry
338            * @param sourceFileName the original file's name (optionally
339            <code>null</code>)
340            * @param mimeType the file's MIME type (optionally <code>null</code>)
341            * @param title the new name to be assigned to the file (optionally <code>
342            <code>null</code></code>)
343            * @param description the file's new description
344            * @param changeLog the file's version change log (optionally
345            <code>null</code>)
346            * @param majorVersion whether the new file version is a major version
347            * @param file the file's data (optionally <code>null</code>)
348            * @param serviceContext the service context to be applied. Can set the
349            asset category IDs, asset tag names, and expando bridge
350            attributes for the file entry. In a Liferay repository, it may
351            include:  <ul> <li> fileEntryTypeId - ID for a custom file entry
352            type </li> <li> fieldsMap - mapping for fields associated with a
353            custom file entry type </li> </ul>
354            * @return the file entry
355            */
356            @Override
357            public com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(
358                    long userId, long fileEntryId, java.lang.String sourceFileName,
359                    java.lang.String mimeType, java.lang.String title,
360                    java.lang.String description, java.lang.String changeLog,
361                    boolean majorVersion, java.io.File file,
362                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
363                    throws com.liferay.portal.kernel.exception.PortalException {
364                    return _dlAppLocalService.updateFileEntry(userId, fileEntryId,
365                            sourceFileName, mimeType, title, description, changeLog,
366                            majorVersion, file, serviceContext);
367            }
368    
369            /**
370            * Updates a file entry and associated metadata based on an {@link
371            * InputStream} object. If the file data is <code>null</code>, then only the
372            * associated metadata (i.e., <code>title</code>, <code>description</code>,
373            * and parameters in the <code>serviceContext</code>) will be updated.
374            *
375            * <p>
376            * This method takes two file names, the <code>sourceFileName</code> and the
377            * <code>title</code>. The <code>sourceFileName</code> corresponds to the
378            * name of the actual file being uploaded. The <code>title</code>
379            * corresponds to a name the client wishes to assign this file after it has
380            * been uploaded to the portal.
381            * </p>
382            *
383            * @param userId the primary key of the user
384            * @param fileEntryId the primary key of the file entry
385            * @param sourceFileName the original file's name (optionally
386            <code>null</code>)
387            * @param mimeType the file's MIME type (optionally <code>null</code>)
388            * @param title the new name to be assigned to the file (optionally <code>
389            <code>null</code></code>)
390            * @param description the file's new description
391            * @param changeLog the file's version change log (optionally
392            <code>null</code>)
393            * @param majorVersion whether the new file version is a major version
394            * @param is the file's data (optionally <code>null</code>)
395            * @param size the file's size (optionally <code>0</code>)
396            * @param serviceContext the service context to be applied. Can set the
397            asset category IDs, asset tag names, and expando bridge
398            attributes for the file entry. In a Liferay repository, it may
399            include:  <ul> <li> fileEntryTypeId - ID for a custom file entry
400            type </li> <li> fieldsMap - mapping for fields associated with a
401            custom file entry type </li> </ul>
402            * @return the file entry
403            */
404            @Override
405            public com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(
406                    long userId, long fileEntryId, java.lang.String sourceFileName,
407                    java.lang.String mimeType, java.lang.String title,
408                    java.lang.String description, java.lang.String changeLog,
409                    boolean majorVersion, java.io.InputStream is, long size,
410                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
411                    throws com.liferay.portal.kernel.exception.PortalException {
412                    return _dlAppLocalService.updateFileEntry(userId, fileEntryId,
413                            sourceFileName, mimeType, title, description, changeLog,
414                            majorVersion, is, size, serviceContext);
415            }
416    
417            /**
418            * Adds the file shortcut to the existing file entry. This method is only
419            * supported by the Liferay repository.
420            *
421            * @param userId the primary key of the file shortcut's creator/owner
422            * @param repositoryId the primary key of the repository
423            * @param folderId the primary key of the file shortcut's parent folder
424            * @param toFileEntryId the primary key of the file entry to point to
425            * @param serviceContext the service context to be applied. Can set the
426            asset category IDs, asset tag names, and expando bridge
427            attributes for the file entry.
428            * @return the file shortcut
429            */
430            @Override
431            public com.liferay.portal.kernel.repository.model.FileShortcut addFileShortcut(
432                    long userId, long repositoryId, long folderId, long toFileEntryId,
433                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
434                    throws com.liferay.portal.kernel.exception.PortalException {
435                    return _dlAppLocalService.addFileShortcut(userId, repositoryId,
436                            folderId, toFileEntryId, serviceContext);
437            }
438    
439            /**
440            * Returns the file shortcut with the primary key. This method is only
441            * supported by the Liferay repository.
442            *
443            * @param fileShortcutId the primary key of the file shortcut
444            * @return the file shortcut with the primary key
445            */
446            @Override
447            public com.liferay.portal.kernel.repository.model.FileShortcut getFileShortcut(
448                    long fileShortcutId)
449                    throws com.liferay.portal.kernel.exception.PortalException {
450                    return _dlAppLocalService.getFileShortcut(fileShortcutId);
451            }
452    
453            /**
454            * Updates a file shortcut to the existing file entry. This method is only
455            * supported by the Liferay repository.
456            *
457            * @param userId the primary key of the file shortcut's creator/owner
458            * @param fileShortcutId the primary key of the file shortcut
459            * @param folderId the primary key of the file shortcut's parent folder
460            * @param toFileEntryId the primary key of the file shortcut's file entry
461            * @param serviceContext the service context to be applied. Can set the
462            asset category IDs, asset tag names, and expando bridge
463            attributes for the file entry.
464            * @return the file shortcut
465            */
466            @Override
467            public com.liferay.portal.kernel.repository.model.FileShortcut updateFileShortcut(
468                    long userId, long fileShortcutId, long folderId, long toFileEntryId,
469                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
470                    throws com.liferay.portal.kernel.exception.PortalException {
471                    return _dlAppLocalService.updateFileShortcut(userId, fileShortcutId,
472                            folderId, toFileEntryId, serviceContext);
473            }
474    
475            /**
476            * Returns the file version with the primary key.
477            *
478            * @param fileVersionId the primary key of the file version
479            * @return the file version with the primary key
480            */
481            @Override
482            public com.liferay.portal.kernel.repository.model.FileVersion getFileVersion(
483                    long fileVersionId)
484                    throws com.liferay.portal.kernel.exception.PortalException {
485                    return _dlAppLocalService.getFileVersion(fileVersionId);
486            }
487    
488            /**
489            * Adds a folder.
490            *
491            * @param userId the primary key of the folder's creator/owner
492            * @param repositoryId the primary key of the repository
493            * @param parentFolderId the primary key of the folder's parent folder
494            * @param name the folder's name
495            * @param description the folder's description
496            * @param serviceContext the service context to be applied. In a Liferay
497            repository, it may include mountPoint which is a boolean
498            specifying whether the folder is a facade for mounting a
499            third-party repository
500            * @return the folder
501            */
502            @Override
503            public com.liferay.portal.kernel.repository.model.Folder addFolder(
504                    long userId, long repositoryId, long parentFolderId,
505                    java.lang.String name, java.lang.String description,
506                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
507                    throws com.liferay.portal.kernel.exception.PortalException {
508                    return _dlAppLocalService.addFolder(userId, repositoryId,
509                            parentFolderId, name, description, serviceContext);
510            }
511    
512            /**
513            * Returns the folder with the primary key.
514            *
515            * @param folderId the primary key of the folder
516            * @return the folder with the primary key
517            */
518            @Override
519            public com.liferay.portal.kernel.repository.model.Folder getFolder(
520                    long folderId)
521                    throws com.liferay.portal.kernel.exception.PortalException {
522                    return _dlAppLocalService.getFolder(folderId);
523            }
524    
525            /**
526            * Returns the folder with the name in the parent folder.
527            *
528            * @param repositoryId the primary key of the folder's repository
529            * @param parentFolderId the primary key of the folder's parent folder
530            * @param name the folder's name
531            * @return the folder with the name in the parent folder
532            */
533            @Override
534            public com.liferay.portal.kernel.repository.model.Folder getFolder(
535                    long repositoryId, long parentFolderId, java.lang.String name)
536                    throws com.liferay.portal.kernel.exception.PortalException {
537                    return _dlAppLocalService.getFolder(repositoryId, parentFolderId, name);
538            }
539    
540            /**
541            * Returns the mount folder of the repository with the primary key. This
542            * method is only supported by the Liferay repository.
543            *
544            * @param repositoryId the primary key of the repository
545            * @return the folder used for mounting third-party repositories
546            */
547            @Override
548            public com.liferay.portal.kernel.repository.model.Folder getMountFolder(
549                    long repositoryId)
550                    throws com.liferay.portal.kernel.exception.PortalException {
551                    return _dlAppLocalService.getMountFolder(repositoryId);
552            }
553    
554            @Override
555            public com.liferay.portal.kernel.repository.model.Folder moveFolder(
556                    long userId, long folderId, long parentFolderId,
557                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
558                    throws com.liferay.portal.kernel.exception.PortalException {
559                    return _dlAppLocalService.moveFolder(userId, folderId, parentFolderId,
560                            serviceContext);
561            }
562    
563            /**
564            * Updates the folder.
565            *
566            * @param folderId the primary key of the folder
567            * @param parentFolderId the primary key of the folder's new parent folder
568            * @param name the folder's new name
569            * @param description the folder's new description
570            * @param serviceContext the service context to be applied. In a Liferay
571            repository, it may include:  <ul> <li> defaultFileEntryTypeId -
572            the file entry type to default all Liferay file entries to </li>
573            <li> dlFileEntryTypesSearchContainerPrimaryKeys - a
574            comma-delimited list of file entry type primary keys allowed in
575            the given folder and all descendants </li> <li> restrictionType -
576            specifying restriction type of file entry types allowed </li>
577            <li> workflowDefinitionXYZ - the workflow definition name
578            specified per file entry type. The parameter name must be the
579            string <code>workflowDefinition</code> appended by the
580            <code>fileEntryTypeId</code> (optionally <code>0</code>).</li>
581            </ul>
582            * @return the folder
583            */
584            @Override
585            public com.liferay.portal.kernel.repository.model.Folder updateFolder(
586                    long folderId, long parentFolderId, java.lang.String name,
587                    java.lang.String description,
588                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
589                    throws com.liferay.portal.kernel.exception.PortalException {
590                    return _dlAppLocalService.updateFolder(folderId, parentFolderId, name,
591                            description, serviceContext);
592            }
593    
594            /**
595            * Returns the OSGi service identifier.
596            *
597            * @return the OSGi service identifier
598            */
599            @Override
600            public java.lang.String getOSGiServiceIdentifier() {
601                    return _dlAppLocalService.getOSGiServiceIdentifier();
602            }
603    
604            /**
605            * Returns the file ranks from the user. This method is only supported by
606            * the Liferay repository.
607            *
608            * @param repositoryId the primary key of the repository
609            * @param userId the primary key of the user
610            * @return the file ranks from the user
611            */
612            @Override
613            public java.util.List<com.liferay.document.library.kernel.model.DLFileRank> getFileRanks(
614                    long repositoryId, long userId) {
615                    return _dlAppLocalService.getFileRanks(repositoryId, userId);
616            }
617    
618            /**
619            * Delete all data associated to the given repository. This method is only
620            * supported by the Liferay repository.
621            *
622            * @param repositoryId the primary key of the data's repository
623            */
624            @Override
625            public void deleteAll(long repositoryId)
626                    throws com.liferay.portal.kernel.exception.PortalException {
627                    _dlAppLocalService.deleteAll(repositoryId);
628            }
629    
630            @Override
631            public void deleteAllRepositories(long groupId)
632                    throws com.liferay.portal.kernel.exception.PortalException {
633                    _dlAppLocalService.deleteAllRepositories(groupId);
634            }
635    
636            /**
637            * Deletes the file entry.
638            *
639            * @param fileEntryId the primary key of the file entry
640            */
641            @Override
642            public void deleteFileEntry(long fileEntryId)
643                    throws com.liferay.portal.kernel.exception.PortalException {
644                    _dlAppLocalService.deleteFileEntry(fileEntryId);
645            }
646    
647            /**
648            * Deletes the file ranks associated to a given file entry. This method is
649            * only supported by the Liferay repository.
650            *
651            * @param fileEntryId the primary key of the file entry
652            */
653            @Override
654            public void deleteFileRanksByFileEntryId(long fileEntryId) {
655                    _dlAppLocalService.deleteFileRanksByFileEntryId(fileEntryId);
656            }
657    
658            /**
659            * Deletes the file ranks associated to a given user. This method is only
660            * supported by the Liferay repository.
661            *
662            * @param userId the primary key of the user
663            */
664            @Override
665            public void deleteFileRanksByUserId(long userId) {
666                    _dlAppLocalService.deleteFileRanksByUserId(userId);
667            }
668    
669            /**
670            * Deletes the file shortcut. This method is only supported by the Liferay
671            * repository.
672            *
673            * @param fileShortcut the file shortcut
674            */
675            @Override
676            public void deleteFileShortcut(
677                    com.liferay.portal.kernel.repository.model.FileShortcut fileShortcut)
678                    throws com.liferay.portal.kernel.exception.PortalException {
679                    _dlAppLocalService.deleteFileShortcut(fileShortcut);
680            }
681    
682            /**
683            * Deletes the file shortcut. This method is only supported by the Liferay
684            * repository.
685            *
686            * @param fileShortcutId the primary key of the file shortcut
687            */
688            @Override
689            public void deleteFileShortcut(long fileShortcutId)
690                    throws com.liferay.portal.kernel.exception.PortalException {
691                    _dlAppLocalService.deleteFileShortcut(fileShortcutId);
692            }
693    
694            /**
695            * Deletes all file shortcuts associated to the file entry. This method is
696            * only supported by the Liferay repository.
697            *
698            * @param toFileEntryId the primary key of the associated file entry
699            */
700            @Override
701            public void deleteFileShortcuts(long toFileEntryId)
702                    throws com.liferay.portal.kernel.exception.PortalException {
703                    _dlAppLocalService.deleteFileShortcuts(toFileEntryId);
704            }
705    
706            /**
707            * Deletes the folder and all of its subfolders and file entries.
708            *
709            * @param folderId the primary key of the folder
710            */
711            @Override
712            public void deleteFolder(long folderId)
713                    throws com.liferay.portal.kernel.exception.PortalException {
714                    _dlAppLocalService.deleteFolder(folderId);
715            }
716    
717            /**
718            * Subscribe the user to changes in documents of the file entry type. This
719            * method is only supported by the Liferay repository.
720            *
721            * @param userId the primary key of the user
722            * @param groupId the primary key of the file entry type's group
723            * @param fileEntryTypeId the primary key of the file entry type
724            */
725            @Override
726            public void subscribeFileEntryType(long userId, long groupId,
727                    long fileEntryTypeId)
728                    throws com.liferay.portal.kernel.exception.PortalException {
729                    _dlAppLocalService.subscribeFileEntryType(userId, groupId,
730                            fileEntryTypeId);
731            }
732    
733            /**
734            * Subscribe the user to document changes in the folder. This method is only
735            * supported by the Liferay repository.
736            *
737            * @param userId the primary key of the user
738            * @param groupId the primary key of the folder's group
739            * @param folderId the primary key of the folder
740            */
741            @Override
742            public void subscribeFolder(long userId, long groupId, long folderId)
743                    throws com.liferay.portal.kernel.exception.PortalException {
744                    _dlAppLocalService.subscribeFolder(userId, groupId, folderId);
745            }
746    
747            /**
748            * Unsubscribe the user from changes in documents of the file entry type.
749            * This method is only supported by the Liferay repository.
750            *
751            * @param userId the primary key of the user
752            * @param groupId the primary key of the file entry type's group
753            * @param fileEntryTypeId the primary key of the file entry type
754            */
755            @Override
756            public void unsubscribeFileEntryType(long userId, long groupId,
757                    long fileEntryTypeId)
758                    throws com.liferay.portal.kernel.exception.PortalException {
759                    _dlAppLocalService.unsubscribeFileEntryType(userId, groupId,
760                            fileEntryTypeId);
761            }
762    
763            /**
764            * Unsubscribe the user from document changes in the folder. This method is
765            * only supported by the Liferay repository.
766            *
767            * @param userId the primary key of the user
768            * @param groupId the primary key of the folder's group
769            * @param folderId the primary key of the folder
770            */
771            @Override
772            public void unsubscribeFolder(long userId, long groupId, long folderId)
773                    throws com.liferay.portal.kernel.exception.PortalException {
774                    _dlAppLocalService.unsubscribeFolder(userId, groupId, folderId);
775            }
776    
777            /**
778            * Updates the file entry's asset replacing its asset categories, tags, and
779            * links.
780            *
781            * @param userId the primary key of the user
782            * @param fileEntry the file entry to update
783            * @param fileVersion the file version to update
784            * @param assetCategoryIds the primary keys of the new asset categories
785            * @param assetTagNames the new asset tag names
786            * @param assetLinkEntryIds the primary keys of the new asset link entries
787            */
788            @Override
789            public void updateAsset(long userId,
790                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
791                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
792                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
793                    long[] assetLinkEntryIds)
794                    throws com.liferay.portal.kernel.exception.PortalException {
795                    _dlAppLocalService.updateAsset(userId, fileEntry, fileVersion,
796                            assetCategoryIds, assetTagNames, assetLinkEntryIds);
797            }
798    
799            /**
800            * Updates all file shortcuts to the existing file entry to the new file
801            * entry. This method is only supported by the Liferay repository.
802            *
803            * @param oldToFileEntryId the primary key of the old file entry pointed to
804            * @param newToFileEntryId the primary key of the new file entry to point to
805            */
806            @Override
807            public void updateFileShortcuts(long oldToFileEntryId, long newToFileEntryId)
808                    throws com.liferay.portal.kernel.exception.PortalException {
809                    _dlAppLocalService.updateFileShortcuts(oldToFileEntryId,
810                            newToFileEntryId);
811            }
812    
813            /**
814            * Deprecated as of 7.0.0, replaced by {@link #updateFileShortcuts(long,
815            * long)}
816            */
817            @Deprecated
818            @Override
819            public void updateFileShortcuts(long toRepositoryId, long oldToFileEntryId,
820                    long newToFileEntryId)
821                    throws com.liferay.portal.kernel.exception.PortalException {
822                    _dlAppLocalService.updateFileShortcuts(toRepositoryId,
823                            oldToFileEntryId, newToFileEntryId);
824            }
825    
826            @Override
827            public DLAppLocalService getWrappedService() {
828                    return _dlAppLocalService;
829            }
830    
831            @Override
832            public void setWrappedService(DLAppLocalService dlAppLocalService) {
833                    _dlAppLocalService = dlAppLocalService;
834            }
835    
836            private DLAppLocalService _dlAppLocalService;
837    }