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