1
22
23 package com.liferay.portlet.polls.service;
24
25
26
51 public interface PollsQuestionLocalService {
52 public com.liferay.portlet.polls.model.PollsQuestion addPollsQuestion(
53 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
54 throws com.liferay.portal.SystemException;
55
56 public void deletePollsQuestion(long questionId)
57 throws com.liferay.portal.SystemException,
58 com.liferay.portal.PortalException;
59
60 public void deletePollsQuestion(
61 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
62 throws com.liferay.portal.SystemException,
63 com.liferay.portal.PortalException;
64
65 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> dynamicQuery(
66 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> dynamicQuery(
70 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
71 int begin, int end) throws com.liferay.portal.SystemException;
72
73 public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
74 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
75 throws com.liferay.portal.SystemException;
76
77 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
78 long userId, long plid, java.lang.String title,
79 java.lang.String description, int expirationDateMonth,
80 int expirationDateDay, int expirationDateYear, int expirationDateHour,
81 int expirationDateMinute, boolean neverExpire,
82 boolean addCommunityPermissions, boolean addGuestPermissions)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portal.PortalException;
85
86 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
87 java.lang.String uuid, long userId, long plid, java.lang.String title,
88 java.lang.String description, int expirationDateMonth,
89 int expirationDateDay, int expirationDateYear, int expirationDateHour,
90 int expirationDateMinute, boolean neverExpire,
91 boolean addCommunityPermissions, boolean addGuestPermissions)
92 throws com.liferay.portal.SystemException,
93 com.liferay.portal.PortalException;
94
95 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
96 long userId, long plid, java.lang.String title,
97 java.lang.String description, int expirationDateMonth,
98 int expirationDateDay, int expirationDateYear, int expirationDateHour,
99 int expirationDateMinute, boolean neverExpire,
100 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
101 boolean addCommunityPermissions, boolean addGuestPermissions)
102 throws com.liferay.portal.SystemException,
103 com.liferay.portal.PortalException;
104
105 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
106 long userId, long plid, java.lang.String title,
107 java.lang.String description, int expirationDateMonth,
108 int expirationDateDay, int expirationDateYear, int expirationDateHour,
109 int expirationDateMinute, boolean neverExpire,
110 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
111 java.lang.String[] communityPermissions,
112 java.lang.String[] guestPermissions)
113 throws com.liferay.portal.SystemException,
114 com.liferay.portal.PortalException;
115
116 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
117 java.lang.String uuid, long userId, long plid, java.lang.String title,
118 java.lang.String description, int expirationDateMonth,
119 int expirationDateDay, int expirationDateYear, int expirationDateHour,
120 int expirationDateMinute, boolean neverExpire,
121 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
122 java.lang.Boolean addCommunityPermissions,
123 java.lang.Boolean addGuestPermissions,
124 java.lang.String[] communityPermissions,
125 java.lang.String[] guestPermissions)
126 throws com.liferay.portal.SystemException,
127 com.liferay.portal.PortalException;
128
129 public void addQuestionResources(long questionId,
130 boolean addCommunityPermissions, boolean addGuestPermissions)
131 throws com.liferay.portal.SystemException,
132 com.liferay.portal.PortalException;
133
134 public void addQuestionResources(
135 com.liferay.portlet.polls.model.PollsQuestion question,
136 boolean addCommunityPermissions, boolean addGuestPermissions)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portal.PortalException;
139
140 public void addQuestionResources(long questionId,
141 java.lang.String[] communityPermissions,
142 java.lang.String[] guestPermissions)
143 throws com.liferay.portal.SystemException,
144 com.liferay.portal.PortalException;
145
146 public void addQuestionResources(
147 com.liferay.portlet.polls.model.PollsQuestion question,
148 java.lang.String[] communityPermissions,
149 java.lang.String[] guestPermissions)
150 throws com.liferay.portal.SystemException,
151 com.liferay.portal.PortalException;
152
153 public void deleteQuestion(long questionId)
154 throws com.liferay.portal.SystemException,
155 com.liferay.portal.PortalException;
156
157 public void deleteQuestion(
158 com.liferay.portlet.polls.model.PollsQuestion question)
159 throws com.liferay.portal.SystemException,
160 com.liferay.portal.PortalException;
161
162 public void deleteQuestions(long groupId)
163 throws com.liferay.portal.SystemException,
164 com.liferay.portal.PortalException;
165
166 public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
167 long questionId)
168 throws com.liferay.portal.SystemException,
169 com.liferay.portal.PortalException;
170
171 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
172 long groupId) throws com.liferay.portal.SystemException;
173
174 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
175 long groupId, int begin, int end)
176 throws com.liferay.portal.SystemException;
177
178 public int getQuestionsCount(long groupId)
179 throws com.liferay.portal.SystemException;
180
181 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
182 long userId, long questionId, java.lang.String title,
183 java.lang.String description, int expirationDateMonth,
184 int expirationDateDay, int expirationDateYear, int expirationDateHour,
185 int expirationDateMinute, boolean neverExpire)
186 throws com.liferay.portal.SystemException,
187 com.liferay.portal.PortalException;
188
189 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
190 long userId, long questionId, java.lang.String title,
191 java.lang.String description, int expirationDateMonth,
192 int expirationDateDay, int expirationDateYear, int expirationDateHour,
193 int expirationDateMinute, boolean neverExpire,
194 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices)
195 throws com.liferay.portal.SystemException,
196 com.liferay.portal.PortalException;
197 }