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