001
014
015 package com.liferay.portal.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 import com.liferay.portal.service.AddressServiceUtil;
022
023 import java.rmi.RemoteException;
024
025
065 @ProviderType
066 public class AddressServiceSoap {
067
072 @Deprecated
073 public static com.liferay.portal.model.AddressSoap addAddress(
074 java.lang.String className, long classPK, java.lang.String street1,
075 java.lang.String street2, java.lang.String street3,
076 java.lang.String city, java.lang.String zip, long regionId,
077 long countryId, int typeId, boolean mailing, boolean primary)
078 throws RemoteException {
079 try {
080 com.liferay.portal.model.Address returnValue = AddressServiceUtil.addAddress(className,
081 classPK, street1, street2, street3, city, zip, regionId,
082 countryId, typeId, mailing, primary);
083
084 return com.liferay.portal.model.AddressSoap.toSoapModel(returnValue);
085 }
086 catch (Exception e) {
087 _log.error(e, e);
088
089 throw new RemoteException(e.getMessage());
090 }
091 }
092
093 public static com.liferay.portal.model.AddressSoap addAddress(
094 java.lang.String className, long classPK, java.lang.String street1,
095 java.lang.String street2, java.lang.String street3,
096 java.lang.String city, java.lang.String zip, long regionId,
097 long countryId, int typeId, boolean mailing, boolean primary,
098 com.liferay.portal.service.ServiceContext serviceContext)
099 throws RemoteException {
100 try {
101 com.liferay.portal.model.Address returnValue = AddressServiceUtil.addAddress(className,
102 classPK, street1, street2, street3, city, zip, regionId,
103 countryId, typeId, mailing, primary, serviceContext);
104
105 return com.liferay.portal.model.AddressSoap.toSoapModel(returnValue);
106 }
107 catch (Exception e) {
108 _log.error(e, e);
109
110 throw new RemoteException(e.getMessage());
111 }
112 }
113
114 public static void deleteAddress(long addressId) throws RemoteException {
115 try {
116 AddressServiceUtil.deleteAddress(addressId);
117 }
118 catch (Exception e) {
119 _log.error(e, e);
120
121 throw new RemoteException(e.getMessage());
122 }
123 }
124
125 public static com.liferay.portal.model.AddressSoap getAddress(
126 long addressId) throws RemoteException {
127 try {
128 com.liferay.portal.model.Address returnValue = AddressServiceUtil.getAddress(addressId);
129
130 return com.liferay.portal.model.AddressSoap.toSoapModel(returnValue);
131 }
132 catch (Exception e) {
133 _log.error(e, e);
134
135 throw new RemoteException(e.getMessage());
136 }
137 }
138
139 public static com.liferay.portal.model.AddressSoap[] getAddresses(
140 java.lang.String className, long classPK) throws RemoteException {
141 try {
142 java.util.List<com.liferay.portal.model.Address> returnValue = AddressServiceUtil.getAddresses(className,
143 classPK);
144
145 return com.liferay.portal.model.AddressSoap.toSoapModels(returnValue);
146 }
147 catch (Exception e) {
148 _log.error(e, e);
149
150 throw new RemoteException(e.getMessage());
151 }
152 }
153
154 public static com.liferay.portal.model.AddressSoap updateAddress(
155 long addressId, java.lang.String street1, java.lang.String street2,
156 java.lang.String street3, java.lang.String city, java.lang.String zip,
157 long regionId, long countryId, int typeId, boolean mailing,
158 boolean primary) throws RemoteException {
159 try {
160 com.liferay.portal.model.Address returnValue = AddressServiceUtil.updateAddress(addressId,
161 street1, street2, street3, city, zip, regionId, countryId,
162 typeId, mailing, primary);
163
164 return com.liferay.portal.model.AddressSoap.toSoapModel(returnValue);
165 }
166 catch (Exception e) {
167 _log.error(e, e);
168
169 throw new RemoteException(e.getMessage());
170 }
171 }
172
173 private static Log _log = LogFactoryUtil.getLog(AddressServiceSoap.class);
174 }