001
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
028 @ProviderType
029 public class DLTrashServiceWrapper implements DLTrashService,
030 ServiceWrapper<DLTrashService> {
031 public DLTrashServiceWrapper(DLTrashService dlTrashService) {
032 _dlTrashService = dlTrashService;
033 }
034
035
040 @Override
041 public java.lang.String getOSGiServiceIdentifier() {
042 return _dlTrashService.getOSGiServiceIdentifier();
043 }
044
045
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
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
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
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
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
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
141 @Override
142 public void restoreFileEntryFromTrash(long fileEntryId)
143 throws com.liferay.portal.kernel.exception.PortalException {
144 _dlTrashService.restoreFileEntryFromTrash(fileEntryId);
145 }
146
147
152 @Override
153 public void restoreFileShortcutFromTrash(long fileShortcutId)
154 throws com.liferay.portal.kernel.exception.PortalException {
155 _dlTrashService.restoreFileShortcutFromTrash(fileShortcutId);
156 }
157
158
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 }