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.DLFileVersionServiceUtil;
023
024 import java.rmi.RemoteException;
025
026
066 @ProviderType
067 public class DLFileVersionServiceSoap {
068 public static com.liferay.portlet.documentlibrary.model.DLFileVersionSoap getFileVersion(
069 long fileVersionId) throws RemoteException {
070 try {
071 com.liferay.portlet.documentlibrary.model.DLFileVersion returnValue = DLFileVersionServiceUtil.getFileVersion(fileVersionId);
072
073 return com.liferay.portlet.documentlibrary.model.DLFileVersionSoap.toSoapModel(returnValue);
074 }
075 catch (Exception e) {
076 _log.error(e, e);
077
078 throw new RemoteException(e.getMessage());
079 }
080 }
081
082 public static com.liferay.portlet.documentlibrary.model.DLFileVersionSoap[] getFileVersions(
083 long fileEntryId, int status) throws RemoteException {
084 try {
085 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> returnValue =
086 DLFileVersionServiceUtil.getFileVersions(fileEntryId, status);
087
088 return com.liferay.portlet.documentlibrary.model.DLFileVersionSoap.toSoapModels(returnValue);
089 }
090 catch (Exception e) {
091 _log.error(e, e);
092
093 throw new RemoteException(e.getMessage());
094 }
095 }
096
097 public static int getFileVersionsCount(long fileEntryId, int status)
098 throws RemoteException {
099 try {
100 int returnValue = DLFileVersionServiceUtil.getFileVersionsCount(fileEntryId,
101 status);
102
103 return 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.DLFileVersionSoap getLatestFileVersion(
113 long fileEntryId) throws RemoteException {
114 try {
115 com.liferay.portlet.documentlibrary.model.DLFileVersion returnValue = DLFileVersionServiceUtil.getLatestFileVersion(fileEntryId);
116
117 return com.liferay.portlet.documentlibrary.model.DLFileVersionSoap.toSoapModel(returnValue);
118 }
119 catch (Exception e) {
120 _log.error(e, e);
121
122 throw new RemoteException(e.getMessage());
123 }
124 }
125
126 private static Log _log = LogFactoryUtil.getLog(DLFileVersionServiceSoap.class);
127 }