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  
42  /**
43   * <a href="BookmarksFolderServiceBaseImpl.java.html"><b><i>View Source</i></b>
44   * </a>
45   *
46   * @author Brian Wing Shun Chan
47   */
48  public abstract class BookmarksFolderServiceBaseImpl extends PrincipalBean
49      implements BookmarksFolderService {
50      public BookmarksEntryLocalService getBookmarksEntryLocalService() {
51          return bookmarksEntryLocalService;
52      }
53  
54      public void setBookmarksEntryLocalService(
55          BookmarksEntryLocalService bookmarksEntryLocalService) {
56          this.bookmarksEntryLocalService = bookmarksEntryLocalService;
57      }
58  
59      public BookmarksEntryService getBookmarksEntryService() {
60          return bookmarksEntryService;
61      }
62  
63      public void setBookmarksEntryService(
64          BookmarksEntryService bookmarksEntryService) {
65          this.bookmarksEntryService = bookmarksEntryService;
66      }
67  
68      public BookmarksEntryPersistence getBookmarksEntryPersistence() {
69          return bookmarksEntryPersistence;
70      }
71  
72      public void setBookmarksEntryPersistence(
73          BookmarksEntryPersistence bookmarksEntryPersistence) {
74          this.bookmarksEntryPersistence = bookmarksEntryPersistence;
75      }
76  
77      public BookmarksEntryFinder getBookmarksEntryFinder() {
78          return bookmarksEntryFinder;
79      }
80  
81      public void setBookmarksEntryFinder(
82          BookmarksEntryFinder bookmarksEntryFinder) {
83          this.bookmarksEntryFinder = bookmarksEntryFinder;
84      }
85  
86      public BookmarksFolderLocalService getBookmarksFolderLocalService() {
87          return bookmarksFolderLocalService;
88      }
89  
90      public void setBookmarksFolderLocalService(
91          BookmarksFolderLocalService bookmarksFolderLocalService) {
92          this.bookmarksFolderLocalService = bookmarksFolderLocalService;
93      }
94  
95      public BookmarksFolderService getBookmarksFolderService() {
96          return bookmarksFolderService;
97      }
98  
99      public void setBookmarksFolderService(
100         BookmarksFolderService bookmarksFolderService) {
101         this.bookmarksFolderService = bookmarksFolderService;
102     }
103 
104     public BookmarksFolderPersistence getBookmarksFolderPersistence() {
105         return bookmarksFolderPersistence;
106     }
107 
108     public void setBookmarksFolderPersistence(
109         BookmarksFolderPersistence bookmarksFolderPersistence) {
110         this.bookmarksFolderPersistence = bookmarksFolderPersistence;
111     }
112 
113     public CounterLocalService getCounterLocalService() {
114         return counterLocalService;
115     }
116 
117     public void setCounterLocalService(CounterLocalService counterLocalService) {
118         this.counterLocalService = counterLocalService;
119     }
120 
121     public CounterService getCounterService() {
122         return counterService;
123     }
124 
125     public void setCounterService(CounterService counterService) {
126         this.counterService = counterService;
127     }
128 
129     public ResourceLocalService getResourceLocalService() {
130         return resourceLocalService;
131     }
132 
133     public void setResourceLocalService(
134         ResourceLocalService resourceLocalService) {
135         this.resourceLocalService = resourceLocalService;
136     }
137 
138     public ResourceService getResourceService() {
139         return resourceService;
140     }
141 
142     public void setResourceService(ResourceService resourceService) {
143         this.resourceService = resourceService;
144     }
145 
146     public ResourcePersistence getResourcePersistence() {
147         return resourcePersistence;
148     }
149 
150     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
151         this.resourcePersistence = resourcePersistence;
152     }
153 
154     public ResourceFinder getResourceFinder() {
155         return resourceFinder;
156     }
157 
158     public void setResourceFinder(ResourceFinder resourceFinder) {
159         this.resourceFinder = resourceFinder;
160     }
161 
162     public UserLocalService getUserLocalService() {
163         return userLocalService;
164     }
165 
166     public void setUserLocalService(UserLocalService userLocalService) {
167         this.userLocalService = userLocalService;
168     }
169 
170     public UserService getUserService() {
171         return userService;
172     }
173 
174     public void setUserService(UserService userService) {
175         this.userService = userService;
176     }
177 
178     public UserPersistence getUserPersistence() {
179         return userPersistence;
180     }
181 
182     public void setUserPersistence(UserPersistence userPersistence) {
183         this.userPersistence = userPersistence;
184     }
185 
186     public UserFinder getUserFinder() {
187         return userFinder;
188     }
189 
190     public void setUserFinder(UserFinder userFinder) {
191         this.userFinder = userFinder;
192     }
193 
194     protected void runSQL(String sql) throws SystemException {
195         try {
196             DB db = DBFactoryUtil.getDB();
197 
198             db.runSQL(sql);
199         }
200         catch (Exception e) {
201             throw new SystemException(e);
202         }
203     }
204 
205     @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService")
206     protected BookmarksEntryLocalService bookmarksEntryLocalService;
207     @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksEntryService")
208     protected BookmarksEntryService bookmarksEntryService;
209     @BeanReference(name = "com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence")
210     protected BookmarksEntryPersistence bookmarksEntryPersistence;
211     @BeanReference(name = "com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder")
212     protected BookmarksEntryFinder bookmarksEntryFinder;
213     @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService")
214     protected BookmarksFolderLocalService bookmarksFolderLocalService;
215     @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksFolderService")
216     protected BookmarksFolderService bookmarksFolderService;
217     @BeanReference(name = "com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence")
218     protected BookmarksFolderPersistence bookmarksFolderPersistence;
219     @BeanReference(name = "com.liferay.counter.service.CounterLocalService")
220     protected CounterLocalService counterLocalService;
221     @BeanReference(name = "com.liferay.counter.service.CounterService")
222     protected CounterService counterService;
223     @BeanReference(name = "com.liferay.portal.service.ResourceLocalService")
224     protected ResourceLocalService resourceLocalService;
225     @BeanReference(name = "com.liferay.portal.service.ResourceService")
226     protected ResourceService resourceService;
227     @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence")
228     protected ResourcePersistence resourcePersistence;
229     @BeanReference(name = "com.liferay.portal.service.persistence.ResourceFinder")
230     protected ResourceFinder resourceFinder;
231     @BeanReference(name = "com.liferay.portal.service.UserLocalService")
232     protected UserLocalService userLocalService;
233     @BeanReference(name = "com.liferay.portal.service.UserService")
234     protected UserService userService;
235     @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence")
236     protected UserPersistence userPersistence;
237     @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder")
238     protected UserFinder userFinder;
239 }