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.ratings.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.UserLocalService;
029: import com.liferay.portal.service.UserLocalServiceFactory;
030: import com.liferay.portal.service.UserService;
031: import com.liferay.portal.service.UserServiceFactory;
032: import com.liferay.portal.service.impl.PrincipalBean;
033: import com.liferay.portal.service.persistence.UserFinder;
034: import com.liferay.portal.service.persistence.UserFinderUtil;
035: import com.liferay.portal.service.persistence.UserPersistence;
036: import com.liferay.portal.service.persistence.UserUtil;
037:
038: import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
039: import com.liferay.portlet.blogs.service.BlogsEntryLocalServiceFactory;
040: import com.liferay.portlet.blogs.service.BlogsEntryService;
041: import com.liferay.portlet.blogs.service.BlogsEntryServiceFactory;
042: import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
043: import com.liferay.portlet.blogs.service.BlogsStatsUserLocalServiceFactory;
044: import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
045: import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinderUtil;
046: import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
047: import com.liferay.portlet.blogs.service.persistence.BlogsEntryUtil;
048: import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
049: import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinderUtil;
050: import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
051: import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserUtil;
052: import com.liferay.portlet.ratings.service.RatingsEntryLocalService;
053: import com.liferay.portlet.ratings.service.RatingsEntryLocalServiceFactory;
054: import com.liferay.portlet.ratings.service.RatingsEntryService;
055: import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
056: import com.liferay.portlet.ratings.service.RatingsStatsLocalServiceFactory;
057: import com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence;
058: import com.liferay.portlet.ratings.service.persistence.RatingsEntryUtil;
059: import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
060: import com.liferay.portlet.ratings.service.persistence.RatingsStatsUtil;
061:
062: import org.springframework.beans.factory.InitializingBean;
063:
064: /**
065: * <a href="RatingsEntryServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
066: *
067: * @author Brian Wing Shun Chan
068: *
069: */
070: public abstract class RatingsEntryServiceBaseImpl extends PrincipalBean
071: implements RatingsEntryService, InitializingBean {
072: public RatingsEntryLocalService getRatingsEntryLocalService() {
073: return ratingsEntryLocalService;
074: }
075:
076: public void setRatingsEntryLocalService(
077: RatingsEntryLocalService ratingsEntryLocalService) {
078: this .ratingsEntryLocalService = ratingsEntryLocalService;
079: }
080:
081: public RatingsEntryPersistence getRatingsEntryPersistence() {
082: return ratingsEntryPersistence;
083: }
084:
085: public void setRatingsEntryPersistence(
086: RatingsEntryPersistence ratingsEntryPersistence) {
087: this .ratingsEntryPersistence = ratingsEntryPersistence;
088: }
089:
090: public RatingsStatsLocalService getRatingsStatsLocalService() {
091: return ratingsStatsLocalService;
092: }
093:
094: public void setRatingsStatsLocalService(
095: RatingsStatsLocalService ratingsStatsLocalService) {
096: this .ratingsStatsLocalService = ratingsStatsLocalService;
097: }
098:
099: public RatingsStatsPersistence getRatingsStatsPersistence() {
100: return ratingsStatsPersistence;
101: }
102:
103: public void setRatingsStatsPersistence(
104: RatingsStatsPersistence ratingsStatsPersistence) {
105: this .ratingsStatsPersistence = ratingsStatsPersistence;
106: }
107:
108: public CounterLocalService getCounterLocalService() {
109: return counterLocalService;
110: }
111:
112: public void setCounterLocalService(
113: CounterLocalService counterLocalService) {
114: this .counterLocalService = counterLocalService;
115: }
116:
117: public CounterService getCounterService() {
118: return counterService;
119: }
120:
121: public void setCounterService(CounterService counterService) {
122: this .counterService = counterService;
123: }
124:
125: public UserLocalService getUserLocalService() {
126: return userLocalService;
127: }
128:
129: public void setUserLocalService(UserLocalService userLocalService) {
130: this .userLocalService = userLocalService;
131: }
132:
133: public UserService getUserService() {
134: return userService;
135: }
136:
137: public void setUserService(UserService userService) {
138: this .userService = userService;
139: }
140:
141: public UserPersistence getUserPersistence() {
142: return userPersistence;
143: }
144:
145: public void setUserPersistence(UserPersistence userPersistence) {
146: this .userPersistence = userPersistence;
147: }
148:
149: public UserFinder getUserFinder() {
150: return userFinder;
151: }
152:
153: public void setUserFinder(UserFinder userFinder) {
154: this .userFinder = userFinder;
155: }
156:
157: public BlogsEntryLocalService getBlogsEntryLocalService() {
158: return blogsEntryLocalService;
159: }
160:
161: public void setBlogsEntryLocalService(
162: BlogsEntryLocalService blogsEntryLocalService) {
163: this .blogsEntryLocalService = blogsEntryLocalService;
164: }
165:
166: public BlogsEntryService getBlogsEntryService() {
167: return blogsEntryService;
168: }
169:
170: public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
171: this .blogsEntryService = blogsEntryService;
172: }
173:
174: public BlogsEntryPersistence getBlogsEntryPersistence() {
175: return blogsEntryPersistence;
176: }
177:
178: public void setBlogsEntryPersistence(
179: BlogsEntryPersistence blogsEntryPersistence) {
180: this .blogsEntryPersistence = blogsEntryPersistence;
181: }
182:
183: public BlogsEntryFinder getBlogsEntryFinder() {
184: return blogsEntryFinder;
185: }
186:
187: public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
188: this .blogsEntryFinder = blogsEntryFinder;
189: }
190:
191: public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
192: return blogsStatsUserLocalService;
193: }
194:
195: public void setBlogsStatsUserLocalService(
196: BlogsStatsUserLocalService blogsStatsUserLocalService) {
197: this .blogsStatsUserLocalService = blogsStatsUserLocalService;
198: }
199:
200: public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
201: return blogsStatsUserPersistence;
202: }
203:
204: public void setBlogsStatsUserPersistence(
205: BlogsStatsUserPersistence blogsStatsUserPersistence) {
206: this .blogsStatsUserPersistence = blogsStatsUserPersistence;
207: }
208:
209: public BlogsStatsUserFinder getBlogsStatsUserFinder() {
210: return blogsStatsUserFinder;
211: }
212:
213: public void setBlogsStatsUserFinder(
214: BlogsStatsUserFinder blogsStatsUserFinder) {
215: this .blogsStatsUserFinder = blogsStatsUserFinder;
216: }
217:
218: public void afterPropertiesSet() {
219: if (ratingsEntryLocalService == null) {
220: ratingsEntryLocalService = RatingsEntryLocalServiceFactory
221: .getImpl();
222: }
223:
224: if (ratingsEntryPersistence == null) {
225: ratingsEntryPersistence = RatingsEntryUtil.getPersistence();
226: }
227:
228: if (ratingsStatsLocalService == null) {
229: ratingsStatsLocalService = RatingsStatsLocalServiceFactory
230: .getImpl();
231: }
232:
233: if (ratingsStatsPersistence == null) {
234: ratingsStatsPersistence = RatingsStatsUtil.getPersistence();
235: }
236:
237: if (counterLocalService == null) {
238: counterLocalService = CounterLocalServiceFactory.getImpl();
239: }
240:
241: if (counterService == null) {
242: counterService = CounterServiceFactory.getImpl();
243: }
244:
245: if (userLocalService == null) {
246: userLocalService = UserLocalServiceFactory.getImpl();
247: }
248:
249: if (userService == null) {
250: userService = UserServiceFactory.getImpl();
251: }
252:
253: if (userPersistence == null) {
254: userPersistence = UserUtil.getPersistence();
255: }
256:
257: if (userFinder == null) {
258: userFinder = UserFinderUtil.getFinder();
259: }
260:
261: if (blogsEntryLocalService == null) {
262: blogsEntryLocalService = BlogsEntryLocalServiceFactory
263: .getImpl();
264: }
265:
266: if (blogsEntryService == null) {
267: blogsEntryService = BlogsEntryServiceFactory.getImpl();
268: }
269:
270: if (blogsEntryPersistence == null) {
271: blogsEntryPersistence = BlogsEntryUtil.getPersistence();
272: }
273:
274: if (blogsEntryFinder == null) {
275: blogsEntryFinder = BlogsEntryFinderUtil.getFinder();
276: }
277:
278: if (blogsStatsUserLocalService == null) {
279: blogsStatsUserLocalService = BlogsStatsUserLocalServiceFactory
280: .getImpl();
281: }
282:
283: if (blogsStatsUserPersistence == null) {
284: blogsStatsUserPersistence = BlogsStatsUserUtil
285: .getPersistence();
286: }
287:
288: if (blogsStatsUserFinder == null) {
289: blogsStatsUserFinder = BlogsStatsUserFinderUtil.getFinder();
290: }
291: }
292:
293: protected RatingsEntryLocalService ratingsEntryLocalService;
294: protected RatingsEntryPersistence ratingsEntryPersistence;
295: protected RatingsStatsLocalService ratingsStatsLocalService;
296: protected RatingsStatsPersistence ratingsStatsPersistence;
297: protected CounterLocalService counterLocalService;
298: protected CounterService counterService;
299: protected UserLocalService userLocalService;
300: protected UserService userService;
301: protected UserPersistence userPersistence;
302: protected UserFinder userFinder;
303: protected BlogsEntryLocalService blogsEntryLocalService;
304: protected BlogsEntryService blogsEntryService;
305: protected BlogsEntryPersistence blogsEntryPersistence;
306: protected BlogsEntryFinder blogsEntryFinder;
307: protected BlogsStatsUserLocalService blogsStatsUserLocalService;
308: protected BlogsStatsUserPersistence blogsStatsUserPersistence;
309: protected BlogsStatsUserFinder blogsStatsUserFinder;
310: }
|