001    /**
002     * Copyright (c) 2000-2012 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            public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
036                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
037                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
038                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
039                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
040                    java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
041                    com.liferay.portal.service.ServiceContext serviceContext)
042                    throws com.liferay.portal.kernel.exception.PortalException,
043                            com.liferay.portal.kernel.exception.SystemException {
044                    return _pollsQuestionService.addQuestion(titleMap, descriptionMap,
045                            expirationDateMonth, expirationDateDay, expirationDateYear,
046                            expirationDateHour, expirationDateMinute, neverExpire, choices,
047                            serviceContext);
048            }
049    
050            public void deleteQuestion(long questionId)
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException {
053                    _pollsQuestionService.deleteQuestion(questionId);
054            }
055    
056            public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
057                    long questionId)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException {
060                    return _pollsQuestionService.getQuestion(questionId);
061            }
062    
063            public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
064                    long questionId,
065                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
066                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
067                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
068                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
069                    java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
070                    com.liferay.portal.service.ServiceContext serviceContext)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    return _pollsQuestionService.updateQuestion(questionId, titleMap,
074                            descriptionMap, expirationDateMonth, expirationDateDay,
075                            expirationDateYear, expirationDateHour, expirationDateMinute,
076                            neverExpire, choices, serviceContext);
077            }
078    
079            /**
080             * @deprecated Renamed to {@link #getWrappedService}
081             */
082            public PollsQuestionService getWrappedPollsQuestionService() {
083                    return _pollsQuestionService;
084            }
085    
086            /**
087             * @deprecated Renamed to {@link #setWrappedService}
088             */
089            public void setWrappedPollsQuestionService(
090                    PollsQuestionService pollsQuestionService) {
091                    _pollsQuestionService = pollsQuestionService;
092            }
093    
094            public PollsQuestionService getWrappedService() {
095                    return _pollsQuestionService;
096            }
097    
098            public void setWrappedService(PollsQuestionService pollsQuestionService) {
099                    _pollsQuestionService = pollsQuestionService;
100            }
101    
102            private PollsQuestionService _pollsQuestionService;
103    }