1
19
20 package com.liferay.portal.service.http;
21
22 import com.liferay.portal.kernel.log.Log;
23 import com.liferay.portal.kernel.log.LogFactoryUtil;
24 import com.liferay.portal.service.AddressServiceUtil;
25
26 import java.rmi.RemoteException;
27
28
79 public class AddressServiceSoap {
80 public static com.liferay.portal.model.AddressSoap addAddress(
81 java.lang.String className, long classPK, java.lang.String street1,
82 java.lang.String street2, java.lang.String street3,
83 java.lang.String city, java.lang.String zip, long regionId,
84 long countryId, int typeId, boolean mailing, boolean primary)
85 throws RemoteException {
86 try {
87 com.liferay.portal.model.Address returnValue = AddressServiceUtil.addAddress(className,
88 classPK, street1, street2, street3, city, zip, regionId,
89 countryId, typeId, mailing, primary);
90
91 return com.liferay.portal.model.AddressSoap.toSoapModel(returnValue);
92 }
93 catch (Exception e) {
94 _log.error(e, e);
95
96 throw new RemoteException(e.getMessage());
97 }
98 }
99
100 public static void deleteAddress(long addressId) throws RemoteException {
101 try {
102 AddressServiceUtil.deleteAddress(addressId);
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 getAddress(
112 long addressId) throws RemoteException {
113 try {
114 com.liferay.portal.model.Address returnValue = AddressServiceUtil.getAddress(addressId);
115
116 return com.liferay.portal.model.AddressSoap.toSoapModel(returnValue);
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[] getAddresses(
126 java.lang.String className, long classPK) throws RemoteException {
127 try {
128 java.util.List<com.liferay.portal.model.Address> returnValue = AddressServiceUtil.getAddresses(className,
129 classPK);
130
131 return com.liferay.portal.model.AddressSoap.toSoapModels(returnValue);
132 }
133 catch (Exception e) {
134 _log.error(e, e);
135
136 throw new RemoteException(e.getMessage());
137 }
138 }
139
140 public static com.liferay.portal.model.AddressSoap updateAddress(
141 long addressId, java.lang.String street1, java.lang.String street2,
142 java.lang.String street3, java.lang.String city, java.lang.String zip,
143 long regionId, long countryId, int typeId, boolean mailing,
144 boolean primary) throws RemoteException {
145 try {
146 com.liferay.portal.model.Address returnValue = AddressServiceUtil.updateAddress(addressId,
147 street1, street2, street3, city, zip, regionId, countryId,
148 typeId, mailing, primary);
149
150 return com.liferay.portal.model.AddressSoap.toSoapModel(returnValue);
151 }
152 catch (Exception e) {
153 _log.error(e, e);
154
155 throw new RemoteException(e.getMessage());
156 }
157 }
158
159 private static Log _log = LogFactoryUtil.getLog(AddressServiceSoap.class);
160 }