com.liferay.portlet.polls.service
Interface PollsQuestionLocalService
- All Known Implementing Classes:
- PollsQuestionLocalServiceBaseImpl, PollsQuestionLocalServiceImpl, PollsQuestionLocalServiceWrapper
@Transactional(isolation=PORTAL,
rollbackFor={PortalException.class,SystemException.class})
public interface PollsQuestionLocalService
This interface defines the service. The default implementation is
PollsQuestionLocalServiceImpl.
Modify methods in that class and rerun ServiceBuilder to populate this class
and all other generated classes.
This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
- See Also:
PollsQuestionLocalServiceUtil- ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.
|
Method Summary |
PollsQuestion |
addPollsQuestion(PollsQuestion pollsQuestion)
|
PollsQuestion |
addQuestion(long userId,
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 |
addQuestionResources(long questionId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addQuestionResources(long questionId,
String[] communityPermissions,
String[] guestPermissions)
|
void |
addQuestionResources(PollsQuestion question,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addQuestionResources(PollsQuestion question,
String[] communityPermissions,
String[] guestPermissions)
|
PollsQuestion |
createPollsQuestion(long questionId)
|
void |
deletePollsQuestion(long questionId)
|
void |
deletePollsQuestion(PollsQuestion pollsQuestion)
|
void |
deleteQuestion(long questionId)
|
void |
deleteQuestion(PollsQuestion question)
|
void |
deleteQuestions(long groupId)
|
List |
dynamicQuery(DynamicQuery dynamicQuery)
|
List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
|
PollsQuestion |
getPollsQuestion(long questionId)
|
PollsQuestion |
getPollsQuestionByUuidAndGroupId(String uuid,
long groupId)
|
List<PollsQuestion> |
getPollsQuestions(int start,
int end)
|
int |
getPollsQuestionsCount()
|
PollsQuestion |
getQuestion(long questionId)
|
List<PollsQuestion> |
getQuestions(long groupId)
|
List<PollsQuestion> |
getQuestions(long groupId,
int start,
int end)
|
int |
getQuestionsCount(long groupId)
|
PollsQuestion |
updatePollsQuestion(PollsQuestion pollsQuestion)
|
PollsQuestion |
updatePollsQuestion(PollsQuestion pollsQuestion,
boolean merge)
|
PollsQuestion |
updateQuestion(long userId,
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)
|
addPollsQuestion
PollsQuestion addPollsQuestion(PollsQuestion pollsQuestion)
throws SystemException
- Throws:
SystemException
createPollsQuestion
PollsQuestion createPollsQuestion(long questionId)
deletePollsQuestion
void deletePollsQuestion(long questionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deletePollsQuestion
void deletePollsQuestion(PollsQuestion pollsQuestion)
throws SystemException
- Throws:
SystemException
dynamicQuery
List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
dynamicQuery
List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
- Throws:
SystemException
dynamicQuery
List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
- Throws:
SystemException
dynamicQueryCount
long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
getPollsQuestion
@Transactional(propagation=SUPPORTS,
readOnly=true)
PollsQuestion getPollsQuestion(long questionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPollsQuestionByUuidAndGroupId
@Transactional(propagation=SUPPORTS,
readOnly=true)
PollsQuestion getPollsQuestionByUuidAndGroupId(String uuid,
long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPollsQuestions
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<PollsQuestion> getPollsQuestions(int start,
int end)
throws SystemException
- Throws:
SystemException
getPollsQuestionsCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getPollsQuestionsCount()
throws SystemException
- Throws:
SystemException
updatePollsQuestion
PollsQuestion updatePollsQuestion(PollsQuestion pollsQuestion)
throws SystemException
- Throws:
SystemException
updatePollsQuestion
PollsQuestion updatePollsQuestion(PollsQuestion pollsQuestion,
boolean merge)
throws SystemException
- Throws:
SystemException
addQuestion
PollsQuestion addQuestion(long userId,
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
addQuestionResources
void addQuestionResources(long questionId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addQuestionResources
void addQuestionResources(long questionId,
String[] communityPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addQuestionResources
void addQuestionResources(PollsQuestion question,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addQuestionResources
void addQuestionResources(PollsQuestion question,
String[] communityPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteQuestion
void deleteQuestion(long questionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteQuestion
void deleteQuestion(PollsQuestion question)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteQuestions
void deleteQuestions(long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getQuestion
@Transactional(propagation=SUPPORTS,
readOnly=true)
PollsQuestion getQuestion(long questionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getQuestions
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<PollsQuestion> getQuestions(long groupId)
throws SystemException
- Throws:
SystemException
getQuestions
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<PollsQuestion> getQuestions(long groupId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getQuestionsCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getQuestionsCount(long groupId)
throws SystemException
- Throws:
SystemException
updateQuestion
PollsQuestion updateQuestion(long userId,
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