001
014
015 package com.liferay.portlet.dynamicdatamapping.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.dynamicdatamapping.service.DDMStructureLinkServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
067 public class DDMStructureLinkServiceSoap {
068 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLinkSoap addStructureLink(
069 long classNameId, long classPK, long structureId,
070 com.liferay.portal.service.ServiceContext serviceContext)
071 throws RemoteException {
072 try {
073 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink returnValue =
074 DDMStructureLinkServiceUtil.addStructureLink(classNameId,
075 classPK, structureId, serviceContext);
076
077 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureLinkSoap.toSoapModel(returnValue);
078 }
079 catch (Exception e) {
080 _log.error(e, e);
081
082 throw new RemoteException(e.getMessage());
083 }
084 }
085
086 public static void deleteStructureLink(long structureLinkId)
087 throws RemoteException {
088 try {
089 DDMStructureLinkServiceUtil.deleteStructureLink(structureLinkId);
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.DDMStructureLinkSoap getStructureLink(
099 long structureLinkId) throws RemoteException {
100 try {
101 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink returnValue =
102 DDMStructureLinkServiceUtil.getStructureLink(structureLinkId);
103
104 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureLinkSoap.toSoapModel(returnValue);
105 }
106 catch (Exception e) {
107 _log.error(e, e);
108
109 throw new RemoteException(e.getMessage());
110 }
111 }
112
113 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLinkSoap updateStructureLink(
114 long structureLinkId, long classNameId, long classPK, long structureId)
115 throws RemoteException {
116 try {
117 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink returnValue =
118 DDMStructureLinkServiceUtil.updateStructureLink(structureLinkId,
119 classNameId, classPK, structureId);
120
121 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureLinkSoap.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(DDMStructureLinkServiceSoap.class);
131 }