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