com.liferay.portlet.polls.service.impl
Class PollsQuestionLocalServiceImpl
java.lang.Object
com.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portlet.polls.service.base.PollsQuestionLocalServiceBaseImpl
com.liferay.portlet.polls.service.impl.PollsQuestionLocalServiceImpl
- All Implemented Interfaces:
- IdentifiableBean, BaseLocalService, PersistedModelLocalService, PollsQuestionLocalService
public class PollsQuestionLocalServiceImpl
- extends PollsQuestionLocalServiceBaseImpl
Fields inherited from class com.liferay.portlet.polls.service.base.PollsQuestionLocalServiceBaseImpl |
counterLocalService, persistedModelLocalServiceRegistry, pollsChoiceFinder, pollsChoiceLocalService, pollsChoicePersistence, pollsChoiceService, 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 addGroupPermissions,
boolean addGuestPermissions)
|
void |
addQuestionResources(long questionId,
String[] groupPermissions,
String[] guestPermissions)
|
void |
addQuestionResources(PollsQuestion question,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addQuestionResources(PollsQuestion question,
String[] groupPermissions,
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, afterPropertiesSet, createPollsQuestion, deletePollsQuestion, deletePollsQuestion, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchPollsQuestion, getBeanIdentifier, getCounterLocalService, getModelClass, getModelClassName, getPersistedModel, getPollsChoiceFinder, getPollsChoiceLocalService, getPollsChoicePersistence, getPollsChoiceService, getPollsQuestion, getPollsQuestionByUuidAndGroupId, getPollsQuestionLocalService, getPollsQuestionPersistence, getPollsQuestions, getPollsQuestionsCount, getPollsQuestionService, getPollsVoteLocalService, getPollsVotePersistence, getPollsVoteService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setBeanIdentifier, setCounterLocalService, setPollsChoiceFinder, setPollsChoiceLocalService, setPollsChoicePersistence, setPollsChoiceService, 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 addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addQuestionResources
public void addQuestionResources(long questionId,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addQuestionResources
public void addQuestionResources(PollsQuestion question,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addQuestionResources
public void addQuestionResources(PollsQuestion question,
String[] groupPermissions,
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