001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.polls.service;
022:
023: /**
024: * <a href="PollsQuestionLocalService.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This interface defines the service. The default implementation is
033: * <code>com.liferay.portlet.polls.service.impl.PollsQuestionLocalServiceImpl</code>.
034: * Modify methods in that class and rerun ServiceBuilder to populate this class
035: * and all other generated classes.
036: * </p>
037: *
038: * <p>
039: * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.polls.service.PollsQuestionLocalServiceFactory
045: * @see com.liferay.portlet.polls.service.PollsQuestionLocalServiceUtil
046: *
047: */
048: public interface PollsQuestionLocalService {
049: public com.liferay.portlet.polls.model.PollsQuestion addPollsQuestion(
050: com.liferay.portlet.polls.model.PollsQuestion model)
051: throws com.liferay.portal.SystemException;
052:
053: public java.util.List dynamicQuery(
054: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
055: throws com.liferay.portal.SystemException;
056:
057: public java.util.List dynamicQuery(
058: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
059: int begin, int end)
060: throws com.liferay.portal.SystemException;
061:
062: public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
063: com.liferay.portlet.polls.model.PollsQuestion model)
064: throws com.liferay.portal.SystemException;
065:
066: public com.liferay.portlet.polls.service.persistence.PollsChoicePersistence getPollsChoicePersistence();
067:
068: public void setPollsChoicePersistence(
069: com.liferay.portlet.polls.service.persistence.PollsChoicePersistence pollsChoicePersistence);
070:
071: public com.liferay.portlet.polls.service.persistence.PollsChoiceFinder getPollsChoiceFinder();
072:
073: public void setPollsChoiceFinder(
074: com.liferay.portlet.polls.service.persistence.PollsChoiceFinder pollsChoiceFinder);
075:
076: public com.liferay.portlet.polls.service.persistence.PollsQuestionPersistence getPollsQuestionPersistence();
077:
078: public void setPollsQuestionPersistence(
079: com.liferay.portlet.polls.service.persistence.PollsQuestionPersistence pollsQuestionPersistence);
080:
081: public com.liferay.portlet.polls.service.persistence.PollsVotePersistence getPollsVotePersistence();
082:
083: public void setPollsVotePersistence(
084: com.liferay.portlet.polls.service.persistence.PollsVotePersistence pollsVotePersistence);
085:
086: public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
087:
088: public void setResourcePersistence(
089: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
090:
091: public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
092:
093: public void setResourceFinder(
094: com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
095:
096: public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
097:
098: public void setUserPersistence(
099: com.liferay.portal.service.persistence.UserPersistence userPersistence);
100:
101: public com.liferay.portal.service.persistence.UserFinder getUserFinder();
102:
103: public void setUserFinder(
104: com.liferay.portal.service.persistence.UserFinder userFinder);
105:
106: public void afterPropertiesSet();
107:
108: public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
109: long userId, long plid, java.lang.String title,
110: java.lang.String description, int expirationDateMonth,
111: int expirationDateDay, int expirationDateYear,
112: int expirationDateHour, int expirationDateMinute,
113: boolean neverExpire, boolean addCommunityPermissions,
114: boolean addGuestPermissions)
115: throws com.liferay.portal.SystemException,
116: com.liferay.portal.PortalException;
117:
118: public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
119: java.lang.String uuid, long userId, long plid,
120: java.lang.String title, java.lang.String description,
121: int expirationDateMonth, int expirationDateDay,
122: int expirationDateYear, int expirationDateHour,
123: int expirationDateMinute, boolean neverExpire,
124: boolean addCommunityPermissions, boolean addGuestPermissions)
125: throws com.liferay.portal.SystemException,
126: com.liferay.portal.PortalException;
127:
128: public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
129: long userId, long plid, java.lang.String title,
130: java.lang.String description, int expirationDateMonth,
131: int expirationDateDay, int expirationDateYear,
132: int expirationDateHour, int expirationDateMinute,
133: boolean neverExpire, java.util.List choices,
134: boolean addCommunityPermissions, boolean addGuestPermissions)
135: throws com.liferay.portal.SystemException,
136: com.liferay.portal.PortalException;
137:
138: public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
139: long userId, long plid, java.lang.String title,
140: java.lang.String description, int expirationDateMonth,
141: int expirationDateDay, int expirationDateYear,
142: int expirationDateHour, int expirationDateMinute,
143: boolean neverExpire, java.util.List choices,
144: java.lang.String[] communityPermissions,
145: java.lang.String[] guestPermissions)
146: throws com.liferay.portal.SystemException,
147: com.liferay.portal.PortalException;
148:
149: public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
150: java.lang.String uuid, long userId, long plid,
151: java.lang.String title, java.lang.String description,
152: int expirationDateMonth, int expirationDateDay,
153: int expirationDateYear, int expirationDateHour,
154: int expirationDateMinute, boolean neverExpire,
155: java.util.List choices,
156: java.lang.Boolean addCommunityPermissions,
157: java.lang.Boolean addGuestPermissions,
158: java.lang.String[] communityPermissions,
159: java.lang.String[] guestPermissions)
160: throws com.liferay.portal.SystemException,
161: com.liferay.portal.PortalException;
162:
163: public void addQuestionResources(long questionId,
164: boolean addCommunityPermissions, boolean addGuestPermissions)
165: throws com.liferay.portal.SystemException,
166: com.liferay.portal.PortalException;
167:
168: public void addQuestionResources(
169: com.liferay.portlet.polls.model.PollsQuestion question,
170: boolean addCommunityPermissions, boolean addGuestPermissions)
171: throws com.liferay.portal.SystemException,
172: com.liferay.portal.PortalException;
173:
174: public void addQuestionResources(long questionId,
175: java.lang.String[] communityPermissions,
176: java.lang.String[] guestPermissions)
177: throws com.liferay.portal.SystemException,
178: com.liferay.portal.PortalException;
179:
180: public void addQuestionResources(
181: com.liferay.portlet.polls.model.PollsQuestion question,
182: java.lang.String[] communityPermissions,
183: java.lang.String[] guestPermissions)
184: throws com.liferay.portal.SystemException,
185: com.liferay.portal.PortalException;
186:
187: public void deleteQuestion(long questionId)
188: throws com.liferay.portal.SystemException,
189: com.liferay.portal.PortalException;
190:
191: public void deleteQuestion(
192: com.liferay.portlet.polls.model.PollsQuestion question)
193: throws com.liferay.portal.SystemException,
194: com.liferay.portal.PortalException;
195:
196: public void deleteQuestions(long groupId)
197: throws com.liferay.portal.SystemException,
198: com.liferay.portal.PortalException;
199:
200: public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
201: long questionId) throws com.liferay.portal.SystemException,
202: com.liferay.portal.PortalException;
203:
204: public java.util.List getQuestions(long groupId)
205: throws com.liferay.portal.SystemException;
206:
207: public java.util.List getQuestions(long groupId, int begin, int end)
208: throws com.liferay.portal.SystemException;
209:
210: public int getQuestionsCount(long groupId)
211: throws com.liferay.portal.SystemException;
212:
213: public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
214: long userId, long questionId, java.lang.String title,
215: java.lang.String description, int expirationDateMonth,
216: int expirationDateDay, int expirationDateYear,
217: int expirationDateHour, int expirationDateMinute,
218: boolean neverExpire)
219: throws com.liferay.portal.SystemException,
220: com.liferay.portal.PortalException;
221:
222: public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
223: long userId, long questionId, java.lang.String title,
224: java.lang.String description, int expirationDateMonth,
225: int expirationDateDay, int expirationDateYear,
226: int expirationDateHour, int expirationDateMinute,
227: boolean neverExpire, java.util.List choices)
228: throws com.liferay.portal.SystemException,
229: com.liferay.portal.PortalException;
230: }
|