com.liferay.portlet.polls.service
Class PollsQuestionLocalServiceUtil
java.lang.Object
com.liferay.portlet.polls.service.PollsQuestionLocalServiceUtil
public class PollsQuestionLocalServiceUtil
- extends Object
This class provides static methods for the
PollsQuestionLocalService bean. The static methods of
this class calls the same methods of the bean instance. It's convenient to be
able to just write one line to call a method on a bean instead of writing a
lookup call and a method call.
- See Also:
PollsQuestionLocalService- ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.
|
Method Summary |
static PollsQuestion |
addPollsQuestion(PollsQuestion pollsQuestion)
|
static 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)
|
static void |
addQuestionResources(long questionId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addQuestionResources(long questionId,
String[] communityPermissions,
String[] guestPermissions)
|
static void |
addQuestionResources(PollsQuestion question,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addQuestionResources(PollsQuestion question,
String[] communityPermissions,
String[] guestPermissions)
|
static PollsQuestion |
createPollsQuestion(long questionId)
|
static void |
deletePollsQuestion(long questionId)
|
static void |
deletePollsQuestion(PollsQuestion pollsQuestion)
|
static void |
deleteQuestion(long questionId)
|
static void |
deleteQuestion(PollsQuestion question)
|
static void |
deleteQuestions(long groupId)
|
static List |
dynamicQuery(DynamicQuery dynamicQuery)
|
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
|
static PollsQuestion |
getPollsQuestion(long questionId)
|
static PollsQuestion |
getPollsQuestionByUuidAndGroupId(String uuid,
long groupId)
|
static List<PollsQuestion> |
getPollsQuestions(int start,
int end)
|
static int |
getPollsQuestionsCount()
|
static PollsQuestion |
getQuestion(long questionId)
|
static List<PollsQuestion> |
getQuestions(long groupId)
|
static List<PollsQuestion> |
getQuestions(long groupId,
int start,
int end)
|
static int |
getQuestionsCount(long groupId)
|
static PollsQuestionLocalService |
getService()
|
void |
setService(PollsQuestionLocalService service)
|
static PollsQuestion |
updatePollsQuestion(PollsQuestion pollsQuestion)
|
static PollsQuestion |
updatePollsQuestion(PollsQuestion pollsQuestion,
boolean merge)
|
static 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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PollsQuestionLocalServiceUtil
public PollsQuestionLocalServiceUtil()
addPollsQuestion
public static PollsQuestion addPollsQuestion(PollsQuestion pollsQuestion)
throws SystemException
- Throws:
SystemException
createPollsQuestion
public static PollsQuestion createPollsQuestion(long questionId)
deletePollsQuestion
public static void deletePollsQuestion(long questionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deletePollsQuestion
public static void deletePollsQuestion(PollsQuestion pollsQuestion)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
- Throws:
SystemException
dynamicQueryCount
public static long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
getPollsQuestion
public static PollsQuestion getPollsQuestion(long questionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPollsQuestionByUuidAndGroupId
public static PollsQuestion getPollsQuestionByUuidAndGroupId(String uuid,
long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPollsQuestions
public static List<PollsQuestion> getPollsQuestions(int start,
int end)
throws SystemException
- Throws:
SystemException
getPollsQuestionsCount
public static int getPollsQuestionsCount()
throws SystemException
- Throws:
SystemException
updatePollsQuestion
public static PollsQuestion updatePollsQuestion(PollsQuestion pollsQuestion)
throws SystemException
- Throws:
SystemException
updatePollsQuestion
public static PollsQuestion updatePollsQuestion(PollsQuestion pollsQuestion,
boolean merge)
throws SystemException
- Throws:
SystemException
addQuestion
public static 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 static void addQuestionResources(long questionId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addQuestionResources
public static void addQuestionResources(long questionId,
String[] communityPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addQuestionResources
public static void addQuestionResources(PollsQuestion question,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addQuestionResources
public static void addQuestionResources(PollsQuestion question,
String[] communityPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteQuestion
public static void deleteQuestion(long questionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteQuestion
public static void deleteQuestion(PollsQuestion question)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteQuestions
public static void deleteQuestions(long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getQuestion
public static PollsQuestion getQuestion(long questionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getQuestions
public static List<PollsQuestion> getQuestions(long groupId)
throws SystemException
- Throws:
SystemException
getQuestions
public static List<PollsQuestion> getQuestions(long groupId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getQuestionsCount
public static int getQuestionsCount(long groupId)
throws SystemException
- Throws:
SystemException
updateQuestion
public static 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
getService
public static PollsQuestionLocalService getService()
setService
public void setService(PollsQuestionLocalService service)