Source Code Cross Referenced for MBStatsUserLocalServiceBaseImpl.java in  » Portal » liferay-portal-4.4.2 » com » liferay » portlet » messageboards » service » base » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » liferay portal 4.4.2 » com.liferay.portlet.messageboards.service.base 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003:         *
004:         * Permission is hereby granted, free of charge, to any person obtaining a copy
005:         * of this software and associated documentation files (the "Software"), to deal
006:         * in the Software without restriction, including without limitation the rights
007:         * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008:         * copies of the Software, and to permit persons to whom the Software is
009:         * furnished to do so, subject to the following conditions:
010:         *
011:         * The above copyright notice and this permission notice shall be included in
012:         * all copies or substantial portions of the Software.
013:         *
014:         * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015:         * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016:         * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017:         * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018:         * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019:         * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020:         * SOFTWARE.
021:         */package com.liferay.portlet.messageboards.service.base;
022:
023:        import com.liferay.counter.service.CounterLocalService;
024:        import com.liferay.counter.service.CounterLocalServiceFactory;
025:        import com.liferay.counter.service.CounterService;
026:        import com.liferay.counter.service.CounterServiceFactory;
027:
028:        import com.liferay.portal.SystemException;
029:        import com.liferay.portal.kernel.dao.DynamicQueryInitializer;
030:
031:        import com.liferay.portlet.messageboards.model.MBStatsUser;
032:        import com.liferay.portlet.messageboards.model.impl.MBStatsUserImpl;
033:        import com.liferay.portlet.messageboards.service.MBBanLocalService;
034:        import com.liferay.portlet.messageboards.service.MBBanLocalServiceFactory;
035:        import com.liferay.portlet.messageboards.service.MBBanService;
036:        import com.liferay.portlet.messageboards.service.MBBanServiceFactory;
037:        import com.liferay.portlet.messageboards.service.MBCategoryLocalService;
038:        import com.liferay.portlet.messageboards.service.MBCategoryLocalServiceFactory;
039:        import com.liferay.portlet.messageboards.service.MBCategoryService;
040:        import com.liferay.portlet.messageboards.service.MBCategoryServiceFactory;
041:        import com.liferay.portlet.messageboards.service.MBMessageFlagLocalService;
042:        import com.liferay.portlet.messageboards.service.MBMessageFlagLocalServiceFactory;
043:        import com.liferay.portlet.messageboards.service.MBMessageLocalService;
044:        import com.liferay.portlet.messageboards.service.MBMessageLocalServiceFactory;
045:        import com.liferay.portlet.messageboards.service.MBMessageService;
046:        import com.liferay.portlet.messageboards.service.MBMessageServiceFactory;
047:        import com.liferay.portlet.messageboards.service.MBStatsUserLocalService;
048:        import com.liferay.portlet.messageboards.service.MBThreadLocalService;
049:        import com.liferay.portlet.messageboards.service.MBThreadLocalServiceFactory;
050:        import com.liferay.portlet.messageboards.service.MBThreadService;
051:        import com.liferay.portlet.messageboards.service.MBThreadServiceFactory;
052:        import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
053:        import com.liferay.portlet.messageboards.service.persistence.MBBanUtil;
054:        import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
055:        import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinderUtil;
056:        import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
057:        import com.liferay.portlet.messageboards.service.persistence.MBCategoryUtil;
058:        import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
059:        import com.liferay.portlet.messageboards.service.persistence.MBDiscussionUtil;
060:        import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
061:        import com.liferay.portlet.messageboards.service.persistence.MBMessageFinderUtil;
062:        import com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder;
063:        import com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinderUtil;
064:        import com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence;
065:        import com.liferay.portlet.messageboards.service.persistence.MBMessageFlagUtil;
066:        import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
067:        import com.liferay.portlet.messageboards.service.persistence.MBMessageUtil;
068:        import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
069:        import com.liferay.portlet.messageboards.service.persistence.MBStatsUserUtil;
070:        import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
071:        import com.liferay.portlet.messageboards.service.persistence.MBThreadFinderUtil;
072:        import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
073:        import com.liferay.portlet.messageboards.service.persistence.MBThreadUtil;
074:
075:        import org.springframework.beans.factory.InitializingBean;
076:
077:        import java.util.List;
078:
079:        /**
080:         * <a href="MBStatsUserLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
081:         *
082:         * @author Brian Wing Shun Chan
083:         *
084:         */
085:        public abstract class MBStatsUserLocalServiceBaseImpl implements 
086:                MBStatsUserLocalService, InitializingBean {
087:            public MBStatsUser addMBStatsUser(MBStatsUser model)
088:                    throws SystemException {
089:                MBStatsUser mbStatsUser = new MBStatsUserImpl();
090:
091:                mbStatsUser.setNew(true);
092:
093:                mbStatsUser.setStatsUserId(model.getStatsUserId());
094:                mbStatsUser.setGroupId(model.getGroupId());
095:                mbStatsUser.setUserId(model.getUserId());
096:                mbStatsUser.setMessageCount(model.getMessageCount());
097:                mbStatsUser.setLastPostDate(model.getLastPostDate());
098:
099:                return mbStatsUserPersistence.update(mbStatsUser);
100:            }
101:
102:            public List dynamicQuery(DynamicQueryInitializer queryInitializer)
103:                    throws SystemException {
104:                return mbStatsUserPersistence
105:                        .findWithDynamicQuery(queryInitializer);
106:            }
107:
108:            public List dynamicQuery(DynamicQueryInitializer queryInitializer,
109:                    int begin, int end) throws SystemException {
110:                return mbStatsUserPersistence.findWithDynamicQuery(
111:                        queryInitializer, begin, end);
112:            }
113:
114:            public MBStatsUser updateMBStatsUser(MBStatsUser model)
115:                    throws SystemException {
116:                return mbStatsUserPersistence.update(model, true);
117:            }
118:
119:            public MBBanLocalService getMBBanLocalService() {
120:                return mbBanLocalService;
121:            }
122:
123:            public void setMBBanLocalService(MBBanLocalService mbBanLocalService) {
124:                this .mbBanLocalService = mbBanLocalService;
125:            }
126:
127:            public MBBanService getMBBanService() {
128:                return mbBanService;
129:            }
130:
131:            public void setMBBanService(MBBanService mbBanService) {
132:                this .mbBanService = mbBanService;
133:            }
134:
135:            public MBBanPersistence getMBBanPersistence() {
136:                return mbBanPersistence;
137:            }
138:
139:            public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
140:                this .mbBanPersistence = mbBanPersistence;
141:            }
142:
143:            public MBCategoryLocalService getMBCategoryLocalService() {
144:                return mbCategoryLocalService;
145:            }
146:
147:            public void setMBCategoryLocalService(
148:                    MBCategoryLocalService mbCategoryLocalService) {
149:                this .mbCategoryLocalService = mbCategoryLocalService;
150:            }
151:
152:            public MBCategoryService getMBCategoryService() {
153:                return mbCategoryService;
154:            }
155:
156:            public void setMBCategoryService(MBCategoryService mbCategoryService) {
157:                this .mbCategoryService = mbCategoryService;
158:            }
159:
160:            public MBCategoryPersistence getMBCategoryPersistence() {
161:                return mbCategoryPersistence;
162:            }
163:
164:            public void setMBCategoryPersistence(
165:                    MBCategoryPersistence mbCategoryPersistence) {
166:                this .mbCategoryPersistence = mbCategoryPersistence;
167:            }
168:
169:            public MBCategoryFinder getMBCategoryFinder() {
170:                return mbCategoryFinder;
171:            }
172:
173:            public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
174:                this .mbCategoryFinder = mbCategoryFinder;
175:            }
176:
177:            public MBDiscussionPersistence getMBDiscussionPersistence() {
178:                return mbDiscussionPersistence;
179:            }
180:
181:            public void setMBDiscussionPersistence(
182:                    MBDiscussionPersistence mbDiscussionPersistence) {
183:                this .mbDiscussionPersistence = mbDiscussionPersistence;
184:            }
185:
186:            public MBMessageLocalService getMBMessageLocalService() {
187:                return mbMessageLocalService;
188:            }
189:
190:            public void setMBMessageLocalService(
191:                    MBMessageLocalService mbMessageLocalService) {
192:                this .mbMessageLocalService = mbMessageLocalService;
193:            }
194:
195:            public MBMessageService getMBMessageService() {
196:                return mbMessageService;
197:            }
198:
199:            public void setMBMessageService(MBMessageService mbMessageService) {
200:                this .mbMessageService = mbMessageService;
201:            }
202:
203:            public MBMessagePersistence getMBMessagePersistence() {
204:                return mbMessagePersistence;
205:            }
206:
207:            public void setMBMessagePersistence(
208:                    MBMessagePersistence mbMessagePersistence) {
209:                this .mbMessagePersistence = mbMessagePersistence;
210:            }
211:
212:            public MBMessageFinder getMBMessageFinder() {
213:                return mbMessageFinder;
214:            }
215:
216:            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
217:                this .mbMessageFinder = mbMessageFinder;
218:            }
219:
220:            public MBMessageFlagLocalService getMBMessageFlagLocalService() {
221:                return mbMessageFlagLocalService;
222:            }
223:
224:            public void setMBMessageFlagLocalService(
225:                    MBMessageFlagLocalService mbMessageFlagLocalService) {
226:                this .mbMessageFlagLocalService = mbMessageFlagLocalService;
227:            }
228:
229:            public MBMessageFlagPersistence getMBMessageFlagPersistence() {
230:                return mbMessageFlagPersistence;
231:            }
232:
233:            public void setMBMessageFlagPersistence(
234:                    MBMessageFlagPersistence mbMessageFlagPersistence) {
235:                this .mbMessageFlagPersistence = mbMessageFlagPersistence;
236:            }
237:
238:            public MBMessageFlagFinder getMBMessageFlagFinder() {
239:                return mbMessageFlagFinder;
240:            }
241:
242:            public void setMBMessageFlagFinder(
243:                    MBMessageFlagFinder mbMessageFlagFinder) {
244:                this .mbMessageFlagFinder = mbMessageFlagFinder;
245:            }
246:
247:            public MBStatsUserPersistence getMBStatsUserPersistence() {
248:                return mbStatsUserPersistence;
249:            }
250:
251:            public void setMBStatsUserPersistence(
252:                    MBStatsUserPersistence mbStatsUserPersistence) {
253:                this .mbStatsUserPersistence = mbStatsUserPersistence;
254:            }
255:
256:            public MBThreadLocalService getMBThreadLocalService() {
257:                return mbThreadLocalService;
258:            }
259:
260:            public void setMBThreadLocalService(
261:                    MBThreadLocalService mbThreadLocalService) {
262:                this .mbThreadLocalService = mbThreadLocalService;
263:            }
264:
265:            public MBThreadService getMBThreadService() {
266:                return mbThreadService;
267:            }
268:
269:            public void setMBThreadService(MBThreadService mbThreadService) {
270:                this .mbThreadService = mbThreadService;
271:            }
272:
273:            public MBThreadPersistence getMBThreadPersistence() {
274:                return mbThreadPersistence;
275:            }
276:
277:            public void setMBThreadPersistence(
278:                    MBThreadPersistence mbThreadPersistence) {
279:                this .mbThreadPersistence = mbThreadPersistence;
280:            }
281:
282:            public MBThreadFinder getMBThreadFinder() {
283:                return mbThreadFinder;
284:            }
285:
286:            public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
287:                this .mbThreadFinder = mbThreadFinder;
288:            }
289:
290:            public CounterLocalService getCounterLocalService() {
291:                return counterLocalService;
292:            }
293:
294:            public void setCounterLocalService(
295:                    CounterLocalService counterLocalService) {
296:                this .counterLocalService = counterLocalService;
297:            }
298:
299:            public CounterService getCounterService() {
300:                return counterService;
301:            }
302:
303:            public void setCounterService(CounterService counterService) {
304:                this .counterService = counterService;
305:            }
306:
307:            public void afterPropertiesSet() {
308:                if (mbBanLocalService == null) {
309:                    mbBanLocalService = MBBanLocalServiceFactory.getImpl();
310:                }
311:
312:                if (mbBanService == null) {
313:                    mbBanService = MBBanServiceFactory.getImpl();
314:                }
315:
316:                if (mbBanPersistence == null) {
317:                    mbBanPersistence = MBBanUtil.getPersistence();
318:                }
319:
320:                if (mbCategoryLocalService == null) {
321:                    mbCategoryLocalService = MBCategoryLocalServiceFactory
322:                            .getImpl();
323:                }
324:
325:                if (mbCategoryService == null) {
326:                    mbCategoryService = MBCategoryServiceFactory.getImpl();
327:                }
328:
329:                if (mbCategoryPersistence == null) {
330:                    mbCategoryPersistence = MBCategoryUtil.getPersistence();
331:                }
332:
333:                if (mbCategoryFinder == null) {
334:                    mbCategoryFinder = MBCategoryFinderUtil.getFinder();
335:                }
336:
337:                if (mbDiscussionPersistence == null) {
338:                    mbDiscussionPersistence = MBDiscussionUtil.getPersistence();
339:                }
340:
341:                if (mbMessageLocalService == null) {
342:                    mbMessageLocalService = MBMessageLocalServiceFactory
343:                            .getImpl();
344:                }
345:
346:                if (mbMessageService == null) {
347:                    mbMessageService = MBMessageServiceFactory.getImpl();
348:                }
349:
350:                if (mbMessagePersistence == null) {
351:                    mbMessagePersistence = MBMessageUtil.getPersistence();
352:                }
353:
354:                if (mbMessageFinder == null) {
355:                    mbMessageFinder = MBMessageFinderUtil.getFinder();
356:                }
357:
358:                if (mbMessageFlagLocalService == null) {
359:                    mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
360:                            .getImpl();
361:                }
362:
363:                if (mbMessageFlagPersistence == null) {
364:                    mbMessageFlagPersistence = MBMessageFlagUtil
365:                            .getPersistence();
366:                }
367:
368:                if (mbMessageFlagFinder == null) {
369:                    mbMessageFlagFinder = MBMessageFlagFinderUtil.getFinder();
370:                }
371:
372:                if (mbStatsUserPersistence == null) {
373:                    mbStatsUserPersistence = MBStatsUserUtil.getPersistence();
374:                }
375:
376:                if (mbThreadLocalService == null) {
377:                    mbThreadLocalService = MBThreadLocalServiceFactory
378:                            .getImpl();
379:                }
380:
381:                if (mbThreadService == null) {
382:                    mbThreadService = MBThreadServiceFactory.getImpl();
383:                }
384:
385:                if (mbThreadPersistence == null) {
386:                    mbThreadPersistence = MBThreadUtil.getPersistence();
387:                }
388:
389:                if (mbThreadFinder == null) {
390:                    mbThreadFinder = MBThreadFinderUtil.getFinder();
391:                }
392:
393:                if (counterLocalService == null) {
394:                    counterLocalService = CounterLocalServiceFactory.getImpl();
395:                }
396:
397:                if (counterService == null) {
398:                    counterService = CounterServiceFactory.getImpl();
399:                }
400:            }
401:
402:            protected MBBanLocalService mbBanLocalService;
403:            protected MBBanService mbBanService;
404:            protected MBBanPersistence mbBanPersistence;
405:            protected MBCategoryLocalService mbCategoryLocalService;
406:            protected MBCategoryService mbCategoryService;
407:            protected MBCategoryPersistence mbCategoryPersistence;
408:            protected MBCategoryFinder mbCategoryFinder;
409:            protected MBDiscussionPersistence mbDiscussionPersistence;
410:            protected MBMessageLocalService mbMessageLocalService;
411:            protected MBMessageService mbMessageService;
412:            protected MBMessagePersistence mbMessagePersistence;
413:            protected MBMessageFinder mbMessageFinder;
414:            protected MBMessageFlagLocalService mbMessageFlagLocalService;
415:            protected MBMessageFlagPersistence mbMessageFlagPersistence;
416:            protected MBMessageFlagFinder mbMessageFlagFinder;
417:            protected MBStatsUserPersistence mbStatsUserPersistence;
418:            protected MBThreadLocalService mbThreadLocalService;
419:            protected MBThreadService mbThreadService;
420:            protected MBThreadPersistence mbThreadPersistence;
421:            protected MBThreadFinder mbThreadFinder;
422:            protected CounterLocalService counterLocalService;
423:            protected CounterService counterService;
424:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.