001
014
015 package com.liferay.portlet.dynamicdatamapping.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.dynamicdatamapping.service.DDMStructureVersionServiceUtil;
023
024 import java.rmi.RemoteException;
025
026
066 @ProviderType
067 public class DDMStructureVersionServiceSoap {
068 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersionSoap getLatestStructureVersion(
069 long structureId) throws RemoteException {
070 try {
071 com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion returnValue =
072 DDMStructureVersionServiceUtil.getLatestStructureVersion(structureId);
073
074 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersionSoap.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.dynamicdatamapping.model.DDMStructureVersionSoap getStructureVersion(
084 long structureVersionId) throws RemoteException {
085 try {
086 com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion returnValue =
087 DDMStructureVersionServiceUtil.getStructureVersion(structureVersionId);
088
089 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersionSoap.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.dynamicdatamapping.model.DDMStructureVersionSoap[] getStructureVersions(
099 long structureId, int start, int end,
100 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion> orderByComparator)
101 throws RemoteException {
102 try {
103 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion> returnValue =
104 DDMStructureVersionServiceUtil.getStructureVersions(structureId,
105 start, end, orderByComparator);
106
107 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersionSoap.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 getStructureVersionsCount(long structureId)
117 throws RemoteException {
118 try {
119 int returnValue = DDMStructureVersionServiceUtil.getStructureVersionsCount(structureId);
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(DDMStructureVersionServiceSoap.class);
131 }