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.portlet.documentlibrary.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.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            * Returns the OSGi service identifier.
037            *
038            * @return the OSGi service identifier
039            */
040            @Override
041            public java.lang.String getOSGiServiceIdentifier() {
042                    return _dlTrashService.getOSGiServiceIdentifier();
043            }
044    
045            /**
046            * Moves the file entry from a trashed folder to the new folder.
047            *
048            * @param fileEntryId the primary key of the file entry
049            * @param newFolderId the primary key of the new folder
050            * @param serviceContext the service context to be applied
051            * @return the file entry
052            */
053            @Override
054            public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryFromTrash(
055                    long fileEntryId, long newFolderId,
056                    com.liferay.portal.service.ServiceContext serviceContext)
057                    throws com.liferay.portal.kernel.exception.PortalException {
058                    return _dlTrashService.moveFileEntryFromTrash(fileEntryId, newFolderId,
059                            serviceContext);
060            }
061    
062            /**
063            * Moves the file entry with the primary key to the trash portlet.
064            *
065            * @param fileEntryId the primary key of the file entry
066            * @return the file entry
067            */
068            @Override
069            public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryToTrash(
070                    long fileEntryId)
071                    throws com.liferay.portal.kernel.exception.PortalException {
072                    return _dlTrashService.moveFileEntryToTrash(fileEntryId);
073            }
074    
075            /**
076            * Moves the file shortcut from a trashed folder to the new folder.
077            *
078            * @param fileShortcutId the primary key of the file shortcut
079            * @param newFolderId the primary key of the new folder
080            * @param serviceContext the service context to be applied
081            * @return the file shortcut
082            */
083            @Override
084            public com.liferay.portal.kernel.repository.model.FileShortcut moveFileShortcutFromTrash(
085                    long fileShortcutId, long newFolderId,
086                    com.liferay.portal.service.ServiceContext serviceContext)
087                    throws com.liferay.portal.kernel.exception.PortalException {
088                    return _dlTrashService.moveFileShortcutFromTrash(fileShortcutId,
089                            newFolderId, serviceContext);
090            }
091    
092            /**
093            * Moves the file shortcut with the primary key to the trash portlet.
094            *
095            * @param fileShortcutId the primary key of the file shortcut
096            * @return the file shortcut
097            */
098            @Override
099            public com.liferay.portal.kernel.repository.model.FileShortcut moveFileShortcutToTrash(
100                    long fileShortcutId)
101                    throws com.liferay.portal.kernel.exception.PortalException {
102                    return _dlTrashService.moveFileShortcutToTrash(fileShortcutId);
103            }
104    
105            /**
106            * Moves the folder with the primary key from the trash portlet to the new
107            * parent folder with the primary key.
108            *
109            * @param folderId the primary key of the folder
110            * @param parentFolderId the primary key of the new parent folder
111            * @param serviceContext the service context to be applied
112            * @return the file entry
113            */
114            @Override
115            public com.liferay.portal.kernel.repository.model.Folder moveFolderFromTrash(
116                    long folderId, long parentFolderId,
117                    com.liferay.portal.service.ServiceContext serviceContext)
118                    throws com.liferay.portal.kernel.exception.PortalException {
119                    return _dlTrashService.moveFolderFromTrash(folderId, parentFolderId,
120                            serviceContext);
121            }
122    
123            /**
124            * Moves the folder with the primary key to the trash portlet.
125            *
126            * @param folderId the primary key of the folder
127            * @return the file entry
128            */
129            @Override
130            public com.liferay.portal.kernel.repository.model.Folder moveFolderToTrash(
131                    long folderId)
132                    throws com.liferay.portal.kernel.exception.PortalException {
133                    return _dlTrashService.moveFolderToTrash(folderId);
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    }