1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.bookmarks.service.base;
16  
17  import com.liferay.counter.service.CounterLocalService;
18  import com.liferay.counter.service.CounterService;
19  
20  import com.liferay.portal.SystemException;
21  import com.liferay.portal.kernel.annotation.BeanReference;
22  import com.liferay.portal.kernel.dao.db.DB;
23  import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
24  import com.liferay.portal.service.ResourceLocalService;
25  import com.liferay.portal.service.ResourceService;
26  import com.liferay.portal.service.UserLocalService;
27  import com.liferay.portal.service.UserService;
28  import com.liferay.portal.service.base.PrincipalBean;
29  import com.liferay.portal.service.persistence.ResourceFinder;
30  import com.liferay.portal.service.persistence.ResourcePersistence;
31  import com.liferay.portal.service.persistence.UserFinder;
32  import com.liferay.portal.service.persistence.UserPersistence;
33  
34  import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService;
35  import com.liferay.portlet.bookmarks.service.BookmarksEntryService;
36  import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService;
37  import com.liferay.portlet.bookmarks.service.BookmarksFolderService;
38  import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder;
39  import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence;
40  import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
41  import com.liferay.portlet.expando.service.ExpandoValueLocalService;
42  import com.liferay.portlet.expando.service.ExpandoValueService;
43  import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
44  import com.liferay.portlet.tags.service.TagsAssetLocalService;
45  import com.liferay.portlet.tags.service.TagsAssetService;
46  import com.liferay.portlet.tags.service.TagsEntryLocalService;
47  import com.liferay.portlet.tags.service.TagsEntryService;
48  import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
49  import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
50  import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
51  import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
52  
53  /**
54   * <a href="BookmarksEntryServiceBaseImpl.java.html"><b><i>View Source</i></b>
55   * </a>
56   *
57   * @author Brian Wing Shun Chan
58   */
59  public abstract class BookmarksEntryServiceBaseImpl extends PrincipalBean
60      implements BookmarksEntryService {
61      public BookmarksEntryLocalService getBookmarksEntryLocalService() {
62          return bookmarksEntryLocalService;
63      }
64  
65      public void setBookmarksEntryLocalService(
66          BookmarksEntryLocalService bookmarksEntryLocalService) {
67          this.bookmarksEntryLocalService = bookmarksEntryLocalService;
68      }
69  
70      public BookmarksEntryService getBookmarksEntryService() {
71          return bookmarksEntryService;
72      }
73  
74      public void setBookmarksEntryService(
75          BookmarksEntryService bookmarksEntryService) {
76          this.bookmarksEntryService = bookmarksEntryService;
77      }
78  
79      public BookmarksEntryPersistence getBookmarksEntryPersistence() {
80          return bookmarksEntryPersistence;
81      }
82  
83      public void setBookmarksEntryPersistence(
84          BookmarksEntryPersistence bookmarksEntryPersistence) {
85          this.bookmarksEntryPersistence = bookmarksEntryPersistence;
86      }
87  
88      public BookmarksEntryFinder getBookmarksEntryFinder() {
89          return bookmarksEntryFinder;
90      }
91  
92      public void setBookmarksEntryFinder(
93          BookmarksEntryFinder bookmarksEntryFinder) {
94          this.bookmarksEntryFinder = bookmarksEntryFinder;
95      }
96  
97      public BookmarksFolderLocalService getBookmarksFolderLocalService() {
98          return bookmarksFolderLocalService;
99      }
100 
101     public void setBookmarksFolderLocalService(
102         BookmarksFolderLocalService bookmarksFolderLocalService) {
103         this.bookmarksFolderLocalService = bookmarksFolderLocalService;
104     }
105 
106     public BookmarksFolderService getBookmarksFolderService() {
107         return bookmarksFolderService;
108     }
109 
110     public void setBookmarksFolderService(
111         BookmarksFolderService bookmarksFolderService) {
112         this.bookmarksFolderService = bookmarksFolderService;
113     }
114 
115     public BookmarksFolderPersistence getBookmarksFolderPersistence() {
116         return bookmarksFolderPersistence;
117     }
118 
119     public void setBookmarksFolderPersistence(
120         BookmarksFolderPersistence bookmarksFolderPersistence) {
121         this.bookmarksFolderPersistence = bookmarksFolderPersistence;
122     }
123 
124     public CounterLocalService getCounterLocalService() {
125         return counterLocalService;
126     }
127 
128     public void setCounterLocalService(CounterLocalService counterLocalService) {
129         this.counterLocalService = counterLocalService;
130     }
131 
132     public CounterService getCounterService() {
133         return counterService;
134     }
135 
136     public void setCounterService(CounterService counterService) {
137         this.counterService = counterService;
138     }
139 
140     public ResourceLocalService getResourceLocalService() {
141         return resourceLocalService;
142     }
143 
144     public void setResourceLocalService(
145         ResourceLocalService resourceLocalService) {
146         this.resourceLocalService = resourceLocalService;
147     }
148 
149     public ResourceService getResourceService() {
150         return resourceService;
151     }
152 
153     public void setResourceService(ResourceService resourceService) {
154         this.resourceService = resourceService;
155     }
156 
157     public ResourcePersistence getResourcePersistence() {
158         return resourcePersistence;
159     }
160 
161     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
162         this.resourcePersistence = resourcePersistence;
163     }
164 
165     public ResourceFinder getResourceFinder() {
166         return resourceFinder;
167     }
168 
169     public void setResourceFinder(ResourceFinder resourceFinder) {
170         this.resourceFinder = resourceFinder;
171     }
172 
173     public UserLocalService getUserLocalService() {
174         return userLocalService;
175     }
176 
177     public void setUserLocalService(UserLocalService userLocalService) {
178         this.userLocalService = userLocalService;
179     }
180 
181     public UserService getUserService() {
182         return userService;
183     }
184 
185     public void setUserService(UserService userService) {
186         this.userService = userService;
187     }
188 
189     public UserPersistence getUserPersistence() {
190         return userPersistence;
191     }
192 
193     public void setUserPersistence(UserPersistence userPersistence) {
194         this.userPersistence = userPersistence;
195     }
196 
197     public UserFinder getUserFinder() {
198         return userFinder;
199     }
200 
201     public void setUserFinder(UserFinder userFinder) {
202         this.userFinder = userFinder;
203     }
204 
205     public ExpandoValueLocalService getExpandoValueLocalService() {
206         return expandoValueLocalService;
207     }
208 
209     public void setExpandoValueLocalService(
210         ExpandoValueLocalService expandoValueLocalService) {
211         this.expandoValueLocalService = expandoValueLocalService;
212     }
213 
214     public ExpandoValueService getExpandoValueService() {
215         return expandoValueService;
216     }
217 
218     public void setExpandoValueService(ExpandoValueService expandoValueService) {
219         this.expandoValueService = expandoValueService;
220     }
221 
222     public ExpandoValuePersistence getExpandoValuePersistence() {
223         return expandoValuePersistence;
224     }
225 
226     public void setExpandoValuePersistence(
227         ExpandoValuePersistence expandoValuePersistence) {
228         this.expandoValuePersistence = expandoValuePersistence;
229     }
230 
231     public TagsAssetLocalService getTagsAssetLocalService() {
232         return tagsAssetLocalService;
233     }
234 
235     public void setTagsAssetLocalService(
236         TagsAssetLocalService tagsAssetLocalService) {
237         this.tagsAssetLocalService = tagsAssetLocalService;
238     }
239 
240     public TagsAssetService getTagsAssetService() {
241         return tagsAssetService;
242     }
243 
244     public void setTagsAssetService(TagsAssetService tagsAssetService) {
245         this.tagsAssetService = tagsAssetService;
246     }
247 
248     public TagsAssetPersistence getTagsAssetPersistence() {
249         return tagsAssetPersistence;
250     }
251 
252     public void setTagsAssetPersistence(
253         TagsAssetPersistence tagsAssetPersistence) {
254         this.tagsAssetPersistence = tagsAssetPersistence;
255     }
256 
257     public TagsAssetFinder getTagsAssetFinder() {
258         return tagsAssetFinder;
259     }
260 
261     public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
262         this.tagsAssetFinder = tagsAssetFinder;
263     }
264 
265     public TagsEntryLocalService getTagsEntryLocalService() {
266         return tagsEntryLocalService;
267     }
268 
269     public void setTagsEntryLocalService(
270         TagsEntryLocalService tagsEntryLocalService) {
271         this.tagsEntryLocalService = tagsEntryLocalService;
272     }
273 
274     public TagsEntryService getTagsEntryService() {
275         return tagsEntryService;
276     }
277 
278     public void setTagsEntryService(TagsEntryService tagsEntryService) {
279         this.tagsEntryService = tagsEntryService;
280     }
281 
282     public TagsEntryPersistence getTagsEntryPersistence() {
283         return tagsEntryPersistence;
284     }
285 
286     public void setTagsEntryPersistence(
287         TagsEntryPersistence tagsEntryPersistence) {
288         this.tagsEntryPersistence = tagsEntryPersistence;
289     }
290 
291     public TagsEntryFinder getTagsEntryFinder() {
292         return tagsEntryFinder;
293     }
294 
295     public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
296         this.tagsEntryFinder = tagsEntryFinder;
297     }
298 
299     protected void runSQL(String sql) throws SystemException {
300         try {
301             DB db = DBFactoryUtil.getDB();
302 
303             db.runSQL(sql);
304         }
305         catch (Exception e) {
306             throw new SystemException(e);
307         }
308     }
309 
310     @BeanReference(type = BookmarksEntryLocalService.class)
311     protected BookmarksEntryLocalService bookmarksEntryLocalService;
312     @BeanReference(type = BookmarksEntryService.class)
313     protected BookmarksEntryService bookmarksEntryService;
314     @BeanReference(type = BookmarksEntryPersistence.class)
315     protected BookmarksEntryPersistence bookmarksEntryPersistence;
316     @BeanReference(type = BookmarksEntryFinder.class)
317     protected BookmarksEntryFinder bookmarksEntryFinder;
318     @BeanReference(type = BookmarksFolderLocalService.class)
319     protected BookmarksFolderLocalService bookmarksFolderLocalService;
320     @BeanReference(type = BookmarksFolderService.class)
321     protected BookmarksFolderService bookmarksFolderService;
322     @BeanReference(type = BookmarksFolderPersistence.class)
323     protected BookmarksFolderPersistence bookmarksFolderPersistence;
324     @BeanReference(type = CounterLocalService.class)
325     protected CounterLocalService counterLocalService;
326     @BeanReference(type = CounterService.class)
327     protected CounterService counterService;
328     @BeanReference(type = ResourceLocalService.class)
329     protected ResourceLocalService resourceLocalService;
330     @BeanReference(type = ResourceService.class)
331     protected ResourceService resourceService;
332     @BeanReference(type = ResourcePersistence.class)
333     protected ResourcePersistence resourcePersistence;
334     @BeanReference(type = ResourceFinder.class)
335     protected ResourceFinder resourceFinder;
336     @BeanReference(type = UserLocalService.class)
337     protected UserLocalService userLocalService;
338     @BeanReference(type = UserService.class)
339     protected UserService userService;
340     @BeanReference(type = UserPersistence.class)
341     protected UserPersistence userPersistence;
342     @BeanReference(type = UserFinder.class)
343     protected UserFinder userFinder;
344     @BeanReference(type = ExpandoValueLocalService.class)
345     protected ExpandoValueLocalService expandoValueLocalService;
346     @BeanReference(type = ExpandoValueService.class)
347     protected ExpandoValueService expandoValueService;
348     @BeanReference(type = ExpandoValuePersistence.class)
349     protected ExpandoValuePersistence expandoValuePersistence;
350     @BeanReference(type = TagsAssetLocalService.class)
351     protected TagsAssetLocalService tagsAssetLocalService;
352     @BeanReference(type = TagsAssetService.class)
353     protected TagsAssetService tagsAssetService;
354     @BeanReference(type = TagsAssetPersistence.class)
355     protected TagsAssetPersistence tagsAssetPersistence;
356     @BeanReference(type = TagsAssetFinder.class)
357     protected TagsAssetFinder tagsAssetFinder;
358     @BeanReference(type = TagsEntryLocalService.class)
359     protected TagsEntryLocalService tagsEntryLocalService;
360     @BeanReference(type = TagsEntryService.class)
361     protected TagsEntryService tagsEntryService;
362     @BeanReference(type = TagsEntryPersistence.class)
363     protected TagsEntryPersistence tagsEntryPersistence;
364     @BeanReference(type = TagsEntryFinder.class)
365     protected TagsEntryFinder tagsEntryFinder;
366 }