1
22
23 package com.liferay.portlet.polls.service;
24
25
51 public interface PollsQuestionLocalService {
52 public com.liferay.portlet.polls.model.PollsQuestion addPollsQuestion(
53 com.liferay.portlet.polls.model.PollsQuestion model)
54 throws com.liferay.portal.SystemException;
55
56 public java.util.List dynamicQuery(
57 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
58 throws com.liferay.portal.SystemException;
59
60 public java.util.List dynamicQuery(
61 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
62 int begin, int end) throws com.liferay.portal.SystemException;
63
64 public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
65 com.liferay.portlet.polls.model.PollsQuestion model)
66 throws com.liferay.portal.SystemException;
67
68 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
69 long userId, long plid, java.lang.String title,
70 java.lang.String description, int expirationDateMonth,
71 int expirationDateDay, int expirationDateYear, int expirationDateHour,
72 int expirationDateMinute, boolean neverExpire, java.util.List choices,
73 boolean addCommunityPermissions, boolean addGuestPermissions)
74 throws com.liferay.portal.SystemException,
75 com.liferay.portal.PortalException;
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, java.util.List choices,
82 java.lang.String[] communityPermissions,
83 java.lang.String[] guestPermissions)
84 throws com.liferay.portal.SystemException,
85 com.liferay.portal.PortalException;
86
87 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
88 long userId, long plid, java.lang.String title,
89 java.lang.String description, int expirationDateMonth,
90 int expirationDateDay, int expirationDateYear, int expirationDateHour,
91 int expirationDateMinute, boolean neverExpire, java.util.List choices,
92 java.lang.Boolean addCommunityPermissions,
93 java.lang.Boolean addGuestPermissions,
94 java.lang.String[] communityPermissions,
95 java.lang.String[] guestPermissions)
96 throws com.liferay.portal.SystemException,
97 com.liferay.portal.PortalException;
98
99 public void addQuestionResources(long questionId,
100 boolean addCommunityPermissions, boolean addGuestPermissions)
101 throws com.liferay.portal.SystemException,
102 com.liferay.portal.PortalException;
103
104 public void addQuestionResources(
105 com.liferay.portlet.polls.model.PollsQuestion question,
106 boolean addCommunityPermissions, boolean addGuestPermissions)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portal.PortalException;
109
110 public void addQuestionResources(long questionId,
111 java.lang.String[] communityPermissions,
112 java.lang.String[] guestPermissions)
113 throws com.liferay.portal.SystemException,
114 com.liferay.portal.PortalException;
115
116 public void addQuestionResources(
117 com.liferay.portlet.polls.model.PollsQuestion question,
118 java.lang.String[] communityPermissions,
119 java.lang.String[] guestPermissions)
120 throws com.liferay.portal.SystemException,
121 com.liferay.portal.PortalException;
122
123 public void deleteQuestion(long questionId)
124 throws com.liferay.portal.SystemException,
125 com.liferay.portal.PortalException;
126
127 public void deleteQuestion(
128 com.liferay.portlet.polls.model.PollsQuestion question)
129 throws com.liferay.portal.SystemException,
130 com.liferay.portal.PortalException;
131
132 public void deleteQuestions(long groupId)
133 throws com.liferay.portal.SystemException,
134 com.liferay.portal.PortalException;
135
136 public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
137 long questionId)
138 throws com.liferay.portal.SystemException,
139 com.liferay.portal.PortalException;
140
141 public java.util.List getQuestions(long groupId)
142 throws com.liferay.portal.SystemException;
143
144 public java.util.List getQuestions(long groupId, int begin, int end)
145 throws com.liferay.portal.SystemException;
146
147 public int getQuestionsCount(long groupId)
148 throws com.liferay.portal.SystemException;
149
150 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
151 long userId, long questionId, java.lang.String title,
152 java.lang.String description, int expirationDateMonth,
153 int expirationDateDay, int expirationDateYear, int expirationDateHour,
154 int expirationDateMinute, boolean neverExpire, java.util.List choices)
155 throws com.liferay.portal.SystemException,
156 com.liferay.portal.PortalException;
157 }