001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link AddressService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       AddressService
024     * @generated
025     */
026    public class AddressServiceWrapper implements AddressService,
027            ServiceWrapper<AddressService> {
028            public AddressServiceWrapper(AddressService addressService) {
029                    _addressService = addressService;
030            }
031    
032            /**
033            * Returns the Spring bean ID for this bean.
034            *
035            * @return the Spring bean ID for this bean
036            */
037            public java.lang.String getBeanIdentifier() {
038                    return _addressService.getBeanIdentifier();
039            }
040    
041            /**
042            * Sets the Spring bean ID for this bean.
043            *
044            * @param beanIdentifier the Spring bean ID for this bean
045            */
046            public void setBeanIdentifier(java.lang.String beanIdentifier) {
047                    _addressService.setBeanIdentifier(beanIdentifier);
048            }
049    
050            public com.liferay.portal.model.Address addAddress(
051                    java.lang.String className, long classPK, java.lang.String street1,
052                    java.lang.String street2, java.lang.String street3,
053                    java.lang.String city, java.lang.String zip, long regionId,
054                    long countryId, int typeId, boolean mailing, boolean primary)
055                    throws com.liferay.portal.kernel.exception.PortalException,
056                            com.liferay.portal.kernel.exception.SystemException {
057                    return _addressService.addAddress(className, classPK, street1, street2,
058                            street3, city, zip, regionId, countryId, typeId, mailing, primary);
059            }
060    
061            public void deleteAddress(long addressId)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    _addressService.deleteAddress(addressId);
065            }
066    
067            public com.liferay.portal.model.Address getAddress(long addressId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return _addressService.getAddress(addressId);
071            }
072    
073            public java.util.List<com.liferay.portal.model.Address> getAddresses(
074                    java.lang.String className, long classPK)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    return _addressService.getAddresses(className, classPK);
078            }
079    
080            public com.liferay.portal.model.Address updateAddress(long addressId,
081                    java.lang.String street1, java.lang.String street2,
082                    java.lang.String street3, java.lang.String city, java.lang.String zip,
083                    long regionId, long countryId, int typeId, boolean mailing,
084                    boolean primary)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException {
087                    return _addressService.updateAddress(addressId, street1, street2,
088                            street3, city, zip, regionId, countryId, typeId, mailing, primary);
089            }
090    
091            /**
092             * @deprecated Renamed to {@link #getWrappedService}
093             */
094            public AddressService getWrappedAddressService() {
095                    return _addressService;
096            }
097    
098            /**
099             * @deprecated Renamed to {@link #setWrappedService}
100             */
101            public void setWrappedAddressService(AddressService addressService) {
102                    _addressService = addressService;
103            }
104    
105            public AddressService getWrappedService() {
106                    return _addressService;
107            }
108    
109            public void setWrappedService(AddressService addressService) {
110                    _addressService = addressService;
111            }
112    
113            private AddressService _addressService;
114    }