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.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  
29  import com.liferay.portlet.tags.model.TagsSource;
30  import com.liferay.portlet.tags.service.TagsAssetLocalService;
31  import com.liferay.portlet.tags.service.TagsAssetService;
32  import com.liferay.portlet.tags.service.TagsEntryLocalService;
33  import com.liferay.portlet.tags.service.TagsEntryService;
34  import com.liferay.portlet.tags.service.TagsPropertyLocalService;
35  import com.liferay.portlet.tags.service.TagsPropertyService;
36  import com.liferay.portlet.tags.service.TagsSourceLocalService;
37  import com.liferay.portlet.tags.service.TagsSourceService;
38  import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
39  import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
40  import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
41  import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
42  import com.liferay.portlet.tags.service.persistence.TagsPropertyFinder;
43  import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder;
44  import com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence;
45  import com.liferay.portlet.tags.service.persistence.TagsSourcePersistence;
46  
47  import java.util.List;
48  
49  /**
50   * <a href="TagsSourceLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
51   *
52   * @author Brian Wing Shun Chan
53   *
54   */
55  public abstract class TagsSourceLocalServiceBaseImpl
56      implements TagsSourceLocalService {
57      public TagsSource addTagsSource(TagsSource tagsSource)
58          throws SystemException {
59          tagsSource.setNew(true);
60  
61          return tagsSourcePersistence.update(tagsSource, false);
62      }
63  
64      public TagsSource createTagsSource(long sourceId) {
65          return tagsSourcePersistence.create(sourceId);
66      }
67  
68      public void deleteTagsSource(long sourceId)
69          throws PortalException, SystemException {
70          tagsSourcePersistence.remove(sourceId);
71      }
72  
73      public void deleteTagsSource(TagsSource tagsSource)
74          throws SystemException {
75          tagsSourcePersistence.remove(tagsSource);
76      }
77  
78      public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
79          throws SystemException {
80          return tagsSourcePersistence.findWithDynamicQuery(dynamicQuery);
81      }
82  
83      public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
84          int end) throws SystemException {
85          return tagsSourcePersistence.findWithDynamicQuery(dynamicQuery, start,
86              end);
87      }
88  
89      public TagsSource getTagsSource(long sourceId)
90          throws PortalException, SystemException {
91          return tagsSourcePersistence.findByPrimaryKey(sourceId);
92      }
93  
94      public List<TagsSource> getTagsSources(int start, int end)
95          throws SystemException {
96          return tagsSourcePersistence.findAll(start, end);
97      }
98  
99      public int getTagsSourcesCount() throws SystemException {
100         return tagsSourcePersistence.countAll();
101     }
102 
103     public TagsSource updateTagsSource(TagsSource tagsSource)
104         throws SystemException {
105         tagsSource.setNew(false);
106 
107         return tagsSourcePersistence.update(tagsSource, true);
108     }
109 
110     public TagsAssetLocalService getTagsAssetLocalService() {
111         return tagsAssetLocalService;
112     }
113 
114     public void setTagsAssetLocalService(
115         TagsAssetLocalService tagsAssetLocalService) {
116         this.tagsAssetLocalService = tagsAssetLocalService;
117     }
118 
119     public TagsAssetService getTagsAssetService() {
120         return tagsAssetService;
121     }
122 
123     public void setTagsAssetService(TagsAssetService tagsAssetService) {
124         this.tagsAssetService = tagsAssetService;
125     }
126 
127     public TagsAssetPersistence getTagsAssetPersistence() {
128         return tagsAssetPersistence;
129     }
130 
131     public void setTagsAssetPersistence(
132         TagsAssetPersistence tagsAssetPersistence) {
133         this.tagsAssetPersistence = tagsAssetPersistence;
134     }
135 
136     public TagsAssetFinder getTagsAssetFinder() {
137         return tagsAssetFinder;
138     }
139 
140     public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
141         this.tagsAssetFinder = tagsAssetFinder;
142     }
143 
144     public TagsEntryLocalService getTagsEntryLocalService() {
145         return tagsEntryLocalService;
146     }
147 
148     public void setTagsEntryLocalService(
149         TagsEntryLocalService tagsEntryLocalService) {
150         this.tagsEntryLocalService = tagsEntryLocalService;
151     }
152 
153     public TagsEntryService getTagsEntryService() {
154         return tagsEntryService;
155     }
156 
157     public void setTagsEntryService(TagsEntryService tagsEntryService) {
158         this.tagsEntryService = tagsEntryService;
159     }
160 
161     public TagsEntryPersistence getTagsEntryPersistence() {
162         return tagsEntryPersistence;
163     }
164 
165     public void setTagsEntryPersistence(
166         TagsEntryPersistence tagsEntryPersistence) {
167         this.tagsEntryPersistence = tagsEntryPersistence;
168     }
169 
170     public TagsEntryFinder getTagsEntryFinder() {
171         return tagsEntryFinder;
172     }
173 
174     public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
175         this.tagsEntryFinder = tagsEntryFinder;
176     }
177 
178     public TagsPropertyLocalService getTagsPropertyLocalService() {
179         return tagsPropertyLocalService;
180     }
181 
182     public void setTagsPropertyLocalService(
183         TagsPropertyLocalService tagsPropertyLocalService) {
184         this.tagsPropertyLocalService = tagsPropertyLocalService;
185     }
186 
187     public TagsPropertyService getTagsPropertyService() {
188         return tagsPropertyService;
189     }
190 
191     public void setTagsPropertyService(TagsPropertyService tagsPropertyService) {
192         this.tagsPropertyService = tagsPropertyService;
193     }
194 
195     public TagsPropertyPersistence getTagsPropertyPersistence() {
196         return tagsPropertyPersistence;
197     }
198 
199     public void setTagsPropertyPersistence(
200         TagsPropertyPersistence tagsPropertyPersistence) {
201         this.tagsPropertyPersistence = tagsPropertyPersistence;
202     }
203 
204     public TagsPropertyFinder getTagsPropertyFinder() {
205         return tagsPropertyFinder;
206     }
207 
208     public void setTagsPropertyFinder(TagsPropertyFinder tagsPropertyFinder) {
209         this.tagsPropertyFinder = tagsPropertyFinder;
210     }
211 
212     public TagsPropertyKeyFinder getTagsPropertyKeyFinder() {
213         return tagsPropertyKeyFinder;
214     }
215 
216     public void setTagsPropertyKeyFinder(
217         TagsPropertyKeyFinder tagsPropertyKeyFinder) {
218         this.tagsPropertyKeyFinder = tagsPropertyKeyFinder;
219     }
220 
221     public TagsSourceLocalService getTagsSourceLocalService() {
222         return tagsSourceLocalService;
223     }
224 
225     public void setTagsSourceLocalService(
226         TagsSourceLocalService tagsSourceLocalService) {
227         this.tagsSourceLocalService = tagsSourceLocalService;
228     }
229 
230     public TagsSourceService getTagsSourceService() {
231         return tagsSourceService;
232     }
233 
234     public void setTagsSourceService(TagsSourceService tagsSourceService) {
235         this.tagsSourceService = tagsSourceService;
236     }
237 
238     public TagsSourcePersistence getTagsSourcePersistence() {
239         return tagsSourcePersistence;
240     }
241 
242     public void setTagsSourcePersistence(
243         TagsSourcePersistence tagsSourcePersistence) {
244         this.tagsSourcePersistence = tagsSourcePersistence;
245     }
246 
247     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.TagsAssetLocalService.impl")
248     protected TagsAssetLocalService tagsAssetLocalService;
249     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.TagsAssetService.impl")
250     protected TagsAssetService tagsAssetService;
251     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.persistence.TagsAssetPersistence.impl")
252     protected TagsAssetPersistence tagsAssetPersistence;
253     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.persistence.TagsAssetFinder.impl")
254     protected TagsAssetFinder tagsAssetFinder;
255     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.TagsEntryLocalService.impl")
256     protected TagsEntryLocalService tagsEntryLocalService;
257     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.TagsEntryService.impl")
258     protected TagsEntryService tagsEntryService;
259     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.persistence.TagsEntryPersistence.impl")
260     protected TagsEntryPersistence tagsEntryPersistence;
261     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.persistence.TagsEntryFinder.impl")
262     protected TagsEntryFinder tagsEntryFinder;
263     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.TagsPropertyLocalService.impl")
264     protected TagsPropertyLocalService tagsPropertyLocalService;
265     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.TagsPropertyService.impl")
266     protected TagsPropertyService tagsPropertyService;
267     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence.impl")
268     protected TagsPropertyPersistence tagsPropertyPersistence;
269     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyFinder.impl")
270     protected TagsPropertyFinder tagsPropertyFinder;
271     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder.impl")
272     protected TagsPropertyKeyFinder tagsPropertyKeyFinder;
273     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.TagsSourceLocalService.impl")
274     protected TagsSourceLocalService tagsSourceLocalService;
275     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.TagsSourceService.impl")
276     protected TagsSourceService tagsSourceService;
277     @javax.annotation.Resource(name = "com.liferay.portlet.tags.service.persistence.TagsSourcePersistence.impl")
278     protected TagsSourcePersistence tagsSourcePersistence;
279 }