001
014
015 package com.liferay.portal.service;
016
017
026 public class AddressServiceWrapper implements AddressService {
027 public AddressServiceWrapper(AddressService addressService) {
028 _addressService = addressService;
029 }
030
031 public com.liferay.portal.model.Address addAddress(
032 java.lang.String className, long classPK, java.lang.String street1,
033 java.lang.String street2, java.lang.String street3,
034 java.lang.String city, java.lang.String zip, long regionId,
035 long countryId, int typeId, boolean mailing, boolean primary)
036 throws com.liferay.portal.kernel.exception.PortalException,
037 com.liferay.portal.kernel.exception.SystemException {
038 return _addressService.addAddress(className, classPK, street1, street2,
039 street3, city, zip, regionId, countryId, typeId, mailing, primary);
040 }
041
042 public void deleteAddress(long addressId)
043 throws com.liferay.portal.kernel.exception.PortalException,
044 com.liferay.portal.kernel.exception.SystemException {
045 _addressService.deleteAddress(addressId);
046 }
047
048 public com.liferay.portal.model.Address getAddress(long addressId)
049 throws com.liferay.portal.kernel.exception.PortalException,
050 com.liferay.portal.kernel.exception.SystemException {
051 return _addressService.getAddress(addressId);
052 }
053
054 public java.util.List<com.liferay.portal.model.Address> getAddresses(
055 java.lang.String className, long classPK)
056 throws com.liferay.portal.kernel.exception.PortalException,
057 com.liferay.portal.kernel.exception.SystemException {
058 return _addressService.getAddresses(className, classPK);
059 }
060
061 public com.liferay.portal.model.Address updateAddress(long addressId,
062 java.lang.String street1, java.lang.String street2,
063 java.lang.String street3, java.lang.String city, java.lang.String zip,
064 long regionId, long countryId, int typeId, boolean mailing,
065 boolean primary)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException {
068 return _addressService.updateAddress(addressId, street1, street2,
069 street3, city, zip, regionId, countryId, typeId, mailing, primary);
070 }
071
072 public AddressService getWrappedAddressService() {
073 return _addressService;
074 }
075
076 private AddressService _addressService;
077 }