1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.bookmarks.service.base;
24  
25  import com.liferay.counter.service.CounterLocalService;
26  import com.liferay.counter.service.CounterService;
27  
28  import com.liferay.portal.PortalException;
29  import com.liferay.portal.SystemException;
30  import com.liferay.portal.kernel.annotation.BeanReference;
31  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
32  import com.liferay.portal.service.ResourceLocalService;
33  import com.liferay.portal.service.ResourceService;
34  import com.liferay.portal.service.UserLocalService;
35  import com.liferay.portal.service.UserService;
36  import com.liferay.portal.service.persistence.ResourceFinder;
37  import com.liferay.portal.service.persistence.ResourcePersistence;
38  import com.liferay.portal.service.persistence.UserFinder;
39  import com.liferay.portal.service.persistence.UserPersistence;
40  
41  import com.liferay.portlet.bookmarks.model.BookmarksEntry;
42  import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService;
43  import com.liferay.portlet.bookmarks.service.BookmarksEntryService;
44  import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService;
45  import com.liferay.portlet.bookmarks.service.BookmarksFolderService;
46  import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder;
47  import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence;
48  import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
49  import com.liferay.portlet.tags.service.TagsAssetLocalService;
50  import com.liferay.portlet.tags.service.TagsAssetService;
51  import com.liferay.portlet.tags.service.TagsEntryLocalService;
52  import com.liferay.portlet.tags.service.TagsEntryService;
53  import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
54  import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
55  import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
56  import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
57  
58  import java.util.List;
59  
60  /**
61   * <a href="BookmarksEntryLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
62   *
63   * @author Brian Wing Shun Chan
64   *
65   */
66  public abstract class BookmarksEntryLocalServiceBaseImpl
67      implements BookmarksEntryLocalService {
68      public BookmarksEntry addBookmarksEntry(BookmarksEntry bookmarksEntry)
69          throws SystemException {
70          bookmarksEntry.setNew(true);
71  
72          return bookmarksEntryPersistence.update(bookmarksEntry, false);
73      }
74  
75      public BookmarksEntry createBookmarksEntry(long entryId) {
76          return bookmarksEntryPersistence.create(entryId);
77      }
78  
79      public void deleteBookmarksEntry(long entryId)
80          throws PortalException, SystemException {
81          bookmarksEntryPersistence.remove(entryId);
82      }
83  
84      public void deleteBookmarksEntry(BookmarksEntry bookmarksEntry)
85          throws SystemException {
86          bookmarksEntryPersistence.remove(bookmarksEntry);
87      }
88  
89      public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
90          throws SystemException {
91          return bookmarksEntryPersistence.findWithDynamicQuery(dynamicQuery);
92      }
93  
94      public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
95          int end) throws SystemException {
96          return bookmarksEntryPersistence.findWithDynamicQuery(dynamicQuery,
97              start, end);
98      }
99  
100     public BookmarksEntry getBookmarksEntry(long entryId)
101         throws PortalException, SystemException {
102         return bookmarksEntryPersistence.findByPrimaryKey(entryId);
103     }
104 
105     public List<BookmarksEntry> getBookmarksEntries(int start, int end)
106         throws SystemException {
107         return bookmarksEntryPersistence.findAll(start, end);
108     }
109 
110     public int getBookmarksEntriesCount() throws SystemException {
111         return bookmarksEntryPersistence.countAll();
112     }
113 
114     public BookmarksEntry updateBookmarksEntry(BookmarksEntry bookmarksEntry)
115         throws SystemException {
116         bookmarksEntry.setNew(false);
117 
118         return bookmarksEntryPersistence.update(bookmarksEntry, true);
119     }
120 
121     public BookmarksEntryLocalService getBookmarksEntryLocalService() {
122         return bookmarksEntryLocalService;
123     }
124 
125     public void setBookmarksEntryLocalService(
126         BookmarksEntryLocalService bookmarksEntryLocalService) {
127         this.bookmarksEntryLocalService = bookmarksEntryLocalService;
128     }
129 
130     public BookmarksEntryService getBookmarksEntryService() {
131         return bookmarksEntryService;
132     }
133 
134     public void setBookmarksEntryService(
135         BookmarksEntryService bookmarksEntryService) {
136         this.bookmarksEntryService = bookmarksEntryService;
137     }
138 
139     public BookmarksEntryPersistence getBookmarksEntryPersistence() {
140         return bookmarksEntryPersistence;
141     }
142 
143     public void setBookmarksEntryPersistence(
144         BookmarksEntryPersistence bookmarksEntryPersistence) {
145         this.bookmarksEntryPersistence = bookmarksEntryPersistence;
146     }
147 
148     public BookmarksEntryFinder getBookmarksEntryFinder() {
149         return bookmarksEntryFinder;
150     }
151 
152     public void setBookmarksEntryFinder(
153         BookmarksEntryFinder bookmarksEntryFinder) {
154         this.bookmarksEntryFinder = bookmarksEntryFinder;
155     }
156 
157     public BookmarksFolderLocalService getBookmarksFolderLocalService() {
158         return bookmarksFolderLocalService;
159     }
160 
161     public void setBookmarksFolderLocalService(
162         BookmarksFolderLocalService bookmarksFolderLocalService) {
163         this.bookmarksFolderLocalService = bookmarksFolderLocalService;
164     }
165 
166     public BookmarksFolderService getBookmarksFolderService() {
167         return bookmarksFolderService;
168     }
169 
170     public void setBookmarksFolderService(
171         BookmarksFolderService bookmarksFolderService) {
172         this.bookmarksFolderService = bookmarksFolderService;
173     }
174 
175     public BookmarksFolderPersistence getBookmarksFolderPersistence() {
176         return bookmarksFolderPersistence;
177     }
178 
179     public void setBookmarksFolderPersistence(
180         BookmarksFolderPersistence bookmarksFolderPersistence) {
181         this.bookmarksFolderPersistence = bookmarksFolderPersistence;
182     }
183 
184     public CounterLocalService getCounterLocalService() {
185         return counterLocalService;
186     }
187 
188     public void setCounterLocalService(CounterLocalService counterLocalService) {
189         this.counterLocalService = counterLocalService;
190     }
191 
192     public CounterService getCounterService() {
193         return counterService;
194     }
195 
196     public void setCounterService(CounterService counterService) {
197         this.counterService = counterService;
198     }
199 
200     public ResourceLocalService getResourceLocalService() {
201         return resourceLocalService;
202     }
203 
204     public void setResourceLocalService(
205         ResourceLocalService resourceLocalService) {
206         this.resourceLocalService = resourceLocalService;
207     }
208 
209     public ResourceService getResourceService() {
210         return resourceService;
211     }
212 
213     public void setResourceService(ResourceService resourceService) {
214         this.resourceService = resourceService;
215     }
216 
217     public ResourcePersistence getResourcePersistence() {
218         return resourcePersistence;
219     }
220 
221     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
222         this.resourcePersistence = resourcePersistence;
223     }
224 
225     public ResourceFinder getResourceFinder() {
226         return resourceFinder;
227     }
228 
229     public void setResourceFinder(ResourceFinder resourceFinder) {
230         this.resourceFinder = resourceFinder;
231     }
232 
233     public UserLocalService getUserLocalService() {
234         return userLocalService;
235     }
236 
237     public void setUserLocalService(UserLocalService userLocalService) {
238         this.userLocalService = userLocalService;
239     }
240 
241     public UserService getUserService() {
242         return userService;
243     }
244 
245     public void setUserService(UserService userService) {
246         this.userService = userService;
247     }
248 
249     public UserPersistence getUserPersistence() {
250         return userPersistence;
251     }
252 
253     public void setUserPersistence(UserPersistence userPersistence) {
254         this.userPersistence = userPersistence;
255     }
256 
257     public UserFinder getUserFinder() {
258         return userFinder;
259     }
260 
261     public void setUserFinder(UserFinder userFinder) {
262         this.userFinder = userFinder;
263     }
264 
265     public TagsAssetLocalService getTagsAssetLocalService() {
266         return tagsAssetLocalService;
267     }
268 
269     public void setTagsAssetLocalService(
270         TagsAssetLocalService tagsAssetLocalService) {
271         this.tagsAssetLocalService = tagsAssetLocalService;
272     }
273 
274     public TagsAssetService getTagsAssetService() {
275         return tagsAssetService;
276     }
277 
278     public void setTagsAssetService(TagsAssetService tagsAssetService) {
279         this.tagsAssetService = tagsAssetService;
280     }
281 
282     public TagsAssetPersistence getTagsAssetPersistence() {
283         return tagsAssetPersistence;
284     }
285 
286     public void setTagsAssetPersistence(
287         TagsAssetPersistence tagsAssetPersistence) {
288         this.tagsAssetPersistence = tagsAssetPersistence;
289     }
290 
291     public TagsAssetFinder getTagsAssetFinder() {
292         return tagsAssetFinder;
293     }
294 
295     public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
296         this.tagsAssetFinder = tagsAssetFinder;
297     }
298 
299     public TagsEntryLocalService getTagsEntryLocalService() {
300         return tagsEntryLocalService;
301     }
302 
303     public void setTagsEntryLocalService(
304         TagsEntryLocalService tagsEntryLocalService) {
305         this.tagsEntryLocalService = tagsEntryLocalService;
306     }
307 
308     public TagsEntryService getTagsEntryService() {
309         return tagsEntryService;
310     }
311 
312     public void setTagsEntryService(TagsEntryService tagsEntryService) {
313         this.tagsEntryService = tagsEntryService;
314     }
315 
316     public TagsEntryPersistence getTagsEntryPersistence() {
317         return tagsEntryPersistence;
318     }
319 
320     public void setTagsEntryPersistence(
321         TagsEntryPersistence tagsEntryPersistence) {
322         this.tagsEntryPersistence = tagsEntryPersistence;
323     }
324 
325     public TagsEntryFinder getTagsEntryFinder() {
326         return tagsEntryFinder;
327     }
328 
329     public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
330         this.tagsEntryFinder = tagsEntryFinder;
331     }
332 
333     @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService.impl")
334     protected BookmarksEntryLocalService bookmarksEntryLocalService;
335     @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksEntryService.impl")
336     protected BookmarksEntryService bookmarksEntryService;
337     @BeanReference(name = "com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence.impl")
338     protected BookmarksEntryPersistence bookmarksEntryPersistence;
339     @BeanReference(name = "com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder.impl")
340     protected BookmarksEntryFinder bookmarksEntryFinder;
341     @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService.impl")
342     protected BookmarksFolderLocalService bookmarksFolderLocalService;
343     @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksFolderService.impl")
344     protected BookmarksFolderService bookmarksFolderService;
345     @BeanReference(name = "com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence.impl")
346     protected BookmarksFolderPersistence bookmarksFolderPersistence;
347     @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
348     protected CounterLocalService counterLocalService;
349     @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
350     protected CounterService counterService;
351     @BeanReference(name = "com.liferay.portal.service.ResourceLocalService.impl")
352     protected ResourceLocalService resourceLocalService;
353     @BeanReference(name = "com.liferay.portal.service.ResourceService.impl")
354     protected ResourceService resourceService;
355     @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence.impl")
356     protected ResourcePersistence resourcePersistence;
357     @BeanReference(name = "com.liferay.portal.service.persistence.ResourceFinder.impl")
358     protected ResourceFinder resourceFinder;
359     @BeanReference(name = "com.liferay.portal.service.UserLocalService.impl")
360     protected UserLocalService userLocalService;
361     @BeanReference(name = "com.liferay.portal.service.UserService.impl")
362     protected UserService userService;
363     @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
364     protected UserPersistence userPersistence;
365     @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder.impl")
366     protected UserFinder userFinder;
367     @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetLocalService.impl")
368     protected TagsAssetLocalService tagsAssetLocalService;
369     @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetService.impl")
370     protected TagsAssetService tagsAssetService;
371     @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetPersistence.impl")
372     protected TagsAssetPersistence tagsAssetPersistence;
373     @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetFinder.impl")
374     protected TagsAssetFinder tagsAssetFinder;
375     @BeanReference(name = "com.liferay.portlet.tags.service.TagsEntryLocalService.impl")
376     protected TagsEntryLocalService tagsEntryLocalService;
377     @BeanReference(name = "com.liferay.portlet.tags.service.TagsEntryService.impl")
378     protected TagsEntryService tagsEntryService;
379     @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsEntryPersistence.impl")
380     protected TagsEntryPersistence tagsEntryPersistence;
381     @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsEntryFinder.impl")
382     protected TagsEntryFinder tagsEntryFinder;
383 }