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     * Provides a wrapper for {@link AddressService}.
019     *
020     * @author Brian Wing Shun Chan
021     * @see AddressService
022     * @generated
023     */
024    public class AddressServiceWrapper implements AddressService,
025            ServiceWrapper<AddressService> {
026            public AddressServiceWrapper(AddressService addressService) {
027                    _addressService = addressService;
028            }
029    
030            /**
031            * Returns the Spring bean ID for this bean.
032            *
033            * @return the Spring bean ID for this bean
034            */
035            @Override
036            public java.lang.String getBeanIdentifier() {
037                    return _addressService.getBeanIdentifier();
038            }
039    
040            /**
041            * Sets the Spring bean ID for this bean.
042            *
043            * @param beanIdentifier the Spring bean ID for this bean
044            */
045            @Override
046            public void setBeanIdentifier(java.lang.String beanIdentifier) {
047                    _addressService.setBeanIdentifier(beanIdentifier);
048            }
049    
050            /**
051            * @deprecated As of 6.2.0, replaced by {@link #addAddress( String, long,
052            String, String, String, String, String, long, long, int,
053            boolean, boolean, ServiceContext)}
054            */
055            @Override
056            public com.liferay.portal.model.Address addAddress(
057                    java.lang.String className, long classPK, java.lang.String street1,
058                    java.lang.String street2, java.lang.String street3,
059                    java.lang.String city, java.lang.String zip, long regionId,
060                    long countryId, int typeId, boolean mailing, boolean primary)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    return _addressService.addAddress(className, classPK, street1, street2,
064                            street3, city, zip, regionId, countryId, typeId, mailing, primary);
065            }
066    
067            @Override
068            public com.liferay.portal.model.Address addAddress(
069                    java.lang.String className, long classPK, java.lang.String street1,
070                    java.lang.String street2, java.lang.String street3,
071                    java.lang.String city, java.lang.String zip, long regionId,
072                    long countryId, int typeId, boolean mailing, boolean primary,
073                    com.liferay.portal.service.ServiceContext serviceContext)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return _addressService.addAddress(className, classPK, street1, street2,
077                            street3, city, zip, regionId, countryId, typeId, mailing, primary,
078                            serviceContext);
079            }
080    
081            @Override
082            public void deleteAddress(long addressId)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException {
085                    _addressService.deleteAddress(addressId);
086            }
087    
088            @Override
089            public com.liferay.portal.model.Address getAddress(long addressId)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException {
092                    return _addressService.getAddress(addressId);
093            }
094    
095            @Override
096            public java.util.List<com.liferay.portal.model.Address> getAddresses(
097                    java.lang.String className, long classPK)
098                    throws com.liferay.portal.kernel.exception.PortalException,
099                            com.liferay.portal.kernel.exception.SystemException {
100                    return _addressService.getAddresses(className, classPK);
101            }
102    
103            @Override
104            public com.liferay.portal.model.Address updateAddress(long addressId,
105                    java.lang.String street1, java.lang.String street2,
106                    java.lang.String street3, java.lang.String city, java.lang.String zip,
107                    long regionId, long countryId, int typeId, boolean mailing,
108                    boolean primary)
109                    throws com.liferay.portal.kernel.exception.PortalException,
110                            com.liferay.portal.kernel.exception.SystemException {
111                    return _addressService.updateAddress(addressId, street1, street2,
112                            street3, city, zip, regionId, countryId, typeId, mailing, primary);
113            }
114    
115            /**
116             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
117             */
118            public AddressService getWrappedAddressService() {
119                    return _addressService;
120            }
121    
122            /**
123             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
124             */
125            public void setWrappedAddressService(AddressService addressService) {
126                    _addressService = addressService;
127            }
128    
129            @Override
130            public AddressService getWrappedService() {
131                    return _addressService;
132            }
133    
134            @Override
135            public void setWrappedService(AddressService addressService) {
136                    _addressService = addressService;
137            }
138    
139            private AddressService _addressService;
140    }