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 ContactService}.
019     *
020     * @author Brian Wing Shun Chan
021     * @see ContactService
022     * @generated
023     */
024    public class ContactServiceWrapper implements ContactService,
025            ServiceWrapper<ContactService> {
026            public ContactServiceWrapper(ContactService contactService) {
027                    _contactService = contactService;
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 _contactService.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                    _contactService.setBeanIdentifier(beanIdentifier);
048            }
049    
050            @Override
051            public com.liferay.portal.model.Contact getContact(long contactId)
052                    throws com.liferay.portal.kernel.exception.PortalException,
053                            com.liferay.portal.kernel.exception.SystemException {
054                    return _contactService.getContact(contactId);
055            }
056    
057            @Override
058            public java.util.List<com.liferay.portal.model.Contact> getContacts(
059                    long classNameId, long classPK, int start, int end,
060                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    return _contactService.getContacts(classNameId, classPK, start, end,
064                            orderByComparator);
065            }
066    
067            @Override
068            public int getContactsCount(long classNameId, long classPK)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _contactService.getContactsCount(classNameId, classPK);
072            }
073    
074            /**
075             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
076             */
077            public ContactService getWrappedContactService() {
078                    return _contactService;
079            }
080    
081            /**
082             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
083             */
084            public void setWrappedContactService(ContactService contactService) {
085                    _contactService = contactService;
086            }
087    
088            @Override
089            public ContactService getWrappedService() {
090                    return _contactService;
091            }
092    
093            @Override
094            public void setWrappedService(ContactService contactService) {
095                    _contactService = contactService;
096            }
097    
098            private ContactService _contactService;
099    }