1   /**
2    * Copyright (c) 2000-2009 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.blogs.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.annotation.BeanReference;
31  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
32  import com.liferay.portal.service.GroupLocalService;
33  import com.liferay.portal.service.GroupService;
34  import com.liferay.portal.service.persistence.GroupFinder;
35  import com.liferay.portal.service.persistence.GroupPersistence;
36  
37  import com.liferay.portlet.blogs.model.BlogsStatsUser;
38  import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
39  import com.liferay.portlet.blogs.service.BlogsEntryService;
40  import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
41  import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
42  import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
43  import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
44  import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
45  
46  import java.util.List;
47  
48  /**
49   * <a href="BlogsStatsUserLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
50   *
51   * @author Brian Wing Shun Chan
52   *
53   */
54  public abstract class BlogsStatsUserLocalServiceBaseImpl
55      implements BlogsStatsUserLocalService {
56      public BlogsStatsUser addBlogsStatsUser(BlogsStatsUser blogsStatsUser)
57          throws SystemException {
58          blogsStatsUser.setNew(true);
59  
60          return blogsStatsUserPersistence.update(blogsStatsUser, false);
61      }
62  
63      public BlogsStatsUser createBlogsStatsUser(long statsUserId) {
64          return blogsStatsUserPersistence.create(statsUserId);
65      }
66  
67      public void deleteBlogsStatsUser(long statsUserId)
68          throws PortalException, SystemException {
69          blogsStatsUserPersistence.remove(statsUserId);
70      }
71  
72      public void deleteBlogsStatsUser(BlogsStatsUser blogsStatsUser)
73          throws SystemException {
74          blogsStatsUserPersistence.remove(blogsStatsUser);
75      }
76  
77      public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
78          throws SystemException {
79          return blogsStatsUserPersistence.findWithDynamicQuery(dynamicQuery);
80      }
81  
82      public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
83          int end) throws SystemException {
84          return blogsStatsUserPersistence.findWithDynamicQuery(dynamicQuery,
85              start, end);
86      }
87  
88      public BlogsStatsUser getBlogsStatsUser(long statsUserId)
89          throws PortalException, SystemException {
90          return blogsStatsUserPersistence.findByPrimaryKey(statsUserId);
91      }
92  
93      public List<BlogsStatsUser> getBlogsStatsUsers(int start, int end)
94          throws SystemException {
95          return blogsStatsUserPersistence.findAll(start, end);
96      }
97  
98      public int getBlogsStatsUsersCount() throws SystemException {
99          return blogsStatsUserPersistence.countAll();
100     }
101 
102     public BlogsStatsUser updateBlogsStatsUser(BlogsStatsUser blogsStatsUser)
103         throws SystemException {
104         blogsStatsUser.setNew(false);
105 
106         return blogsStatsUserPersistence.update(blogsStatsUser, true);
107     }
108 
109     public BlogsEntryLocalService getBlogsEntryLocalService() {
110         return blogsEntryLocalService;
111     }
112 
113     public void setBlogsEntryLocalService(
114         BlogsEntryLocalService blogsEntryLocalService) {
115         this.blogsEntryLocalService = blogsEntryLocalService;
116     }
117 
118     public BlogsEntryService getBlogsEntryService() {
119         return blogsEntryService;
120     }
121 
122     public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
123         this.blogsEntryService = blogsEntryService;
124     }
125 
126     public BlogsEntryPersistence getBlogsEntryPersistence() {
127         return blogsEntryPersistence;
128     }
129 
130     public void setBlogsEntryPersistence(
131         BlogsEntryPersistence blogsEntryPersistence) {
132         this.blogsEntryPersistence = blogsEntryPersistence;
133     }
134 
135     public BlogsEntryFinder getBlogsEntryFinder() {
136         return blogsEntryFinder;
137     }
138 
139     public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
140         this.blogsEntryFinder = blogsEntryFinder;
141     }
142 
143     public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
144         return blogsStatsUserLocalService;
145     }
146 
147     public void setBlogsStatsUserLocalService(
148         BlogsStatsUserLocalService blogsStatsUserLocalService) {
149         this.blogsStatsUserLocalService = blogsStatsUserLocalService;
150     }
151 
152     public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
153         return blogsStatsUserPersistence;
154     }
155 
156     public void setBlogsStatsUserPersistence(
157         BlogsStatsUserPersistence blogsStatsUserPersistence) {
158         this.blogsStatsUserPersistence = blogsStatsUserPersistence;
159     }
160 
161     public BlogsStatsUserFinder getBlogsStatsUserFinder() {
162         return blogsStatsUserFinder;
163     }
164 
165     public void setBlogsStatsUserFinder(
166         BlogsStatsUserFinder blogsStatsUserFinder) {
167         this.blogsStatsUserFinder = blogsStatsUserFinder;
168     }
169 
170     public CounterLocalService getCounterLocalService() {
171         return counterLocalService;
172     }
173 
174     public void setCounterLocalService(CounterLocalService counterLocalService) {
175         this.counterLocalService = counterLocalService;
176     }
177 
178     public CounterService getCounterService() {
179         return counterService;
180     }
181 
182     public void setCounterService(CounterService counterService) {
183         this.counterService = counterService;
184     }
185 
186     public GroupLocalService getGroupLocalService() {
187         return groupLocalService;
188     }
189 
190     public void setGroupLocalService(GroupLocalService groupLocalService) {
191         this.groupLocalService = groupLocalService;
192     }
193 
194     public GroupService getGroupService() {
195         return groupService;
196     }
197 
198     public void setGroupService(GroupService groupService) {
199         this.groupService = groupService;
200     }
201 
202     public GroupPersistence getGroupPersistence() {
203         return groupPersistence;
204     }
205 
206     public void setGroupPersistence(GroupPersistence groupPersistence) {
207         this.groupPersistence = groupPersistence;
208     }
209 
210     public GroupFinder getGroupFinder() {
211         return groupFinder;
212     }
213 
214     public void setGroupFinder(GroupFinder groupFinder) {
215         this.groupFinder = groupFinder;
216     }
217 
218     @BeanReference(name = "com.liferay.portlet.blogs.service.BlogsEntryLocalService.impl")
219     protected BlogsEntryLocalService blogsEntryLocalService;
220     @BeanReference(name = "com.liferay.portlet.blogs.service.BlogsEntryService.impl")
221     protected BlogsEntryService blogsEntryService;
222     @BeanReference(name = "com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence.impl")
223     protected BlogsEntryPersistence blogsEntryPersistence;
224     @BeanReference(name = "com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder.impl")
225     protected BlogsEntryFinder blogsEntryFinder;
226     @BeanReference(name = "com.liferay.portlet.blogs.service.BlogsStatsUserLocalService.impl")
227     protected BlogsStatsUserLocalService blogsStatsUserLocalService;
228     @BeanReference(name = "com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence.impl")
229     protected BlogsStatsUserPersistence blogsStatsUserPersistence;
230     @BeanReference(name = "com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder.impl")
231     protected BlogsStatsUserFinder blogsStatsUserFinder;
232     @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
233     protected CounterLocalService counterLocalService;
234     @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
235     protected CounterService counterService;
236     @BeanReference(name = "com.liferay.portal.service.GroupLocalService.impl")
237     protected GroupLocalService groupLocalService;
238     @BeanReference(name = "com.liferay.portal.service.GroupService.impl")
239     protected GroupService groupService;
240     @BeanReference(name = "com.liferay.portal.service.persistence.GroupPersistence.impl")
241     protected GroupPersistence groupPersistence;
242     @BeanReference(name = "com.liferay.portal.service.persistence.GroupFinder.impl")
243     protected GroupFinder groupFinder;
244 }