1
14
15 package com.liferay.portlet.polls.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface PollsQuestionLocalService {
50 public com.liferay.portlet.polls.model.PollsQuestion addPollsQuestion(
51 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.polls.model.PollsQuestion createPollsQuestion(
55 long questionId);
56
57 public void deletePollsQuestion(long questionId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deletePollsQuestion(
62 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74 public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestion(
75 long questionId)
76 throws com.liferay.portal.kernel.exception.PortalException,
77 com.liferay.portal.kernel.exception.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getPollsQuestions(
81 int start, int end)
82 throws com.liferay.portal.kernel.exception.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public int getPollsQuestionsCount()
86 throws com.liferay.portal.kernel.exception.SystemException;
87
88 public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
89 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
90 throws com.liferay.portal.kernel.exception.SystemException;
91
92 public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
93 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
94 boolean merge)
95 throws com.liferay.portal.kernel.exception.SystemException;
96
97 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
98 java.lang.String uuid, long userId,
99 java.util.Map<java.util.Locale, String> titleMap,
100 java.util.Map<java.util.Locale, String> descriptionMap,
101 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
102 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
103 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
104 com.liferay.portal.service.ServiceContext serviceContext)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException;
107
108 public void addQuestionResources(long questionId,
109 boolean addCommunityPermissions, boolean addGuestPermissions)
110 throws com.liferay.portal.kernel.exception.PortalException,
111 com.liferay.portal.kernel.exception.SystemException;
112
113 public void addQuestionResources(long questionId,
114 java.lang.String[] communityPermissions,
115 java.lang.String[] guestPermissions)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException;
118
119 public void addQuestionResources(
120 com.liferay.portlet.polls.model.PollsQuestion question,
121 boolean addCommunityPermissions, boolean addGuestPermissions)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException;
124
125 public void addQuestionResources(
126 com.liferay.portlet.polls.model.PollsQuestion question,
127 java.lang.String[] communityPermissions,
128 java.lang.String[] guestPermissions)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException;
131
132 public void deleteQuestion(long questionId)
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException;
135
136 public void deleteQuestion(
137 com.liferay.portlet.polls.model.PollsQuestion question)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException;
140
141 public void deleteQuestions(long groupId)
142 throws com.liferay.portal.kernel.exception.PortalException,
143 com.liferay.portal.kernel.exception.SystemException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
147 long questionId)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
153 long groupId)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
158 long groupId, int start, int end)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public int getQuestionsCount(long groupId)
163 throws com.liferay.portal.kernel.exception.SystemException;
164
165 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
166 long userId, long questionId,
167 java.util.Map<java.util.Locale, String> titleMap,
168 java.util.Map<java.util.Locale, String> descriptionMap,
169 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
170 int expirationDateHour, int expirationDateMinute, boolean neverExpire)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException;
173
174 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
175 long userId, long questionId,
176 java.util.Map<java.util.Locale, String> titleMap,
177 java.util.Map<java.util.Locale, String> descriptionMap,
178 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
179 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
180 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
181 com.liferay.portal.service.ServiceContext serviceContext)
182 throws com.liferay.portal.kernel.exception.PortalException,
183 com.liferay.portal.kernel.exception.SystemException;
184 }