Liferay 6.2-ce-ga5

com.liferay.portlet.polls.service
Interface PollsQuestionService

All Superinterfaces:
BaseService
All Known Implementing Classes:
PollsQuestionServiceWrapper

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

Provides the remote service interface for PollsQuestion. 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.2-ce-ga5