1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.bookmarks.service.base;
16  
17  import com.liferay.counter.service.CounterLocalService;
18  
19  import com.liferay.portal.kernel.annotation.BeanReference;
20  import com.liferay.portal.kernel.dao.db.DB;
21  import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
22  import com.liferay.portal.kernel.exception.SystemException;
23  import com.liferay.portal.service.GroupLocalService;
24  import com.liferay.portal.service.GroupService;
25  import com.liferay.portal.service.ResourceLocalService;
26  import com.liferay.portal.service.ResourceService;
27  import com.liferay.portal.service.UserLocalService;
28  import com.liferay.portal.service.UserService;
29  import com.liferay.portal.service.base.PrincipalBean;
30  import com.liferay.portal.service.persistence.GroupFinder;
31  import com.liferay.portal.service.persistence.GroupPersistence;
32  import com.liferay.portal.service.persistence.ResourceFinder;
33  import com.liferay.portal.service.persistence.ResourcePersistence;
34  import com.liferay.portal.service.persistence.UserFinder;
35  import com.liferay.portal.service.persistence.UserPersistence;
36  
37  import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService;
38  import com.liferay.portlet.bookmarks.service.BookmarksEntryService;
39  import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService;
40  import com.liferay.portlet.bookmarks.service.BookmarksFolderService;
41  import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder;
42  import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence;
43  import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
44  import com.liferay.portlet.expando.service.ExpandoValueLocalService;
45  import com.liferay.portlet.expando.service.ExpandoValueService;
46  import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
47  
48  /**
49   * <a href="BookmarksFolderServiceBaseImpl.java.html"><b><i>View Source</i></b>
50   * </a>
51   *
52   * @author Brian Wing Shun Chan
53   */
54  public abstract class BookmarksFolderServiceBaseImpl extends PrincipalBean
55      implements BookmarksFolderService {
56      public BookmarksEntryLocalService getBookmarksEntryLocalService() {
57          return bookmarksEntryLocalService;
58      }
59  
60      public void setBookmarksEntryLocalService(
61          BookmarksEntryLocalService bookmarksEntryLocalService) {
62          this.bookmarksEntryLocalService = bookmarksEntryLocalService;
63      }
64  
65      public BookmarksEntryService getBookmarksEntryService() {
66          return bookmarksEntryService;
67      }
68  
69      public void setBookmarksEntryService(
70          BookmarksEntryService bookmarksEntryService) {
71          this.bookmarksEntryService = bookmarksEntryService;
72      }
73  
74      public BookmarksEntryPersistence getBookmarksEntryPersistence() {
75          return bookmarksEntryPersistence;
76      }
77  
78      public void setBookmarksEntryPersistence(
79          BookmarksEntryPersistence bookmarksEntryPersistence) {
80          this.bookmarksEntryPersistence = bookmarksEntryPersistence;
81      }
82  
83      public BookmarksEntryFinder getBookmarksEntryFinder() {
84          return bookmarksEntryFinder;
85      }
86  
87      public void setBookmarksEntryFinder(
88          BookmarksEntryFinder bookmarksEntryFinder) {
89          this.bookmarksEntryFinder = bookmarksEntryFinder;
90      }
91  
92      public BookmarksFolderLocalService getBookmarksFolderLocalService() {
93          return bookmarksFolderLocalService;
94      }
95  
96      public void setBookmarksFolderLocalService(
97          BookmarksFolderLocalService bookmarksFolderLocalService) {
98          this.bookmarksFolderLocalService = bookmarksFolderLocalService;
99      }
100 
101     public BookmarksFolderService getBookmarksFolderService() {
102         return bookmarksFolderService;
103     }
104 
105     public void setBookmarksFolderService(
106         BookmarksFolderService bookmarksFolderService) {
107         this.bookmarksFolderService = bookmarksFolderService;
108     }
109 
110     public BookmarksFolderPersistence getBookmarksFolderPersistence() {
111         return bookmarksFolderPersistence;
112     }
113 
114     public void setBookmarksFolderPersistence(
115         BookmarksFolderPersistence bookmarksFolderPersistence) {
116         this.bookmarksFolderPersistence = bookmarksFolderPersistence;
117     }
118 
119     public CounterLocalService getCounterLocalService() {
120         return counterLocalService;
121     }
122 
123     public void setCounterLocalService(CounterLocalService counterLocalService) {
124         this.counterLocalService = counterLocalService;
125     }
126 
127     public GroupLocalService getGroupLocalService() {
128         return groupLocalService;
129     }
130 
131     public void setGroupLocalService(GroupLocalService groupLocalService) {
132         this.groupLocalService = groupLocalService;
133     }
134 
135     public GroupService getGroupService() {
136         return groupService;
137     }
138 
139     public void setGroupService(GroupService groupService) {
140         this.groupService = groupService;
141     }
142 
143     public GroupPersistence getGroupPersistence() {
144         return groupPersistence;
145     }
146 
147     public void setGroupPersistence(GroupPersistence groupPersistence) {
148         this.groupPersistence = groupPersistence;
149     }
150 
151     public GroupFinder getGroupFinder() {
152         return groupFinder;
153     }
154 
155     public void setGroupFinder(GroupFinder groupFinder) {
156         this.groupFinder = groupFinder;
157     }
158 
159     public ResourceLocalService getResourceLocalService() {
160         return resourceLocalService;
161     }
162 
163     public void setResourceLocalService(
164         ResourceLocalService resourceLocalService) {
165         this.resourceLocalService = resourceLocalService;
166     }
167 
168     public ResourceService getResourceService() {
169         return resourceService;
170     }
171 
172     public void setResourceService(ResourceService resourceService) {
173         this.resourceService = resourceService;
174     }
175 
176     public ResourcePersistence getResourcePersistence() {
177         return resourcePersistence;
178     }
179 
180     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
181         this.resourcePersistence = resourcePersistence;
182     }
183 
184     public ResourceFinder getResourceFinder() {
185         return resourceFinder;
186     }
187 
188     public void setResourceFinder(ResourceFinder resourceFinder) {
189         this.resourceFinder = resourceFinder;
190     }
191 
192     public UserLocalService getUserLocalService() {
193         return userLocalService;
194     }
195 
196     public void setUserLocalService(UserLocalService userLocalService) {
197         this.userLocalService = userLocalService;
198     }
199 
200     public UserService getUserService() {
201         return userService;
202     }
203 
204     public void setUserService(UserService userService) {
205         this.userService = userService;
206     }
207 
208     public UserPersistence getUserPersistence() {
209         return userPersistence;
210     }
211 
212     public void setUserPersistence(UserPersistence userPersistence) {
213         this.userPersistence = userPersistence;
214     }
215 
216     public UserFinder getUserFinder() {
217         return userFinder;
218     }
219 
220     public void setUserFinder(UserFinder userFinder) {
221         this.userFinder = userFinder;
222     }
223 
224     public ExpandoValueLocalService getExpandoValueLocalService() {
225         return expandoValueLocalService;
226     }
227 
228     public void setExpandoValueLocalService(
229         ExpandoValueLocalService expandoValueLocalService) {
230         this.expandoValueLocalService = expandoValueLocalService;
231     }
232 
233     public ExpandoValueService getExpandoValueService() {
234         return expandoValueService;
235     }
236 
237     public void setExpandoValueService(ExpandoValueService expandoValueService) {
238         this.expandoValueService = expandoValueService;
239     }
240 
241     public ExpandoValuePersistence getExpandoValuePersistence() {
242         return expandoValuePersistence;
243     }
244 
245     public void setExpandoValuePersistence(
246         ExpandoValuePersistence expandoValuePersistence) {
247         this.expandoValuePersistence = expandoValuePersistence;
248     }
249 
250     protected void runSQL(String sql) throws SystemException {
251         try {
252             DB db = DBFactoryUtil.getDB();
253 
254             db.runSQL(sql);
255         }
256         catch (Exception e) {
257             throw new SystemException(e);
258         }
259     }
260 
261     @BeanReference(type = BookmarksEntryLocalService.class)
262     protected BookmarksEntryLocalService bookmarksEntryLocalService;
263     @BeanReference(type = BookmarksEntryService.class)
264     protected BookmarksEntryService bookmarksEntryService;
265     @BeanReference(type = BookmarksEntryPersistence.class)
266     protected BookmarksEntryPersistence bookmarksEntryPersistence;
267     @BeanReference(type = BookmarksEntryFinder.class)
268     protected BookmarksEntryFinder bookmarksEntryFinder;
269     @BeanReference(type = BookmarksFolderLocalService.class)
270     protected BookmarksFolderLocalService bookmarksFolderLocalService;
271     @BeanReference(type = BookmarksFolderService.class)
272     protected BookmarksFolderService bookmarksFolderService;
273     @BeanReference(type = BookmarksFolderPersistence.class)
274     protected BookmarksFolderPersistence bookmarksFolderPersistence;
275     @BeanReference(type = CounterLocalService.class)
276     protected CounterLocalService counterLocalService;
277     @BeanReference(type = GroupLocalService.class)
278     protected GroupLocalService groupLocalService;
279     @BeanReference(type = GroupService.class)
280     protected GroupService groupService;
281     @BeanReference(type = GroupPersistence.class)
282     protected GroupPersistence groupPersistence;
283     @BeanReference(type = GroupFinder.class)
284     protected GroupFinder groupFinder;
285     @BeanReference(type = ResourceLocalService.class)
286     protected ResourceLocalService resourceLocalService;
287     @BeanReference(type = ResourceService.class)
288     protected ResourceService resourceService;
289     @BeanReference(type = ResourcePersistence.class)
290     protected ResourcePersistence resourcePersistence;
291     @BeanReference(type = ResourceFinder.class)
292     protected ResourceFinder resourceFinder;
293     @BeanReference(type = UserLocalService.class)
294     protected UserLocalService userLocalService;
295     @BeanReference(type = UserService.class)
296     protected UserService userService;
297     @BeanReference(type = UserPersistence.class)
298     protected UserPersistence userPersistence;
299     @BeanReference(type = UserFinder.class)
300     protected UserFinder userFinder;
301     @BeanReference(type = ExpandoValueLocalService.class)
302     protected ExpandoValueLocalService expandoValueLocalService;
303     @BeanReference(type = ExpandoValueService.class)
304     protected ExpandoValueService expandoValueService;
305     @BeanReference(type = ExpandoValuePersistence.class)
306     protected ExpandoValuePersistence expandoValuePersistence;
307 }