Liferay 6.0.5

com.liferay.portlet.polls.service
Interface PollsQuestionService

All Known Implementing Classes:
PollsQuestionServiceBaseImpl, PollsQuestionServiceImpl, PollsQuestionServiceWrapper

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

The interface for the polls question remote service.

Never modify or reference this interface directly. Always use PollsQuestionServiceUtil to access the polls question remote service. Add custom service methods to PollsQuestionServiceImpl and rerun ServiceBuilder to automatically copy the method declarations to this interface.

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, PollsQuestionServiceBaseImpl, PollsQuestionServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

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)
           
 PollsQuestion getQuestion(long questionId)
           
 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

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.0.5