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.bookmarks.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.bookmarks.service.BookmarksEntryLocalService;
047: import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalServiceFactory;
048: import com.liferay.portlet.bookmarks.service.BookmarksEntryService;
049: import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService;
050: import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalServiceFactory;
051: import com.liferay.portlet.bookmarks.service.BookmarksFolderService;
052: import com.liferay.portlet.bookmarks.service.BookmarksFolderServiceFactory;
053: import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder;
054: import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinderUtil;
055: import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence;
056: import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryUtil;
057: import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
058: import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderUtil;
059: import com.liferay.portlet.tags.service.TagsAssetLocalService;
060: import com.liferay.portlet.tags.service.TagsAssetLocalServiceFactory;
061: import com.liferay.portlet.tags.service.TagsAssetService;
062: import com.liferay.portlet.tags.service.TagsAssetServiceFactory;
063: import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
064: import com.liferay.portlet.tags.service.persistence.TagsAssetFinderUtil;
065: import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
066: import com.liferay.portlet.tags.service.persistence.TagsAssetUtil;
067:
068: import org.springframework.beans.factory.InitializingBean;
069:
070: /**
071: * <a href="BookmarksEntryServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
072: *
073: * @author Brian Wing Shun Chan
074: *
075: */
076: public abstract class BookmarksEntryServiceBaseImpl extends
077: PrincipalBean implements BookmarksEntryService,
078: InitializingBean {
079: public BookmarksEntryLocalService getBookmarksEntryLocalService() {
080: return bookmarksEntryLocalService;
081: }
082:
083: public void setBookmarksEntryLocalService(
084: BookmarksEntryLocalService bookmarksEntryLocalService) {
085: this .bookmarksEntryLocalService = bookmarksEntryLocalService;
086: }
087:
088: public BookmarksEntryPersistence getBookmarksEntryPersistence() {
089: return bookmarksEntryPersistence;
090: }
091:
092: public void setBookmarksEntryPersistence(
093: BookmarksEntryPersistence bookmarksEntryPersistence) {
094: this .bookmarksEntryPersistence = bookmarksEntryPersistence;
095: }
096:
097: public BookmarksEntryFinder getBookmarksEntryFinder() {
098: return bookmarksEntryFinder;
099: }
100:
101: public void setBookmarksEntryFinder(
102: BookmarksEntryFinder bookmarksEntryFinder) {
103: this .bookmarksEntryFinder = bookmarksEntryFinder;
104: }
105:
106: public BookmarksFolderLocalService getBookmarksFolderLocalService() {
107: return bookmarksFolderLocalService;
108: }
109:
110: public void setBookmarksFolderLocalService(
111: BookmarksFolderLocalService bookmarksFolderLocalService) {
112: this .bookmarksFolderLocalService = bookmarksFolderLocalService;
113: }
114:
115: public BookmarksFolderService getBookmarksFolderService() {
116: return bookmarksFolderService;
117: }
118:
119: public void setBookmarksFolderService(
120: BookmarksFolderService bookmarksFolderService) {
121: this .bookmarksFolderService = bookmarksFolderService;
122: }
123:
124: public BookmarksFolderPersistence getBookmarksFolderPersistence() {
125: return bookmarksFolderPersistence;
126: }
127:
128: public void setBookmarksFolderPersistence(
129: BookmarksFolderPersistence bookmarksFolderPersistence) {
130: this .bookmarksFolderPersistence = bookmarksFolderPersistence;
131: }
132:
133: public CounterLocalService getCounterLocalService() {
134: return counterLocalService;
135: }
136:
137: public void setCounterLocalService(
138: CounterLocalService counterLocalService) {
139: this .counterLocalService = counterLocalService;
140: }
141:
142: public CounterService getCounterService() {
143: return counterService;
144: }
145:
146: public void setCounterService(CounterService counterService) {
147: this .counterService = counterService;
148: }
149:
150: public ResourceLocalService getResourceLocalService() {
151: return resourceLocalService;
152: }
153:
154: public void setResourceLocalService(
155: ResourceLocalService resourceLocalService) {
156: this .resourceLocalService = resourceLocalService;
157: }
158:
159: public ResourceService getResourceService() {
160: return resourceService;
161: }
162:
163: public void setResourceService(ResourceService resourceService) {
164: this .resourceService = resourceService;
165: }
166:
167: public ResourcePersistence getResourcePersistence() {
168: return resourcePersistence;
169: }
170:
171: public void setResourcePersistence(
172: ResourcePersistence resourcePersistence) {
173: this .resourcePersistence = resourcePersistence;
174: }
175:
176: public ResourceFinder getResourceFinder() {
177: return resourceFinder;
178: }
179:
180: public void setResourceFinder(ResourceFinder resourceFinder) {
181: this .resourceFinder = resourceFinder;
182: }
183:
184: public UserLocalService getUserLocalService() {
185: return userLocalService;
186: }
187:
188: public void setUserLocalService(UserLocalService userLocalService) {
189: this .userLocalService = userLocalService;
190: }
191:
192: public UserService getUserService() {
193: return userService;
194: }
195:
196: public void setUserService(UserService userService) {
197: this .userService = userService;
198: }
199:
200: public UserPersistence getUserPersistence() {
201: return userPersistence;
202: }
203:
204: public void setUserPersistence(UserPersistence userPersistence) {
205: this .userPersistence = userPersistence;
206: }
207:
208: public UserFinder getUserFinder() {
209: return userFinder;
210: }
211:
212: public void setUserFinder(UserFinder userFinder) {
213: this .userFinder = userFinder;
214: }
215:
216: public TagsAssetLocalService getTagsAssetLocalService() {
217: return tagsAssetLocalService;
218: }
219:
220: public void setTagsAssetLocalService(
221: TagsAssetLocalService tagsAssetLocalService) {
222: this .tagsAssetLocalService = tagsAssetLocalService;
223: }
224:
225: public TagsAssetService getTagsAssetService() {
226: return tagsAssetService;
227: }
228:
229: public void setTagsAssetService(TagsAssetService tagsAssetService) {
230: this .tagsAssetService = tagsAssetService;
231: }
232:
233: public TagsAssetPersistence getTagsAssetPersistence() {
234: return tagsAssetPersistence;
235: }
236:
237: public void setTagsAssetPersistence(
238: TagsAssetPersistence tagsAssetPersistence) {
239: this .tagsAssetPersistence = tagsAssetPersistence;
240: }
241:
242: public TagsAssetFinder getTagsAssetFinder() {
243: return tagsAssetFinder;
244: }
245:
246: public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
247: this .tagsAssetFinder = tagsAssetFinder;
248: }
249:
250: public void afterPropertiesSet() {
251: if (bookmarksEntryLocalService == null) {
252: bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
253: .getImpl();
254: }
255:
256: if (bookmarksEntryPersistence == null) {
257: bookmarksEntryPersistence = BookmarksEntryUtil
258: .getPersistence();
259: }
260:
261: if (bookmarksEntryFinder == null) {
262: bookmarksEntryFinder = BookmarksEntryFinderUtil.getFinder();
263: }
264:
265: if (bookmarksFolderLocalService == null) {
266: bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
267: .getImpl();
268: }
269:
270: if (bookmarksFolderService == null) {
271: bookmarksFolderService = BookmarksFolderServiceFactory
272: .getImpl();
273: }
274:
275: if (bookmarksFolderPersistence == null) {
276: bookmarksFolderPersistence = BookmarksFolderUtil
277: .getPersistence();
278: }
279:
280: if (counterLocalService == null) {
281: counterLocalService = CounterLocalServiceFactory.getImpl();
282: }
283:
284: if (counterService == null) {
285: counterService = CounterServiceFactory.getImpl();
286: }
287:
288: if (resourceLocalService == null) {
289: resourceLocalService = ResourceLocalServiceFactory
290: .getImpl();
291: }
292:
293: if (resourceService == null) {
294: resourceService = ResourceServiceFactory.getImpl();
295: }
296:
297: if (resourcePersistence == null) {
298: resourcePersistence = ResourceUtil.getPersistence();
299: }
300:
301: if (resourceFinder == null) {
302: resourceFinder = ResourceFinderUtil.getFinder();
303: }
304:
305: if (userLocalService == null) {
306: userLocalService = UserLocalServiceFactory.getImpl();
307: }
308:
309: if (userService == null) {
310: userService = UserServiceFactory.getImpl();
311: }
312:
313: if (userPersistence == null) {
314: userPersistence = UserUtil.getPersistence();
315: }
316:
317: if (userFinder == null) {
318: userFinder = UserFinderUtil.getFinder();
319: }
320:
321: if (tagsAssetLocalService == null) {
322: tagsAssetLocalService = TagsAssetLocalServiceFactory
323: .getImpl();
324: }
325:
326: if (tagsAssetService == null) {
327: tagsAssetService = TagsAssetServiceFactory.getImpl();
328: }
329:
330: if (tagsAssetPersistence == null) {
331: tagsAssetPersistence = TagsAssetUtil.getPersistence();
332: }
333:
334: if (tagsAssetFinder == null) {
335: tagsAssetFinder = TagsAssetFinderUtil.getFinder();
336: }
337: }
338:
339: protected BookmarksEntryLocalService bookmarksEntryLocalService;
340: protected BookmarksEntryPersistence bookmarksEntryPersistence;
341: protected BookmarksEntryFinder bookmarksEntryFinder;
342: protected BookmarksFolderLocalService bookmarksFolderLocalService;
343: protected BookmarksFolderService bookmarksFolderService;
344: protected BookmarksFolderPersistence bookmarksFolderPersistence;
345: protected CounterLocalService counterLocalService;
346: protected CounterService counterService;
347: protected ResourceLocalService resourceLocalService;
348: protected ResourceService resourceService;
349: protected ResourcePersistence resourcePersistence;
350: protected ResourceFinder resourceFinder;
351: protected UserLocalService userLocalService;
352: protected UserService userService;
353: protected UserPersistence userPersistence;
354: protected UserFinder userFinder;
355: protected TagsAssetLocalService tagsAssetLocalService;
356: protected TagsAssetService tagsAssetService;
357: protected TagsAssetPersistence tagsAssetPersistence;
358: protected TagsAssetFinder tagsAssetFinder;
359: }
|