001
014
015 package com.liferay.portlet.documentlibrary.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019
020 import com.liferay.portlet.documentlibrary.service.DLFileShortcutServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
066 public class DLFileShortcutServiceSoap {
067 public static com.liferay.portlet.documentlibrary.model.DLFileShortcutSoap addFileShortcut(
068 long groupId, long folderId, long toFileEntryId,
069 com.liferay.portal.service.ServiceContext serviceContext)
070 throws RemoteException {
071 try {
072 com.liferay.portlet.documentlibrary.model.DLFileShortcut returnValue =
073 DLFileShortcutServiceUtil.addFileShortcut(groupId, folderId,
074 toFileEntryId, serviceContext);
075
076 return com.liferay.portlet.documentlibrary.model.DLFileShortcutSoap.toSoapModel(returnValue);
077 }
078 catch (Exception e) {
079 _log.error(e, e);
080
081 throw new RemoteException(e.getMessage());
082 }
083 }
084
085 public static void deleteFileShortcut(long fileShortcutId)
086 throws RemoteException {
087 try {
088 DLFileShortcutServiceUtil.deleteFileShortcut(fileShortcutId);
089 }
090 catch (Exception e) {
091 _log.error(e, e);
092
093 throw new RemoteException(e.getMessage());
094 }
095 }
096
097 public static com.liferay.portlet.documentlibrary.model.DLFileShortcutSoap getFileShortcut(
098 long fileShortcutId) throws RemoteException {
099 try {
100 com.liferay.portlet.documentlibrary.model.DLFileShortcut returnValue =
101 DLFileShortcutServiceUtil.getFileShortcut(fileShortcutId);
102
103 return com.liferay.portlet.documentlibrary.model.DLFileShortcutSoap.toSoapModel(returnValue);
104 }
105 catch (Exception e) {
106 _log.error(e, e);
107
108 throw new RemoteException(e.getMessage());
109 }
110 }
111
112 public static com.liferay.portlet.documentlibrary.model.DLFileShortcutSoap updateFileShortcut(
113 long fileShortcutId, long folderId, long toFileEntryId,
114 com.liferay.portal.service.ServiceContext serviceContext)
115 throws RemoteException {
116 try {
117 com.liferay.portlet.documentlibrary.model.DLFileShortcut returnValue =
118 DLFileShortcutServiceUtil.updateFileShortcut(fileShortcutId,
119 folderId, toFileEntryId, serviceContext);
120
121 return com.liferay.portlet.documentlibrary.model.DLFileShortcutSoap.toSoapModel(returnValue);
122 }
123 catch (Exception e) {
124 _log.error(e, e);
125
126 throw new RemoteException(e.getMessage());
127 }
128 }
129
130 private static Log _log = LogFactoryUtil.getLog(DLFileShortcutServiceSoap.class);
131 }