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 DLTrashService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see DLTrashService
026     * @generated
027     */
028    @ProviderType
029    public class DLTrashServiceWrapper implements DLTrashService,
030            ServiceWrapper<DLTrashService> {
031            public DLTrashServiceWrapper(DLTrashService dlTrashService) {
032                    _dlTrashService = dlTrashService;
033            }
034    
035            /**
036            * Moves the file entry from a trashed folder to the new folder.
037            *
038            * @param fileEntryId the primary key of the file entry
039            * @param newFolderId the primary key of the new folder
040            * @param serviceContext the service context to be applied
041            * @return the file entry
042            */
043            @Override
044            public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryFromTrash(
045                    long fileEntryId, long newFolderId,
046                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
047                    throws com.liferay.portal.kernel.exception.PortalException {
048                    return _dlTrashService.moveFileEntryFromTrash(fileEntryId, newFolderId,
049                            serviceContext);
050            }
051    
052            /**
053            * Moves the file entry with the primary key to the trash portlet.
054            *
055            * @param fileEntryId the primary key of the file entry
056            * @return the file entry
057            */
058            @Override
059            public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryToTrash(
060                    long fileEntryId)
061                    throws com.liferay.portal.kernel.exception.PortalException {
062                    return _dlTrashService.moveFileEntryToTrash(fileEntryId);
063            }
064    
065            /**
066            * Moves the file shortcut from a trashed folder to the new folder.
067            *
068            * @param fileShortcutId the primary key of the file shortcut
069            * @param newFolderId the primary key of the new folder
070            * @param serviceContext the service context to be applied
071            * @return the file shortcut
072            */
073            @Override
074            public com.liferay.portal.kernel.repository.model.FileShortcut moveFileShortcutFromTrash(
075                    long fileShortcutId, long newFolderId,
076                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
077                    throws com.liferay.portal.kernel.exception.PortalException {
078                    return _dlTrashService.moveFileShortcutFromTrash(fileShortcutId,
079                            newFolderId, serviceContext);
080            }
081    
082            /**
083            * Moves the file shortcut with the primary key to the trash portlet.
084            *
085            * @param fileShortcutId the primary key of the file shortcut
086            * @return the file shortcut
087            */
088            @Override
089            public com.liferay.portal.kernel.repository.model.FileShortcut moveFileShortcutToTrash(
090                    long fileShortcutId)
091                    throws com.liferay.portal.kernel.exception.PortalException {
092                    return _dlTrashService.moveFileShortcutToTrash(fileShortcutId);
093            }
094    
095            /**
096            * Moves the folder with the primary key from the trash portlet to the new
097            * parent folder with the primary key.
098            *
099            * @param folderId the primary key of the folder
100            * @param parentFolderId the primary key of the new parent folder
101            * @param serviceContext the service context to be applied
102            * @return the file entry
103            */
104            @Override
105            public com.liferay.portal.kernel.repository.model.Folder moveFolderFromTrash(
106                    long folderId, long parentFolderId,
107                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
108                    throws com.liferay.portal.kernel.exception.PortalException {
109                    return _dlTrashService.moveFolderFromTrash(folderId, parentFolderId,
110                            serviceContext);
111            }
112    
113            /**
114            * Moves the folder with the primary key to the trash portlet.
115            *
116            * @param folderId the primary key of the folder
117            * @return the file entry
118            */
119            @Override
120            public com.liferay.portal.kernel.repository.model.Folder moveFolderToTrash(
121                    long folderId)
122                    throws com.liferay.portal.kernel.exception.PortalException {
123                    return _dlTrashService.moveFolderToTrash(folderId);
124            }
125    
126            /**
127            * Returns the OSGi service identifier.
128            *
129            * @return the OSGi service identifier
130            */
131            @Override
132            public java.lang.String getOSGiServiceIdentifier() {
133                    return _dlTrashService.getOSGiServiceIdentifier();
134            }
135    
136            /**
137            * Restores the file entry with the primary key from the trash portlet.
138            *
139            * @param fileEntryId the primary key of the file entry
140            */
141            @Override
142            public void restoreFileEntryFromTrash(long fileEntryId)
143                    throws com.liferay.portal.kernel.exception.PortalException {
144                    _dlTrashService.restoreFileEntryFromTrash(fileEntryId);
145            }
146    
147            /**
148            * Restores the file shortcut with the primary key from the trash portlet.
149            *
150            * @param fileShortcutId the primary key of the file shortcut
151            */
152            @Override
153            public void restoreFileShortcutFromTrash(long fileShortcutId)
154                    throws com.liferay.portal.kernel.exception.PortalException {
155                    _dlTrashService.restoreFileShortcutFromTrash(fileShortcutId);
156            }
157    
158            /**
159            * Restores the folder with the primary key from the trash portlet.
160            *
161            * @param folderId the primary key of the folder
162            */
163            @Override
164            public void restoreFolderFromTrash(long folderId)
165                    throws com.liferay.portal.kernel.exception.PortalException {
166                    _dlTrashService.restoreFolderFromTrash(folderId);
167            }
168    
169            @Override
170            public DLTrashService getWrappedService() {
171                    return _dlTrashService;
172            }
173    
174            @Override
175            public void setWrappedService(DLTrashService dlTrashService) {
176                    _dlTrashService = dlTrashService;
177            }
178    
179            private DLTrashService _dlTrashService;
180    }