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.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.bean.InitializingBean;
31  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
32  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
33  import com.liferay.portal.service.CompanyLocalService;
34  import com.liferay.portal.service.CompanyService;
35  import com.liferay.portal.service.GroupLocalService;
36  import com.liferay.portal.service.GroupService;
37  import com.liferay.portal.service.OrganizationLocalService;
38  import com.liferay.portal.service.OrganizationService;
39  import com.liferay.portal.service.ResourceLocalService;
40  import com.liferay.portal.service.ResourceService;
41  import com.liferay.portal.service.UserLocalService;
42  import com.liferay.portal.service.UserService;
43  import com.liferay.portal.service.persistence.CompanyPersistence;
44  import com.liferay.portal.service.persistence.GroupFinder;
45  import com.liferay.portal.service.persistence.GroupPersistence;
46  import com.liferay.portal.service.persistence.OrganizationFinder;
47  import com.liferay.portal.service.persistence.OrganizationPersistence;
48  import com.liferay.portal.service.persistence.ResourceFinder;
49  import com.liferay.portal.service.persistence.ResourcePersistence;
50  import com.liferay.portal.service.persistence.UserFinder;
51  import com.liferay.portal.service.persistence.UserPersistence;
52  
53  import com.liferay.portlet.blogs.model.BlogsEntry;
54  import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
55  import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
56  import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
57  import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
58  import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
59  import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
60  import com.liferay.portlet.messageboards.service.MBMessageLocalService;
61  import com.liferay.portlet.messageboards.service.MBMessageService;
62  import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
63  import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
64  import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
65  import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
66  import com.liferay.portlet.social.service.SocialActivityLocalService;
67  import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
68  import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
69  import com.liferay.portlet.tags.service.TagsAssetLocalService;
70  import com.liferay.portlet.tags.service.TagsAssetService;
71  import com.liferay.portlet.tags.service.TagsEntryLocalService;
72  import com.liferay.portlet.tags.service.TagsEntryService;
73  import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
74  import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
75  import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
76  import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
77  
78  import java.util.List;
79  
80  /**
81   * <a href="BlogsEntryLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
82   *
83   * @author Brian Wing Shun Chan
84   *
85   */
86  public abstract class BlogsEntryLocalServiceBaseImpl
87      implements BlogsEntryLocalService, InitializingBean {
88      public BlogsEntry addBlogsEntry(BlogsEntry blogsEntry)
89          throws SystemException {
90          blogsEntry.setNew(true);
91  
92          return blogsEntryPersistence.update(blogsEntry, false);
93      }
94  
95      public void deleteBlogsEntry(long entryId)
96          throws PortalException, SystemException {
97          blogsEntryPersistence.remove(entryId);
98      }
99  
100     public void deleteBlogsEntry(BlogsEntry blogsEntry)
101         throws SystemException {
102         blogsEntryPersistence.remove(blogsEntry);
103     }
104 
105     public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
106         throws SystemException {
107         return blogsEntryPersistence.findWithDynamicQuery(dynamicQuery);
108     }
109 
110     public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
111         int end) throws SystemException {
112         return blogsEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
113             end);
114     }
115 
116     public BlogsEntry getBlogsEntry(long entryId)
117         throws PortalException, SystemException {
118         return blogsEntryPersistence.findByPrimaryKey(entryId);
119     }
120 
121     public List<BlogsEntry> getBlogsEntries(int start, int end)
122         throws SystemException {
123         return blogsEntryPersistence.findAll(start, end);
124     }
125 
126     public int getBlogsEntriesCount() throws SystemException {
127         return blogsEntryPersistence.countAll();
128     }
129 
130     public BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry)
131         throws SystemException {
132         blogsEntry.setNew(false);
133 
134         return blogsEntryPersistence.update(blogsEntry, true);
135     }
136 
137     public BlogsEntryPersistence getBlogsEntryPersistence() {
138         return blogsEntryPersistence;
139     }
140 
141     public void setBlogsEntryPersistence(
142         BlogsEntryPersistence blogsEntryPersistence) {
143         this.blogsEntryPersistence = blogsEntryPersistence;
144     }
145 
146     public BlogsEntryFinder getBlogsEntryFinder() {
147         return blogsEntryFinder;
148     }
149 
150     public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
151         this.blogsEntryFinder = blogsEntryFinder;
152     }
153 
154     public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
155         return blogsStatsUserLocalService;
156     }
157 
158     public void setBlogsStatsUserLocalService(
159         BlogsStatsUserLocalService blogsStatsUserLocalService) {
160         this.blogsStatsUserLocalService = blogsStatsUserLocalService;
161     }
162 
163     public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
164         return blogsStatsUserPersistence;
165     }
166 
167     public void setBlogsStatsUserPersistence(
168         BlogsStatsUserPersistence blogsStatsUserPersistence) {
169         this.blogsStatsUserPersistence = blogsStatsUserPersistence;
170     }
171 
172     public BlogsStatsUserFinder getBlogsStatsUserFinder() {
173         return blogsStatsUserFinder;
174     }
175 
176     public void setBlogsStatsUserFinder(
177         BlogsStatsUserFinder blogsStatsUserFinder) {
178         this.blogsStatsUserFinder = blogsStatsUserFinder;
179     }
180 
181     public CounterLocalService getCounterLocalService() {
182         return counterLocalService;
183     }
184 
185     public void setCounterLocalService(CounterLocalService counterLocalService) {
186         this.counterLocalService = counterLocalService;
187     }
188 
189     public CounterService getCounterService() {
190         return counterService;
191     }
192 
193     public void setCounterService(CounterService counterService) {
194         this.counterService = counterService;
195     }
196 
197     public CompanyLocalService getCompanyLocalService() {
198         return companyLocalService;
199     }
200 
201     public void setCompanyLocalService(CompanyLocalService companyLocalService) {
202         this.companyLocalService = companyLocalService;
203     }
204 
205     public CompanyService getCompanyService() {
206         return companyService;
207     }
208 
209     public void setCompanyService(CompanyService companyService) {
210         this.companyService = companyService;
211     }
212 
213     public CompanyPersistence getCompanyPersistence() {
214         return companyPersistence;
215     }
216 
217     public void setCompanyPersistence(CompanyPersistence companyPersistence) {
218         this.companyPersistence = companyPersistence;
219     }
220 
221     public GroupLocalService getGroupLocalService() {
222         return groupLocalService;
223     }
224 
225     public void setGroupLocalService(GroupLocalService groupLocalService) {
226         this.groupLocalService = groupLocalService;
227     }
228 
229     public GroupService getGroupService() {
230         return groupService;
231     }
232 
233     public void setGroupService(GroupService groupService) {
234         this.groupService = groupService;
235     }
236 
237     public GroupPersistence getGroupPersistence() {
238         return groupPersistence;
239     }
240 
241     public void setGroupPersistence(GroupPersistence groupPersistence) {
242         this.groupPersistence = groupPersistence;
243     }
244 
245     public GroupFinder getGroupFinder() {
246         return groupFinder;
247     }
248 
249     public void setGroupFinder(GroupFinder groupFinder) {
250         this.groupFinder = groupFinder;
251     }
252 
253     public OrganizationLocalService getOrganizationLocalService() {
254         return organizationLocalService;
255     }
256 
257     public void setOrganizationLocalService(
258         OrganizationLocalService organizationLocalService) {
259         this.organizationLocalService = organizationLocalService;
260     }
261 
262     public OrganizationService getOrganizationService() {
263         return organizationService;
264     }
265 
266     public void setOrganizationService(OrganizationService organizationService) {
267         this.organizationService = organizationService;
268     }
269 
270     public OrganizationPersistence getOrganizationPersistence() {
271         return organizationPersistence;
272     }
273 
274     public void setOrganizationPersistence(
275         OrganizationPersistence organizationPersistence) {
276         this.organizationPersistence = organizationPersistence;
277     }
278 
279     public OrganizationFinder getOrganizationFinder() {
280         return organizationFinder;
281     }
282 
283     public void setOrganizationFinder(OrganizationFinder organizationFinder) {
284         this.organizationFinder = organizationFinder;
285     }
286 
287     public ResourceLocalService getResourceLocalService() {
288         return resourceLocalService;
289     }
290 
291     public void setResourceLocalService(
292         ResourceLocalService resourceLocalService) {
293         this.resourceLocalService = resourceLocalService;
294     }
295 
296     public ResourceService getResourceService() {
297         return resourceService;
298     }
299 
300     public void setResourceService(ResourceService resourceService) {
301         this.resourceService = resourceService;
302     }
303 
304     public ResourcePersistence getResourcePersistence() {
305         return resourcePersistence;
306     }
307 
308     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
309         this.resourcePersistence = resourcePersistence;
310     }
311 
312     public ResourceFinder getResourceFinder() {
313         return resourceFinder;
314     }
315 
316     public void setResourceFinder(ResourceFinder resourceFinder) {
317         this.resourceFinder = resourceFinder;
318     }
319 
320     public UserLocalService getUserLocalService() {
321         return userLocalService;
322     }
323 
324     public void setUserLocalService(UserLocalService userLocalService) {
325         this.userLocalService = userLocalService;
326     }
327 
328     public UserService getUserService() {
329         return userService;
330     }
331 
332     public void setUserService(UserService userService) {
333         this.userService = userService;
334     }
335 
336     public UserPersistence getUserPersistence() {
337         return userPersistence;
338     }
339 
340     public void setUserPersistence(UserPersistence userPersistence) {
341         this.userPersistence = userPersistence;
342     }
343 
344     public UserFinder getUserFinder() {
345         return userFinder;
346     }
347 
348     public void setUserFinder(UserFinder userFinder) {
349         this.userFinder = userFinder;
350     }
351 
352     public MBMessageLocalService getMBMessageLocalService() {
353         return mbMessageLocalService;
354     }
355 
356     public void setMBMessageLocalService(
357         MBMessageLocalService mbMessageLocalService) {
358         this.mbMessageLocalService = mbMessageLocalService;
359     }
360 
361     public MBMessageService getMBMessageService() {
362         return mbMessageService;
363     }
364 
365     public void setMBMessageService(MBMessageService mbMessageService) {
366         this.mbMessageService = mbMessageService;
367     }
368 
369     public MBMessagePersistence getMBMessagePersistence() {
370         return mbMessagePersistence;
371     }
372 
373     public void setMBMessagePersistence(
374         MBMessagePersistence mbMessagePersistence) {
375         this.mbMessagePersistence = mbMessagePersistence;
376     }
377 
378     public MBMessageFinder getMBMessageFinder() {
379         return mbMessageFinder;
380     }
381 
382     public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
383         this.mbMessageFinder = mbMessageFinder;
384     }
385 
386     public RatingsStatsLocalService getRatingsStatsLocalService() {
387         return ratingsStatsLocalService;
388     }
389 
390     public void setRatingsStatsLocalService(
391         RatingsStatsLocalService ratingsStatsLocalService) {
392         this.ratingsStatsLocalService = ratingsStatsLocalService;
393     }
394 
395     public RatingsStatsPersistence getRatingsStatsPersistence() {
396         return ratingsStatsPersistence;
397     }
398 
399     public void setRatingsStatsPersistence(
400         RatingsStatsPersistence ratingsStatsPersistence) {
401         this.ratingsStatsPersistence = ratingsStatsPersistence;
402     }
403 
404     public SocialActivityLocalService getSocialActivityLocalService() {
405         return socialActivityLocalService;
406     }
407 
408     public void setSocialActivityLocalService(
409         SocialActivityLocalService socialActivityLocalService) {
410         this.socialActivityLocalService = socialActivityLocalService;
411     }
412 
413     public SocialActivityPersistence getSocialActivityPersistence() {
414         return socialActivityPersistence;
415     }
416 
417     public void setSocialActivityPersistence(
418         SocialActivityPersistence socialActivityPersistence) {
419         this.socialActivityPersistence = socialActivityPersistence;
420     }
421 
422     public SocialActivityFinder getSocialActivityFinder() {
423         return socialActivityFinder;
424     }
425 
426     public void setSocialActivityFinder(
427         SocialActivityFinder socialActivityFinder) {
428         this.socialActivityFinder = socialActivityFinder;
429     }
430 
431     public TagsAssetLocalService getTagsAssetLocalService() {
432         return tagsAssetLocalService;
433     }
434 
435     public void setTagsAssetLocalService(
436         TagsAssetLocalService tagsAssetLocalService) {
437         this.tagsAssetLocalService = tagsAssetLocalService;
438     }
439 
440     public TagsAssetService getTagsAssetService() {
441         return tagsAssetService;
442     }
443 
444     public void setTagsAssetService(TagsAssetService tagsAssetService) {
445         this.tagsAssetService = tagsAssetService;
446     }
447 
448     public TagsAssetPersistence getTagsAssetPersistence() {
449         return tagsAssetPersistence;
450     }
451 
452     public void setTagsAssetPersistence(
453         TagsAssetPersistence tagsAssetPersistence) {
454         this.tagsAssetPersistence = tagsAssetPersistence;
455     }
456 
457     public TagsAssetFinder getTagsAssetFinder() {
458         return tagsAssetFinder;
459     }
460 
461     public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
462         this.tagsAssetFinder = tagsAssetFinder;
463     }
464 
465     public TagsEntryLocalService getTagsEntryLocalService() {
466         return tagsEntryLocalService;
467     }
468 
469     public void setTagsEntryLocalService(
470         TagsEntryLocalService tagsEntryLocalService) {
471         this.tagsEntryLocalService = tagsEntryLocalService;
472     }
473 
474     public TagsEntryService getTagsEntryService() {
475         return tagsEntryService;
476     }
477 
478     public void setTagsEntryService(TagsEntryService tagsEntryService) {
479         this.tagsEntryService = tagsEntryService;
480     }
481 
482     public TagsEntryPersistence getTagsEntryPersistence() {
483         return tagsEntryPersistence;
484     }
485 
486     public void setTagsEntryPersistence(
487         TagsEntryPersistence tagsEntryPersistence) {
488         this.tagsEntryPersistence = tagsEntryPersistence;
489     }
490 
491     public TagsEntryFinder getTagsEntryFinder() {
492         return tagsEntryFinder;
493     }
494 
495     public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
496         this.tagsEntryFinder = tagsEntryFinder;
497     }
498 
499     public void afterPropertiesSet() {
500         if (blogsEntryPersistence == null) {
501             blogsEntryPersistence = (BlogsEntryPersistence)PortalBeanLocatorUtil.locate(BlogsEntryPersistence.class.getName() +
502                     ".impl");
503         }
504 
505         if (blogsEntryFinder == null) {
506             blogsEntryFinder = (BlogsEntryFinder)PortalBeanLocatorUtil.locate(BlogsEntryFinder.class.getName() +
507                     ".impl");
508         }
509 
510         if (blogsStatsUserLocalService == null) {
511             blogsStatsUserLocalService = (BlogsStatsUserLocalService)PortalBeanLocatorUtil.locate(BlogsStatsUserLocalService.class.getName() +
512                     ".impl");
513         }
514 
515         if (blogsStatsUserPersistence == null) {
516             blogsStatsUserPersistence = (BlogsStatsUserPersistence)PortalBeanLocatorUtil.locate(BlogsStatsUserPersistence.class.getName() +
517                     ".impl");
518         }
519 
520         if (blogsStatsUserFinder == null) {
521             blogsStatsUserFinder = (BlogsStatsUserFinder)PortalBeanLocatorUtil.locate(BlogsStatsUserFinder.class.getName() +
522                     ".impl");
523         }
524 
525         if (counterLocalService == null) {
526             counterLocalService = (CounterLocalService)PortalBeanLocatorUtil.locate(CounterLocalService.class.getName() +
527                     ".impl");
528         }
529 
530         if (counterService == null) {
531             counterService = (CounterService)PortalBeanLocatorUtil.locate(CounterService.class.getName() +
532                     ".impl");
533         }
534 
535         if (companyLocalService == null) {
536             companyLocalService = (CompanyLocalService)PortalBeanLocatorUtil.locate(CompanyLocalService.class.getName() +
537                     ".impl");
538         }
539 
540         if (companyService == null) {
541             companyService = (CompanyService)PortalBeanLocatorUtil.locate(CompanyService.class.getName() +
542                     ".impl");
543         }
544 
545         if (companyPersistence == null) {
546             companyPersistence = (CompanyPersistence)PortalBeanLocatorUtil.locate(CompanyPersistence.class.getName() +
547                     ".impl");
548         }
549 
550         if (groupLocalService == null) {
551             groupLocalService = (GroupLocalService)PortalBeanLocatorUtil.locate(GroupLocalService.class.getName() +
552                     ".impl");
553         }
554 
555         if (groupService == null) {
556             groupService = (GroupService)PortalBeanLocatorUtil.locate(GroupService.class.getName() +
557                     ".impl");
558         }
559 
560         if (groupPersistence == null) {
561             groupPersistence = (GroupPersistence)PortalBeanLocatorUtil.locate(GroupPersistence.class.getName() +
562                     ".impl");
563         }
564 
565         if (groupFinder == null) {
566             groupFinder = (GroupFinder)PortalBeanLocatorUtil.locate(GroupFinder.class.getName() +
567                     ".impl");
568         }
569 
570         if (organizationLocalService == null) {
571             organizationLocalService = (OrganizationLocalService)PortalBeanLocatorUtil.locate(OrganizationLocalService.class.getName() +
572                     ".impl");
573         }
574 
575         if (organizationService == null) {
576             organizationService = (OrganizationService)PortalBeanLocatorUtil.locate(OrganizationService.class.getName() +
577                     ".impl");
578         }
579 
580         if (organizationPersistence == null) {
581             organizationPersistence = (OrganizationPersistence)PortalBeanLocatorUtil.locate(OrganizationPersistence.class.getName() +
582                     ".impl");
583         }
584 
585         if (organizationFinder == null) {
586             organizationFinder = (OrganizationFinder)PortalBeanLocatorUtil.locate(OrganizationFinder.class.getName() +
587                     ".impl");
588         }
589 
590         if (resourceLocalService == null) {
591             resourceLocalService = (ResourceLocalService)PortalBeanLocatorUtil.locate(ResourceLocalService.class.getName() +
592                     ".impl");
593         }
594 
595         if (resourceService == null) {
596             resourceService = (ResourceService)PortalBeanLocatorUtil.locate(ResourceService.class.getName() +
597                     ".impl");
598         }
599 
600         if (resourcePersistence == null) {
601             resourcePersistence = (ResourcePersistence)PortalBeanLocatorUtil.locate(ResourcePersistence.class.getName() +
602                     ".impl");
603         }
604 
605         if (resourceFinder == null) {
606             resourceFinder = (ResourceFinder)PortalBeanLocatorUtil.locate(ResourceFinder.class.getName() +
607                     ".impl");
608         }
609 
610         if (userLocalService == null) {
611             userLocalService = (UserLocalService)PortalBeanLocatorUtil.locate(UserLocalService.class.getName() +
612                     ".impl");
613         }
614 
615         if (userService == null) {
616             userService = (UserService)PortalBeanLocatorUtil.locate(UserService.class.getName() +
617                     ".impl");
618         }
619 
620         if (userPersistence == null) {
621             userPersistence = (UserPersistence)PortalBeanLocatorUtil.locate(UserPersistence.class.getName() +
622                     ".impl");
623         }
624 
625         if (userFinder == null) {
626             userFinder = (UserFinder)PortalBeanLocatorUtil.locate(UserFinder.class.getName() +
627                     ".impl");
628         }
629 
630         if (mbMessageLocalService == null) {
631             mbMessageLocalService = (MBMessageLocalService)PortalBeanLocatorUtil.locate(MBMessageLocalService.class.getName() +
632                     ".impl");
633         }
634 
635         if (mbMessageService == null) {
636             mbMessageService = (MBMessageService)PortalBeanLocatorUtil.locate(MBMessageService.class.getName() +
637                     ".impl");
638         }
639 
640         if (mbMessagePersistence == null) {
641             mbMessagePersistence = (MBMessagePersistence)PortalBeanLocatorUtil.locate(MBMessagePersistence.class.getName() +
642                     ".impl");
643         }
644 
645         if (mbMessageFinder == null) {
646             mbMessageFinder = (MBMessageFinder)PortalBeanLocatorUtil.locate(MBMessageFinder.class.getName() +
647                     ".impl");
648         }
649 
650         if (ratingsStatsLocalService == null) {
651             ratingsStatsLocalService = (RatingsStatsLocalService)PortalBeanLocatorUtil.locate(RatingsStatsLocalService.class.getName() +
652                     ".impl");
653         }
654 
655         if (ratingsStatsPersistence == null) {
656             ratingsStatsPersistence = (RatingsStatsPersistence)PortalBeanLocatorUtil.locate(RatingsStatsPersistence.class.getName() +
657                     ".impl");
658         }
659 
660         if (socialActivityLocalService == null) {
661             socialActivityLocalService = (SocialActivityLocalService)PortalBeanLocatorUtil.locate(SocialActivityLocalService.class.getName() +
662                     ".impl");
663         }
664 
665         if (socialActivityPersistence == null) {
666             socialActivityPersistence = (SocialActivityPersistence)PortalBeanLocatorUtil.locate(SocialActivityPersistence.class.getName() +
667                     ".impl");
668         }
669 
670         if (socialActivityFinder == null) {
671             socialActivityFinder = (SocialActivityFinder)PortalBeanLocatorUtil.locate(SocialActivityFinder.class.getName() +
672                     ".impl");
673         }
674 
675         if (tagsAssetLocalService == null) {
676             tagsAssetLocalService = (TagsAssetLocalService)PortalBeanLocatorUtil.locate(TagsAssetLocalService.class.getName() +
677                     ".impl");
678         }
679 
680         if (tagsAssetService == null) {
681             tagsAssetService = (TagsAssetService)PortalBeanLocatorUtil.locate(TagsAssetService.class.getName() +
682                     ".impl");
683         }
684 
685         if (tagsAssetPersistence == null) {
686             tagsAssetPersistence = (TagsAssetPersistence)PortalBeanLocatorUtil.locate(TagsAssetPersistence.class.getName() +
687                     ".impl");
688         }
689 
690         if (tagsAssetFinder == null) {
691             tagsAssetFinder = (TagsAssetFinder)PortalBeanLocatorUtil.locate(TagsAssetFinder.class.getName() +
692                     ".impl");
693         }
694 
695         if (tagsEntryLocalService == null) {
696             tagsEntryLocalService = (TagsEntryLocalService)PortalBeanLocatorUtil.locate(TagsEntryLocalService.class.getName() +
697                     ".impl");
698         }
699 
700         if (tagsEntryService == null) {
701             tagsEntryService = (TagsEntryService)PortalBeanLocatorUtil.locate(TagsEntryService.class.getName() +
702                     ".impl");
703         }
704 
705         if (tagsEntryPersistence == null) {
706             tagsEntryPersistence = (TagsEntryPersistence)PortalBeanLocatorUtil.locate(TagsEntryPersistence.class.getName() +
707                     ".impl");
708         }
709 
710         if (tagsEntryFinder == null) {
711             tagsEntryFinder = (TagsEntryFinder)PortalBeanLocatorUtil.locate(TagsEntryFinder.class.getName() +
712                     ".impl");
713         }
714     }
715 
716     protected BlogsEntryPersistence blogsEntryPersistence;
717     protected BlogsEntryFinder blogsEntryFinder;
718     protected BlogsStatsUserLocalService blogsStatsUserLocalService;
719     protected BlogsStatsUserPersistence blogsStatsUserPersistence;
720     protected BlogsStatsUserFinder blogsStatsUserFinder;
721     protected CounterLocalService counterLocalService;
722     protected CounterService counterService;
723     protected CompanyLocalService companyLocalService;
724     protected CompanyService companyService;
725     protected CompanyPersistence companyPersistence;
726     protected GroupLocalService groupLocalService;
727     protected GroupService groupService;
728     protected GroupPersistence groupPersistence;
729     protected GroupFinder groupFinder;
730     protected OrganizationLocalService organizationLocalService;
731     protected OrganizationService organizationService;
732     protected OrganizationPersistence organizationPersistence;
733     protected OrganizationFinder organizationFinder;
734     protected ResourceLocalService resourceLocalService;
735     protected ResourceService resourceService;
736     protected ResourcePersistence resourcePersistence;
737     protected ResourceFinder resourceFinder;
738     protected UserLocalService userLocalService;
739     protected UserService userService;
740     protected UserPersistence userPersistence;
741     protected UserFinder userFinder;
742     protected MBMessageLocalService mbMessageLocalService;
743     protected MBMessageService mbMessageService;
744     protected MBMessagePersistence mbMessagePersistence;
745     protected MBMessageFinder mbMessageFinder;
746     protected RatingsStatsLocalService ratingsStatsLocalService;
747     protected RatingsStatsPersistence ratingsStatsPersistence;
748     protected SocialActivityLocalService socialActivityLocalService;
749     protected SocialActivityPersistence socialActivityPersistence;
750     protected SocialActivityFinder socialActivityFinder;
751     protected TagsAssetLocalService tagsAssetLocalService;
752     protected TagsAssetService tagsAssetService;
753     protected TagsAssetPersistence tagsAssetPersistence;
754     protected TagsAssetFinder tagsAssetFinder;
755     protected TagsEntryLocalService tagsEntryLocalService;
756     protected TagsEntryService tagsEntryService;
757     protected TagsEntryPersistence tagsEntryPersistence;
758     protected TagsEntryFinder tagsEntryFinder;
759 }