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