com.liferay.portlet.polls.service.impl
Class PollsQuestionLocalServiceImpl
java.lang.Object
com.liferay.portlet.polls.service.base.PollsQuestionLocalServiceBaseImpl
com.liferay.portlet.polls.service.impl.PollsQuestionLocalServiceImpl
- All Implemented Interfaces:
- PollsQuestionLocalService
public class PollsQuestionLocalServiceImpl
- extends PollsQuestionLocalServiceBaseImpl
Fields inherited from class com.liferay.portlet.polls.service.base.PollsQuestionLocalServiceBaseImpl |
counterLocalService, pollsChoiceFinder, pollsChoiceLocalService, pollsChoicePersistence, pollsQuestionLocalService, pollsQuestionPersistence, pollsQuestionService, pollsVoteLocalService, pollsVotePersistence, pollsVoteService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, userFinder, userLocalService, userPersistence, userService |
Method Summary |
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)
|
void |
deleteQuestion(long questionId)
|
void |
deleteQuestion(PollsQuestion question)
|
void |
deleteQuestions(long groupId)
|
PollsQuestion |
getQuestion(long questionId)
|
List<PollsQuestion> |
getQuestions(long groupId)
|
List<PollsQuestion> |
getQuestions(long groupId,
int start,
int end)
|
int |
getQuestionsCount(long groupId)
|
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)
|
protected void |
validate(Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
List<PollsChoice> choices)
|
Methods inherited from class com.liferay.portlet.polls.service.base.PollsQuestionLocalServiceBaseImpl |
addPollsQuestion, createPollsQuestion, deletePollsQuestion, deletePollsQuestion, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, getCounterLocalService, getPollsChoiceFinder, getPollsChoiceLocalService, getPollsChoicePersistence, getPollsQuestion, getPollsQuestionByUuidAndGroupId, getPollsQuestionLocalService, getPollsQuestionPersistence, getPollsQuestions, getPollsQuestionsCount, getPollsQuestionService, getPollsVoteLocalService, getPollsVotePersistence, getPollsVoteService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setCounterLocalService, setPollsChoiceFinder, setPollsChoiceLocalService, setPollsChoicePersistence, setPollsQuestionLocalService, setPollsQuestionPersistence, setPollsQuestionService, setPollsVoteLocalService, setPollsVotePersistence, setPollsVoteService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updatePollsQuestion, updatePollsQuestion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PollsQuestionLocalServiceImpl
public PollsQuestionLocalServiceImpl()
addQuestion
public 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
public void addQuestionResources(long questionId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addQuestionResources
public void addQuestionResources(long questionId,
String[] communityPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addQuestionResources
public void addQuestionResources(PollsQuestion question,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addQuestionResources
public void addQuestionResources(PollsQuestion question,
String[] communityPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteQuestion
public void deleteQuestion(long questionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteQuestion
public void deleteQuestion(PollsQuestion question)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteQuestions
public void deleteQuestions(long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getQuestion
public PollsQuestion getQuestion(long questionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getQuestions
public List<PollsQuestion> getQuestions(long groupId)
throws SystemException
- Throws:
SystemException
getQuestions
public List<PollsQuestion> getQuestions(long groupId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getQuestionsCount
public int getQuestionsCount(long groupId)
throws SystemException
- Throws:
SystemException
updateQuestion
public 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
validate
protected void validate(Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
List<PollsChoice> choices)
throws PortalException
- Throws:
PortalException