1
22
23 package com.liferay.portlet.polls.service;
24
25
26
50 public interface PollsChoiceLocalService {
51 public com.liferay.portlet.polls.model.PollsChoice addPollsChoice(
52 com.liferay.portlet.polls.model.PollsChoice pollsChoice)
53 throws com.liferay.portal.SystemException;
54
55 public com.liferay.portlet.polls.model.PollsChoice createPollsChoice(
56 long choiceId);
57
58 public void deletePollsChoice(long choiceId)
59 throws com.liferay.portal.SystemException,
60 com.liferay.portal.PortalException;
61
62 public void deletePollsChoice(
63 com.liferay.portlet.polls.model.PollsChoice pollsChoice)
64 throws com.liferay.portal.SystemException;
65
66 public java.util.List<Object> dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException;
69
70 public java.util.List<Object> dynamicQuery(
71 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72 int end) throws com.liferay.portal.SystemException;
73
74 public com.liferay.portlet.polls.model.PollsChoice getPollsChoice(
75 long choiceId)
76 throws com.liferay.portal.SystemException,
77 com.liferay.portal.PortalException;
78
79 public java.util.List<com.liferay.portlet.polls.model.PollsChoice> getPollsChoices(
80 int start, int end) throws com.liferay.portal.SystemException;
81
82 public int getPollsChoicesCount() throws com.liferay.portal.SystemException;
83
84 public com.liferay.portlet.polls.model.PollsChoice updatePollsChoice(
85 com.liferay.portlet.polls.model.PollsChoice pollsChoice)
86 throws com.liferay.portal.SystemException;
87
88 public com.liferay.portlet.polls.model.PollsChoice addChoice(
89 long questionId, java.lang.String name, java.lang.String description)
90 throws com.liferay.portal.PortalException,
91 com.liferay.portal.SystemException;
92
93 public com.liferay.portlet.polls.model.PollsChoice addChoice(
94 java.lang.String uuid, long questionId, java.lang.String name,
95 java.lang.String description)
96 throws com.liferay.portal.PortalException,
97 com.liferay.portal.SystemException;
98
99 public com.liferay.portlet.polls.model.PollsChoice getChoice(long choiceId)
100 throws com.liferay.portal.PortalException,
101 com.liferay.portal.SystemException;
102
103 public java.util.List<com.liferay.portlet.polls.model.PollsChoice> getChoices(
104 long questionId) throws com.liferay.portal.SystemException;
105
106 public int getChoicesCount(long questionId)
107 throws com.liferay.portal.SystemException;
108
109 public com.liferay.portlet.polls.model.PollsChoice updateChoice(
110 long choiceId, long questionId, java.lang.String name,
111 java.lang.String description)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException;
114 }