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
This interface defines the service. The default implementation is
PollsQuestionServiceImpl.
Modify methods in that class and rerun ServiceBuilder to populate this class
and all other generated classes.
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- 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)
|
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