001
014
015 package com.liferay.portal.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portal.service.AddressServiceUtil;
020
021 import java.rmi.RemoteException;
022
023
065 public class AddressServiceSoap {
066 public static com.liferay.portal.model.AddressSoap addAddress(
067 java.lang.String className, long classPK, java.lang.String street1,
068 java.lang.String street2, java.lang.String street3,
069 java.lang.String city, java.lang.String zip, long regionId,
070 long countryId, int typeId, boolean mailing, boolean primary)
071 throws RemoteException {
072 try {
073 com.liferay.portal.model.Address returnValue = AddressServiceUtil.addAddress(className,
074 classPK, street1, street2, street3, city, zip, regionId,
075 countryId, typeId, mailing, primary);
076
077 return com.liferay.portal.model.AddressSoap.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 deleteAddress(long addressId) throws RemoteException {
087 try {
088 AddressServiceUtil.deleteAddress(addressId);
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.portal.model.AddressSoap getAddress(
098 long addressId) throws RemoteException {
099 try {
100 com.liferay.portal.model.Address returnValue = AddressServiceUtil.getAddress(addressId);
101
102 return com.liferay.portal.model.AddressSoap.toSoapModel(returnValue);
103 }
104 catch (Exception e) {
105 _log.error(e, e);
106
107 throw new RemoteException(e.getMessage());
108 }
109 }
110
111 public static com.liferay.portal.model.AddressSoap[] getAddresses(
112 java.lang.String className, long classPK) throws RemoteException {
113 try {
114 java.util.List<com.liferay.portal.model.Address> returnValue = AddressServiceUtil.getAddresses(className,
115 classPK);
116
117 return com.liferay.portal.model.AddressSoap.toSoapModels(returnValue);
118 }
119 catch (Exception e) {
120 _log.error(e, e);
121
122 throw new RemoteException(e.getMessage());
123 }
124 }
125
126 public static com.liferay.portal.model.AddressSoap updateAddress(
127 long addressId, java.lang.String street1, java.lang.String street2,
128 java.lang.String street3, java.lang.String city, java.lang.String zip,
129 long regionId, long countryId, int typeId, boolean mailing,
130 boolean primary) throws RemoteException {
131 try {
132 com.liferay.portal.model.Address returnValue = AddressServiceUtil.updateAddress(addressId,
133 street1, street2, street3, city, zip, regionId, countryId,
134 typeId, mailing, primary);
135
136 return com.liferay.portal.model.AddressSoap.toSoapModel(returnValue);
137 }
138 catch (Exception e) {
139 _log.error(e, e);
140
141 throw new RemoteException(e.getMessage());
142 }
143 }
144
145 private static Log _log = LogFactoryUtil.getLog(AddressServiceSoap.class);
146 }