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.ResourceLocalService;
24  import com.liferay.portal.service.ResourceService;
25  import com.liferay.portal.service.UserLocalService;
26  import com.liferay.portal.service.UserService;
27  import com.liferay.portal.service.base.PrincipalBean;
28  import com.liferay.portal.service.persistence.ResourceFinder;
29  import com.liferay.portal.service.persistence.ResourcePersistence;
30  import com.liferay.portal.service.persistence.UserFinder;
31  import com.liferay.portal.service.persistence.UserPersistence;
32  
33  import com.liferay.portlet.asset.service.AssetEntryLocalService;
34  import com.liferay.portlet.asset.service.AssetEntryService;
35  import com.liferay.portlet.asset.service.AssetTagLocalService;
36  import com.liferay.portlet.asset.service.AssetTagService;
37  import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
38  import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
39  import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
40  import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
41  import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService;
42  import com.liferay.portlet.bookmarks.service.BookmarksEntryService;
43  import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService;
44  import com.liferay.portlet.bookmarks.service.BookmarksFolderService;
45  import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder;
46  import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence;
47  import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
48  import com.liferay.portlet.expando.service.ExpandoValueLocalService;
49  import com.liferay.portlet.expando.service.ExpandoValueService;
50  import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
51  
52  /**
53   * <a href="BookmarksEntryServiceBaseImpl.java.html"><b><i>View Source</i></b>
54   * </a>
55   *
56   * @author Brian Wing Shun Chan
57   */
58  public abstract class BookmarksEntryServiceBaseImpl extends PrincipalBean
59      implements BookmarksEntryService {
60      public BookmarksEntryLocalService getBookmarksEntryLocalService() {
61          return bookmarksEntryLocalService;
62      }
63  
64      public void setBookmarksEntryLocalService(
65          BookmarksEntryLocalService bookmarksEntryLocalService) {
66          this.bookmarksEntryLocalService = bookmarksEntryLocalService;
67      }
68  
69      public BookmarksEntryService getBookmarksEntryService() {
70          return bookmarksEntryService;
71      }
72  
73      public void setBookmarksEntryService(
74          BookmarksEntryService bookmarksEntryService) {
75          this.bookmarksEntryService = bookmarksEntryService;
76      }
77  
78      public BookmarksEntryPersistence getBookmarksEntryPersistence() {
79          return bookmarksEntryPersistence;
80      }
81  
82      public void setBookmarksEntryPersistence(
83          BookmarksEntryPersistence bookmarksEntryPersistence) {
84          this.bookmarksEntryPersistence = bookmarksEntryPersistence;
85      }
86  
87      public BookmarksEntryFinder getBookmarksEntryFinder() {
88          return bookmarksEntryFinder;
89      }
90  
91      public void setBookmarksEntryFinder(
92          BookmarksEntryFinder bookmarksEntryFinder) {
93          this.bookmarksEntryFinder = bookmarksEntryFinder;
94      }
95  
96      public BookmarksFolderLocalService getBookmarksFolderLocalService() {
97          return bookmarksFolderLocalService;
98      }
99  
100     public void setBookmarksFolderLocalService(
101         BookmarksFolderLocalService bookmarksFolderLocalService) {
102         this.bookmarksFolderLocalService = bookmarksFolderLocalService;
103     }
104 
105     public BookmarksFolderService getBookmarksFolderService() {
106         return bookmarksFolderService;
107     }
108 
109     public void setBookmarksFolderService(
110         BookmarksFolderService bookmarksFolderService) {
111         this.bookmarksFolderService = bookmarksFolderService;
112     }
113 
114     public BookmarksFolderPersistence getBookmarksFolderPersistence() {
115         return bookmarksFolderPersistence;
116     }
117 
118     public void setBookmarksFolderPersistence(
119         BookmarksFolderPersistence bookmarksFolderPersistence) {
120         this.bookmarksFolderPersistence = bookmarksFolderPersistence;
121     }
122 
123     public CounterLocalService getCounterLocalService() {
124         return counterLocalService;
125     }
126 
127     public void setCounterLocalService(CounterLocalService counterLocalService) {
128         this.counterLocalService = counterLocalService;
129     }
130 
131     public ResourceLocalService getResourceLocalService() {
132         return resourceLocalService;
133     }
134 
135     public void setResourceLocalService(
136         ResourceLocalService resourceLocalService) {
137         this.resourceLocalService = resourceLocalService;
138     }
139 
140     public ResourceService getResourceService() {
141         return resourceService;
142     }
143 
144     public void setResourceService(ResourceService resourceService) {
145         this.resourceService = resourceService;
146     }
147 
148     public ResourcePersistence getResourcePersistence() {
149         return resourcePersistence;
150     }
151 
152     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
153         this.resourcePersistence = resourcePersistence;
154     }
155 
156     public ResourceFinder getResourceFinder() {
157         return resourceFinder;
158     }
159 
160     public void setResourceFinder(ResourceFinder resourceFinder) {
161         this.resourceFinder = resourceFinder;
162     }
163 
164     public UserLocalService getUserLocalService() {
165         return userLocalService;
166     }
167 
168     public void setUserLocalService(UserLocalService userLocalService) {
169         this.userLocalService = userLocalService;
170     }
171 
172     public UserService getUserService() {
173         return userService;
174     }
175 
176     public void setUserService(UserService userService) {
177         this.userService = userService;
178     }
179 
180     public UserPersistence getUserPersistence() {
181         return userPersistence;
182     }
183 
184     public void setUserPersistence(UserPersistence userPersistence) {
185         this.userPersistence = userPersistence;
186     }
187 
188     public UserFinder getUserFinder() {
189         return userFinder;
190     }
191 
192     public void setUserFinder(UserFinder userFinder) {
193         this.userFinder = userFinder;
194     }
195 
196     public AssetEntryLocalService getAssetEntryLocalService() {
197         return assetEntryLocalService;
198     }
199 
200     public void setAssetEntryLocalService(
201         AssetEntryLocalService assetEntryLocalService) {
202         this.assetEntryLocalService = assetEntryLocalService;
203     }
204 
205     public AssetEntryService getAssetEntryService() {
206         return assetEntryService;
207     }
208 
209     public void setAssetEntryService(AssetEntryService assetEntryService) {
210         this.assetEntryService = assetEntryService;
211     }
212 
213     public AssetEntryPersistence getAssetEntryPersistence() {
214         return assetEntryPersistence;
215     }
216 
217     public void setAssetEntryPersistence(
218         AssetEntryPersistence assetEntryPersistence) {
219         this.assetEntryPersistence = assetEntryPersistence;
220     }
221 
222     public AssetEntryFinder getAssetEntryFinder() {
223         return assetEntryFinder;
224     }
225 
226     public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
227         this.assetEntryFinder = assetEntryFinder;
228     }
229 
230     public AssetTagLocalService getAssetTagLocalService() {
231         return assetTagLocalService;
232     }
233 
234     public void setAssetTagLocalService(
235         AssetTagLocalService assetTagLocalService) {
236         this.assetTagLocalService = assetTagLocalService;
237     }
238 
239     public AssetTagService getAssetTagService() {
240         return assetTagService;
241     }
242 
243     public void setAssetTagService(AssetTagService assetTagService) {
244         this.assetTagService = assetTagService;
245     }
246 
247     public AssetTagPersistence getAssetTagPersistence() {
248         return assetTagPersistence;
249     }
250 
251     public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
252         this.assetTagPersistence = assetTagPersistence;
253     }
254 
255     public AssetTagFinder getAssetTagFinder() {
256         return assetTagFinder;
257     }
258 
259     public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
260         this.assetTagFinder = assetTagFinder;
261     }
262 
263     public ExpandoValueLocalService getExpandoValueLocalService() {
264         return expandoValueLocalService;
265     }
266 
267     public void setExpandoValueLocalService(
268         ExpandoValueLocalService expandoValueLocalService) {
269         this.expandoValueLocalService = expandoValueLocalService;
270     }
271 
272     public ExpandoValueService getExpandoValueService() {
273         return expandoValueService;
274     }
275 
276     public void setExpandoValueService(ExpandoValueService expandoValueService) {
277         this.expandoValueService = expandoValueService;
278     }
279 
280     public ExpandoValuePersistence getExpandoValuePersistence() {
281         return expandoValuePersistence;
282     }
283 
284     public void setExpandoValuePersistence(
285         ExpandoValuePersistence expandoValuePersistence) {
286         this.expandoValuePersistence = expandoValuePersistence;
287     }
288 
289     protected void runSQL(String sql) throws SystemException {
290         try {
291             DB db = DBFactoryUtil.getDB();
292 
293             db.runSQL(sql);
294         }
295         catch (Exception e) {
296             throw new SystemException(e);
297         }
298     }
299 
300     @BeanReference(type = BookmarksEntryLocalService.class)
301     protected BookmarksEntryLocalService bookmarksEntryLocalService;
302     @BeanReference(type = BookmarksEntryService.class)
303     protected BookmarksEntryService bookmarksEntryService;
304     @BeanReference(type = BookmarksEntryPersistence.class)
305     protected BookmarksEntryPersistence bookmarksEntryPersistence;
306     @BeanReference(type = BookmarksEntryFinder.class)
307     protected BookmarksEntryFinder bookmarksEntryFinder;
308     @BeanReference(type = BookmarksFolderLocalService.class)
309     protected BookmarksFolderLocalService bookmarksFolderLocalService;
310     @BeanReference(type = BookmarksFolderService.class)
311     protected BookmarksFolderService bookmarksFolderService;
312     @BeanReference(type = BookmarksFolderPersistence.class)
313     protected BookmarksFolderPersistence bookmarksFolderPersistence;
314     @BeanReference(type = CounterLocalService.class)
315     protected CounterLocalService counterLocalService;
316     @BeanReference(type = ResourceLocalService.class)
317     protected ResourceLocalService resourceLocalService;
318     @BeanReference(type = ResourceService.class)
319     protected ResourceService resourceService;
320     @BeanReference(type = ResourcePersistence.class)
321     protected ResourcePersistence resourcePersistence;
322     @BeanReference(type = ResourceFinder.class)
323     protected ResourceFinder resourceFinder;
324     @BeanReference(type = UserLocalService.class)
325     protected UserLocalService userLocalService;
326     @BeanReference(type = UserService.class)
327     protected UserService userService;
328     @BeanReference(type = UserPersistence.class)
329     protected UserPersistence userPersistence;
330     @BeanReference(type = UserFinder.class)
331     protected UserFinder userFinder;
332     @BeanReference(type = AssetEntryLocalService.class)
333     protected AssetEntryLocalService assetEntryLocalService;
334     @BeanReference(type = AssetEntryService.class)
335     protected AssetEntryService assetEntryService;
336     @BeanReference(type = AssetEntryPersistence.class)
337     protected AssetEntryPersistence assetEntryPersistence;
338     @BeanReference(type = AssetEntryFinder.class)
339     protected AssetEntryFinder assetEntryFinder;
340     @BeanReference(type = AssetTagLocalService.class)
341     protected AssetTagLocalService assetTagLocalService;
342     @BeanReference(type = AssetTagService.class)
343     protected AssetTagService assetTagService;
344     @BeanReference(type = AssetTagPersistence.class)
345     protected AssetTagPersistence assetTagPersistence;
346     @BeanReference(type = AssetTagFinder.class)
347     protected AssetTagFinder assetTagFinder;
348     @BeanReference(type = ExpandoValueLocalService.class)
349     protected ExpandoValueLocalService expandoValueLocalService;
350     @BeanReference(type = ExpandoValueService.class)
351     protected ExpandoValueService expandoValueService;
352     @BeanReference(type = ExpandoValuePersistence.class)
353     protected ExpandoValuePersistence expandoValuePersistence;
354 }