001
014
015 package com.liferay.portlet.polls.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023 import com.liferay.portal.service.BaseService;
024
025
038 @JSONWebService
039 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
040 PortalException.class, SystemException.class})
041 public interface PollsQuestionService extends BaseService {
042
047
048
053 public java.lang.String getBeanIdentifier();
054
055
060 public void setBeanIdentifier(java.lang.String beanIdentifier);
061
062 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
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
072 public void deleteQuestion(long questionId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException;
075
076 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
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
082 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
083 long questionId,
084 java.util.Map<java.util.Locale, java.lang.String> titleMap,
085 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
086 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
087 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
088 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
089 com.liferay.portal.service.ServiceContext serviceContext)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException;
092 }