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.impl.PrincipalBean;
029:
030: import com.liferay.portlet.polls.service.PollsChoiceLocalService;
031: import com.liferay.portlet.polls.service.PollsChoiceLocalServiceFactory;
032: import com.liferay.portlet.polls.service.PollsQuestionLocalService;
033: import com.liferay.portlet.polls.service.PollsQuestionLocalServiceFactory;
034: import com.liferay.portlet.polls.service.PollsQuestionService;
035: import com.liferay.portlet.polls.service.PollsQuestionServiceFactory;
036: import com.liferay.portlet.polls.service.PollsVoteLocalService;
037: import com.liferay.portlet.polls.service.PollsVoteLocalServiceFactory;
038: import com.liferay.portlet.polls.service.PollsVoteService;
039: import com.liferay.portlet.polls.service.persistence.PollsChoiceFinder;
040: import com.liferay.portlet.polls.service.persistence.PollsChoiceFinderUtil;
041: import com.liferay.portlet.polls.service.persistence.PollsChoicePersistence;
042: import com.liferay.portlet.polls.service.persistence.PollsChoiceUtil;
043: import com.liferay.portlet.polls.service.persistence.PollsQuestionPersistence;
044: import com.liferay.portlet.polls.service.persistence.PollsQuestionUtil;
045: import com.liferay.portlet.polls.service.persistence.PollsVotePersistence;
046: import com.liferay.portlet.polls.service.persistence.PollsVoteUtil;
047:
048: import org.springframework.beans.factory.InitializingBean;
049:
050: /**
051: * <a href="PollsVoteServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
052: *
053: * @author Brian Wing Shun Chan
054: *
055: */
056: public abstract class PollsVoteServiceBaseImpl extends PrincipalBean
057: implements PollsVoteService, InitializingBean {
058: public PollsChoiceLocalService getPollsChoiceLocalService() {
059: return pollsChoiceLocalService;
060: }
061:
062: public void setPollsChoiceLocalService(
063: PollsChoiceLocalService pollsChoiceLocalService) {
064: this .pollsChoiceLocalService = pollsChoiceLocalService;
065: }
066:
067: public PollsChoicePersistence getPollsChoicePersistence() {
068: return pollsChoicePersistence;
069: }
070:
071: public void setPollsChoicePersistence(
072: PollsChoicePersistence pollsChoicePersistence) {
073: this .pollsChoicePersistence = pollsChoicePersistence;
074: }
075:
076: public PollsChoiceFinder getPollsChoiceFinder() {
077: return pollsChoiceFinder;
078: }
079:
080: public void setPollsChoiceFinder(PollsChoiceFinder pollsChoiceFinder) {
081: this .pollsChoiceFinder = pollsChoiceFinder;
082: }
083:
084: public PollsQuestionLocalService getPollsQuestionLocalService() {
085: return pollsQuestionLocalService;
086: }
087:
088: public void setPollsQuestionLocalService(
089: PollsQuestionLocalService pollsQuestionLocalService) {
090: this .pollsQuestionLocalService = pollsQuestionLocalService;
091: }
092:
093: public PollsQuestionService getPollsQuestionService() {
094: return pollsQuestionService;
095: }
096:
097: public void setPollsQuestionService(
098: PollsQuestionService pollsQuestionService) {
099: this .pollsQuestionService = pollsQuestionService;
100: }
101:
102: public PollsQuestionPersistence getPollsQuestionPersistence() {
103: return pollsQuestionPersistence;
104: }
105:
106: public void setPollsQuestionPersistence(
107: PollsQuestionPersistence pollsQuestionPersistence) {
108: this .pollsQuestionPersistence = pollsQuestionPersistence;
109: }
110:
111: public PollsVoteLocalService getPollsVoteLocalService() {
112: return pollsVoteLocalService;
113: }
114:
115: public void setPollsVoteLocalService(
116: PollsVoteLocalService pollsVoteLocalService) {
117: this .pollsVoteLocalService = pollsVoteLocalService;
118: }
119:
120: public PollsVotePersistence getPollsVotePersistence() {
121: return pollsVotePersistence;
122: }
123:
124: public void setPollsVotePersistence(
125: PollsVotePersistence pollsVotePersistence) {
126: this .pollsVotePersistence = pollsVotePersistence;
127: }
128:
129: public CounterLocalService getCounterLocalService() {
130: return counterLocalService;
131: }
132:
133: public void setCounterLocalService(
134: CounterLocalService counterLocalService) {
135: this .counterLocalService = counterLocalService;
136: }
137:
138: public CounterService getCounterService() {
139: return counterService;
140: }
141:
142: public void setCounterService(CounterService counterService) {
143: this .counterService = counterService;
144: }
145:
146: public void afterPropertiesSet() {
147: if (pollsChoiceLocalService == null) {
148: pollsChoiceLocalService = PollsChoiceLocalServiceFactory
149: .getImpl();
150: }
151:
152: if (pollsChoicePersistence == null) {
153: pollsChoicePersistence = PollsChoiceUtil.getPersistence();
154: }
155:
156: if (pollsChoiceFinder == null) {
157: pollsChoiceFinder = PollsChoiceFinderUtil.getFinder();
158: }
159:
160: if (pollsQuestionLocalService == null) {
161: pollsQuestionLocalService = PollsQuestionLocalServiceFactory
162: .getImpl();
163: }
164:
165: if (pollsQuestionService == null) {
166: pollsQuestionService = PollsQuestionServiceFactory
167: .getImpl();
168: }
169:
170: if (pollsQuestionPersistence == null) {
171: pollsQuestionPersistence = PollsQuestionUtil
172: .getPersistence();
173: }
174:
175: if (pollsVoteLocalService == null) {
176: pollsVoteLocalService = PollsVoteLocalServiceFactory
177: .getImpl();
178: }
179:
180: if (pollsVotePersistence == null) {
181: pollsVotePersistence = PollsVoteUtil.getPersistence();
182: }
183:
184: if (counterLocalService == null) {
185: counterLocalService = CounterLocalServiceFactory.getImpl();
186: }
187:
188: if (counterService == null) {
189: counterService = CounterServiceFactory.getImpl();
190: }
191: }
192:
193: protected PollsChoiceLocalService pollsChoiceLocalService;
194: protected PollsChoicePersistence pollsChoicePersistence;
195: protected PollsChoiceFinder pollsChoiceFinder;
196: protected PollsQuestionLocalService pollsQuestionLocalService;
197: protected PollsQuestionService pollsQuestionService;
198: protected PollsQuestionPersistence pollsQuestionPersistence;
199: protected PollsVoteLocalService pollsVoteLocalService;
200: protected PollsVotePersistence pollsVotePersistence;
201: protected CounterLocalService counterLocalService;
202: protected CounterService counterService;
203: }
|