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