1   /**
2    * Copyright (c) 2000-2008 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.tags.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.dao.orm.DynamicQuery;
31  import com.liferay.portal.service.UserLocalService;
32  import com.liferay.portal.service.UserService;
33  import com.liferay.portal.service.persistence.UserFinder;
34  import com.liferay.portal.service.persistence.UserPersistence;
35  
36  import com.liferay.portlet.tags.model.TagsEntry;
37  import com.liferay.portlet.tags.service.TagsAssetLocalService;
38  import com.liferay.portlet.tags.service.TagsAssetService;
39  import com.liferay.portlet.tags.service.TagsEntryLocalService;
40  import com.liferay.portlet.tags.service.TagsEntryService;
41  import com.liferay.portlet.tags.service.TagsPropertyLocalService;
42  import com.liferay.portlet.tags.service.TagsPropertyService;
43  import com.liferay.portlet.tags.service.TagsSourceLocalService;
44  import com.liferay.portlet.tags.service.TagsSourceService;
45  import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
46  import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
47  import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
48  import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
49  import com.liferay.portlet.tags.service.persistence.TagsPropertyFinder;
50  import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder;
51  import com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence;
52  import com.liferay.portlet.tags.service.persistence.TagsSourcePersistence;
53  
54  import java.util.List;
55  
56  /**
57   * <a href="TagsEntryLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
58   *
59   * @author Brian Wing Shun Chan
60   *
61   */
62  public abstract class TagsEntryLocalServiceBaseImpl
63      implements TagsEntryLocalService {
64      public TagsEntry addTagsEntry(TagsEntry tagsEntry)
65          throws SystemException {
66          tagsEntry.setNew(true);
67  
68          return tagsEntryPersistence.update(tagsEntry, false);
69      }
70  
71      public TagsEntry createTagsEntry(long entryId) {
72          return tagsEntryPersistence.create(entryId);
73      }
74  
75      public void deleteTagsEntry(long entryId)
76          throws PortalException, SystemException {
77          tagsEntryPersistence.remove(entryId);
78      }
79  
80      public void deleteTagsEntry(TagsEntry tagsEntry) throws SystemException {
81          tagsEntryPersistence.remove(tagsEntry);
82      }
83  
84      public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
85          throws SystemException {
86          return tagsEntryPersistence.findWithDynamicQuery(dynamicQuery);
87      }
88  
89      public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
90          int end) throws SystemException {
91          return tagsEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
92              end);
93      }
94  
95      public TagsEntry getTagsEntry(long entryId)
96          throws PortalException, SystemException {
97          return tagsEntryPersistence.findByPrimaryKey(entryId);
98      }
99  
100     public List<TagsEntry> getTagsEntries(int start, int end)
101         throws SystemException {
102         return tagsEntryPersistence.findAll(start, end);
103     }
104 
105     public int getTagsEntriesCount() throws SystemException {
106         return tagsEntryPersistence.countAll();
107     }
108 
109     public TagsEntry updateTagsEntry(TagsEntry tagsEntry)
110         throws SystemException {
111         tagsEntry.setNew(false);
112 
113         return tagsEntryPersistence.update(tagsEntry, true);
114     }
115 
116     public TagsAssetLocalService getTagsAssetLocalService() {
117         return tagsAssetLocalService;
118     }
119 
120     public void setTagsAssetLocalService(
121         TagsAssetLocalService tagsAssetLocalService) {
122         this.tagsAssetLocalService = tagsAssetLocalService;
123     }
124 
125     public TagsAssetService getTagsAssetService() {
126         return tagsAssetService;
127     }
128 
129     public void setTagsAssetService(TagsAssetService tagsAssetService) {
130         this.tagsAssetService = tagsAssetService;
131     }
132 
133     public TagsAssetPersistence getTagsAssetPersistence() {
134         return tagsAssetPersistence;
135     }
136 
137     public void setTagsAssetPersistence(
138         TagsAssetPersistence tagsAssetPersistence) {
139         this.tagsAssetPersistence = tagsAssetPersistence;
140     }
141 
142     public TagsAssetFinder getTagsAssetFinder() {
143         return tagsAssetFinder;
144     }
145 
146     public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
147         this.tagsAssetFinder = tagsAssetFinder;
148     }
149 
150     public TagsEntryLocalService getTagsEntryLocalService() {
151         return tagsEntryLocalService;
152     }
153 
154     public void setTagsEntryLocalService(
155         TagsEntryLocalService tagsEntryLocalService) {
156         this.tagsEntryLocalService = tagsEntryLocalService;
157     }
158 
159     public TagsEntryService getTagsEntryService() {
160         return tagsEntryService;
161     }
162 
163     public void setTagsEntryService(TagsEntryService tagsEntryService) {
164         this.tagsEntryService = tagsEntryService;
165     }
166 
167     public TagsEntryPersistence getTagsEntryPersistence() {
168         return tagsEntryPersistence;
169     }
170 
171     public void setTagsEntryPersistence(
172         TagsEntryPersistence tagsEntryPersistence) {
173         this.tagsEntryPersistence = tagsEntryPersistence;
174     }
175 
176     public TagsEntryFinder getTagsEntryFinder() {
177         return tagsEntryFinder;
178     }
179 
180     public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
181         this.tagsEntryFinder = tagsEntryFinder;
182     }
183 
184     public TagsPropertyLocalService getTagsPropertyLocalService() {
185         return tagsPropertyLocalService;
186     }
187 
188     public void setTagsPropertyLocalService(
189         TagsPropertyLocalService tagsPropertyLocalService) {
190         this.tagsPropertyLocalService = tagsPropertyLocalService;
191     }
192 
193     public TagsPropertyService getTagsPropertyService() {
194         return tagsPropertyService;
195     }
196 
197     public void setTagsPropertyService(TagsPropertyService tagsPropertyService) {
198         this.tagsPropertyService = tagsPropertyService;
199     }
200 
201     public TagsPropertyPersistence getTagsPropertyPersistence() {
202         return tagsPropertyPersistence;
203     }
204 
205     public void setTagsPropertyPersistence(
206         TagsPropertyPersistence tagsPropertyPersistence) {
207         this.tagsPropertyPersistence = tagsPropertyPersistence;
208     }
209 
210     public TagsPropertyFinder getTagsPropertyFinder() {
211         return tagsPropertyFinder;
212     }
213 
214     public void setTagsPropertyFinder(TagsPropertyFinder tagsPropertyFinder) {
215         this.tagsPropertyFinder = tagsPropertyFinder;
216     }
217 
218     public TagsPropertyKeyFinder getTagsPropertyKeyFinder() {
219         return tagsPropertyKeyFinder;
220     }
221 
222     public void setTagsPropertyKeyFinder(
223         TagsPropertyKeyFinder tagsPropertyKeyFinder) {
224         this.tagsPropertyKeyFinder = tagsPropertyKeyFinder;
225     }
226 
227     public TagsSourceLocalService getTagsSourceLocalService() {
228         return tagsSourceLocalService;
229     }
230 
231     public void setTagsSourceLocalService(
232         TagsSourceLocalService tagsSourceLocalService) {
233         this.tagsSourceLocalService = tagsSourceLocalService;
234     }
235 
236     public TagsSourceService getTagsSourceService() {
237         return tagsSourceService;
238     }
239 
240     public void setTagsSourceService(TagsSourceService tagsSourceService) {
241         this.tagsSourceService = tagsSourceService;
242     }
243 
244     public TagsSourcePersistence getTagsSourcePersistence() {
245         return tagsSourcePersistence;
246     }
247 
248     public void setTagsSourcePersistence(
249         TagsSourcePersistence tagsSourcePersistence) {
250         this.tagsSourcePersistence = tagsSourcePersistence;
251     }
252 
253     public CounterLocalService getCounterLocalService() {
254         return counterLocalService;
255     }
256 
257     public void setCounterLocalService(CounterLocalService counterLocalService) {
258         this.counterLocalService = counterLocalService;
259     }
260 
261     public CounterService getCounterService() {
262         return counterService;
263     }
264 
265     public void setCounterService(CounterService counterService) {
266         this.counterService = counterService;
267     }
268 
269     public UserLocalService getUserLocalService() {
270         return userLocalService;
271     }
272 
273     public void setUserLocalService(UserLocalService userLocalService) {
274         this.userLocalService = userLocalService;
275     }
276 
277     public UserService getUserService() {
278         return userService;
279     }
280 
281     public void setUserService(UserService userService) {
282         this.userService = userService;
283     }
284 
285     public UserPersistence getUserPersistence() {
286         return userPersistence;
287     }
288 
289     public void setUserPersistence(UserPersistence userPersistence) {
290         this.userPersistence = userPersistence;
291     }
292 
293     public UserFinder getUserFinder() {
294         return userFinder;
295     }
296 
297     public void setUserFinder(UserFinder userFinder) {
298         this.userFinder = userFinder;
299     }
300 
301     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.TagsAssetLocalService.impl")
302     protected TagsAssetLocalService tagsAssetLocalService;
303     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.TagsAssetService.impl")
304     protected TagsAssetService tagsAssetService;
305     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.persistence.TagsAssetPersistence.impl")
306     protected TagsAssetPersistence tagsAssetPersistence;
307     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.persistence.TagsAssetFinder.impl")
308     protected TagsAssetFinder tagsAssetFinder;
309     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.TagsEntryLocalService.impl")
310     protected TagsEntryLocalService tagsEntryLocalService;
311     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.TagsEntryService.impl")
312     protected TagsEntryService tagsEntryService;
313     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.persistence.TagsEntryPersistence.impl")
314     protected TagsEntryPersistence tagsEntryPersistence;
315     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.persistence.TagsEntryFinder.impl")
316     protected TagsEntryFinder tagsEntryFinder;
317     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.TagsPropertyLocalService.impl")
318     protected TagsPropertyLocalService tagsPropertyLocalService;
319     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.TagsPropertyService.impl")
320     protected TagsPropertyService tagsPropertyService;
321     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence.impl")
322     protected TagsPropertyPersistence tagsPropertyPersistence;
323     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyFinder.impl")
324     protected TagsPropertyFinder tagsPropertyFinder;
325     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder.impl")
326     protected TagsPropertyKeyFinder tagsPropertyKeyFinder;
327     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.TagsSourceLocalService.impl")
328     protected TagsSourceLocalService tagsSourceLocalService;
329     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.TagsSourceService.impl")
330     protected TagsSourceService tagsSourceService;
331     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.persistence.TagsSourcePersistence.impl")
332     protected TagsSourcePersistence tagsSourcePersistence;
333     @javax.annotation.Resource(name = "com.liferay.counter.service.CounterLocalService.impl")
334     protected CounterLocalService counterLocalService;
335     @javax.annotation.Resource(name = "com.liferay.counter.service.CounterService.impl")
336     protected CounterService counterService;
337     @javax.annotation.Resource(name = "com.liferay.portal.service.UserLocalService.impl")
338     protected UserLocalService userLocalService;
339     @javax.annotation.Resource(name = "com.liferay.portal.service.UserService.impl")
340     protected UserService userService;
341     @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
342     protected UserPersistence userPersistence;
343     @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.UserFinder.impl")
344     protected UserFinder userFinder;
345 }