001    /**
002     * Copyright (c) 2000-present 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    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link ContactService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see ContactService
024     * @generated
025     */
026    @ProviderType
027    public class ContactServiceWrapper implements ContactService,
028            ServiceWrapper<ContactService> {
029            public ContactServiceWrapper(ContactService contactService) {
030                    _contactService = contactService;
031            }
032    
033            /**
034            * Returns the Spring bean ID for this bean.
035            *
036            * @return the Spring bean ID for this bean
037            */
038            @Override
039            public java.lang.String getBeanIdentifier() {
040                    return _contactService.getBeanIdentifier();
041            }
042    
043            @Override
044            public com.liferay.portal.model.Contact getContact(long contactId)
045                    throws com.liferay.portal.kernel.exception.PortalException {
046                    return _contactService.getContact(contactId);
047            }
048    
049            @Override
050            public java.util.List<com.liferay.portal.model.Contact> getContacts(
051                    long classNameId, long classPK, int start, int end,
052                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Contact> orderByComparator)
053                    throws com.liferay.portal.kernel.exception.PortalException {
054                    return _contactService.getContacts(classNameId, classPK, start, end,
055                            orderByComparator);
056            }
057    
058            @Override
059            public int getContactsCount(long classNameId, long classPK)
060                    throws com.liferay.portal.kernel.exception.PortalException {
061                    return _contactService.getContactsCount(classNameId, classPK);
062            }
063    
064            /**
065            * Sets the Spring bean ID for this bean.
066            *
067            * @param beanIdentifier the Spring bean ID for this bean
068            */
069            @Override
070            public void setBeanIdentifier(java.lang.String beanIdentifier) {
071                    _contactService.setBeanIdentifier(beanIdentifier);
072            }
073    
074            /**
075             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
076             */
077            @Deprecated
078            public ContactService getWrappedContactService() {
079                    return _contactService;
080            }
081    
082            /**
083             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
084             */
085            @Deprecated
086            public void setWrappedContactService(ContactService contactService) {
087                    _contactService = contactService;
088            }
089    
090            @Override
091            public ContactService getWrappedService() {
092                    return _contactService;
093            }
094    
095            @Override
096            public void setWrappedService(ContactService contactService) {
097                    _contactService = contactService;
098            }
099    
100            private ContactService _contactService;
101    }