001
014
015 package com.liferay.portlet.documentlibrary.service.http;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.log.Log;
020 import com.liferay.portal.kernel.log.LogFactoryUtil;
021
022 import com.liferay.portlet.documentlibrary.service.DLTrashServiceUtil;
023
024 import java.rmi.RemoteException;
025
026
055 @ProviderType
056 public class DLTrashServiceSoap {
057
065 public static com.liferay.portal.kernel.repository.model.FileEntrySoap moveFileEntryFromTrash(
066 long fileEntryId, long newFolderId,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws RemoteException {
069 try {
070 com.liferay.portal.kernel.repository.model.FileEntry returnValue = DLTrashServiceUtil.moveFileEntryFromTrash(fileEntryId,
071 newFolderId, serviceContext);
072
073 return com.liferay.portal.kernel.repository.model.FileEntrySoap.toSoapModel(returnValue);
074 }
075 catch (Exception e) {
076 _log.error(e, e);
077
078 throw new RemoteException(e.getMessage());
079 }
080 }
081
082
088 public static com.liferay.portal.kernel.repository.model.FileEntrySoap moveFileEntryToTrash(
089 long fileEntryId) throws RemoteException {
090 try {
091 com.liferay.portal.kernel.repository.model.FileEntry returnValue = DLTrashServiceUtil.moveFileEntryToTrash(fileEntryId);
092
093 return com.liferay.portal.kernel.repository.model.FileEntrySoap.toSoapModel(returnValue);
094 }
095 catch (Exception e) {
096 _log.error(e, e);
097
098 throw new RemoteException(e.getMessage());
099 }
100 }
101
102
111 public static com.liferay.portal.kernel.repository.model.FolderSoap moveFolderFromTrash(
112 long folderId, long parentFolderId,
113 com.liferay.portal.service.ServiceContext serviceContext)
114 throws RemoteException {
115 try {
116 com.liferay.portal.kernel.repository.model.Folder returnValue = DLTrashServiceUtil.moveFolderFromTrash(folderId,
117 parentFolderId, serviceContext);
118
119 return com.liferay.portal.kernel.repository.model.FolderSoap.toSoapModel(returnValue);
120 }
121 catch (Exception e) {
122 _log.error(e, e);
123
124 throw new RemoteException(e.getMessage());
125 }
126 }
127
128
134 public static com.liferay.portal.kernel.repository.model.FolderSoap moveFolderToTrash(
135 long folderId) throws RemoteException {
136 try {
137 com.liferay.portal.kernel.repository.model.Folder returnValue = DLTrashServiceUtil.moveFolderToTrash(folderId);
138
139 return com.liferay.portal.kernel.repository.model.FolderSoap.toSoapModel(returnValue);
140 }
141 catch (Exception e) {
142 _log.error(e, e);
143
144 throw new RemoteException(e.getMessage());
145 }
146 }
147
148
153 public static void restoreFileEntryFromTrash(long fileEntryId)
154 throws RemoteException {
155 try {
156 DLTrashServiceUtil.restoreFileEntryFromTrash(fileEntryId);
157 }
158 catch (Exception e) {
159 _log.error(e, e);
160
161 throw new RemoteException(e.getMessage());
162 }
163 }
164
165
170 public static void restoreFileShortcutFromTrash(long fileShortcutId)
171 throws RemoteException {
172 try {
173 DLTrashServiceUtil.restoreFileShortcutFromTrash(fileShortcutId);
174 }
175 catch (Exception e) {
176 _log.error(e, e);
177
178 throw new RemoteException(e.getMessage());
179 }
180 }
181
182
187 public static void restoreFolderFromTrash(long folderId)
188 throws RemoteException {
189 try {
190 DLTrashServiceUtil.restoreFolderFromTrash(folderId);
191 }
192 catch (Exception e) {
193 _log.error(e, e);
194
195 throw new RemoteException(e.getMessage());
196 }
197 }
198
199 private static Log _log = LogFactoryUtil.getLog(DLTrashServiceSoap.class);
200 }