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.SystemException;
029: import com.liferay.portal.kernel.dao.DynamicQueryInitializer;
030: import com.liferay.portal.service.ResourceLocalService;
031: import com.liferay.portal.service.ResourceLocalServiceFactory;
032: import com.liferay.portal.service.ResourceService;
033: import com.liferay.portal.service.ResourceServiceFactory;
034: import com.liferay.portal.service.UserLocalService;
035: import com.liferay.portal.service.UserLocalServiceFactory;
036: import com.liferay.portal.service.UserService;
037: import com.liferay.portal.service.UserServiceFactory;
038: import com.liferay.portal.service.persistence.ResourceFinder;
039: import com.liferay.portal.service.persistence.ResourceFinderUtil;
040: import com.liferay.portal.service.persistence.ResourcePersistence;
041: import com.liferay.portal.service.persistence.ResourceUtil;
042: import com.liferay.portal.service.persistence.UserFinder;
043: import com.liferay.portal.service.persistence.UserFinderUtil;
044: import com.liferay.portal.service.persistence.UserPersistence;
045: import com.liferay.portal.service.persistence.UserUtil;
046:
047: import com.liferay.portlet.bookmarks.model.BookmarksFolder;
048: import com.liferay.portlet.bookmarks.model.impl.BookmarksFolderImpl;
049: import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService;
050: import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalServiceFactory;
051: import com.liferay.portlet.bookmarks.service.BookmarksEntryService;
052: import com.liferay.portlet.bookmarks.service.BookmarksEntryServiceFactory;
053: import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService;
054: import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder;
055: import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinderUtil;
056: import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence;
057: import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryUtil;
058: import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
059: import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderUtil;
060: import com.liferay.portlet.tags.service.TagsEntryLocalService;
061: import com.liferay.portlet.tags.service.TagsEntryLocalServiceFactory;
062: import com.liferay.portlet.tags.service.TagsEntryService;
063: import com.liferay.portlet.tags.service.TagsEntryServiceFactory;
064: import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
065: import com.liferay.portlet.tags.service.persistence.TagsEntryFinderUtil;
066: import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
067: import com.liferay.portlet.tags.service.persistence.TagsEntryUtil;
068:
069: import org.springframework.beans.factory.InitializingBean;
070:
071: import java.util.List;
072:
073: /**
074: * <a href="BookmarksFolderLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
075: *
076: * @author Brian Wing Shun Chan
077: *
078: */
079: public abstract class BookmarksFolderLocalServiceBaseImpl implements
080: BookmarksFolderLocalService, InitializingBean {
081: public BookmarksFolder addBookmarksFolder(BookmarksFolder model)
082: throws SystemException {
083: BookmarksFolder bookmarksFolder = new BookmarksFolderImpl();
084:
085: bookmarksFolder.setNew(true);
086:
087: bookmarksFolder.setUuid(model.getUuid());
088: bookmarksFolder.setFolderId(model.getFolderId());
089: bookmarksFolder.setGroupId(model.getGroupId());
090: bookmarksFolder.setCompanyId(model.getCompanyId());
091: bookmarksFolder.setUserId(model.getUserId());
092: bookmarksFolder.setCreateDate(model.getCreateDate());
093: bookmarksFolder.setModifiedDate(model.getModifiedDate());
094: bookmarksFolder.setParentFolderId(model.getParentFolderId());
095: bookmarksFolder.setName(model.getName());
096: bookmarksFolder.setDescription(model.getDescription());
097:
098: return bookmarksFolderPersistence.update(bookmarksFolder);
099: }
100:
101: public List dynamicQuery(DynamicQueryInitializer queryInitializer)
102: throws SystemException {
103: return bookmarksFolderPersistence
104: .findWithDynamicQuery(queryInitializer);
105: }
106:
107: public List dynamicQuery(DynamicQueryInitializer queryInitializer,
108: int begin, int end) throws SystemException {
109: return bookmarksFolderPersistence.findWithDynamicQuery(
110: queryInitializer, begin, end);
111: }
112:
113: public BookmarksFolder updateBookmarksFolder(BookmarksFolder model)
114: throws SystemException {
115: return bookmarksFolderPersistence.update(model, true);
116: }
117:
118: public BookmarksEntryLocalService getBookmarksEntryLocalService() {
119: return bookmarksEntryLocalService;
120: }
121:
122: public void setBookmarksEntryLocalService(
123: BookmarksEntryLocalService bookmarksEntryLocalService) {
124: this .bookmarksEntryLocalService = bookmarksEntryLocalService;
125: }
126:
127: public BookmarksEntryService getBookmarksEntryService() {
128: return bookmarksEntryService;
129: }
130:
131: public void setBookmarksEntryService(
132: BookmarksEntryService bookmarksEntryService) {
133: this .bookmarksEntryService = bookmarksEntryService;
134: }
135:
136: public BookmarksEntryPersistence getBookmarksEntryPersistence() {
137: return bookmarksEntryPersistence;
138: }
139:
140: public void setBookmarksEntryPersistence(
141: BookmarksEntryPersistence bookmarksEntryPersistence) {
142: this .bookmarksEntryPersistence = bookmarksEntryPersistence;
143: }
144:
145: public BookmarksEntryFinder getBookmarksEntryFinder() {
146: return bookmarksEntryFinder;
147: }
148:
149: public void setBookmarksEntryFinder(
150: BookmarksEntryFinder bookmarksEntryFinder) {
151: this .bookmarksEntryFinder = bookmarksEntryFinder;
152: }
153:
154: public BookmarksFolderPersistence getBookmarksFolderPersistence() {
155: return bookmarksFolderPersistence;
156: }
157:
158: public void setBookmarksFolderPersistence(
159: BookmarksFolderPersistence bookmarksFolderPersistence) {
160: this .bookmarksFolderPersistence = bookmarksFolderPersistence;
161: }
162:
163: public CounterLocalService getCounterLocalService() {
164: return counterLocalService;
165: }
166:
167: public void setCounterLocalService(
168: CounterLocalService counterLocalService) {
169: this .counterLocalService = counterLocalService;
170: }
171:
172: public CounterService getCounterService() {
173: return counterService;
174: }
175:
176: public void setCounterService(CounterService counterService) {
177: this .counterService = counterService;
178: }
179:
180: public ResourceLocalService getResourceLocalService() {
181: return resourceLocalService;
182: }
183:
184: public void setResourceLocalService(
185: ResourceLocalService resourceLocalService) {
186: this .resourceLocalService = resourceLocalService;
187: }
188:
189: public ResourceService getResourceService() {
190: return resourceService;
191: }
192:
193: public void setResourceService(ResourceService resourceService) {
194: this .resourceService = resourceService;
195: }
196:
197: public ResourcePersistence getResourcePersistence() {
198: return resourcePersistence;
199: }
200:
201: public void setResourcePersistence(
202: ResourcePersistence resourcePersistence) {
203: this .resourcePersistence = resourcePersistence;
204: }
205:
206: public ResourceFinder getResourceFinder() {
207: return resourceFinder;
208: }
209:
210: public void setResourceFinder(ResourceFinder resourceFinder) {
211: this .resourceFinder = resourceFinder;
212: }
213:
214: public UserLocalService getUserLocalService() {
215: return userLocalService;
216: }
217:
218: public void setUserLocalService(UserLocalService userLocalService) {
219: this .userLocalService = userLocalService;
220: }
221:
222: public UserService getUserService() {
223: return userService;
224: }
225:
226: public void setUserService(UserService userService) {
227: this .userService = userService;
228: }
229:
230: public UserPersistence getUserPersistence() {
231: return userPersistence;
232: }
233:
234: public void setUserPersistence(UserPersistence userPersistence) {
235: this .userPersistence = userPersistence;
236: }
237:
238: public UserFinder getUserFinder() {
239: return userFinder;
240: }
241:
242: public void setUserFinder(UserFinder userFinder) {
243: this .userFinder = userFinder;
244: }
245:
246: public TagsEntryLocalService getTagsEntryLocalService() {
247: return tagsEntryLocalService;
248: }
249:
250: public void setTagsEntryLocalService(
251: TagsEntryLocalService tagsEntryLocalService) {
252: this .tagsEntryLocalService = tagsEntryLocalService;
253: }
254:
255: public TagsEntryService getTagsEntryService() {
256: return tagsEntryService;
257: }
258:
259: public void setTagsEntryService(TagsEntryService tagsEntryService) {
260: this .tagsEntryService = tagsEntryService;
261: }
262:
263: public TagsEntryPersistence getTagsEntryPersistence() {
264: return tagsEntryPersistence;
265: }
266:
267: public void setTagsEntryPersistence(
268: TagsEntryPersistence tagsEntryPersistence) {
269: this .tagsEntryPersistence = tagsEntryPersistence;
270: }
271:
272: public TagsEntryFinder getTagsEntryFinder() {
273: return tagsEntryFinder;
274: }
275:
276: public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
277: this .tagsEntryFinder = tagsEntryFinder;
278: }
279:
280: public void afterPropertiesSet() {
281: if (bookmarksEntryLocalService == null) {
282: bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
283: .getImpl();
284: }
285:
286: if (bookmarksEntryService == null) {
287: bookmarksEntryService = BookmarksEntryServiceFactory
288: .getImpl();
289: }
290:
291: if (bookmarksEntryPersistence == null) {
292: bookmarksEntryPersistence = BookmarksEntryUtil
293: .getPersistence();
294: }
295:
296: if (bookmarksEntryFinder == null) {
297: bookmarksEntryFinder = BookmarksEntryFinderUtil.getFinder();
298: }
299:
300: if (bookmarksFolderPersistence == null) {
301: bookmarksFolderPersistence = BookmarksFolderUtil
302: .getPersistence();
303: }
304:
305: if (counterLocalService == null) {
306: counterLocalService = CounterLocalServiceFactory.getImpl();
307: }
308:
309: if (counterService == null) {
310: counterService = CounterServiceFactory.getImpl();
311: }
312:
313: if (resourceLocalService == null) {
314: resourceLocalService = ResourceLocalServiceFactory
315: .getImpl();
316: }
317:
318: if (resourceService == null) {
319: resourceService = ResourceServiceFactory.getImpl();
320: }
321:
322: if (resourcePersistence == null) {
323: resourcePersistence = ResourceUtil.getPersistence();
324: }
325:
326: if (resourceFinder == null) {
327: resourceFinder = ResourceFinderUtil.getFinder();
328: }
329:
330: if (userLocalService == null) {
331: userLocalService = UserLocalServiceFactory.getImpl();
332: }
333:
334: if (userService == null) {
335: userService = UserServiceFactory.getImpl();
336: }
337:
338: if (userPersistence == null) {
339: userPersistence = UserUtil.getPersistence();
340: }
341:
342: if (userFinder == null) {
343: userFinder = UserFinderUtil.getFinder();
344: }
345:
346: if (tagsEntryLocalService == null) {
347: tagsEntryLocalService = TagsEntryLocalServiceFactory
348: .getImpl();
349: }
350:
351: if (tagsEntryService == null) {
352: tagsEntryService = TagsEntryServiceFactory.getImpl();
353: }
354:
355: if (tagsEntryPersistence == null) {
356: tagsEntryPersistence = TagsEntryUtil.getPersistence();
357: }
358:
359: if (tagsEntryFinder == null) {
360: tagsEntryFinder = TagsEntryFinderUtil.getFinder();
361: }
362: }
363:
364: protected BookmarksEntryLocalService bookmarksEntryLocalService;
365: protected BookmarksEntryService bookmarksEntryService;
366: protected BookmarksEntryPersistence bookmarksEntryPersistence;
367: protected BookmarksEntryFinder bookmarksEntryFinder;
368: protected BookmarksFolderPersistence bookmarksFolderPersistence;
369: protected CounterLocalService counterLocalService;
370: protected CounterService counterService;
371: protected ResourceLocalService resourceLocalService;
372: protected ResourceService resourceService;
373: protected ResourcePersistence resourcePersistence;
374: protected ResourceFinder resourceFinder;
375: protected UserLocalService userLocalService;
376: protected UserService userService;
377: protected UserPersistence userPersistence;
378: protected UserFinder userFinder;
379: protected TagsEntryLocalService tagsEntryLocalService;
380: protected TagsEntryService tagsEntryService;
381: protected TagsEntryPersistence tagsEntryPersistence;
382: protected TagsEntryFinder tagsEntryFinder;
383: }
|