1
22
23 package com.liferay.portal.service;
24
25
26
47 public class AddressServiceUtil {
48 public static com.liferay.portal.model.Address addAddress(
49 java.lang.String className, long classPK, java.lang.String street1,
50 java.lang.String street2, java.lang.String street3,
51 java.lang.String city, java.lang.String zip, long regionId,
52 long countryId, int typeId, boolean mailing, boolean primary)
53 throws com.liferay.portal.PortalException,
54 com.liferay.portal.SystemException, java.rmi.RemoteException {
55 return _service.addAddress(className, classPK, street1, street2,
56 street3, city, zip, regionId, countryId, typeId, mailing, primary);
57 }
58
59 public static void deleteAddress(long addressId)
60 throws com.liferay.portal.PortalException,
61 com.liferay.portal.SystemException, java.rmi.RemoteException {
62 _service.deleteAddress(addressId);
63 }
64
65 public static com.liferay.portal.model.Address getAddress(long addressId)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException, java.rmi.RemoteException {
68 return _service.getAddress(addressId);
69 }
70
71 public static java.util.List<com.liferay.portal.model.Address> getAddresses(
72 java.lang.String className, long classPK)
73 throws com.liferay.portal.PortalException,
74 com.liferay.portal.SystemException, java.rmi.RemoteException {
75 return _service.getAddresses(className, classPK);
76 }
77
78 public static com.liferay.portal.model.Address updateAddress(
79 long addressId, java.lang.String street1, java.lang.String street2,
80 java.lang.String street3, java.lang.String city, java.lang.String zip,
81 long regionId, long countryId, int typeId, boolean mailing,
82 boolean primary)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException, java.rmi.RemoteException {
85 return _service.updateAddress(addressId, street1, street2, street3,
86 city, zip, regionId, countryId, typeId, mailing, primary);
87 }
88
89 public static AddressService getService() {
90 return _service;
91 }
92
93 public void setService(AddressService service) {
94 _service = service;
95 }
96
97 private static AddressService _service;
98 }