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