com.liferay.portlet.polls.service.impl
Class PollsQuestionServiceImpl

java.lang.Object
  extended bycom.liferay.portal.service.impl.PrincipalBean
      extended bycom.liferay.portlet.polls.service.impl.PollsQuestionServiceImpl
All Implemented Interfaces:
com.liferay.portlet.polls.service.PollsQuestionService

public class PollsQuestionServiceImpl
extends PrincipalBean
implements com.liferay.portlet.polls.service.PollsQuestionService

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portal.service.impl.PrincipalBean
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
PollsQuestionServiceImpl()
           
 
Method Summary
 com.liferay.portlet.polls.model.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 choices, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.polls.model.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 choices, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void deleteQuestion(long questionId)
           
 com.liferay.portlet.polls.model.PollsQuestion getQuestion(long questionId)
           
 com.liferay.portlet.polls.model.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 choices)
           
 
Methods inherited from class com.liferay.portal.service.impl.PrincipalBean
getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollsQuestionServiceImpl

public PollsQuestionServiceImpl()
Method Detail

addQuestion

public com.liferay.portlet.polls.model.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 choices,
                                                                 boolean addCommunityPermissions,
                                                                 boolean addGuestPermissions)
                                                          throws com.liferay.portal.PortalException,
                                                                 com.liferay.portal.SystemException
Specified by:
addQuestion in interface com.liferay.portlet.polls.service.PollsQuestionService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addQuestion

public com.liferay.portlet.polls.model.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 choices,
                                                                 java.lang.String[] communityPermissions,
                                                                 java.lang.String[] guestPermissions)
                                                          throws com.liferay.portal.PortalException,
                                                                 com.liferay.portal.SystemException
Specified by:
addQuestion in interface com.liferay.portlet.polls.service.PollsQuestionService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteQuestion

public void deleteQuestion(long questionId)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Specified by:
deleteQuestion in interface com.liferay.portlet.polls.service.PollsQuestionService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getQuestion

public com.liferay.portlet.polls.model.PollsQuestion getQuestion(long questionId)
                                                          throws com.liferay.portal.PortalException,
                                                                 com.liferay.portal.SystemException
Specified by:
getQuestion in interface com.liferay.portlet.polls.service.PollsQuestionService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateQuestion

public com.liferay.portlet.polls.model.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 choices)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Specified by:
updateQuestion in interface com.liferay.portlet.polls.service.PollsQuestionService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException