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.portlet.polls.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link PollsQuestionService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see PollsQuestionService
026     * @generated
027     */
028    @ProviderType
029    public class PollsQuestionServiceWrapper implements PollsQuestionService,
030            ServiceWrapper<PollsQuestionService> {
031            public PollsQuestionServiceWrapper(
032                    PollsQuestionService pollsQuestionService) {
033                    _pollsQuestionService = pollsQuestionService;
034            }
035    
036            /**
037            * Returns the Spring bean ID for this bean.
038            *
039            * @return the Spring bean ID for this bean
040            */
041            @Override
042            public java.lang.String getBeanIdentifier() {
043                    return _pollsQuestionService.getBeanIdentifier();
044            }
045    
046            /**
047            * Sets the Spring bean ID for this bean.
048            *
049            * @param beanIdentifier the Spring bean ID for this bean
050            */
051            @Override
052            public void setBeanIdentifier(java.lang.String beanIdentifier) {
053                    _pollsQuestionService.setBeanIdentifier(beanIdentifier);
054            }
055    
056            @Override
057            public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
058                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
059                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
060                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
061                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
062                    java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
063                    com.liferay.portal.service.ServiceContext serviceContext)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    return _pollsQuestionService.addQuestion(titleMap, descriptionMap,
067                            expirationDateMonth, expirationDateDay, expirationDateYear,
068                            expirationDateHour, expirationDateMinute, neverExpire, choices,
069                            serviceContext);
070            }
071    
072            @Override
073            public void deleteQuestion(long questionId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    _pollsQuestionService.deleteQuestion(questionId);
077            }
078    
079            @Override
080            public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
081                    long questionId)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    return _pollsQuestionService.getQuestion(questionId);
085            }
086    
087            @Override
088            public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
089                    long questionId,
090                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
091                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
092                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
093                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
094                    java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
095                    com.liferay.portal.service.ServiceContext serviceContext)
096                    throws com.liferay.portal.kernel.exception.PortalException,
097                            com.liferay.portal.kernel.exception.SystemException {
098                    return _pollsQuestionService.updateQuestion(questionId, titleMap,
099                            descriptionMap, expirationDateMonth, expirationDateDay,
100                            expirationDateYear, expirationDateHour, expirationDateMinute,
101                            neverExpire, choices, serviceContext);
102            }
103    
104            /**
105             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
106             */
107            public PollsQuestionService getWrappedPollsQuestionService() {
108                    return _pollsQuestionService;
109            }
110    
111            /**
112             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
113             */
114            public void setWrappedPollsQuestionService(
115                    PollsQuestionService pollsQuestionService) {
116                    _pollsQuestionService = pollsQuestionService;
117            }
118    
119            @Override
120            public PollsQuestionService getWrappedService() {
121                    return _pollsQuestionService;
122            }
123    
124            @Override
125            public void setWrappedService(PollsQuestionService pollsQuestionService) {
126                    _pollsQuestionService = pollsQuestionService;
127            }
128    
129            private PollsQuestionService _pollsQuestionService;
130    }