1
14
15 package com.liferay.portal.service.http;
16
17 import com.liferay.portal.kernel.log.Log;
18 import com.liferay.portal.kernel.log.LogFactoryUtil;
19 import com.liferay.portal.service.AddressServiceUtil;
20
21 import java.rmi.RemoteException;
22
23
73 public class AddressServiceSoap {
74 public static com.liferay.portal.model.AddressSoap addAddress(
75 java.lang.String className, long classPK, java.lang.String street1,
76 java.lang.String street2, java.lang.String street3,
77 java.lang.String city, java.lang.String zip, long regionId,
78 long countryId, int typeId, boolean mailing, boolean primary)
79 throws RemoteException {
80 try {
81 com.liferay.portal.model.Address returnValue = AddressServiceUtil.addAddress(className,
82 classPK, street1, street2, street3, city, zip, regionId,
83 countryId, typeId, mailing, primary);
84
85 return com.liferay.portal.model.AddressSoap.toSoapModel(returnValue);
86 }
87 catch (Exception e) {
88 _log.error(e, e);
89
90 throw new RemoteException(e.getMessage());
91 }
92 }
93
94 public static void deleteAddress(long addressId) throws RemoteException {
95 try {
96 AddressServiceUtil.deleteAddress(addressId);
97 }
98 catch (Exception e) {
99 _log.error(e, e);
100
101 throw new RemoteException(e.getMessage());
102 }
103 }
104
105 public static com.liferay.portal.model.AddressSoap getAddress(
106 long addressId) throws RemoteException {
107 try {
108 com.liferay.portal.model.Address returnValue = AddressServiceUtil.getAddress(addressId);
109
110 return com.liferay.portal.model.AddressSoap.toSoapModel(returnValue);
111 }
112 catch (Exception e) {
113 _log.error(e, e);
114
115 throw new RemoteException(e.getMessage());
116 }
117 }
118
119 public static com.liferay.portal.model.AddressSoap[] getAddresses(
120 java.lang.String className, long classPK) throws RemoteException {
121 try {
122 java.util.List<com.liferay.portal.model.Address> returnValue = AddressServiceUtil.getAddresses(className,
123 classPK);
124
125 return com.liferay.portal.model.AddressSoap.toSoapModels(returnValue);
126 }
127 catch (Exception e) {
128 _log.error(e, e);
129
130 throw new RemoteException(e.getMessage());
131 }
132 }
133
134 public static com.liferay.portal.model.AddressSoap updateAddress(
135 long addressId, java.lang.String street1, java.lang.String street2,
136 java.lang.String street3, java.lang.String city, java.lang.String zip,
137 long regionId, long countryId, int typeId, boolean mailing,
138 boolean primary) throws RemoteException {
139 try {
140 com.liferay.portal.model.Address returnValue = AddressServiceUtil.updateAddress(addressId,
141 street1, street2, street3, city, zip, regionId, countryId,
142 typeId, mailing, primary);
143
144 return com.liferay.portal.model.AddressSoap.toSoapModel(returnValue);
145 }
146 catch (Exception e) {
147 _log.error(e, e);
148
149 throw new RemoteException(e.getMessage());
150 }
151 }
152
153 private static Log _log = LogFactoryUtil.getLog(AddressServiceSoap.class);
154 }