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