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 DLTrashLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see DLTrashLocalService
026     * @generated
027     */
028    @ProviderType
029    public class DLTrashLocalServiceWrapper implements DLTrashLocalService,
030            ServiceWrapper<DLTrashLocalService> {
031            public DLTrashLocalServiceWrapper(DLTrashLocalService dlTrashLocalService) {
032                    _dlTrashLocalService = dlTrashLocalService;
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 _dlTrashLocalService.getOSGiServiceIdentifier();
043            }
044    
045            @Override
046            public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryFromTrash(
047                    long userId, long repositoryId, long fileEntryId, long newFolderId,
048                    com.liferay.portal.service.ServiceContext serviceContext)
049                    throws com.liferay.portal.kernel.exception.PortalException {
050                    return _dlTrashLocalService.moveFileEntryFromTrash(userId,
051                            repositoryId, fileEntryId, newFolderId, serviceContext);
052            }
053    
054            @Override
055            public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryToTrash(
056                    long userId, long repositoryId, long fileEntryId)
057                    throws com.liferay.portal.kernel.exception.PortalException {
058                    return _dlTrashLocalService.moveFileEntryToTrash(userId, repositoryId,
059                            fileEntryId);
060            }
061    
062            @Override
063            public void restoreFileEntryFromTrash(long userId, long repositoryId,
064                    long fileEntryId)
065                    throws com.liferay.portal.kernel.exception.PortalException {
066                    _dlTrashLocalService.restoreFileEntryFromTrash(userId, repositoryId,
067                            fileEntryId);
068            }
069    
070            @Override
071            public DLTrashLocalService getWrappedService() {
072                    return _dlTrashLocalService;
073            }
074    
075            @Override
076            public void setWrappedService(DLTrashLocalService dlTrashLocalService) {
077                    _dlTrashLocalService = dlTrashLocalService;
078            }
079    
080            private DLTrashLocalService _dlTrashLocalService;
081    }