com.liferay.portlet.polls.service
Interface PollsQuestionService
@Transactional(isolation=PORTAL,
rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface PollsQuestionService
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This interface defines the service. The default implementation is
com.liferay.portlet.polls.service.impl.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.
- Author:
- Brian Wing Shun Chan
- See Also:
PollsQuestionServiceUtil
Method Summary |
PollsQuestion |
addQuestion(long plid,
java.lang.String title,
java.lang.String description,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
java.util.List<PollsChoice> choices,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
PollsQuestion |
addQuestion(long plid,
java.lang.String title,
java.lang.String description,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
java.util.List<PollsChoice> choices,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
deleteQuestion(long questionId)
|
PollsQuestion |
getQuestion(long questionId)
|
PollsQuestion |
updateQuestion(long questionId,
java.lang.String title,
java.lang.String description,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
java.util.List<PollsChoice> choices)
|
addQuestion
PollsQuestion addQuestion(long plid,
java.lang.String title,
java.lang.String description,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
java.util.List<PollsChoice> choices,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws java.rmi.RemoteException,
com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addQuestion
PollsQuestion addQuestion(long plid,
java.lang.String title,
java.lang.String description,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
java.util.List<PollsChoice> choices,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws java.rmi.RemoteException,
com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteQuestion
void deleteQuestion(long questionId)
throws java.rmi.RemoteException,
com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getQuestion
@Transactional(propagation=SUPPORTS,
readOnly=true)
PollsQuestion getQuestion(long questionId)
throws java.rmi.RemoteException,
com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateQuestion
PollsQuestion updateQuestion(long questionId,
java.lang.String title,
java.lang.String description,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
java.util.List<PollsChoice> choices)
throws java.rmi.RemoteException,
com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException