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