001
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
028 @ProviderType
029 public class DLTrashServiceWrapper implements DLTrashService,
030 ServiceWrapper<DLTrashService> {
031 public DLTrashServiceWrapper(DLTrashService dlTrashService) {
032 _dlTrashService = dlTrashService;
033 }
034
035
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
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
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
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
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
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
131 @Override
132 public java.lang.String getOSGiServiceIdentifier() {
133 return _dlTrashService.getOSGiServiceIdentifier();
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 }