1
22
23 package com.liferay.portlet.polls.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
54 @Transactional(rollbackFor = {
55 PortalException.class, SystemException.class})
56 public interface PollsChoiceLocalService {
57 public com.liferay.portlet.polls.model.PollsChoice addPollsChoice(
58 com.liferay.portlet.polls.model.PollsChoice pollsChoice)
59 throws com.liferay.portal.SystemException;
60
61 public com.liferay.portlet.polls.model.PollsChoice createPollsChoice(
62 long choiceId);
63
64 public void deletePollsChoice(long choiceId)
65 throws com.liferay.portal.SystemException,
66 com.liferay.portal.PortalException;
67
68 public void deletePollsChoice(
69 com.liferay.portlet.polls.model.PollsChoice pollsChoice)
70 throws com.liferay.portal.SystemException;
71
72 public java.util.List<Object> dynamicQuery(
73 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74 throws com.liferay.portal.SystemException;
75
76 public java.util.List<Object> dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end) throws com.liferay.portal.SystemException;
79
80 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81 public com.liferay.portlet.polls.model.PollsChoice getPollsChoice(
82 long choiceId)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portal.PortalException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.polls.model.PollsChoice> getPollsChoices(
88 int start, int end) throws com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public int getPollsChoicesCount() throws com.liferay.portal.SystemException;
92
93 public com.liferay.portlet.polls.model.PollsChoice updatePollsChoice(
94 com.liferay.portlet.polls.model.PollsChoice pollsChoice)
95 throws com.liferay.portal.SystemException;
96
97 public com.liferay.portlet.polls.model.PollsChoice addChoice(
98 long questionId, java.lang.String name, java.lang.String description)
99 throws com.liferay.portal.PortalException,
100 com.liferay.portal.SystemException;
101
102 public com.liferay.portlet.polls.model.PollsChoice addChoice(
103 java.lang.String uuid, long questionId, java.lang.String name,
104 java.lang.String description)
105 throws com.liferay.portal.PortalException,
106 com.liferay.portal.SystemException;
107
108 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109 public com.liferay.portlet.polls.model.PollsChoice getChoice(long choiceId)
110 throws com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException;
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public java.util.List<com.liferay.portlet.polls.model.PollsChoice> getChoices(
115 long questionId) throws com.liferay.portal.SystemException;
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public int getChoicesCount(long questionId)
119 throws com.liferay.portal.SystemException;
120
121 public com.liferay.portlet.polls.model.PollsChoice updateChoice(
122 long choiceId, long questionId, java.lang.String name,
123 java.lang.String description)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException;
126 }