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.base;
022:
023: import com.liferay.counter.service.CounterLocalService;
024: import com.liferay.counter.service.CounterLocalServiceFactory;
025: import com.liferay.counter.service.CounterService;
026: import com.liferay.counter.service.CounterServiceFactory;
027:
028: import com.liferay.portal.service.ResourceLocalService;
029: import com.liferay.portal.service.ResourceLocalServiceFactory;
030: import com.liferay.portal.service.ResourceService;
031: import com.liferay.portal.service.ResourceServiceFactory;
032: import com.liferay.portal.service.UserLocalService;
033: import com.liferay.portal.service.UserLocalServiceFactory;
034: import com.liferay.portal.service.UserService;
035: import com.liferay.portal.service.UserServiceFactory;
036: import com.liferay.portal.service.impl.PrincipalBean;
037: import com.liferay.portal.service.persistence.ResourceFinder;
038: import com.liferay.portal.service.persistence.ResourceFinderUtil;
039: import com.liferay.portal.service.persistence.ResourcePersistence;
040: import com.liferay.portal.service.persistence.ResourceUtil;
041: import com.liferay.portal.service.persistence.UserFinder;
042: import com.liferay.portal.service.persistence.UserFinderUtil;
043: import com.liferay.portal.service.persistence.UserPersistence;
044: import com.liferay.portal.service.persistence.UserUtil;
045:
046: import com.liferay.portlet.polls.service.PollsChoiceLocalService;
047: import com.liferay.portlet.polls.service.PollsChoiceLocalServiceFactory;
048: import com.liferay.portlet.polls.service.PollsQuestionLocalService;
049: import com.liferay.portlet.polls.service.PollsQuestionLocalServiceFactory;
050: import com.liferay.portlet.polls.service.PollsQuestionService;
051: import com.liferay.portlet.polls.service.PollsVoteLocalService;
052: import com.liferay.portlet.polls.service.PollsVoteLocalServiceFactory;
053: import com.liferay.portlet.polls.service.PollsVoteService;
054: import com.liferay.portlet.polls.service.PollsVoteServiceFactory;
055: import com.liferay.portlet.polls.service.persistence.PollsChoiceFinder;
056: import com.liferay.portlet.polls.service.persistence.PollsChoiceFinderUtil;
057: import com.liferay.portlet.polls.service.persistence.PollsChoicePersistence;
058: import com.liferay.portlet.polls.service.persistence.PollsChoiceUtil;
059: import com.liferay.portlet.polls.service.persistence.PollsQuestionPersistence;
060: import com.liferay.portlet.polls.service.persistence.PollsQuestionUtil;
061: import com.liferay.portlet.polls.service.persistence.PollsVotePersistence;
062: import com.liferay.portlet.polls.service.persistence.PollsVoteUtil;
063:
064: import org.springframework.beans.factory.InitializingBean;
065:
066: /**
067: * <a href="PollsQuestionServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
068: *
069: * @author Brian Wing Shun Chan
070: *
071: */
072: public abstract class PollsQuestionServiceBaseImpl extends
073: PrincipalBean implements PollsQuestionService, InitializingBean {
074: public PollsChoiceLocalService getPollsChoiceLocalService() {
075: return pollsChoiceLocalService;
076: }
077:
078: public void setPollsChoiceLocalService(
079: PollsChoiceLocalService pollsChoiceLocalService) {
080: this .pollsChoiceLocalService = pollsChoiceLocalService;
081: }
082:
083: public PollsChoicePersistence getPollsChoicePersistence() {
084: return pollsChoicePersistence;
085: }
086:
087: public void setPollsChoicePersistence(
088: PollsChoicePersistence pollsChoicePersistence) {
089: this .pollsChoicePersistence = pollsChoicePersistence;
090: }
091:
092: public PollsChoiceFinder getPollsChoiceFinder() {
093: return pollsChoiceFinder;
094: }
095:
096: public void setPollsChoiceFinder(PollsChoiceFinder pollsChoiceFinder) {
097: this .pollsChoiceFinder = pollsChoiceFinder;
098: }
099:
100: public PollsQuestionLocalService getPollsQuestionLocalService() {
101: return pollsQuestionLocalService;
102: }
103:
104: public void setPollsQuestionLocalService(
105: PollsQuestionLocalService pollsQuestionLocalService) {
106: this .pollsQuestionLocalService = pollsQuestionLocalService;
107: }
108:
109: public PollsQuestionPersistence getPollsQuestionPersistence() {
110: return pollsQuestionPersistence;
111: }
112:
113: public void setPollsQuestionPersistence(
114: PollsQuestionPersistence pollsQuestionPersistence) {
115: this .pollsQuestionPersistence = pollsQuestionPersistence;
116: }
117:
118: public PollsVoteLocalService getPollsVoteLocalService() {
119: return pollsVoteLocalService;
120: }
121:
122: public void setPollsVoteLocalService(
123: PollsVoteLocalService pollsVoteLocalService) {
124: this .pollsVoteLocalService = pollsVoteLocalService;
125: }
126:
127: public PollsVoteService getPollsVoteService() {
128: return pollsVoteService;
129: }
130:
131: public void setPollsVoteService(PollsVoteService pollsVoteService) {
132: this .pollsVoteService = pollsVoteService;
133: }
134:
135: public PollsVotePersistence getPollsVotePersistence() {
136: return pollsVotePersistence;
137: }
138:
139: public void setPollsVotePersistence(
140: PollsVotePersistence pollsVotePersistence) {
141: this .pollsVotePersistence = pollsVotePersistence;
142: }
143:
144: public CounterLocalService getCounterLocalService() {
145: return counterLocalService;
146: }
147:
148: public void setCounterLocalService(
149: CounterLocalService counterLocalService) {
150: this .counterLocalService = counterLocalService;
151: }
152:
153: public CounterService getCounterService() {
154: return counterService;
155: }
156:
157: public void setCounterService(CounterService counterService) {
158: this .counterService = counterService;
159: }
160:
161: public ResourceLocalService getResourceLocalService() {
162: return resourceLocalService;
163: }
164:
165: public void setResourceLocalService(
166: ResourceLocalService resourceLocalService) {
167: this .resourceLocalService = resourceLocalService;
168: }
169:
170: public ResourceService getResourceService() {
171: return resourceService;
172: }
173:
174: public void setResourceService(ResourceService resourceService) {
175: this .resourceService = resourceService;
176: }
177:
178: public ResourcePersistence getResourcePersistence() {
179: return resourcePersistence;
180: }
181:
182: public void setResourcePersistence(
183: ResourcePersistence resourcePersistence) {
184: this .resourcePersistence = resourcePersistence;
185: }
186:
187: public ResourceFinder getResourceFinder() {
188: return resourceFinder;
189: }
190:
191: public void setResourceFinder(ResourceFinder resourceFinder) {
192: this .resourceFinder = resourceFinder;
193: }
194:
195: public UserLocalService getUserLocalService() {
196: return userLocalService;
197: }
198:
199: public void setUserLocalService(UserLocalService userLocalService) {
200: this .userLocalService = userLocalService;
201: }
202:
203: public UserService getUserService() {
204: return userService;
205: }
206:
207: public void setUserService(UserService userService) {
208: this .userService = userService;
209: }
210:
211: public UserPersistence getUserPersistence() {
212: return userPersistence;
213: }
214:
215: public void setUserPersistence(UserPersistence userPersistence) {
216: this .userPersistence = userPersistence;
217: }
218:
219: public UserFinder getUserFinder() {
220: return userFinder;
221: }
222:
223: public void setUserFinder(UserFinder userFinder) {
224: this .userFinder = userFinder;
225: }
226:
227: public void afterPropertiesSet() {
228: if (pollsChoiceLocalService == null) {
229: pollsChoiceLocalService = PollsChoiceLocalServiceFactory
230: .getImpl();
231: }
232:
233: if (pollsChoicePersistence == null) {
234: pollsChoicePersistence = PollsChoiceUtil.getPersistence();
235: }
236:
237: if (pollsChoiceFinder == null) {
238: pollsChoiceFinder = PollsChoiceFinderUtil.getFinder();
239: }
240:
241: if (pollsQuestionLocalService == null) {
242: pollsQuestionLocalService = PollsQuestionLocalServiceFactory
243: .getImpl();
244: }
245:
246: if (pollsQuestionPersistence == null) {
247: pollsQuestionPersistence = PollsQuestionUtil
248: .getPersistence();
249: }
250:
251: if (pollsVoteLocalService == null) {
252: pollsVoteLocalService = PollsVoteLocalServiceFactory
253: .getImpl();
254: }
255:
256: if (pollsVoteService == null) {
257: pollsVoteService = PollsVoteServiceFactory.getImpl();
258: }
259:
260: if (pollsVotePersistence == null) {
261: pollsVotePersistence = PollsVoteUtil.getPersistence();
262: }
263:
264: if (counterLocalService == null) {
265: counterLocalService = CounterLocalServiceFactory.getImpl();
266: }
267:
268: if (counterService == null) {
269: counterService = CounterServiceFactory.getImpl();
270: }
271:
272: if (resourceLocalService == null) {
273: resourceLocalService = ResourceLocalServiceFactory
274: .getImpl();
275: }
276:
277: if (resourceService == null) {
278: resourceService = ResourceServiceFactory.getImpl();
279: }
280:
281: if (resourcePersistence == null) {
282: resourcePersistence = ResourceUtil.getPersistence();
283: }
284:
285: if (resourceFinder == null) {
286: resourceFinder = ResourceFinderUtil.getFinder();
287: }
288:
289: if (userLocalService == null) {
290: userLocalService = UserLocalServiceFactory.getImpl();
291: }
292:
293: if (userService == null) {
294: userService = UserServiceFactory.getImpl();
295: }
296:
297: if (userPersistence == null) {
298: userPersistence = UserUtil.getPersistence();
299: }
300:
301: if (userFinder == null) {
302: userFinder = UserFinderUtil.getFinder();
303: }
304: }
305:
306: protected PollsChoiceLocalService pollsChoiceLocalService;
307: protected PollsChoicePersistence pollsChoicePersistence;
308: protected PollsChoiceFinder pollsChoiceFinder;
309: protected PollsQuestionLocalService pollsQuestionLocalService;
310: protected PollsQuestionPersistence pollsQuestionPersistence;
311: protected PollsVoteLocalService pollsVoteLocalService;
312: protected PollsVoteService pollsVoteService;
313: protected PollsVotePersistence pollsVotePersistence;
314: protected CounterLocalService counterLocalService;
315: protected CounterService counterService;
316: protected ResourceLocalService resourceLocalService;
317: protected ResourceService resourceService;
318: protected ResourcePersistence resourcePersistence;
319: protected ResourceFinder resourceFinder;
320: protected UserLocalService userLocalService;
321: protected UserService userService;
322: protected UserPersistence userPersistence;
323: protected UserFinder userFinder;
324: }
|