001    /**
002     * Copyright (c) 2000-2010 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    
018    /**
019     * <p>
020     * This class is a wrapper for {@link PollsQuestionService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       PollsQuestionService
025     * @generated
026     */
027    public class PollsQuestionServiceWrapper implements PollsQuestionService {
028            public PollsQuestionServiceWrapper(
029                    PollsQuestionService pollsQuestionService) {
030                    _pollsQuestionService = pollsQuestionService;
031            }
032    
033            public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
034                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
035                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
036                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
037                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
038                    java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
039                    com.liferay.portal.service.ServiceContext serviceContext)
040                    throws com.liferay.portal.kernel.exception.PortalException,
041                            com.liferay.portal.kernel.exception.SystemException {
042                    return _pollsQuestionService.addQuestion(titleMap, descriptionMap,
043                            expirationDateMonth, expirationDateDay, expirationDateYear,
044                            expirationDateHour, expirationDateMinute, neverExpire, choices,
045                            serviceContext);
046            }
047    
048            public void deleteQuestion(long questionId)
049                    throws com.liferay.portal.kernel.exception.PortalException,
050                            com.liferay.portal.kernel.exception.SystemException {
051                    _pollsQuestionService.deleteQuestion(questionId);
052            }
053    
054            public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
055                    long questionId)
056                    throws com.liferay.portal.kernel.exception.PortalException,
057                            com.liferay.portal.kernel.exception.SystemException {
058                    return _pollsQuestionService.getQuestion(questionId);
059            }
060    
061            public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
062                    long questionId,
063                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
064                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
065                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
066                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
067                    java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
068                    com.liferay.portal.service.ServiceContext serviceContext)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _pollsQuestionService.updateQuestion(questionId, titleMap,
072                            descriptionMap, expirationDateMonth, expirationDateDay,
073                            expirationDateYear, expirationDateHour, expirationDateMinute,
074                            neverExpire, choices, serviceContext);
075            }
076    
077            public PollsQuestionService getWrappedPollsQuestionService() {
078                    return _pollsQuestionService;
079            }
080    
081            private PollsQuestionService _pollsQuestionService;
082    }