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.dao.db.DB;
021    import com.liferay.portal.kernel.dao.db.DBManagerUtil;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
024    import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
025    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
026    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
027    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
028    import com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery;
029    import com.liferay.portal.kernel.dao.orm.Projection;
030    import com.liferay.portal.kernel.exception.PortalException;
031    import com.liferay.portal.kernel.exception.SystemException;
032    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
033    import com.liferay.portal.kernel.search.Indexable;
034    import com.liferay.portal.kernel.search.IndexableType;
035    import com.liferay.portal.kernel.util.OrderByComparator;
036    import com.liferay.portal.model.PersistedModel;
037    import com.liferay.portal.model.ResourceBlock;
038    import com.liferay.portal.service.BaseLocalServiceImpl;
039    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
040    import com.liferay.portal.service.ResourceBlockLocalService;
041    import com.liferay.portal.service.persistence.ResourceActionPersistence;
042    import com.liferay.portal.service.persistence.ResourceBlockFinder;
043    import com.liferay.portal.service.persistence.ResourceBlockPermissionPersistence;
044    import com.liferay.portal.service.persistence.ResourceBlockPersistence;
045    import com.liferay.portal.service.persistence.ResourceTypePermissionFinder;
046    import com.liferay.portal.service.persistence.ResourceTypePermissionPersistence;
047    import com.liferay.portal.service.persistence.RoleFinder;
048    import com.liferay.portal.service.persistence.RolePersistence;
049    import com.liferay.portal.util.PortalUtil;
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 resource block 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.portal.service.impl.ResourceBlockLocalServiceImpl}.
062     * </p>
063     *
064     * @author Brian Wing Shun Chan
065     * @see com.liferay.portal.service.impl.ResourceBlockLocalServiceImpl
066     * @see com.liferay.portal.service.ResourceBlockLocalServiceUtil
067     * @generated
068     */
069    @ProviderType
070    public abstract class ResourceBlockLocalServiceBaseImpl
071            extends BaseLocalServiceImpl implements ResourceBlockLocalService,
072                    IdentifiableOSGiService {
073            /*
074             * NOTE FOR DEVELOPERS:
075             *
076             * Never modify or reference this class directly. Always use {@link com.liferay.portal.service.ResourceBlockLocalServiceUtil} to access the resource block local service.
077             */
078    
079            /**
080             * Adds the resource block to the database. Also notifies the appropriate model listeners.
081             *
082             * @param resourceBlock the resource block
083             * @return the resource block that was added
084             */
085            @Indexable(type = IndexableType.REINDEX)
086            @Override
087            public ResourceBlock addResourceBlock(ResourceBlock resourceBlock) {
088                    resourceBlock.setNew(true);
089    
090                    return resourceBlockPersistence.update(resourceBlock);
091            }
092    
093            /**
094             * Creates a new resource block with the primary key. Does not add the resource block to the database.
095             *
096             * @param resourceBlockId the primary key for the new resource block
097             * @return the new resource block
098             */
099            @Override
100            public ResourceBlock createResourceBlock(long resourceBlockId) {
101                    return resourceBlockPersistence.create(resourceBlockId);
102            }
103    
104            /**
105             * Deletes the resource block with the primary key from the database. Also notifies the appropriate model listeners.
106             *
107             * @param resourceBlockId the primary key of the resource block
108             * @return the resource block that was removed
109             * @throws PortalException if a resource block with the primary key could not be found
110             */
111            @Indexable(type = IndexableType.DELETE)
112            @Override
113            public ResourceBlock deleteResourceBlock(long resourceBlockId)
114                    throws PortalException {
115                    return resourceBlockPersistence.remove(resourceBlockId);
116            }
117    
118            /**
119             * Deletes the resource block from the database. Also notifies the appropriate model listeners.
120             *
121             * @param resourceBlock the resource block
122             * @return the resource block that was removed
123             */
124            @Indexable(type = IndexableType.DELETE)
125            @Override
126            public ResourceBlock deleteResourceBlock(ResourceBlock resourceBlock) {
127                    return resourceBlockPersistence.remove(resourceBlock);
128            }
129    
130            @Override
131            public DynamicQuery dynamicQuery() {
132                    Class<?> clazz = getClass();
133    
134                    return DynamicQueryFactoryUtil.forClass(ResourceBlock.class,
135                            clazz.getClassLoader());
136            }
137    
138            /**
139             * Performs a dynamic query on the database and returns the matching rows.
140             *
141             * @param dynamicQuery the dynamic query
142             * @return the matching rows
143             */
144            @Override
145            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
146                    return resourceBlockPersistence.findWithDynamicQuery(dynamicQuery);
147            }
148    
149            /**
150             * Performs a dynamic query on the database and returns a range of the matching rows.
151             *
152             * <p>
153             * 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.portal.model.impl.ResourceBlockModelImpl}. 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.
154             * </p>
155             *
156             * @param dynamicQuery the dynamic query
157             * @param start the lower bound of the range of model instances
158             * @param end the upper bound of the range of model instances (not inclusive)
159             * @return the range of matching rows
160             */
161            @Override
162            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
163                    int end) {
164                    return resourceBlockPersistence.findWithDynamicQuery(dynamicQuery,
165                            start, end);
166            }
167    
168            /**
169             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
170             *
171             * <p>
172             * 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.portal.model.impl.ResourceBlockModelImpl}. 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.
173             * </p>
174             *
175             * @param dynamicQuery the dynamic query
176             * @param start the lower bound of the range of model instances
177             * @param end the upper bound of the range of model instances (not inclusive)
178             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
179             * @return the ordered range of matching rows
180             */
181            @Override
182            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
183                    int end, OrderByComparator<T> orderByComparator) {
184                    return resourceBlockPersistence.findWithDynamicQuery(dynamicQuery,
185                            start, end, orderByComparator);
186            }
187    
188            /**
189             * Returns the number of rows matching the dynamic query.
190             *
191             * @param dynamicQuery the dynamic query
192             * @return the number of rows matching the dynamic query
193             */
194            @Override
195            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
196                    return resourceBlockPersistence.countWithDynamicQuery(dynamicQuery);
197            }
198    
199            /**
200             * Returns the number of rows matching the dynamic query.
201             *
202             * @param dynamicQuery the dynamic query
203             * @param projection the projection to apply to the query
204             * @return the number of rows matching the dynamic query
205             */
206            @Override
207            public long dynamicQueryCount(DynamicQuery dynamicQuery,
208                    Projection projection) {
209                    return resourceBlockPersistence.countWithDynamicQuery(dynamicQuery,
210                            projection);
211            }
212    
213            @Override
214            public ResourceBlock fetchResourceBlock(long resourceBlockId) {
215                    return resourceBlockPersistence.fetchByPrimaryKey(resourceBlockId);
216            }
217    
218            /**
219             * Returns the resource block with the primary key.
220             *
221             * @param resourceBlockId the primary key of the resource block
222             * @return the resource block
223             * @throws PortalException if a resource block with the primary key could not be found
224             */
225            @Override
226            public ResourceBlock getResourceBlock(long resourceBlockId)
227                    throws PortalException {
228                    return resourceBlockPersistence.findByPrimaryKey(resourceBlockId);
229            }
230    
231            @Override
232            public ActionableDynamicQuery getActionableDynamicQuery() {
233                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
234    
235                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.ResourceBlockLocalServiceUtil.getService());
236                    actionableDynamicQuery.setClassLoader(getClassLoader());
237                    actionableDynamicQuery.setModelClass(ResourceBlock.class);
238    
239                    actionableDynamicQuery.setPrimaryKeyPropertyName("resourceBlockId");
240    
241                    return actionableDynamicQuery;
242            }
243    
244            @Override
245            public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
246                    IndexableActionableDynamicQuery indexableActionableDynamicQuery = new IndexableActionableDynamicQuery();
247    
248                    indexableActionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.ResourceBlockLocalServiceUtil.getService());
249                    indexableActionableDynamicQuery.setClassLoader(getClassLoader());
250                    indexableActionableDynamicQuery.setModelClass(ResourceBlock.class);
251    
252                    indexableActionableDynamicQuery.setPrimaryKeyPropertyName(
253                            "resourceBlockId");
254    
255                    return indexableActionableDynamicQuery;
256            }
257    
258            protected void initActionableDynamicQuery(
259                    ActionableDynamicQuery actionableDynamicQuery) {
260                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.ResourceBlockLocalServiceUtil.getService());
261                    actionableDynamicQuery.setClassLoader(getClassLoader());
262                    actionableDynamicQuery.setModelClass(ResourceBlock.class);
263    
264                    actionableDynamicQuery.setPrimaryKeyPropertyName("resourceBlockId");
265            }
266    
267            /**
268             * @throws PortalException
269             */
270            @Override
271            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
272                    throws PortalException {
273                    return resourceBlockLocalService.deleteResourceBlock((ResourceBlock)persistedModel);
274            }
275    
276            @Override
277            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
278                    throws PortalException {
279                    return resourceBlockPersistence.findByPrimaryKey(primaryKeyObj);
280            }
281    
282            /**
283             * Returns a range of all the resource blocks.
284             *
285             * <p>
286             * 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.portal.model.impl.ResourceBlockModelImpl}. 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.
287             * </p>
288             *
289             * @param start the lower bound of the range of resource blocks
290             * @param end the upper bound of the range of resource blocks (not inclusive)
291             * @return the range of resource blocks
292             */
293            @Override
294            public List<ResourceBlock> getResourceBlocks(int start, int end) {
295                    return resourceBlockPersistence.findAll(start, end);
296            }
297    
298            /**
299             * Returns the number of resource blocks.
300             *
301             * @return the number of resource blocks
302             */
303            @Override
304            public int getResourceBlocksCount() {
305                    return resourceBlockPersistence.countAll();
306            }
307    
308            /**
309             * Updates the resource block in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
310             *
311             * @param resourceBlock the resource block
312             * @return the resource block that was updated
313             */
314            @Indexable(type = IndexableType.REINDEX)
315            @Override
316            public ResourceBlock updateResourceBlock(ResourceBlock resourceBlock) {
317                    return resourceBlockPersistence.update(resourceBlock);
318            }
319    
320            /**
321             * Returns the resource block local service.
322             *
323             * @return the resource block local service
324             */
325            public ResourceBlockLocalService getResourceBlockLocalService() {
326                    return resourceBlockLocalService;
327            }
328    
329            /**
330             * Sets the resource block local service.
331             *
332             * @param resourceBlockLocalService the resource block local service
333             */
334            public void setResourceBlockLocalService(
335                    ResourceBlockLocalService resourceBlockLocalService) {
336                    this.resourceBlockLocalService = resourceBlockLocalService;
337            }
338    
339            /**
340             * Returns the resource block persistence.
341             *
342             * @return the resource block persistence
343             */
344            public ResourceBlockPersistence getResourceBlockPersistence() {
345                    return resourceBlockPersistence;
346            }
347    
348            /**
349             * Sets the resource block persistence.
350             *
351             * @param resourceBlockPersistence the resource block persistence
352             */
353            public void setResourceBlockPersistence(
354                    ResourceBlockPersistence resourceBlockPersistence) {
355                    this.resourceBlockPersistence = resourceBlockPersistence;
356            }
357    
358            /**
359             * Returns the resource block finder.
360             *
361             * @return the resource block finder
362             */
363            public ResourceBlockFinder getResourceBlockFinder() {
364                    return resourceBlockFinder;
365            }
366    
367            /**
368             * Sets the resource block finder.
369             *
370             * @param resourceBlockFinder the resource block finder
371             */
372            public void setResourceBlockFinder(ResourceBlockFinder resourceBlockFinder) {
373                    this.resourceBlockFinder = resourceBlockFinder;
374            }
375    
376            /**
377             * Returns the counter local service.
378             *
379             * @return the counter local service
380             */
381            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
382                    return counterLocalService;
383            }
384    
385            /**
386             * Sets the counter local service.
387             *
388             * @param counterLocalService the counter local service
389             */
390            public void setCounterLocalService(
391                    com.liferay.counter.service.CounterLocalService counterLocalService) {
392                    this.counterLocalService = counterLocalService;
393            }
394    
395            /**
396             * Returns the resource local service.
397             *
398             * @return the resource local service
399             */
400            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
401                    return resourceLocalService;
402            }
403    
404            /**
405             * Sets the resource local service.
406             *
407             * @param resourceLocalService the resource local service
408             */
409            public void setResourceLocalService(
410                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
411                    this.resourceLocalService = resourceLocalService;
412            }
413    
414            /**
415             * Returns the resource action local service.
416             *
417             * @return the resource action local service
418             */
419            public com.liferay.portal.service.ResourceActionLocalService getResourceActionLocalService() {
420                    return resourceActionLocalService;
421            }
422    
423            /**
424             * Sets the resource action local service.
425             *
426             * @param resourceActionLocalService the resource action local service
427             */
428            public void setResourceActionLocalService(
429                    com.liferay.portal.service.ResourceActionLocalService resourceActionLocalService) {
430                    this.resourceActionLocalService = resourceActionLocalService;
431            }
432    
433            /**
434             * Returns the resource action persistence.
435             *
436             * @return the resource action persistence
437             */
438            public ResourceActionPersistence getResourceActionPersistence() {
439                    return resourceActionPersistence;
440            }
441    
442            /**
443             * Sets the resource action persistence.
444             *
445             * @param resourceActionPersistence the resource action persistence
446             */
447            public void setResourceActionPersistence(
448                    ResourceActionPersistence resourceActionPersistence) {
449                    this.resourceActionPersistence = resourceActionPersistence;
450            }
451    
452            /**
453             * Returns the resource block permission local service.
454             *
455             * @return the resource block permission local service
456             */
457            public com.liferay.portal.service.ResourceBlockPermissionLocalService getResourceBlockPermissionLocalService() {
458                    return resourceBlockPermissionLocalService;
459            }
460    
461            /**
462             * Sets the resource block permission local service.
463             *
464             * @param resourceBlockPermissionLocalService the resource block permission local service
465             */
466            public void setResourceBlockPermissionLocalService(
467                    com.liferay.portal.service.ResourceBlockPermissionLocalService resourceBlockPermissionLocalService) {
468                    this.resourceBlockPermissionLocalService = resourceBlockPermissionLocalService;
469            }
470    
471            /**
472             * Returns the resource block permission persistence.
473             *
474             * @return the resource block permission persistence
475             */
476            public ResourceBlockPermissionPersistence getResourceBlockPermissionPersistence() {
477                    return resourceBlockPermissionPersistence;
478            }
479    
480            /**
481             * Sets the resource block permission persistence.
482             *
483             * @param resourceBlockPermissionPersistence the resource block permission persistence
484             */
485            public void setResourceBlockPermissionPersistence(
486                    ResourceBlockPermissionPersistence resourceBlockPermissionPersistence) {
487                    this.resourceBlockPermissionPersistence = resourceBlockPermissionPersistence;
488            }
489    
490            /**
491             * Returns the resource type permission local service.
492             *
493             * @return the resource type permission local service
494             */
495            public com.liferay.portal.service.ResourceTypePermissionLocalService getResourceTypePermissionLocalService() {
496                    return resourceTypePermissionLocalService;
497            }
498    
499            /**
500             * Sets the resource type permission local service.
501             *
502             * @param resourceTypePermissionLocalService the resource type permission local service
503             */
504            public void setResourceTypePermissionLocalService(
505                    com.liferay.portal.service.ResourceTypePermissionLocalService resourceTypePermissionLocalService) {
506                    this.resourceTypePermissionLocalService = resourceTypePermissionLocalService;
507            }
508    
509            /**
510             * Returns the resource type permission persistence.
511             *
512             * @return the resource type permission persistence
513             */
514            public ResourceTypePermissionPersistence getResourceTypePermissionPersistence() {
515                    return resourceTypePermissionPersistence;
516            }
517    
518            /**
519             * Sets the resource type permission persistence.
520             *
521             * @param resourceTypePermissionPersistence the resource type permission persistence
522             */
523            public void setResourceTypePermissionPersistence(
524                    ResourceTypePermissionPersistence resourceTypePermissionPersistence) {
525                    this.resourceTypePermissionPersistence = resourceTypePermissionPersistence;
526            }
527    
528            /**
529             * Returns the resource type permission finder.
530             *
531             * @return the resource type permission finder
532             */
533            public ResourceTypePermissionFinder getResourceTypePermissionFinder() {
534                    return resourceTypePermissionFinder;
535            }
536    
537            /**
538             * Sets the resource type permission finder.
539             *
540             * @param resourceTypePermissionFinder the resource type permission finder
541             */
542            public void setResourceTypePermissionFinder(
543                    ResourceTypePermissionFinder resourceTypePermissionFinder) {
544                    this.resourceTypePermissionFinder = resourceTypePermissionFinder;
545            }
546    
547            /**
548             * Returns the role local service.
549             *
550             * @return the role local service
551             */
552            public com.liferay.portal.service.RoleLocalService getRoleLocalService() {
553                    return roleLocalService;
554            }
555    
556            /**
557             * Sets the role local service.
558             *
559             * @param roleLocalService the role local service
560             */
561            public void setRoleLocalService(
562                    com.liferay.portal.service.RoleLocalService roleLocalService) {
563                    this.roleLocalService = roleLocalService;
564            }
565    
566            /**
567             * Returns the role persistence.
568             *
569             * @return the role persistence
570             */
571            public RolePersistence getRolePersistence() {
572                    return rolePersistence;
573            }
574    
575            /**
576             * Sets the role persistence.
577             *
578             * @param rolePersistence the role persistence
579             */
580            public void setRolePersistence(RolePersistence rolePersistence) {
581                    this.rolePersistence = rolePersistence;
582            }
583    
584            /**
585             * Returns the role finder.
586             *
587             * @return the role finder
588             */
589            public RoleFinder getRoleFinder() {
590                    return roleFinder;
591            }
592    
593            /**
594             * Sets the role finder.
595             *
596             * @param roleFinder the role finder
597             */
598            public void setRoleFinder(RoleFinder roleFinder) {
599                    this.roleFinder = roleFinder;
600            }
601    
602            public void afterPropertiesSet() {
603                    persistedModelLocalServiceRegistry.register("com.liferay.portal.model.ResourceBlock",
604                            resourceBlockLocalService);
605            }
606    
607            public void destroy() {
608                    persistedModelLocalServiceRegistry.unregister(
609                            "com.liferay.portal.model.ResourceBlock");
610            }
611    
612            /**
613             * Returns the OSGi service identifier.
614             *
615             * @return the OSGi service identifier
616             */
617            @Override
618            public String getOSGiServiceIdentifier() {
619                    return ResourceBlockLocalService.class.getName();
620            }
621    
622            protected Class<?> getModelClass() {
623                    return ResourceBlock.class;
624            }
625    
626            protected String getModelClassName() {
627                    return ResourceBlock.class.getName();
628            }
629    
630            /**
631             * Performs a SQL query.
632             *
633             * @param sql the sql query
634             */
635            protected void runSQL(String sql) {
636                    try {
637                            DataSource dataSource = resourceBlockPersistence.getDataSource();
638    
639                            DB db = DBManagerUtil.getDB();
640    
641                            sql = db.buildSQL(sql);
642                            sql = PortalUtil.transformSQL(sql);
643    
644                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
645                                            sql, new int[0]);
646    
647                            sqlUpdate.update();
648                    }
649                    catch (Exception e) {
650                            throw new SystemException(e);
651                    }
652            }
653    
654            @BeanReference(type = com.liferay.portal.service.ResourceBlockLocalService.class)
655            protected ResourceBlockLocalService resourceBlockLocalService;
656            @BeanReference(type = ResourceBlockPersistence.class)
657            protected ResourceBlockPersistence resourceBlockPersistence;
658            @BeanReference(type = ResourceBlockFinder.class)
659            protected ResourceBlockFinder resourceBlockFinder;
660            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
661            protected com.liferay.counter.service.CounterLocalService counterLocalService;
662            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
663            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
664            @BeanReference(type = com.liferay.portal.service.ResourceActionLocalService.class)
665            protected com.liferay.portal.service.ResourceActionLocalService resourceActionLocalService;
666            @BeanReference(type = ResourceActionPersistence.class)
667            protected ResourceActionPersistence resourceActionPersistence;
668            @BeanReference(type = com.liferay.portal.service.ResourceBlockPermissionLocalService.class)
669            protected com.liferay.portal.service.ResourceBlockPermissionLocalService resourceBlockPermissionLocalService;
670            @BeanReference(type = ResourceBlockPermissionPersistence.class)
671            protected ResourceBlockPermissionPersistence resourceBlockPermissionPersistence;
672            @BeanReference(type = com.liferay.portal.service.ResourceTypePermissionLocalService.class)
673            protected com.liferay.portal.service.ResourceTypePermissionLocalService resourceTypePermissionLocalService;
674            @BeanReference(type = ResourceTypePermissionPersistence.class)
675            protected ResourceTypePermissionPersistence resourceTypePermissionPersistence;
676            @BeanReference(type = ResourceTypePermissionFinder.class)
677            protected ResourceTypePermissionFinder resourceTypePermissionFinder;
678            @BeanReference(type = com.liferay.portal.service.RoleLocalService.class)
679            protected com.liferay.portal.service.RoleLocalService roleLocalService;
680            @BeanReference(type = RolePersistence.class)
681            protected RolePersistence rolePersistence;
682            @BeanReference(type = RoleFinder.class)
683            protected RoleFinder roleFinder;
684            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
685            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
686    }