001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.wiki.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
024    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
025    import com.liferay.portal.kernel.exception.PortalException;
026    import com.liferay.portal.kernel.exception.SystemException;
027    import com.liferay.portal.kernel.search.Indexable;
028    import com.liferay.portal.kernel.search.IndexableType;
029    import com.liferay.portal.kernel.util.OrderByComparator;
030    import com.liferay.portal.model.PersistedModel;
031    import com.liferay.portal.service.BaseLocalServiceImpl;
032    import com.liferay.portal.service.GroupLocalService;
033    import com.liferay.portal.service.GroupService;
034    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
035    import com.liferay.portal.service.ResourceLocalService;
036    import com.liferay.portal.service.SubscriptionLocalService;
037    import com.liferay.portal.service.UserLocalService;
038    import com.liferay.portal.service.UserService;
039    import com.liferay.portal.service.WorkflowInstanceLinkLocalService;
040    import com.liferay.portal.service.persistence.GroupFinder;
041    import com.liferay.portal.service.persistence.GroupPersistence;
042    import com.liferay.portal.service.persistence.SubscriptionPersistence;
043    import com.liferay.portal.service.persistence.UserFinder;
044    import com.liferay.portal.service.persistence.UserPersistence;
045    import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
046    
047    import com.liferay.portlet.asset.service.AssetEntryLocalService;
048    import com.liferay.portlet.asset.service.AssetEntryService;
049    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
050    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
051    import com.liferay.portlet.social.service.SocialActivityCounterLocalService;
052    import com.liferay.portlet.social.service.persistence.SocialActivityCounterFinder;
053    import com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence;
054    import com.liferay.portlet.trash.service.TrashEntryLocalService;
055    import com.liferay.portlet.trash.service.TrashEntryService;
056    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
057    import com.liferay.portlet.wiki.model.WikiNode;
058    import com.liferay.portlet.wiki.service.WikiNodeLocalService;
059    import com.liferay.portlet.wiki.service.WikiNodeService;
060    import com.liferay.portlet.wiki.service.WikiPageLocalService;
061    import com.liferay.portlet.wiki.service.WikiPageResourceLocalService;
062    import com.liferay.portlet.wiki.service.WikiPageService;
063    import com.liferay.portlet.wiki.service.persistence.WikiNodePersistence;
064    import com.liferay.portlet.wiki.service.persistence.WikiPageFinder;
065    import com.liferay.portlet.wiki.service.persistence.WikiPagePersistence;
066    import com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistence;
067    
068    import java.io.Serializable;
069    
070    import java.util.List;
071    
072    import javax.sql.DataSource;
073    
074    /**
075     * The base implementation of the wiki node local service.
076     *
077     * <p>
078     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.wiki.service.impl.WikiNodeLocalServiceImpl}.
079     * </p>
080     *
081     * @author Brian Wing Shun Chan
082     * @see com.liferay.portlet.wiki.service.impl.WikiNodeLocalServiceImpl
083     * @see com.liferay.portlet.wiki.service.WikiNodeLocalServiceUtil
084     * @generated
085     */
086    public abstract class WikiNodeLocalServiceBaseImpl extends BaseLocalServiceImpl
087            implements WikiNodeLocalService, IdentifiableBean {
088            /*
089             * NOTE FOR DEVELOPERS:
090             *
091             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.wiki.service.WikiNodeLocalServiceUtil} to access the wiki node local service.
092             */
093    
094            /**
095             * Adds the wiki node to the database. Also notifies the appropriate model listeners.
096             *
097             * @param wikiNode the wiki node
098             * @return the wiki node that was added
099             * @throws SystemException if a system exception occurred
100             */
101            @Indexable(type = IndexableType.REINDEX)
102            public WikiNode addWikiNode(WikiNode wikiNode) throws SystemException {
103                    wikiNode.setNew(true);
104    
105                    return wikiNodePersistence.update(wikiNode);
106            }
107    
108            /**
109             * Creates a new wiki node with the primary key. Does not add the wiki node to the database.
110             *
111             * @param nodeId the primary key for the new wiki node
112             * @return the new wiki node
113             */
114            public WikiNode createWikiNode(long nodeId) {
115                    return wikiNodePersistence.create(nodeId);
116            }
117    
118            /**
119             * Deletes the wiki node with the primary key from the database. Also notifies the appropriate model listeners.
120             *
121             * @param nodeId the primary key of the wiki node
122             * @return the wiki node that was removed
123             * @throws PortalException if a wiki node with the primary key could not be found
124             * @throws SystemException if a system exception occurred
125             */
126            @Indexable(type = IndexableType.DELETE)
127            public WikiNode deleteWikiNode(long nodeId)
128                    throws PortalException, SystemException {
129                    return wikiNodePersistence.remove(nodeId);
130            }
131    
132            /**
133             * Deletes the wiki node from the database. Also notifies the appropriate model listeners.
134             *
135             * @param wikiNode the wiki node
136             * @return the wiki node that was removed
137             * @throws SystemException if a system exception occurred
138             */
139            @Indexable(type = IndexableType.DELETE)
140            public WikiNode deleteWikiNode(WikiNode wikiNode) throws SystemException {
141                    return wikiNodePersistence.remove(wikiNode);
142            }
143    
144            public DynamicQuery dynamicQuery() {
145                    Class<?> clazz = getClass();
146    
147                    return DynamicQueryFactoryUtil.forClass(WikiNode.class,
148                            clazz.getClassLoader());
149            }
150    
151            /**
152             * Performs a dynamic query on the database and returns the matching rows.
153             *
154             * @param dynamicQuery the dynamic query
155             * @return the matching rows
156             * @throws SystemException if a system exception occurred
157             */
158            @SuppressWarnings("rawtypes")
159            public List dynamicQuery(DynamicQuery dynamicQuery)
160                    throws SystemException {
161                    return wikiNodePersistence.findWithDynamicQuery(dynamicQuery);
162            }
163    
164            /**
165             * Performs a dynamic query on the database and returns a range of the matching rows.
166             *
167             * <p>
168             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
169             * </p>
170             *
171             * @param dynamicQuery the dynamic query
172             * @param start the lower bound of the range of model instances
173             * @param end the upper bound of the range of model instances (not inclusive)
174             * @return the range of matching rows
175             * @throws SystemException if a system exception occurred
176             */
177            @SuppressWarnings("rawtypes")
178            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
179                    throws SystemException {
180                    return wikiNodePersistence.findWithDynamicQuery(dynamicQuery, start, end);
181            }
182    
183            /**
184             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
185             *
186             * <p>
187             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
188             * </p>
189             *
190             * @param dynamicQuery the dynamic query
191             * @param start the lower bound of the range of model instances
192             * @param end the upper bound of the range of model instances (not inclusive)
193             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
194             * @return the ordered range of matching rows
195             * @throws SystemException if a system exception occurred
196             */
197            @SuppressWarnings("rawtypes")
198            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
199                    OrderByComparator orderByComparator) throws SystemException {
200                    return wikiNodePersistence.findWithDynamicQuery(dynamicQuery, start,
201                            end, orderByComparator);
202            }
203    
204            /**
205             * Returns the number of rows that match the dynamic query.
206             *
207             * @param dynamicQuery the dynamic query
208             * @return the number of rows that match the dynamic query
209             * @throws SystemException if a system exception occurred
210             */
211            public long dynamicQueryCount(DynamicQuery dynamicQuery)
212                    throws SystemException {
213                    return wikiNodePersistence.countWithDynamicQuery(dynamicQuery);
214            }
215    
216            public WikiNode fetchWikiNode(long nodeId) throws SystemException {
217                    return wikiNodePersistence.fetchByPrimaryKey(nodeId);
218            }
219    
220            /**
221             * Returns the wiki node with the primary key.
222             *
223             * @param nodeId the primary key of the wiki node
224             * @return the wiki node
225             * @throws PortalException if a wiki node with the primary key could not be found
226             * @throws SystemException if a system exception occurred
227             */
228            public WikiNode getWikiNode(long nodeId)
229                    throws PortalException, SystemException {
230                    return wikiNodePersistence.findByPrimaryKey(nodeId);
231            }
232    
233            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
234                    throws PortalException, SystemException {
235                    return wikiNodePersistence.findByPrimaryKey(primaryKeyObj);
236            }
237    
238            /**
239             * Returns the wiki node with the UUID in the group.
240             *
241             * @param uuid the UUID of wiki node
242             * @param groupId the group id of the wiki node
243             * @return the wiki node
244             * @throws PortalException if a wiki node with the UUID in the group could not be found
245             * @throws SystemException if a system exception occurred
246             */
247            public WikiNode getWikiNodeByUuidAndGroupId(String uuid, long groupId)
248                    throws PortalException, SystemException {
249                    return wikiNodePersistence.findByUUID_G(uuid, groupId);
250            }
251    
252            /**
253             * Returns a range of all the wiki nodes.
254             *
255             * <p>
256             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
257             * </p>
258             *
259             * @param start the lower bound of the range of wiki nodes
260             * @param end the upper bound of the range of wiki nodes (not inclusive)
261             * @return the range of wiki nodes
262             * @throws SystemException if a system exception occurred
263             */
264            public List<WikiNode> getWikiNodes(int start, int end)
265                    throws SystemException {
266                    return wikiNodePersistence.findAll(start, end);
267            }
268    
269            /**
270             * Returns the number of wiki nodes.
271             *
272             * @return the number of wiki nodes
273             * @throws SystemException if a system exception occurred
274             */
275            public int getWikiNodesCount() throws SystemException {
276                    return wikiNodePersistence.countAll();
277            }
278    
279            /**
280             * Updates the wiki node in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
281             *
282             * @param wikiNode the wiki node
283             * @return the wiki node that was updated
284             * @throws SystemException if a system exception occurred
285             */
286            @Indexable(type = IndexableType.REINDEX)
287            public WikiNode updateWikiNode(WikiNode wikiNode) throws SystemException {
288                    return wikiNodePersistence.update(wikiNode);
289            }
290    
291            /**
292             * Returns the wiki node local service.
293             *
294             * @return the wiki node local service
295             */
296            public WikiNodeLocalService getWikiNodeLocalService() {
297                    return wikiNodeLocalService;
298            }
299    
300            /**
301             * Sets the wiki node local service.
302             *
303             * @param wikiNodeLocalService the wiki node local service
304             */
305            public void setWikiNodeLocalService(
306                    WikiNodeLocalService wikiNodeLocalService) {
307                    this.wikiNodeLocalService = wikiNodeLocalService;
308            }
309    
310            /**
311             * Returns the wiki node remote service.
312             *
313             * @return the wiki node remote service
314             */
315            public WikiNodeService getWikiNodeService() {
316                    return wikiNodeService;
317            }
318    
319            /**
320             * Sets the wiki node remote service.
321             *
322             * @param wikiNodeService the wiki node remote service
323             */
324            public void setWikiNodeService(WikiNodeService wikiNodeService) {
325                    this.wikiNodeService = wikiNodeService;
326            }
327    
328            /**
329             * Returns the wiki node persistence.
330             *
331             * @return the wiki node persistence
332             */
333            public WikiNodePersistence getWikiNodePersistence() {
334                    return wikiNodePersistence;
335            }
336    
337            /**
338             * Sets the wiki node persistence.
339             *
340             * @param wikiNodePersistence the wiki node persistence
341             */
342            public void setWikiNodePersistence(WikiNodePersistence wikiNodePersistence) {
343                    this.wikiNodePersistence = wikiNodePersistence;
344            }
345    
346            /**
347             * Returns the wiki page local service.
348             *
349             * @return the wiki page local service
350             */
351            public WikiPageLocalService getWikiPageLocalService() {
352                    return wikiPageLocalService;
353            }
354    
355            /**
356             * Sets the wiki page local service.
357             *
358             * @param wikiPageLocalService the wiki page local service
359             */
360            public void setWikiPageLocalService(
361                    WikiPageLocalService wikiPageLocalService) {
362                    this.wikiPageLocalService = wikiPageLocalService;
363            }
364    
365            /**
366             * Returns the wiki page remote service.
367             *
368             * @return the wiki page remote service
369             */
370            public WikiPageService getWikiPageService() {
371                    return wikiPageService;
372            }
373    
374            /**
375             * Sets the wiki page remote service.
376             *
377             * @param wikiPageService the wiki page remote service
378             */
379            public void setWikiPageService(WikiPageService wikiPageService) {
380                    this.wikiPageService = wikiPageService;
381            }
382    
383            /**
384             * Returns the wiki page persistence.
385             *
386             * @return the wiki page persistence
387             */
388            public WikiPagePersistence getWikiPagePersistence() {
389                    return wikiPagePersistence;
390            }
391    
392            /**
393             * Sets the wiki page persistence.
394             *
395             * @param wikiPagePersistence the wiki page persistence
396             */
397            public void setWikiPagePersistence(WikiPagePersistence wikiPagePersistence) {
398                    this.wikiPagePersistence = wikiPagePersistence;
399            }
400    
401            /**
402             * Returns the wiki page finder.
403             *
404             * @return the wiki page finder
405             */
406            public WikiPageFinder getWikiPageFinder() {
407                    return wikiPageFinder;
408            }
409    
410            /**
411             * Sets the wiki page finder.
412             *
413             * @param wikiPageFinder the wiki page finder
414             */
415            public void setWikiPageFinder(WikiPageFinder wikiPageFinder) {
416                    this.wikiPageFinder = wikiPageFinder;
417            }
418    
419            /**
420             * Returns the wiki page resource local service.
421             *
422             * @return the wiki page resource local service
423             */
424            public WikiPageResourceLocalService getWikiPageResourceLocalService() {
425                    return wikiPageResourceLocalService;
426            }
427    
428            /**
429             * Sets the wiki page resource local service.
430             *
431             * @param wikiPageResourceLocalService the wiki page resource local service
432             */
433            public void setWikiPageResourceLocalService(
434                    WikiPageResourceLocalService wikiPageResourceLocalService) {
435                    this.wikiPageResourceLocalService = wikiPageResourceLocalService;
436            }
437    
438            /**
439             * Returns the wiki page resource persistence.
440             *
441             * @return the wiki page resource persistence
442             */
443            public WikiPageResourcePersistence getWikiPageResourcePersistence() {
444                    return wikiPageResourcePersistence;
445            }
446    
447            /**
448             * Sets the wiki page resource persistence.
449             *
450             * @param wikiPageResourcePersistence the wiki page resource persistence
451             */
452            public void setWikiPageResourcePersistence(
453                    WikiPageResourcePersistence wikiPageResourcePersistence) {
454                    this.wikiPageResourcePersistence = wikiPageResourcePersistence;
455            }
456    
457            /**
458             * Returns the counter local service.
459             *
460             * @return the counter local service
461             */
462            public CounterLocalService getCounterLocalService() {
463                    return counterLocalService;
464            }
465    
466            /**
467             * Sets the counter local service.
468             *
469             * @param counterLocalService the counter local service
470             */
471            public void setCounterLocalService(CounterLocalService counterLocalService) {
472                    this.counterLocalService = counterLocalService;
473            }
474    
475            /**
476             * Returns the group local service.
477             *
478             * @return the group local service
479             */
480            public GroupLocalService getGroupLocalService() {
481                    return groupLocalService;
482            }
483    
484            /**
485             * Sets the group local service.
486             *
487             * @param groupLocalService the group local service
488             */
489            public void setGroupLocalService(GroupLocalService groupLocalService) {
490                    this.groupLocalService = groupLocalService;
491            }
492    
493            /**
494             * Returns the group remote service.
495             *
496             * @return the group remote service
497             */
498            public GroupService getGroupService() {
499                    return groupService;
500            }
501    
502            /**
503             * Sets the group remote service.
504             *
505             * @param groupService the group remote service
506             */
507            public void setGroupService(GroupService groupService) {
508                    this.groupService = groupService;
509            }
510    
511            /**
512             * Returns the group persistence.
513             *
514             * @return the group persistence
515             */
516            public GroupPersistence getGroupPersistence() {
517                    return groupPersistence;
518            }
519    
520            /**
521             * Sets the group persistence.
522             *
523             * @param groupPersistence the group persistence
524             */
525            public void setGroupPersistence(GroupPersistence groupPersistence) {
526                    this.groupPersistence = groupPersistence;
527            }
528    
529            /**
530             * Returns the group finder.
531             *
532             * @return the group finder
533             */
534            public GroupFinder getGroupFinder() {
535                    return groupFinder;
536            }
537    
538            /**
539             * Sets the group finder.
540             *
541             * @param groupFinder the group finder
542             */
543            public void setGroupFinder(GroupFinder groupFinder) {
544                    this.groupFinder = groupFinder;
545            }
546    
547            /**
548             * Returns the resource local service.
549             *
550             * @return the resource local service
551             */
552            public ResourceLocalService getResourceLocalService() {
553                    return resourceLocalService;
554            }
555    
556            /**
557             * Sets the resource local service.
558             *
559             * @param resourceLocalService the resource local service
560             */
561            public void setResourceLocalService(
562                    ResourceLocalService resourceLocalService) {
563                    this.resourceLocalService = resourceLocalService;
564            }
565    
566            /**
567             * Returns the subscription local service.
568             *
569             * @return the subscription local service
570             */
571            public SubscriptionLocalService getSubscriptionLocalService() {
572                    return subscriptionLocalService;
573            }
574    
575            /**
576             * Sets the subscription local service.
577             *
578             * @param subscriptionLocalService the subscription local service
579             */
580            public void setSubscriptionLocalService(
581                    SubscriptionLocalService subscriptionLocalService) {
582                    this.subscriptionLocalService = subscriptionLocalService;
583            }
584    
585            /**
586             * Returns the subscription persistence.
587             *
588             * @return the subscription persistence
589             */
590            public SubscriptionPersistence getSubscriptionPersistence() {
591                    return subscriptionPersistence;
592            }
593    
594            /**
595             * Sets the subscription persistence.
596             *
597             * @param subscriptionPersistence the subscription persistence
598             */
599            public void setSubscriptionPersistence(
600                    SubscriptionPersistence subscriptionPersistence) {
601                    this.subscriptionPersistence = subscriptionPersistence;
602            }
603    
604            /**
605             * Returns the user local service.
606             *
607             * @return the user local service
608             */
609            public UserLocalService getUserLocalService() {
610                    return userLocalService;
611            }
612    
613            /**
614             * Sets the user local service.
615             *
616             * @param userLocalService the user local service
617             */
618            public void setUserLocalService(UserLocalService userLocalService) {
619                    this.userLocalService = userLocalService;
620            }
621    
622            /**
623             * Returns the user remote service.
624             *
625             * @return the user remote service
626             */
627            public UserService getUserService() {
628                    return userService;
629            }
630    
631            /**
632             * Sets the user remote service.
633             *
634             * @param userService the user remote service
635             */
636            public void setUserService(UserService userService) {
637                    this.userService = userService;
638            }
639    
640            /**
641             * Returns the user persistence.
642             *
643             * @return the user persistence
644             */
645            public UserPersistence getUserPersistence() {
646                    return userPersistence;
647            }
648    
649            /**
650             * Sets the user persistence.
651             *
652             * @param userPersistence the user persistence
653             */
654            public void setUserPersistence(UserPersistence userPersistence) {
655                    this.userPersistence = userPersistence;
656            }
657    
658            /**
659             * Returns the user finder.
660             *
661             * @return the user finder
662             */
663            public UserFinder getUserFinder() {
664                    return userFinder;
665            }
666    
667            /**
668             * Sets the user finder.
669             *
670             * @param userFinder the user finder
671             */
672            public void setUserFinder(UserFinder userFinder) {
673                    this.userFinder = userFinder;
674            }
675    
676            /**
677             * Returns the workflow instance link local service.
678             *
679             * @return the workflow instance link local service
680             */
681            public WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
682                    return workflowInstanceLinkLocalService;
683            }
684    
685            /**
686             * Sets the workflow instance link local service.
687             *
688             * @param workflowInstanceLinkLocalService the workflow instance link local service
689             */
690            public void setWorkflowInstanceLinkLocalService(
691                    WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
692                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
693            }
694    
695            /**
696             * Returns the workflow instance link persistence.
697             *
698             * @return the workflow instance link persistence
699             */
700            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
701                    return workflowInstanceLinkPersistence;
702            }
703    
704            /**
705             * Sets the workflow instance link persistence.
706             *
707             * @param workflowInstanceLinkPersistence the workflow instance link persistence
708             */
709            public void setWorkflowInstanceLinkPersistence(
710                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
711                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
712            }
713    
714            /**
715             * Returns the asset entry local service.
716             *
717             * @return the asset entry local service
718             */
719            public AssetEntryLocalService getAssetEntryLocalService() {
720                    return assetEntryLocalService;
721            }
722    
723            /**
724             * Sets the asset entry local service.
725             *
726             * @param assetEntryLocalService the asset entry local service
727             */
728            public void setAssetEntryLocalService(
729                    AssetEntryLocalService assetEntryLocalService) {
730                    this.assetEntryLocalService = assetEntryLocalService;
731            }
732    
733            /**
734             * Returns the asset entry remote service.
735             *
736             * @return the asset entry remote service
737             */
738            public AssetEntryService getAssetEntryService() {
739                    return assetEntryService;
740            }
741    
742            /**
743             * Sets the asset entry remote service.
744             *
745             * @param assetEntryService the asset entry remote service
746             */
747            public void setAssetEntryService(AssetEntryService assetEntryService) {
748                    this.assetEntryService = assetEntryService;
749            }
750    
751            /**
752             * Returns the asset entry persistence.
753             *
754             * @return the asset entry persistence
755             */
756            public AssetEntryPersistence getAssetEntryPersistence() {
757                    return assetEntryPersistence;
758            }
759    
760            /**
761             * Sets the asset entry persistence.
762             *
763             * @param assetEntryPersistence the asset entry persistence
764             */
765            public void setAssetEntryPersistence(
766                    AssetEntryPersistence assetEntryPersistence) {
767                    this.assetEntryPersistence = assetEntryPersistence;
768            }
769    
770            /**
771             * Returns the asset entry finder.
772             *
773             * @return the asset entry finder
774             */
775            public AssetEntryFinder getAssetEntryFinder() {
776                    return assetEntryFinder;
777            }
778    
779            /**
780             * Sets the asset entry finder.
781             *
782             * @param assetEntryFinder the asset entry finder
783             */
784            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
785                    this.assetEntryFinder = assetEntryFinder;
786            }
787    
788            /**
789             * Returns the social activity counter local service.
790             *
791             * @return the social activity counter local service
792             */
793            public SocialActivityCounterLocalService getSocialActivityCounterLocalService() {
794                    return socialActivityCounterLocalService;
795            }
796    
797            /**
798             * Sets the social activity counter local service.
799             *
800             * @param socialActivityCounterLocalService the social activity counter local service
801             */
802            public void setSocialActivityCounterLocalService(
803                    SocialActivityCounterLocalService socialActivityCounterLocalService) {
804                    this.socialActivityCounterLocalService = socialActivityCounterLocalService;
805            }
806    
807            /**
808             * Returns the social activity counter persistence.
809             *
810             * @return the social activity counter persistence
811             */
812            public SocialActivityCounterPersistence getSocialActivityCounterPersistence() {
813                    return socialActivityCounterPersistence;
814            }
815    
816            /**
817             * Sets the social activity counter persistence.
818             *
819             * @param socialActivityCounterPersistence the social activity counter persistence
820             */
821            public void setSocialActivityCounterPersistence(
822                    SocialActivityCounterPersistence socialActivityCounterPersistence) {
823                    this.socialActivityCounterPersistence = socialActivityCounterPersistence;
824            }
825    
826            /**
827             * Returns the social activity counter finder.
828             *
829             * @return the social activity counter finder
830             */
831            public SocialActivityCounterFinder getSocialActivityCounterFinder() {
832                    return socialActivityCounterFinder;
833            }
834    
835            /**
836             * Sets the social activity counter finder.
837             *
838             * @param socialActivityCounterFinder the social activity counter finder
839             */
840            public void setSocialActivityCounterFinder(
841                    SocialActivityCounterFinder socialActivityCounterFinder) {
842                    this.socialActivityCounterFinder = socialActivityCounterFinder;
843            }
844    
845            /**
846             * Returns the trash entry local service.
847             *
848             * @return the trash entry local service
849             */
850            public TrashEntryLocalService getTrashEntryLocalService() {
851                    return trashEntryLocalService;
852            }
853    
854            /**
855             * Sets the trash entry local service.
856             *
857             * @param trashEntryLocalService the trash entry local service
858             */
859            public void setTrashEntryLocalService(
860                    TrashEntryLocalService trashEntryLocalService) {
861                    this.trashEntryLocalService = trashEntryLocalService;
862            }
863    
864            /**
865             * Returns the trash entry remote service.
866             *
867             * @return the trash entry remote service
868             */
869            public TrashEntryService getTrashEntryService() {
870                    return trashEntryService;
871            }
872    
873            /**
874             * Sets the trash entry remote service.
875             *
876             * @param trashEntryService the trash entry remote service
877             */
878            public void setTrashEntryService(TrashEntryService trashEntryService) {
879                    this.trashEntryService = trashEntryService;
880            }
881    
882            /**
883             * Returns the trash entry persistence.
884             *
885             * @return the trash entry persistence
886             */
887            public TrashEntryPersistence getTrashEntryPersistence() {
888                    return trashEntryPersistence;
889            }
890    
891            /**
892             * Sets the trash entry persistence.
893             *
894             * @param trashEntryPersistence the trash entry persistence
895             */
896            public void setTrashEntryPersistence(
897                    TrashEntryPersistence trashEntryPersistence) {
898                    this.trashEntryPersistence = trashEntryPersistence;
899            }
900    
901            public void afterPropertiesSet() {
902                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.wiki.model.WikiNode",
903                            wikiNodeLocalService);
904            }
905    
906            public void destroy() {
907                    persistedModelLocalServiceRegistry.unregister(
908                            "com.liferay.portlet.wiki.model.WikiNode");
909            }
910    
911            /**
912             * Returns the Spring bean ID for this bean.
913             *
914             * @return the Spring bean ID for this bean
915             */
916            public String getBeanIdentifier() {
917                    return _beanIdentifier;
918            }
919    
920            /**
921             * Sets the Spring bean ID for this bean.
922             *
923             * @param beanIdentifier the Spring bean ID for this bean
924             */
925            public void setBeanIdentifier(String beanIdentifier) {
926                    _beanIdentifier = beanIdentifier;
927            }
928    
929            protected Class<?> getModelClass() {
930                    return WikiNode.class;
931            }
932    
933            protected String getModelClassName() {
934                    return WikiNode.class.getName();
935            }
936    
937            /**
938             * Performs an SQL query.
939             *
940             * @param sql the sql query
941             */
942            protected void runSQL(String sql) throws SystemException {
943                    try {
944                            DataSource dataSource = wikiNodePersistence.getDataSource();
945    
946                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
947                                            sql, new int[0]);
948    
949                            sqlUpdate.update();
950                    }
951                    catch (Exception e) {
952                            throw new SystemException(e);
953                    }
954            }
955    
956            @BeanReference(type = WikiNodeLocalService.class)
957            protected WikiNodeLocalService wikiNodeLocalService;
958            @BeanReference(type = WikiNodeService.class)
959            protected WikiNodeService wikiNodeService;
960            @BeanReference(type = WikiNodePersistence.class)
961            protected WikiNodePersistence wikiNodePersistence;
962            @BeanReference(type = WikiPageLocalService.class)
963            protected WikiPageLocalService wikiPageLocalService;
964            @BeanReference(type = WikiPageService.class)
965            protected WikiPageService wikiPageService;
966            @BeanReference(type = WikiPagePersistence.class)
967            protected WikiPagePersistence wikiPagePersistence;
968            @BeanReference(type = WikiPageFinder.class)
969            protected WikiPageFinder wikiPageFinder;
970            @BeanReference(type = WikiPageResourceLocalService.class)
971            protected WikiPageResourceLocalService wikiPageResourceLocalService;
972            @BeanReference(type = WikiPageResourcePersistence.class)
973            protected WikiPageResourcePersistence wikiPageResourcePersistence;
974            @BeanReference(type = CounterLocalService.class)
975            protected CounterLocalService counterLocalService;
976            @BeanReference(type = GroupLocalService.class)
977            protected GroupLocalService groupLocalService;
978            @BeanReference(type = GroupService.class)
979            protected GroupService groupService;
980            @BeanReference(type = GroupPersistence.class)
981            protected GroupPersistence groupPersistence;
982            @BeanReference(type = GroupFinder.class)
983            protected GroupFinder groupFinder;
984            @BeanReference(type = ResourceLocalService.class)
985            protected ResourceLocalService resourceLocalService;
986            @BeanReference(type = SubscriptionLocalService.class)
987            protected SubscriptionLocalService subscriptionLocalService;
988            @BeanReference(type = SubscriptionPersistence.class)
989            protected SubscriptionPersistence subscriptionPersistence;
990            @BeanReference(type = UserLocalService.class)
991            protected UserLocalService userLocalService;
992            @BeanReference(type = UserService.class)
993            protected UserService userService;
994            @BeanReference(type = UserPersistence.class)
995            protected UserPersistence userPersistence;
996            @BeanReference(type = UserFinder.class)
997            protected UserFinder userFinder;
998            @BeanReference(type = WorkflowInstanceLinkLocalService.class)
999            protected WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1000            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1001            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1002            @BeanReference(type = AssetEntryLocalService.class)
1003            protected AssetEntryLocalService assetEntryLocalService;
1004            @BeanReference(type = AssetEntryService.class)
1005            protected AssetEntryService assetEntryService;
1006            @BeanReference(type = AssetEntryPersistence.class)
1007            protected AssetEntryPersistence assetEntryPersistence;
1008            @BeanReference(type = AssetEntryFinder.class)
1009            protected AssetEntryFinder assetEntryFinder;
1010            @BeanReference(type = SocialActivityCounterLocalService.class)
1011            protected SocialActivityCounterLocalService socialActivityCounterLocalService;
1012            @BeanReference(type = SocialActivityCounterPersistence.class)
1013            protected SocialActivityCounterPersistence socialActivityCounterPersistence;
1014            @BeanReference(type = SocialActivityCounterFinder.class)
1015            protected SocialActivityCounterFinder socialActivityCounterFinder;
1016            @BeanReference(type = TrashEntryLocalService.class)
1017            protected TrashEntryLocalService trashEntryLocalService;
1018            @BeanReference(type = TrashEntryService.class)
1019            protected TrashEntryService trashEntryService;
1020            @BeanReference(type = TrashEntryPersistence.class)
1021            protected TrashEntryPersistence trashEntryPersistence;
1022            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1023            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1024            private String _beanIdentifier;
1025    }