com.liferay.portlet.polls.service
Interface PollsVoteLocalService
- All Known Implementing Classes:
- PollsVoteLocalServiceWrapper
@Transactional(isolation=PORTAL,
rollbackFor={PortalException.class,SystemException.class})
public interface PollsVoteLocalService
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.PollsVoteLocalServiceImpl
}.
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.
- Author:
- Brian Wing Shun Chan
- See Also:
PollsVoteLocalServiceUtil
- Generated:
Method Summary |
PollsVote |
addPollsVote(PollsVote pollsVote)
|
PollsVote |
addVote(long userId,
long questionId,
long choiceId,
ServiceContext serviceContext)
|
PollsVote |
createPollsVote(long voteId)
|
void |
deletePollsVote(long voteId)
|
void |
deletePollsVote(PollsVote pollsVote)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
|
java.util.List<PollsVote> |
getChoiceVotes(long choiceId,
int start,
int end)
|
int |
getChoiceVotesCount(long choiceId)
|
PollsVote |
getPollsVote(long voteId)
|
java.util.List<PollsVote> |
getPollsVotes(int start,
int end)
|
int |
getPollsVotesCount()
|
java.util.List<PollsVote> |
getQuestionVotes(long questionId,
int start,
int end)
|
int |
getQuestionVotesCount(long questionId)
|
PollsVote |
getVote(long questionId,
long userId)
|
PollsVote |
updatePollsVote(PollsVote pollsVote)
|
PollsVote |
updatePollsVote(PollsVote pollsVote,
boolean merge)
|
addPollsVote
PollsVote addPollsVote(PollsVote pollsVote)
throws SystemException
- Throws:
SystemException
createPollsVote
PollsVote createPollsVote(long voteId)
deletePollsVote
void deletePollsVote(long voteId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deletePollsVote
void deletePollsVote(PollsVote pollsVote)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
- Throws:
SystemException
dynamicQueryCount
long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
getPollsVote
@Transactional(propagation=SUPPORTS,
readOnly=true)
PollsVote getPollsVote(long voteId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPollsVotes
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<PollsVote> getPollsVotes(int start,
int end)
throws SystemException
- Throws:
SystemException
getPollsVotesCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getPollsVotesCount()
throws SystemException
- Throws:
SystemException
updatePollsVote
PollsVote updatePollsVote(PollsVote pollsVote)
throws SystemException
- Throws:
SystemException
updatePollsVote
PollsVote updatePollsVote(PollsVote pollsVote,
boolean merge)
throws SystemException
- Throws:
SystemException
addVote
PollsVote addVote(long userId,
long questionId,
long choiceId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getChoiceVotes
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<PollsVote> getChoiceVotes(long choiceId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getChoiceVotesCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getChoiceVotesCount(long choiceId)
throws SystemException
- Throws:
SystemException
getQuestionVotes
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<PollsVote> getQuestionVotes(long questionId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getQuestionVotesCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getQuestionVotesCount(long questionId)
throws SystemException
- Throws:
SystemException
getVote
@Transactional(propagation=SUPPORTS,
readOnly=true)
PollsVote getVote(long questionId,
long userId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException