001    /**
002     * Copyright (c) 2000-present 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.portal.service.base;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.db.DB;
022    import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.util.InfrastructureUtil;
027    import com.liferay.portal.service.BaseLocalServiceImpl;
028    import com.liferay.portal.service.StagingLocalService;
029    import com.liferay.portal.service.persistence.GroupFinder;
030    import com.liferay.portal.service.persistence.GroupPersistence;
031    import com.liferay.portal.service.persistence.LayoutFinder;
032    import com.liferay.portal.service.persistence.LayoutPersistence;
033    import com.liferay.portal.service.persistence.LayoutRevisionPersistence;
034    import com.liferay.portal.service.persistence.LayoutSetBranchPersistence;
035    import com.liferay.portal.service.persistence.LayoutSetPersistence;
036    import com.liferay.portal.util.PortalUtil;
037    
038    import javax.sql.DataSource;
039    
040    /**
041     * Provides the base implementation for the staging local service.
042     *
043     * <p>
044     * 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.portal.service.impl.StagingLocalServiceImpl}.
045     * </p>
046     *
047     * @author Brian Wing Shun Chan
048     * @see com.liferay.portal.service.impl.StagingLocalServiceImpl
049     * @see com.liferay.portal.service.StagingLocalServiceUtil
050     * @generated
051     */
052    @ProviderType
053    public abstract class StagingLocalServiceBaseImpl extends BaseLocalServiceImpl
054            implements StagingLocalService, IdentifiableBean {
055            /*
056             * NOTE FOR DEVELOPERS:
057             *
058             * Never modify or reference this class directly. Always use {@link com.liferay.portal.service.StagingLocalServiceUtil} to access the staging local service.
059             */
060    
061            /**
062             * Returns the staging local service.
063             *
064             * @return the staging local service
065             */
066            public com.liferay.portal.service.StagingLocalService getStagingLocalService() {
067                    return stagingLocalService;
068            }
069    
070            /**
071             * Sets the staging local service.
072             *
073             * @param stagingLocalService the staging local service
074             */
075            public void setStagingLocalService(
076                    com.liferay.portal.service.StagingLocalService stagingLocalService) {
077                    this.stagingLocalService = stagingLocalService;
078            }
079    
080            /**
081             * Returns the staging remote service.
082             *
083             * @return the staging remote service
084             */
085            public com.liferay.portal.service.StagingService getStagingService() {
086                    return stagingService;
087            }
088    
089            /**
090             * Sets the staging remote service.
091             *
092             * @param stagingService the staging remote service
093             */
094            public void setStagingService(
095                    com.liferay.portal.service.StagingService stagingService) {
096                    this.stagingService = stagingService;
097            }
098    
099            /**
100             * Returns the counter local service.
101             *
102             * @return the counter local service
103             */
104            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
105                    return counterLocalService;
106            }
107    
108            /**
109             * Sets the counter local service.
110             *
111             * @param counterLocalService the counter local service
112             */
113            public void setCounterLocalService(
114                    com.liferay.counter.service.CounterLocalService counterLocalService) {
115                    this.counterLocalService = counterLocalService;
116            }
117    
118            /**
119             * Returns the group local service.
120             *
121             * @return the group local service
122             */
123            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
124                    return groupLocalService;
125            }
126    
127            /**
128             * Sets the group local service.
129             *
130             * @param groupLocalService the group local service
131             */
132            public void setGroupLocalService(
133                    com.liferay.portal.service.GroupLocalService groupLocalService) {
134                    this.groupLocalService = groupLocalService;
135            }
136    
137            /**
138             * Returns the group remote service.
139             *
140             * @return the group remote service
141             */
142            public com.liferay.portal.service.GroupService getGroupService() {
143                    return groupService;
144            }
145    
146            /**
147             * Sets the group remote service.
148             *
149             * @param groupService the group remote service
150             */
151            public void setGroupService(
152                    com.liferay.portal.service.GroupService groupService) {
153                    this.groupService = groupService;
154            }
155    
156            /**
157             * Returns the group persistence.
158             *
159             * @return the group persistence
160             */
161            public GroupPersistence getGroupPersistence() {
162                    return groupPersistence;
163            }
164    
165            /**
166             * Sets the group persistence.
167             *
168             * @param groupPersistence the group persistence
169             */
170            public void setGroupPersistence(GroupPersistence groupPersistence) {
171                    this.groupPersistence = groupPersistence;
172            }
173    
174            /**
175             * Returns the group finder.
176             *
177             * @return the group finder
178             */
179            public GroupFinder getGroupFinder() {
180                    return groupFinder;
181            }
182    
183            /**
184             * Sets the group finder.
185             *
186             * @param groupFinder the group finder
187             */
188            public void setGroupFinder(GroupFinder groupFinder) {
189                    this.groupFinder = groupFinder;
190            }
191    
192            /**
193             * Returns the layout local service.
194             *
195             * @return the layout local service
196             */
197            public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
198                    return layoutLocalService;
199            }
200    
201            /**
202             * Sets the layout local service.
203             *
204             * @param layoutLocalService the layout local service
205             */
206            public void setLayoutLocalService(
207                    com.liferay.portal.service.LayoutLocalService layoutLocalService) {
208                    this.layoutLocalService = layoutLocalService;
209            }
210    
211            /**
212             * Returns the layout remote service.
213             *
214             * @return the layout remote service
215             */
216            public com.liferay.portal.service.LayoutService getLayoutService() {
217                    return layoutService;
218            }
219    
220            /**
221             * Sets the layout remote service.
222             *
223             * @param layoutService the layout remote service
224             */
225            public void setLayoutService(
226                    com.liferay.portal.service.LayoutService layoutService) {
227                    this.layoutService = layoutService;
228            }
229    
230            /**
231             * Returns the layout persistence.
232             *
233             * @return the layout persistence
234             */
235            public LayoutPersistence getLayoutPersistence() {
236                    return layoutPersistence;
237            }
238    
239            /**
240             * Sets the layout persistence.
241             *
242             * @param layoutPersistence the layout persistence
243             */
244            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
245                    this.layoutPersistence = layoutPersistence;
246            }
247    
248            /**
249             * Returns the layout finder.
250             *
251             * @return the layout finder
252             */
253            public LayoutFinder getLayoutFinder() {
254                    return layoutFinder;
255            }
256    
257            /**
258             * Sets the layout finder.
259             *
260             * @param layoutFinder the layout finder
261             */
262            public void setLayoutFinder(LayoutFinder layoutFinder) {
263                    this.layoutFinder = layoutFinder;
264            }
265    
266            /**
267             * Returns the layout revision local service.
268             *
269             * @return the layout revision local service
270             */
271            public com.liferay.portal.service.LayoutRevisionLocalService getLayoutRevisionLocalService() {
272                    return layoutRevisionLocalService;
273            }
274    
275            /**
276             * Sets the layout revision local service.
277             *
278             * @param layoutRevisionLocalService the layout revision local service
279             */
280            public void setLayoutRevisionLocalService(
281                    com.liferay.portal.service.LayoutRevisionLocalService layoutRevisionLocalService) {
282                    this.layoutRevisionLocalService = layoutRevisionLocalService;
283            }
284    
285            /**
286             * Returns the layout revision remote service.
287             *
288             * @return the layout revision remote service
289             */
290            public com.liferay.portal.service.LayoutRevisionService getLayoutRevisionService() {
291                    return layoutRevisionService;
292            }
293    
294            /**
295             * Sets the layout revision remote service.
296             *
297             * @param layoutRevisionService the layout revision remote service
298             */
299            public void setLayoutRevisionService(
300                    com.liferay.portal.service.LayoutRevisionService layoutRevisionService) {
301                    this.layoutRevisionService = layoutRevisionService;
302            }
303    
304            /**
305             * Returns the layout revision persistence.
306             *
307             * @return the layout revision persistence
308             */
309            public LayoutRevisionPersistence getLayoutRevisionPersistence() {
310                    return layoutRevisionPersistence;
311            }
312    
313            /**
314             * Sets the layout revision persistence.
315             *
316             * @param layoutRevisionPersistence the layout revision persistence
317             */
318            public void setLayoutRevisionPersistence(
319                    LayoutRevisionPersistence layoutRevisionPersistence) {
320                    this.layoutRevisionPersistence = layoutRevisionPersistence;
321            }
322    
323            /**
324             * Returns the layout set local service.
325             *
326             * @return the layout set local service
327             */
328            public com.liferay.portal.service.LayoutSetLocalService getLayoutSetLocalService() {
329                    return layoutSetLocalService;
330            }
331    
332            /**
333             * Sets the layout set local service.
334             *
335             * @param layoutSetLocalService the layout set local service
336             */
337            public void setLayoutSetLocalService(
338                    com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService) {
339                    this.layoutSetLocalService = layoutSetLocalService;
340            }
341    
342            /**
343             * Returns the layout set remote service.
344             *
345             * @return the layout set remote service
346             */
347            public com.liferay.portal.service.LayoutSetService getLayoutSetService() {
348                    return layoutSetService;
349            }
350    
351            /**
352             * Sets the layout set remote service.
353             *
354             * @param layoutSetService the layout set remote service
355             */
356            public void setLayoutSetService(
357                    com.liferay.portal.service.LayoutSetService layoutSetService) {
358                    this.layoutSetService = layoutSetService;
359            }
360    
361            /**
362             * Returns the layout set persistence.
363             *
364             * @return the layout set persistence
365             */
366            public LayoutSetPersistence getLayoutSetPersistence() {
367                    return layoutSetPersistence;
368            }
369    
370            /**
371             * Sets the layout set persistence.
372             *
373             * @param layoutSetPersistence the layout set persistence
374             */
375            public void setLayoutSetPersistence(
376                    LayoutSetPersistence layoutSetPersistence) {
377                    this.layoutSetPersistence = layoutSetPersistence;
378            }
379    
380            /**
381             * Returns the layout set branch local service.
382             *
383             * @return the layout set branch local service
384             */
385            public com.liferay.portal.service.LayoutSetBranchLocalService getLayoutSetBranchLocalService() {
386                    return layoutSetBranchLocalService;
387            }
388    
389            /**
390             * Sets the layout set branch local service.
391             *
392             * @param layoutSetBranchLocalService the layout set branch local service
393             */
394            public void setLayoutSetBranchLocalService(
395                    com.liferay.portal.service.LayoutSetBranchLocalService layoutSetBranchLocalService) {
396                    this.layoutSetBranchLocalService = layoutSetBranchLocalService;
397            }
398    
399            /**
400             * Returns the layout set branch remote service.
401             *
402             * @return the layout set branch remote service
403             */
404            public com.liferay.portal.service.LayoutSetBranchService getLayoutSetBranchService() {
405                    return layoutSetBranchService;
406            }
407    
408            /**
409             * Sets the layout set branch remote service.
410             *
411             * @param layoutSetBranchService the layout set branch remote service
412             */
413            public void setLayoutSetBranchService(
414                    com.liferay.portal.service.LayoutSetBranchService layoutSetBranchService) {
415                    this.layoutSetBranchService = layoutSetBranchService;
416            }
417    
418            /**
419             * Returns the layout set branch persistence.
420             *
421             * @return the layout set branch persistence
422             */
423            public LayoutSetBranchPersistence getLayoutSetBranchPersistence() {
424                    return layoutSetBranchPersistence;
425            }
426    
427            /**
428             * Sets the layout set branch persistence.
429             *
430             * @param layoutSetBranchPersistence the layout set branch persistence
431             */
432            public void setLayoutSetBranchPersistence(
433                    LayoutSetBranchPersistence layoutSetBranchPersistence) {
434                    this.layoutSetBranchPersistence = layoutSetBranchPersistence;
435            }
436    
437            public void afterPropertiesSet() {
438            }
439    
440            public void destroy() {
441            }
442    
443            /**
444             * Returns the Spring bean ID for this bean.
445             *
446             * @return the Spring bean ID for this bean
447             */
448            @Override
449            public String getBeanIdentifier() {
450                    return _beanIdentifier;
451            }
452    
453            /**
454             * Sets the Spring bean ID for this bean.
455             *
456             * @param beanIdentifier the Spring bean ID for this bean
457             */
458            @Override
459            public void setBeanIdentifier(String beanIdentifier) {
460                    _beanIdentifier = beanIdentifier;
461            }
462    
463            /**
464             * Performs a SQL query.
465             *
466             * @param sql the sql query
467             */
468            protected void runSQL(String sql) {
469                    try {
470                            DataSource dataSource = InfrastructureUtil.getDataSource();
471    
472                            DB db = DBFactoryUtil.getDB();
473    
474                            sql = db.buildSQL(sql);
475                            sql = PortalUtil.transformSQL(sql);
476    
477                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
478                                            sql, new int[0]);
479    
480                            sqlUpdate.update();
481                    }
482                    catch (Exception e) {
483                            throw new SystemException(e);
484                    }
485            }
486    
487            @BeanReference(type = com.liferay.portal.service.StagingLocalService.class)
488            protected com.liferay.portal.service.StagingLocalService stagingLocalService;
489            @BeanReference(type = com.liferay.portal.service.StagingService.class)
490            protected com.liferay.portal.service.StagingService stagingService;
491            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
492            protected com.liferay.counter.service.CounterLocalService counterLocalService;
493            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
494            protected com.liferay.portal.service.GroupLocalService groupLocalService;
495            @BeanReference(type = com.liferay.portal.service.GroupService.class)
496            protected com.liferay.portal.service.GroupService groupService;
497            @BeanReference(type = GroupPersistence.class)
498            protected GroupPersistence groupPersistence;
499            @BeanReference(type = GroupFinder.class)
500            protected GroupFinder groupFinder;
501            @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
502            protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
503            @BeanReference(type = com.liferay.portal.service.LayoutService.class)
504            protected com.liferay.portal.service.LayoutService layoutService;
505            @BeanReference(type = LayoutPersistence.class)
506            protected LayoutPersistence layoutPersistence;
507            @BeanReference(type = LayoutFinder.class)
508            protected LayoutFinder layoutFinder;
509            @BeanReference(type = com.liferay.portal.service.LayoutRevisionLocalService.class)
510            protected com.liferay.portal.service.LayoutRevisionLocalService layoutRevisionLocalService;
511            @BeanReference(type = com.liferay.portal.service.LayoutRevisionService.class)
512            protected com.liferay.portal.service.LayoutRevisionService layoutRevisionService;
513            @BeanReference(type = LayoutRevisionPersistence.class)
514            protected LayoutRevisionPersistence layoutRevisionPersistence;
515            @BeanReference(type = com.liferay.portal.service.LayoutSetLocalService.class)
516            protected com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService;
517            @BeanReference(type = com.liferay.portal.service.LayoutSetService.class)
518            protected com.liferay.portal.service.LayoutSetService layoutSetService;
519            @BeanReference(type = LayoutSetPersistence.class)
520            protected LayoutSetPersistence layoutSetPersistence;
521            @BeanReference(type = com.liferay.portal.service.LayoutSetBranchLocalService.class)
522            protected com.liferay.portal.service.LayoutSetBranchLocalService layoutSetBranchLocalService;
523            @BeanReference(type = com.liferay.portal.service.LayoutSetBranchService.class)
524            protected com.liferay.portal.service.LayoutSetBranchService layoutSetBranchService;
525            @BeanReference(type = LayoutSetBranchPersistence.class)
526            protected LayoutSetBranchPersistence layoutSetBranchPersistence;
527            private String _beanIdentifier;
528    }