Liferay 6.1.2-ce-ga3

com.liferay.portlet.polls.service
Interface PollsQuestionService

All Superinterfaces:
BaseService
All Known Implementing Classes:
PollsQuestionServiceWrapper

@JSONWebService
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface PollsQuestionService
extends BaseService

The interface for the polls question remote service.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
PollsQuestionServiceUtil, com.liferay.portlet.polls.service.base.PollsQuestionServiceBaseImpl, com.liferay.portlet.polls.service.impl.PollsQuestionServiceImpl

Method Summary
 PollsQuestion addQuestion(Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, List<PollsChoice> choices, ServiceContext serviceContext)
           
 void deleteQuestion(long questionId)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 PollsQuestion getQuestion(long questionId)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 PollsQuestion updateQuestion(long questionId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, List<PollsChoice> choices, ServiceContext serviceContext)
           
 

Method Detail

getBeanIdentifier

String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addQuestion

PollsQuestion addQuestion(Map<Locale,String> titleMap,
                          Map<Locale,String> descriptionMap,
                          int expirationDateMonth,
                          int expirationDateDay,
                          int expirationDateYear,
                          int expirationDateHour,
                          int expirationDateMinute,
                          boolean neverExpire,
                          List<PollsChoice> choices,
                          ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

deleteQuestion

void deleteQuestion(long questionId)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

getQuestion

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PollsQuestion getQuestion(long questionId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

updateQuestion

PollsQuestion updateQuestion(long questionId,
                             Map<Locale,String> titleMap,
                             Map<Locale,String> descriptionMap,
                             int expirationDateMonth,
                             int expirationDateDay,
                             int expirationDateYear,
                             int expirationDateHour,
                             int expirationDateMinute,
                             boolean neverExpire,
                             List<PollsChoice> choices,
                             ServiceContext serviceContext)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

Liferay 6.1.2-ce-ga3