001
014
015 package com.liferay.portlet.dynamicdatalists.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.dynamicdatalists.service.DDLRecordVersionServiceUtil;
023
024 import java.rmi.RemoteException;
025
026
066 @ProviderType
067 public class DDLRecordVersionServiceSoap {
068 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersionSoap getRecordVersion(
069 long recordVersionId) throws RemoteException {
070 try {
071 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion returnValue =
072 DDLRecordVersionServiceUtil.getRecordVersion(recordVersionId);
073
074 return com.liferay.portlet.dynamicdatalists.model.DDLRecordVersionSoap.toSoapModel(returnValue);
075 }
076 catch (Exception e) {
077 _log.error(e, e);
078
079 throw new RemoteException(e.getMessage());
080 }
081 }
082
083 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersionSoap getRecordVersion(
084 long recordId, java.lang.String version) throws RemoteException {
085 try {
086 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion returnValue =
087 DDLRecordVersionServiceUtil.getRecordVersion(recordId, version);
088
089 return com.liferay.portlet.dynamicdatalists.model.DDLRecordVersionSoap.toSoapModel(returnValue);
090 }
091 catch (Exception e) {
092 _log.error(e, e);
093
094 throw new RemoteException(e.getMessage());
095 }
096 }
097
098 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersionSoap[] getRecordVersions(
099 long recordId, int start, int end,
100 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator)
101 throws RemoteException {
102 try {
103 java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> returnValue =
104 DDLRecordVersionServiceUtil.getRecordVersions(recordId, start,
105 end, orderByComparator);
106
107 return com.liferay.portlet.dynamicdatalists.model.DDLRecordVersionSoap.toSoapModels(returnValue);
108 }
109 catch (Exception e) {
110 _log.error(e, e);
111
112 throw new RemoteException(e.getMessage());
113 }
114 }
115
116 public static int getRecordVersionsCount(long recordId)
117 throws RemoteException {
118 try {
119 int returnValue = DDLRecordVersionServiceUtil.getRecordVersionsCount(recordId);
120
121 return 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(DDLRecordVersionServiceSoap.class);
131 }