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.dao.orm.ActionableDynamicQuery;
026    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
027    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
028    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
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.search.Indexable;
033    import com.liferay.portal.kernel.search.IndexableType;
034    import com.liferay.portal.kernel.util.OrderByComparator;
035    import com.liferay.portal.model.Company;
036    import com.liferay.portal.model.PersistedModel;
037    import com.liferay.portal.service.BaseLocalServiceImpl;
038    import com.liferay.portal.service.CompanyLocalService;
039    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
040    import com.liferay.portal.service.persistence.AccountPersistence;
041    import com.liferay.portal.service.persistence.CompanyPersistence;
042    import com.liferay.portal.service.persistence.ContactPersistence;
043    import com.liferay.portal.service.persistence.GroupFinder;
044    import com.liferay.portal.service.persistence.GroupPersistence;
045    import com.liferay.portal.service.persistence.ImagePersistence;
046    import com.liferay.portal.service.persistence.LayoutPrototypePersistence;
047    import com.liferay.portal.service.persistence.LayoutSetPersistence;
048    import com.liferay.portal.service.persistence.LayoutSetPrototypePersistence;
049    import com.liferay.portal.service.persistence.OrganizationFinder;
050    import com.liferay.portal.service.persistence.OrganizationPersistence;
051    import com.liferay.portal.service.persistence.PasswordPolicyFinder;
052    import com.liferay.portal.service.persistence.PasswordPolicyPersistence;
053    import com.liferay.portal.service.persistence.PortalPreferencesPersistence;
054    import com.liferay.portal.service.persistence.PortletPersistence;
055    import com.liferay.portal.service.persistence.ResourcePermissionFinder;
056    import com.liferay.portal.service.persistence.ResourcePermissionPersistence;
057    import com.liferay.portal.service.persistence.RoleFinder;
058    import com.liferay.portal.service.persistence.RolePersistence;
059    import com.liferay.portal.service.persistence.ShardPersistence;
060    import com.liferay.portal.service.persistence.UserFinder;
061    import com.liferay.portal.service.persistence.UserPersistence;
062    import com.liferay.portal.service.persistence.VirtualHostPersistence;
063    import com.liferay.portal.util.PortalUtil;
064    
065    import java.io.Serializable;
066    
067    import java.util.List;
068    
069    import javax.sql.DataSource;
070    
071    /**
072     * Provides the base implementation for the company local service.
073     *
074     * <p>
075     * 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.CompanyLocalServiceImpl}.
076     * </p>
077     *
078     * @author Brian Wing Shun Chan
079     * @see com.liferay.portal.service.impl.CompanyLocalServiceImpl
080     * @see com.liferay.portal.service.CompanyLocalServiceUtil
081     * @generated
082     */
083    @ProviderType
084    public abstract class CompanyLocalServiceBaseImpl extends BaseLocalServiceImpl
085            implements CompanyLocalService, IdentifiableBean {
086            /*
087             * NOTE FOR DEVELOPERS:
088             *
089             * Never modify or reference this class directly. Always use {@link com.liferay.portal.service.CompanyLocalServiceUtil} to access the company local service.
090             */
091    
092            /**
093             * Adds the company to the database. Also notifies the appropriate model listeners.
094             *
095             * @param company the company
096             * @return the company that was added
097             */
098            @Indexable(type = IndexableType.REINDEX)
099            @Override
100            public Company addCompany(Company company) {
101                    company.setNew(true);
102    
103                    return companyPersistence.update(company);
104            }
105    
106            /**
107             * Creates a new company with the primary key. Does not add the company to the database.
108             *
109             * @param companyId the primary key for the new company
110             * @return the new company
111             */
112            @Override
113            public Company createCompany(long companyId) {
114                    return companyPersistence.create(companyId);
115            }
116    
117            /**
118             * Deletes the company with the primary key from the database. Also notifies the appropriate model listeners.
119             *
120             * @param companyId the primary key of the company
121             * @return the company that was removed
122             * @throws PortalException if a company with the primary key could not be found
123             */
124            @Indexable(type = IndexableType.DELETE)
125            @Override
126            public Company deleteCompany(long companyId) throws PortalException {
127                    return companyPersistence.remove(companyId);
128            }
129    
130            /**
131             * Deletes the company from the database. Also notifies the appropriate model listeners.
132             *
133             * @param company the company
134             * @return the company that was removed
135             * @throws PortalException
136             */
137            @Indexable(type = IndexableType.DELETE)
138            @Override
139            public Company deleteCompany(Company company) throws PortalException {
140                    return companyPersistence.remove(company);
141            }
142    
143            @Override
144            public DynamicQuery dynamicQuery() {
145                    Class<?> clazz = getClass();
146    
147                    return DynamicQueryFactoryUtil.forClass(Company.class,
148                            clazz.getClassLoader());
149            }
150    
151            /**
152             * Performs a dynamic query on the database and returns the matching rows.
153             *
154             * @param dynamicQuery the dynamic query
155             * @return the matching rows
156             */
157            @Override
158            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
159                    return companyPersistence.findWithDynamicQuery(dynamicQuery);
160            }
161    
162            /**
163             * Performs a dynamic query on the database and returns a range of the matching rows.
164             *
165             * <p>
166             * 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.CompanyModelImpl}. 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.
167             * </p>
168             *
169             * @param dynamicQuery the dynamic query
170             * @param start the lower bound of the range of model instances
171             * @param end the upper bound of the range of model instances (not inclusive)
172             * @return the range of matching rows
173             */
174            @Override
175            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
176                    int end) {
177                    return companyPersistence.findWithDynamicQuery(dynamicQuery, start, end);
178            }
179    
180            /**
181             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
182             *
183             * <p>
184             * 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.CompanyModelImpl}. 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.
185             * </p>
186             *
187             * @param dynamicQuery the dynamic query
188             * @param start the lower bound of the range of model instances
189             * @param end the upper bound of the range of model instances (not inclusive)
190             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
191             * @return the ordered range of matching rows
192             */
193            @Override
194            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
195                    int end, OrderByComparator<T> orderByComparator) {
196                    return companyPersistence.findWithDynamicQuery(dynamicQuery, start,
197                            end, orderByComparator);
198            }
199    
200            /**
201             * Returns the number of rows matching the dynamic query.
202             *
203             * @param dynamicQuery the dynamic query
204             * @return the number of rows matching the dynamic query
205             */
206            @Override
207            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
208                    return companyPersistence.countWithDynamicQuery(dynamicQuery);
209            }
210    
211            /**
212             * Returns the number of rows matching the dynamic query.
213             *
214             * @param dynamicQuery the dynamic query
215             * @param projection the projection to apply to the query
216             * @return the number of rows matching the dynamic query
217             */
218            @Override
219            public long dynamicQueryCount(DynamicQuery dynamicQuery,
220                    Projection projection) {
221                    return companyPersistence.countWithDynamicQuery(dynamicQuery, projection);
222            }
223    
224            @Override
225            public Company fetchCompany(long companyId) {
226                    return companyPersistence.fetchByPrimaryKey(companyId);
227            }
228    
229            /**
230             * Returns the company with the primary key.
231             *
232             * @param companyId the primary key of the company
233             * @return the company
234             * @throws PortalException if a company with the primary key could not be found
235             */
236            @Override
237            public Company getCompany(long companyId) throws PortalException {
238                    return companyPersistence.findByPrimaryKey(companyId);
239            }
240    
241            @Override
242            public ActionableDynamicQuery getActionableDynamicQuery() {
243                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
244    
245                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.CompanyLocalServiceUtil.getService());
246                    actionableDynamicQuery.setClass(Company.class);
247                    actionableDynamicQuery.setClassLoader(getClassLoader());
248    
249                    actionableDynamicQuery.setPrimaryKeyPropertyName("companyId");
250    
251                    return actionableDynamicQuery;
252            }
253    
254            protected void initActionableDynamicQuery(
255                    ActionableDynamicQuery actionableDynamicQuery) {
256                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.CompanyLocalServiceUtil.getService());
257                    actionableDynamicQuery.setClass(Company.class);
258                    actionableDynamicQuery.setClassLoader(getClassLoader());
259    
260                    actionableDynamicQuery.setPrimaryKeyPropertyName("companyId");
261            }
262    
263            /**
264             * @throws PortalException
265             */
266            @Override
267            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
268                    throws PortalException {
269                    return companyLocalService.deleteCompany((Company)persistedModel);
270            }
271    
272            @Override
273            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
274                    throws PortalException {
275                    return companyPersistence.findByPrimaryKey(primaryKeyObj);
276            }
277    
278            /**
279             * Returns a range of all the companies.
280             *
281             * <p>
282             * 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.CompanyModelImpl}. 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.
283             * </p>
284             *
285             * @param start the lower bound of the range of companies
286             * @param end the upper bound of the range of companies (not inclusive)
287             * @return the range of companies
288             */
289            @Override
290            public List<Company> getCompanies(int start, int end) {
291                    return companyPersistence.findAll(start, end);
292            }
293    
294            /**
295             * Returns the number of companies.
296             *
297             * @return the number of companies
298             */
299            @Override
300            public int getCompaniesCount() {
301                    return companyPersistence.countAll();
302            }
303    
304            /**
305             * Updates the company in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
306             *
307             * @param company the company
308             * @return the company that was updated
309             */
310            @Indexable(type = IndexableType.REINDEX)
311            @Override
312            public Company updateCompany(Company company) {
313                    return companyPersistence.update(company);
314            }
315    
316            /**
317             * Returns the company local service.
318             *
319             * @return the company local service
320             */
321            public CompanyLocalService getCompanyLocalService() {
322                    return companyLocalService;
323            }
324    
325            /**
326             * Sets the company local service.
327             *
328             * @param companyLocalService the company local service
329             */
330            public void setCompanyLocalService(CompanyLocalService companyLocalService) {
331                    this.companyLocalService = companyLocalService;
332            }
333    
334            /**
335             * Returns the company remote service.
336             *
337             * @return the company remote service
338             */
339            public com.liferay.portal.service.CompanyService getCompanyService() {
340                    return companyService;
341            }
342    
343            /**
344             * Sets the company remote service.
345             *
346             * @param companyService the company remote service
347             */
348            public void setCompanyService(
349                    com.liferay.portal.service.CompanyService companyService) {
350                    this.companyService = companyService;
351            }
352    
353            /**
354             * Returns the company persistence.
355             *
356             * @return the company persistence
357             */
358            public CompanyPersistence getCompanyPersistence() {
359                    return companyPersistence;
360            }
361    
362            /**
363             * Sets the company persistence.
364             *
365             * @param companyPersistence the company persistence
366             */
367            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
368                    this.companyPersistence = companyPersistence;
369            }
370    
371            /**
372             * Returns the counter local service.
373             *
374             * @return the counter local service
375             */
376            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
377                    return counterLocalService;
378            }
379    
380            /**
381             * Sets the counter local service.
382             *
383             * @param counterLocalService the counter local service
384             */
385            public void setCounterLocalService(
386                    com.liferay.counter.service.CounterLocalService counterLocalService) {
387                    this.counterLocalService = counterLocalService;
388            }
389    
390            /**
391             * Returns the account local service.
392             *
393             * @return the account local service
394             */
395            public com.liferay.portal.service.AccountLocalService getAccountLocalService() {
396                    return accountLocalService;
397            }
398    
399            /**
400             * Sets the account local service.
401             *
402             * @param accountLocalService the account local service
403             */
404            public void setAccountLocalService(
405                    com.liferay.portal.service.AccountLocalService accountLocalService) {
406                    this.accountLocalService = accountLocalService;
407            }
408    
409            /**
410             * Returns the account remote service.
411             *
412             * @return the account remote service
413             */
414            public com.liferay.portal.service.AccountService getAccountService() {
415                    return accountService;
416            }
417    
418            /**
419             * Sets the account remote service.
420             *
421             * @param accountService the account remote service
422             */
423            public void setAccountService(
424                    com.liferay.portal.service.AccountService accountService) {
425                    this.accountService = accountService;
426            }
427    
428            /**
429             * Returns the account persistence.
430             *
431             * @return the account persistence
432             */
433            public AccountPersistence getAccountPersistence() {
434                    return accountPersistence;
435            }
436    
437            /**
438             * Sets the account persistence.
439             *
440             * @param accountPersistence the account persistence
441             */
442            public void setAccountPersistence(AccountPersistence accountPersistence) {
443                    this.accountPersistence = accountPersistence;
444            }
445    
446            /**
447             * Returns the contact local service.
448             *
449             * @return the contact local service
450             */
451            public com.liferay.portal.service.ContactLocalService getContactLocalService() {
452                    return contactLocalService;
453            }
454    
455            /**
456             * Sets the contact local service.
457             *
458             * @param contactLocalService the contact local service
459             */
460            public void setContactLocalService(
461                    com.liferay.portal.service.ContactLocalService contactLocalService) {
462                    this.contactLocalService = contactLocalService;
463            }
464    
465            /**
466             * Returns the contact remote service.
467             *
468             * @return the contact remote service
469             */
470            public com.liferay.portal.service.ContactService getContactService() {
471                    return contactService;
472            }
473    
474            /**
475             * Sets the contact remote service.
476             *
477             * @param contactService the contact remote service
478             */
479            public void setContactService(
480                    com.liferay.portal.service.ContactService contactService) {
481                    this.contactService = contactService;
482            }
483    
484            /**
485             * Returns the contact persistence.
486             *
487             * @return the contact persistence
488             */
489            public ContactPersistence getContactPersistence() {
490                    return contactPersistence;
491            }
492    
493            /**
494             * Sets the contact persistence.
495             *
496             * @param contactPersistence the contact persistence
497             */
498            public void setContactPersistence(ContactPersistence contactPersistence) {
499                    this.contactPersistence = contactPersistence;
500            }
501    
502            /**
503             * Returns the group local service.
504             *
505             * @return the group local service
506             */
507            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
508                    return groupLocalService;
509            }
510    
511            /**
512             * Sets the group local service.
513             *
514             * @param groupLocalService the group local service
515             */
516            public void setGroupLocalService(
517                    com.liferay.portal.service.GroupLocalService groupLocalService) {
518                    this.groupLocalService = groupLocalService;
519            }
520    
521            /**
522             * Returns the group remote service.
523             *
524             * @return the group remote service
525             */
526            public com.liferay.portal.service.GroupService getGroupService() {
527                    return groupService;
528            }
529    
530            /**
531             * Sets the group remote service.
532             *
533             * @param groupService the group remote service
534             */
535            public void setGroupService(
536                    com.liferay.portal.service.GroupService groupService) {
537                    this.groupService = groupService;
538            }
539    
540            /**
541             * Returns the group persistence.
542             *
543             * @return the group persistence
544             */
545            public GroupPersistence getGroupPersistence() {
546                    return groupPersistence;
547            }
548    
549            /**
550             * Sets the group persistence.
551             *
552             * @param groupPersistence the group persistence
553             */
554            public void setGroupPersistence(GroupPersistence groupPersistence) {
555                    this.groupPersistence = groupPersistence;
556            }
557    
558            /**
559             * Returns the group finder.
560             *
561             * @return the group finder
562             */
563            public GroupFinder getGroupFinder() {
564                    return groupFinder;
565            }
566    
567            /**
568             * Sets the group finder.
569             *
570             * @param groupFinder the group finder
571             */
572            public void setGroupFinder(GroupFinder groupFinder) {
573                    this.groupFinder = groupFinder;
574            }
575    
576            /**
577             * Returns the image local service.
578             *
579             * @return the image local service
580             */
581            public com.liferay.portal.service.ImageLocalService getImageLocalService() {
582                    return imageLocalService;
583            }
584    
585            /**
586             * Sets the image local service.
587             *
588             * @param imageLocalService the image local service
589             */
590            public void setImageLocalService(
591                    com.liferay.portal.service.ImageLocalService imageLocalService) {
592                    this.imageLocalService = imageLocalService;
593            }
594    
595            /**
596             * Returns the image remote service.
597             *
598             * @return the image remote service
599             */
600            public com.liferay.portal.service.ImageService getImageService() {
601                    return imageService;
602            }
603    
604            /**
605             * Sets the image remote service.
606             *
607             * @param imageService the image remote service
608             */
609            public void setImageService(
610                    com.liferay.portal.service.ImageService imageService) {
611                    this.imageService = imageService;
612            }
613    
614            /**
615             * Returns the image persistence.
616             *
617             * @return the image persistence
618             */
619            public ImagePersistence getImagePersistence() {
620                    return imagePersistence;
621            }
622    
623            /**
624             * Sets the image persistence.
625             *
626             * @param imagePersistence the image persistence
627             */
628            public void setImagePersistence(ImagePersistence imagePersistence) {
629                    this.imagePersistence = imagePersistence;
630            }
631    
632            /**
633             * Returns the layout prototype local service.
634             *
635             * @return the layout prototype local service
636             */
637            public com.liferay.portal.service.LayoutPrototypeLocalService getLayoutPrototypeLocalService() {
638                    return layoutPrototypeLocalService;
639            }
640    
641            /**
642             * Sets the layout prototype local service.
643             *
644             * @param layoutPrototypeLocalService the layout prototype local service
645             */
646            public void setLayoutPrototypeLocalService(
647                    com.liferay.portal.service.LayoutPrototypeLocalService layoutPrototypeLocalService) {
648                    this.layoutPrototypeLocalService = layoutPrototypeLocalService;
649            }
650    
651            /**
652             * Returns the layout prototype remote service.
653             *
654             * @return the layout prototype remote service
655             */
656            public com.liferay.portal.service.LayoutPrototypeService getLayoutPrototypeService() {
657                    return layoutPrototypeService;
658            }
659    
660            /**
661             * Sets the layout prototype remote service.
662             *
663             * @param layoutPrototypeService the layout prototype remote service
664             */
665            public void setLayoutPrototypeService(
666                    com.liferay.portal.service.LayoutPrototypeService layoutPrototypeService) {
667                    this.layoutPrototypeService = layoutPrototypeService;
668            }
669    
670            /**
671             * Returns the layout prototype persistence.
672             *
673             * @return the layout prototype persistence
674             */
675            public LayoutPrototypePersistence getLayoutPrototypePersistence() {
676                    return layoutPrototypePersistence;
677            }
678    
679            /**
680             * Sets the layout prototype persistence.
681             *
682             * @param layoutPrototypePersistence the layout prototype persistence
683             */
684            public void setLayoutPrototypePersistence(
685                    LayoutPrototypePersistence layoutPrototypePersistence) {
686                    this.layoutPrototypePersistence = layoutPrototypePersistence;
687            }
688    
689            /**
690             * Returns the layout set local service.
691             *
692             * @return the layout set local service
693             */
694            public com.liferay.portal.service.LayoutSetLocalService getLayoutSetLocalService() {
695                    return layoutSetLocalService;
696            }
697    
698            /**
699             * Sets the layout set local service.
700             *
701             * @param layoutSetLocalService the layout set local service
702             */
703            public void setLayoutSetLocalService(
704                    com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService) {
705                    this.layoutSetLocalService = layoutSetLocalService;
706            }
707    
708            /**
709             * Returns the layout set remote service.
710             *
711             * @return the layout set remote service
712             */
713            public com.liferay.portal.service.LayoutSetService getLayoutSetService() {
714                    return layoutSetService;
715            }
716    
717            /**
718             * Sets the layout set remote service.
719             *
720             * @param layoutSetService the layout set remote service
721             */
722            public void setLayoutSetService(
723                    com.liferay.portal.service.LayoutSetService layoutSetService) {
724                    this.layoutSetService = layoutSetService;
725            }
726    
727            /**
728             * Returns the layout set persistence.
729             *
730             * @return the layout set persistence
731             */
732            public LayoutSetPersistence getLayoutSetPersistence() {
733                    return layoutSetPersistence;
734            }
735    
736            /**
737             * Sets the layout set persistence.
738             *
739             * @param layoutSetPersistence the layout set persistence
740             */
741            public void setLayoutSetPersistence(
742                    LayoutSetPersistence layoutSetPersistence) {
743                    this.layoutSetPersistence = layoutSetPersistence;
744            }
745    
746            /**
747             * Returns the layout set prototype local service.
748             *
749             * @return the layout set prototype local service
750             */
751            public com.liferay.portal.service.LayoutSetPrototypeLocalService getLayoutSetPrototypeLocalService() {
752                    return layoutSetPrototypeLocalService;
753            }
754    
755            /**
756             * Sets the layout set prototype local service.
757             *
758             * @param layoutSetPrototypeLocalService the layout set prototype local service
759             */
760            public void setLayoutSetPrototypeLocalService(
761                    com.liferay.portal.service.LayoutSetPrototypeLocalService layoutSetPrototypeLocalService) {
762                    this.layoutSetPrototypeLocalService = layoutSetPrototypeLocalService;
763            }
764    
765            /**
766             * Returns the layout set prototype remote service.
767             *
768             * @return the layout set prototype remote service
769             */
770            public com.liferay.portal.service.LayoutSetPrototypeService getLayoutSetPrototypeService() {
771                    return layoutSetPrototypeService;
772            }
773    
774            /**
775             * Sets the layout set prototype remote service.
776             *
777             * @param layoutSetPrototypeService the layout set prototype remote service
778             */
779            public void setLayoutSetPrototypeService(
780                    com.liferay.portal.service.LayoutSetPrototypeService layoutSetPrototypeService) {
781                    this.layoutSetPrototypeService = layoutSetPrototypeService;
782            }
783    
784            /**
785             * Returns the layout set prototype persistence.
786             *
787             * @return the layout set prototype persistence
788             */
789            public LayoutSetPrototypePersistence getLayoutSetPrototypePersistence() {
790                    return layoutSetPrototypePersistence;
791            }
792    
793            /**
794             * Sets the layout set prototype persistence.
795             *
796             * @param layoutSetPrototypePersistence the layout set prototype persistence
797             */
798            public void setLayoutSetPrototypePersistence(
799                    LayoutSetPrototypePersistence layoutSetPrototypePersistence) {
800                    this.layoutSetPrototypePersistence = layoutSetPrototypePersistence;
801            }
802    
803            /**
804             * Returns the organization local service.
805             *
806             * @return the organization local service
807             */
808            public com.liferay.portal.service.OrganizationLocalService getOrganizationLocalService() {
809                    return organizationLocalService;
810            }
811    
812            /**
813             * Sets the organization local service.
814             *
815             * @param organizationLocalService the organization local service
816             */
817            public void setOrganizationLocalService(
818                    com.liferay.portal.service.OrganizationLocalService organizationLocalService) {
819                    this.organizationLocalService = organizationLocalService;
820            }
821    
822            /**
823             * Returns the organization remote service.
824             *
825             * @return the organization remote service
826             */
827            public com.liferay.portal.service.OrganizationService getOrganizationService() {
828                    return organizationService;
829            }
830    
831            /**
832             * Sets the organization remote service.
833             *
834             * @param organizationService the organization remote service
835             */
836            public void setOrganizationService(
837                    com.liferay.portal.service.OrganizationService organizationService) {
838                    this.organizationService = organizationService;
839            }
840    
841            /**
842             * Returns the organization persistence.
843             *
844             * @return the organization persistence
845             */
846            public OrganizationPersistence getOrganizationPersistence() {
847                    return organizationPersistence;
848            }
849    
850            /**
851             * Sets the organization persistence.
852             *
853             * @param organizationPersistence the organization persistence
854             */
855            public void setOrganizationPersistence(
856                    OrganizationPersistence organizationPersistence) {
857                    this.organizationPersistence = organizationPersistence;
858            }
859    
860            /**
861             * Returns the organization finder.
862             *
863             * @return the organization finder
864             */
865            public OrganizationFinder getOrganizationFinder() {
866                    return organizationFinder;
867            }
868    
869            /**
870             * Sets the organization finder.
871             *
872             * @param organizationFinder the organization finder
873             */
874            public void setOrganizationFinder(OrganizationFinder organizationFinder) {
875                    this.organizationFinder = organizationFinder;
876            }
877    
878            /**
879             * Returns the password policy local service.
880             *
881             * @return the password policy local service
882             */
883            public com.liferay.portal.service.PasswordPolicyLocalService getPasswordPolicyLocalService() {
884                    return passwordPolicyLocalService;
885            }
886    
887            /**
888             * Sets the password policy local service.
889             *
890             * @param passwordPolicyLocalService the password policy local service
891             */
892            public void setPasswordPolicyLocalService(
893                    com.liferay.portal.service.PasswordPolicyLocalService passwordPolicyLocalService) {
894                    this.passwordPolicyLocalService = passwordPolicyLocalService;
895            }
896    
897            /**
898             * Returns the password policy remote service.
899             *
900             * @return the password policy remote service
901             */
902            public com.liferay.portal.service.PasswordPolicyService getPasswordPolicyService() {
903                    return passwordPolicyService;
904            }
905    
906            /**
907             * Sets the password policy remote service.
908             *
909             * @param passwordPolicyService the password policy remote service
910             */
911            public void setPasswordPolicyService(
912                    com.liferay.portal.service.PasswordPolicyService passwordPolicyService) {
913                    this.passwordPolicyService = passwordPolicyService;
914            }
915    
916            /**
917             * Returns the password policy persistence.
918             *
919             * @return the password policy persistence
920             */
921            public PasswordPolicyPersistence getPasswordPolicyPersistence() {
922                    return passwordPolicyPersistence;
923            }
924    
925            /**
926             * Sets the password policy persistence.
927             *
928             * @param passwordPolicyPersistence the password policy persistence
929             */
930            public void setPasswordPolicyPersistence(
931                    PasswordPolicyPersistence passwordPolicyPersistence) {
932                    this.passwordPolicyPersistence = passwordPolicyPersistence;
933            }
934    
935            /**
936             * Returns the password policy finder.
937             *
938             * @return the password policy finder
939             */
940            public PasswordPolicyFinder getPasswordPolicyFinder() {
941                    return passwordPolicyFinder;
942            }
943    
944            /**
945             * Sets the password policy finder.
946             *
947             * @param passwordPolicyFinder the password policy finder
948             */
949            public void setPasswordPolicyFinder(
950                    PasswordPolicyFinder passwordPolicyFinder) {
951                    this.passwordPolicyFinder = passwordPolicyFinder;
952            }
953    
954            /**
955             * Returns the portal preferences local service.
956             *
957             * @return the portal preferences local service
958             */
959            public com.liferay.portal.service.PortalPreferencesLocalService getPortalPreferencesLocalService() {
960                    return portalPreferencesLocalService;
961            }
962    
963            /**
964             * Sets the portal preferences local service.
965             *
966             * @param portalPreferencesLocalService the portal preferences local service
967             */
968            public void setPortalPreferencesLocalService(
969                    com.liferay.portal.service.PortalPreferencesLocalService portalPreferencesLocalService) {
970                    this.portalPreferencesLocalService = portalPreferencesLocalService;
971            }
972    
973            /**
974             * Returns the portal preferences persistence.
975             *
976             * @return the portal preferences persistence
977             */
978            public PortalPreferencesPersistence getPortalPreferencesPersistence() {
979                    return portalPreferencesPersistence;
980            }
981    
982            /**
983             * Sets the portal preferences persistence.
984             *
985             * @param portalPreferencesPersistence the portal preferences persistence
986             */
987            public void setPortalPreferencesPersistence(
988                    PortalPreferencesPersistence portalPreferencesPersistence) {
989                    this.portalPreferencesPersistence = portalPreferencesPersistence;
990            }
991    
992            /**
993             * Returns the portlet local service.
994             *
995             * @return the portlet local service
996             */
997            public com.liferay.portal.service.PortletLocalService getPortletLocalService() {
998                    return portletLocalService;
999            }
1000    
1001            /**
1002             * Sets the portlet local service.
1003             *
1004             * @param portletLocalService the portlet local service
1005             */
1006            public void setPortletLocalService(
1007                    com.liferay.portal.service.PortletLocalService portletLocalService) {
1008                    this.portletLocalService = portletLocalService;
1009            }
1010    
1011            /**
1012             * Returns the portlet remote service.
1013             *
1014             * @return the portlet remote service
1015             */
1016            public com.liferay.portal.service.PortletService getPortletService() {
1017                    return portletService;
1018            }
1019    
1020            /**
1021             * Sets the portlet remote service.
1022             *
1023             * @param portletService the portlet remote service
1024             */
1025            public void setPortletService(
1026                    com.liferay.portal.service.PortletService portletService) {
1027                    this.portletService = portletService;
1028            }
1029    
1030            /**
1031             * Returns the portlet persistence.
1032             *
1033             * @return the portlet persistence
1034             */
1035            public PortletPersistence getPortletPersistence() {
1036                    return portletPersistence;
1037            }
1038    
1039            /**
1040             * Sets the portlet persistence.
1041             *
1042             * @param portletPersistence the portlet persistence
1043             */
1044            public void setPortletPersistence(PortletPersistence portletPersistence) {
1045                    this.portletPersistence = portletPersistence;
1046            }
1047    
1048            /**
1049             * Returns the resource local service.
1050             *
1051             * @return the resource local service
1052             */
1053            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
1054                    return resourceLocalService;
1055            }
1056    
1057            /**
1058             * Sets the resource local service.
1059             *
1060             * @param resourceLocalService the resource local service
1061             */
1062            public void setResourceLocalService(
1063                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
1064                    this.resourceLocalService = resourceLocalService;
1065            }
1066    
1067            /**
1068             * Returns the resource permission local service.
1069             *
1070             * @return the resource permission local service
1071             */
1072            public com.liferay.portal.service.ResourcePermissionLocalService getResourcePermissionLocalService() {
1073                    return resourcePermissionLocalService;
1074            }
1075    
1076            /**
1077             * Sets the resource permission local service.
1078             *
1079             * @param resourcePermissionLocalService the resource permission local service
1080             */
1081            public void setResourcePermissionLocalService(
1082                    com.liferay.portal.service.ResourcePermissionLocalService resourcePermissionLocalService) {
1083                    this.resourcePermissionLocalService = resourcePermissionLocalService;
1084            }
1085    
1086            /**
1087             * Returns the resource permission remote service.
1088             *
1089             * @return the resource permission remote service
1090             */
1091            public com.liferay.portal.service.ResourcePermissionService getResourcePermissionService() {
1092                    return resourcePermissionService;
1093            }
1094    
1095            /**
1096             * Sets the resource permission remote service.
1097             *
1098             * @param resourcePermissionService the resource permission remote service
1099             */
1100            public void setResourcePermissionService(
1101                    com.liferay.portal.service.ResourcePermissionService resourcePermissionService) {
1102                    this.resourcePermissionService = resourcePermissionService;
1103            }
1104    
1105            /**
1106             * Returns the resource permission persistence.
1107             *
1108             * @return the resource permission persistence
1109             */
1110            public ResourcePermissionPersistence getResourcePermissionPersistence() {
1111                    return resourcePermissionPersistence;
1112            }
1113    
1114            /**
1115             * Sets the resource permission persistence.
1116             *
1117             * @param resourcePermissionPersistence the resource permission persistence
1118             */
1119            public void setResourcePermissionPersistence(
1120                    ResourcePermissionPersistence resourcePermissionPersistence) {
1121                    this.resourcePermissionPersistence = resourcePermissionPersistence;
1122            }
1123    
1124            /**
1125             * Returns the resource permission finder.
1126             *
1127             * @return the resource permission finder
1128             */
1129            public ResourcePermissionFinder getResourcePermissionFinder() {
1130                    return resourcePermissionFinder;
1131            }
1132    
1133            /**
1134             * Sets the resource permission finder.
1135             *
1136             * @param resourcePermissionFinder the resource permission finder
1137             */
1138            public void setResourcePermissionFinder(
1139                    ResourcePermissionFinder resourcePermissionFinder) {
1140                    this.resourcePermissionFinder = resourcePermissionFinder;
1141            }
1142    
1143            /**
1144             * Returns the role local service.
1145             *
1146             * @return the role local service
1147             */
1148            public com.liferay.portal.service.RoleLocalService getRoleLocalService() {
1149                    return roleLocalService;
1150            }
1151    
1152            /**
1153             * Sets the role local service.
1154             *
1155             * @param roleLocalService the role local service
1156             */
1157            public void setRoleLocalService(
1158                    com.liferay.portal.service.RoleLocalService roleLocalService) {
1159                    this.roleLocalService = roleLocalService;
1160            }
1161    
1162            /**
1163             * Returns the role remote service.
1164             *
1165             * @return the role remote service
1166             */
1167            public com.liferay.portal.service.RoleService getRoleService() {
1168                    return roleService;
1169            }
1170    
1171            /**
1172             * Sets the role remote service.
1173             *
1174             * @param roleService the role remote service
1175             */
1176            public void setRoleService(
1177                    com.liferay.portal.service.RoleService roleService) {
1178                    this.roleService = roleService;
1179            }
1180    
1181            /**
1182             * Returns the role persistence.
1183             *
1184             * @return the role persistence
1185             */
1186            public RolePersistence getRolePersistence() {
1187                    return rolePersistence;
1188            }
1189    
1190            /**
1191             * Sets the role persistence.
1192             *
1193             * @param rolePersistence the role persistence
1194             */
1195            public void setRolePersistence(RolePersistence rolePersistence) {
1196                    this.rolePersistence = rolePersistence;
1197            }
1198    
1199            /**
1200             * Returns the role finder.
1201             *
1202             * @return the role finder
1203             */
1204            public RoleFinder getRoleFinder() {
1205                    return roleFinder;
1206            }
1207    
1208            /**
1209             * Sets the role finder.
1210             *
1211             * @param roleFinder the role finder
1212             */
1213            public void setRoleFinder(RoleFinder roleFinder) {
1214                    this.roleFinder = roleFinder;
1215            }
1216    
1217            /**
1218             * Returns the shard local service.
1219             *
1220             * @return the shard local service
1221             */
1222            public com.liferay.portal.service.ShardLocalService getShardLocalService() {
1223                    return shardLocalService;
1224            }
1225    
1226            /**
1227             * Sets the shard local service.
1228             *
1229             * @param shardLocalService the shard local service
1230             */
1231            public void setShardLocalService(
1232                    com.liferay.portal.service.ShardLocalService shardLocalService) {
1233                    this.shardLocalService = shardLocalService;
1234            }
1235    
1236            /**
1237             * Returns the shard persistence.
1238             *
1239             * @return the shard persistence
1240             */
1241            public ShardPersistence getShardPersistence() {
1242                    return shardPersistence;
1243            }
1244    
1245            /**
1246             * Sets the shard persistence.
1247             *
1248             * @param shardPersistence the shard persistence
1249             */
1250            public void setShardPersistence(ShardPersistence shardPersistence) {
1251                    this.shardPersistence = shardPersistence;
1252            }
1253    
1254            /**
1255             * Returns the user local service.
1256             *
1257             * @return the user local service
1258             */
1259            public com.liferay.portal.service.UserLocalService getUserLocalService() {
1260                    return userLocalService;
1261            }
1262    
1263            /**
1264             * Sets the user local service.
1265             *
1266             * @param userLocalService the user local service
1267             */
1268            public void setUserLocalService(
1269                    com.liferay.portal.service.UserLocalService userLocalService) {
1270                    this.userLocalService = userLocalService;
1271            }
1272    
1273            /**
1274             * Returns the user remote service.
1275             *
1276             * @return the user remote service
1277             */
1278            public com.liferay.portal.service.UserService getUserService() {
1279                    return userService;
1280            }
1281    
1282            /**
1283             * Sets the user remote service.
1284             *
1285             * @param userService the user remote service
1286             */
1287            public void setUserService(
1288                    com.liferay.portal.service.UserService userService) {
1289                    this.userService = userService;
1290            }
1291    
1292            /**
1293             * Returns the user persistence.
1294             *
1295             * @return the user persistence
1296             */
1297            public UserPersistence getUserPersistence() {
1298                    return userPersistence;
1299            }
1300    
1301            /**
1302             * Sets the user persistence.
1303             *
1304             * @param userPersistence the user persistence
1305             */
1306            public void setUserPersistence(UserPersistence userPersistence) {
1307                    this.userPersistence = userPersistence;
1308            }
1309    
1310            /**
1311             * Returns the user finder.
1312             *
1313             * @return the user finder
1314             */
1315            public UserFinder getUserFinder() {
1316                    return userFinder;
1317            }
1318    
1319            /**
1320             * Sets the user finder.
1321             *
1322             * @param userFinder the user finder
1323             */
1324            public void setUserFinder(UserFinder userFinder) {
1325                    this.userFinder = userFinder;
1326            }
1327    
1328            /**
1329             * Returns the virtual host local service.
1330             *
1331             * @return the virtual host local service
1332             */
1333            public com.liferay.portal.service.VirtualHostLocalService getVirtualHostLocalService() {
1334                    return virtualHostLocalService;
1335            }
1336    
1337            /**
1338             * Sets the virtual host local service.
1339             *
1340             * @param virtualHostLocalService the virtual host local service
1341             */
1342            public void setVirtualHostLocalService(
1343                    com.liferay.portal.service.VirtualHostLocalService virtualHostLocalService) {
1344                    this.virtualHostLocalService = virtualHostLocalService;
1345            }
1346    
1347            /**
1348             * Returns the virtual host persistence.
1349             *
1350             * @return the virtual host persistence
1351             */
1352            public VirtualHostPersistence getVirtualHostPersistence() {
1353                    return virtualHostPersistence;
1354            }
1355    
1356            /**
1357             * Sets the virtual host persistence.
1358             *
1359             * @param virtualHostPersistence the virtual host persistence
1360             */
1361            public void setVirtualHostPersistence(
1362                    VirtualHostPersistence virtualHostPersistence) {
1363                    this.virtualHostPersistence = virtualHostPersistence;
1364            }
1365    
1366            public void afterPropertiesSet() {
1367                    persistedModelLocalServiceRegistry.register("com.liferay.portal.model.Company",
1368                            companyLocalService);
1369            }
1370    
1371            public void destroy() {
1372                    persistedModelLocalServiceRegistry.unregister(
1373                            "com.liferay.portal.model.Company");
1374            }
1375    
1376            /**
1377             * Returns the Spring bean ID for this bean.
1378             *
1379             * @return the Spring bean ID for this bean
1380             */
1381            @Override
1382            public String getBeanIdentifier() {
1383                    return _beanIdentifier;
1384            }
1385    
1386            /**
1387             * Sets the Spring bean ID for this bean.
1388             *
1389             * @param beanIdentifier the Spring bean ID for this bean
1390             */
1391            @Override
1392            public void setBeanIdentifier(String beanIdentifier) {
1393                    _beanIdentifier = beanIdentifier;
1394            }
1395    
1396            protected Class<?> getModelClass() {
1397                    return Company.class;
1398            }
1399    
1400            protected String getModelClassName() {
1401                    return Company.class.getName();
1402            }
1403    
1404            /**
1405             * Performs a SQL query.
1406             *
1407             * @param sql the sql query
1408             */
1409            protected void runSQL(String sql) {
1410                    try {
1411                            DataSource dataSource = companyPersistence.getDataSource();
1412    
1413                            DB db = DBFactoryUtil.getDB();
1414    
1415                            sql = db.buildSQL(sql);
1416                            sql = PortalUtil.transformSQL(sql);
1417    
1418                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1419                                            sql, new int[0]);
1420    
1421                            sqlUpdate.update();
1422                    }
1423                    catch (Exception e) {
1424                            throw new SystemException(e);
1425                    }
1426            }
1427    
1428            @BeanReference(type = CompanyLocalService.class)
1429            protected CompanyLocalService companyLocalService;
1430            @BeanReference(type = com.liferay.portal.service.CompanyService.class)
1431            protected com.liferay.portal.service.CompanyService companyService;
1432            @BeanReference(type = CompanyPersistence.class)
1433            protected CompanyPersistence companyPersistence;
1434            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1435            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1436            @BeanReference(type = com.liferay.portal.service.AccountLocalService.class)
1437            protected com.liferay.portal.service.AccountLocalService accountLocalService;
1438            @BeanReference(type = com.liferay.portal.service.AccountService.class)
1439            protected com.liferay.portal.service.AccountService accountService;
1440            @BeanReference(type = AccountPersistence.class)
1441            protected AccountPersistence accountPersistence;
1442            @BeanReference(type = com.liferay.portal.service.ContactLocalService.class)
1443            protected com.liferay.portal.service.ContactLocalService contactLocalService;
1444            @BeanReference(type = com.liferay.portal.service.ContactService.class)
1445            protected com.liferay.portal.service.ContactService contactService;
1446            @BeanReference(type = ContactPersistence.class)
1447            protected ContactPersistence contactPersistence;
1448            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1449            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1450            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1451            protected com.liferay.portal.service.GroupService groupService;
1452            @BeanReference(type = GroupPersistence.class)
1453            protected GroupPersistence groupPersistence;
1454            @BeanReference(type = GroupFinder.class)
1455            protected GroupFinder groupFinder;
1456            @BeanReference(type = com.liferay.portal.service.ImageLocalService.class)
1457            protected com.liferay.portal.service.ImageLocalService imageLocalService;
1458            @BeanReference(type = com.liferay.portal.service.ImageService.class)
1459            protected com.liferay.portal.service.ImageService imageService;
1460            @BeanReference(type = ImagePersistence.class)
1461            protected ImagePersistence imagePersistence;
1462            @BeanReference(type = com.liferay.portal.service.LayoutPrototypeLocalService.class)
1463            protected com.liferay.portal.service.LayoutPrototypeLocalService layoutPrototypeLocalService;
1464            @BeanReference(type = com.liferay.portal.service.LayoutPrototypeService.class)
1465            protected com.liferay.portal.service.LayoutPrototypeService layoutPrototypeService;
1466            @BeanReference(type = LayoutPrototypePersistence.class)
1467            protected LayoutPrototypePersistence layoutPrototypePersistence;
1468            @BeanReference(type = com.liferay.portal.service.LayoutSetLocalService.class)
1469            protected com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService;
1470            @BeanReference(type = com.liferay.portal.service.LayoutSetService.class)
1471            protected com.liferay.portal.service.LayoutSetService layoutSetService;
1472            @BeanReference(type = LayoutSetPersistence.class)
1473            protected LayoutSetPersistence layoutSetPersistence;
1474            @BeanReference(type = com.liferay.portal.service.LayoutSetPrototypeLocalService.class)
1475            protected com.liferay.portal.service.LayoutSetPrototypeLocalService layoutSetPrototypeLocalService;
1476            @BeanReference(type = com.liferay.portal.service.LayoutSetPrototypeService.class)
1477            protected com.liferay.portal.service.LayoutSetPrototypeService layoutSetPrototypeService;
1478            @BeanReference(type = LayoutSetPrototypePersistence.class)
1479            protected LayoutSetPrototypePersistence layoutSetPrototypePersistence;
1480            @BeanReference(type = com.liferay.portal.service.OrganizationLocalService.class)
1481            protected com.liferay.portal.service.OrganizationLocalService organizationLocalService;
1482            @BeanReference(type = com.liferay.portal.service.OrganizationService.class)
1483            protected com.liferay.portal.service.OrganizationService organizationService;
1484            @BeanReference(type = OrganizationPersistence.class)
1485            protected OrganizationPersistence organizationPersistence;
1486            @BeanReference(type = OrganizationFinder.class)
1487            protected OrganizationFinder organizationFinder;
1488            @BeanReference(type = com.liferay.portal.service.PasswordPolicyLocalService.class)
1489            protected com.liferay.portal.service.PasswordPolicyLocalService passwordPolicyLocalService;
1490            @BeanReference(type = com.liferay.portal.service.PasswordPolicyService.class)
1491            protected com.liferay.portal.service.PasswordPolicyService passwordPolicyService;
1492            @BeanReference(type = PasswordPolicyPersistence.class)
1493            protected PasswordPolicyPersistence passwordPolicyPersistence;
1494            @BeanReference(type = PasswordPolicyFinder.class)
1495            protected PasswordPolicyFinder passwordPolicyFinder;
1496            @BeanReference(type = com.liferay.portal.service.PortalPreferencesLocalService.class)
1497            protected com.liferay.portal.service.PortalPreferencesLocalService portalPreferencesLocalService;
1498            @BeanReference(type = PortalPreferencesPersistence.class)
1499            protected PortalPreferencesPersistence portalPreferencesPersistence;
1500            @BeanReference(type = com.liferay.portal.service.PortletLocalService.class)
1501            protected com.liferay.portal.service.PortletLocalService portletLocalService;
1502            @BeanReference(type = com.liferay.portal.service.PortletService.class)
1503            protected com.liferay.portal.service.PortletService portletService;
1504            @BeanReference(type = PortletPersistence.class)
1505            protected PortletPersistence portletPersistence;
1506            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1507            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1508            @BeanReference(type = com.liferay.portal.service.ResourcePermissionLocalService.class)
1509            protected com.liferay.portal.service.ResourcePermissionLocalService resourcePermissionLocalService;
1510            @BeanReference(type = com.liferay.portal.service.ResourcePermissionService.class)
1511            protected com.liferay.portal.service.ResourcePermissionService resourcePermissionService;
1512            @BeanReference(type = ResourcePermissionPersistence.class)
1513            protected ResourcePermissionPersistence resourcePermissionPersistence;
1514            @BeanReference(type = ResourcePermissionFinder.class)
1515            protected ResourcePermissionFinder resourcePermissionFinder;
1516            @BeanReference(type = com.liferay.portal.service.RoleLocalService.class)
1517            protected com.liferay.portal.service.RoleLocalService roleLocalService;
1518            @BeanReference(type = com.liferay.portal.service.RoleService.class)
1519            protected com.liferay.portal.service.RoleService roleService;
1520            @BeanReference(type = RolePersistence.class)
1521            protected RolePersistence rolePersistence;
1522            @BeanReference(type = RoleFinder.class)
1523            protected RoleFinder roleFinder;
1524            @BeanReference(type = com.liferay.portal.service.ShardLocalService.class)
1525            protected com.liferay.portal.service.ShardLocalService shardLocalService;
1526            @BeanReference(type = ShardPersistence.class)
1527            protected ShardPersistence shardPersistence;
1528            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1529            protected com.liferay.portal.service.UserLocalService userLocalService;
1530            @BeanReference(type = com.liferay.portal.service.UserService.class)
1531            protected com.liferay.portal.service.UserService userService;
1532            @BeanReference(type = UserPersistence.class)
1533            protected UserPersistence userPersistence;
1534            @BeanReference(type = UserFinder.class)
1535            protected UserFinder userFinder;
1536            @BeanReference(type = com.liferay.portal.service.VirtualHostLocalService.class)
1537            protected com.liferay.portal.service.VirtualHostLocalService virtualHostLocalService;
1538            @BeanReference(type = VirtualHostPersistence.class)
1539            protected VirtualHostPersistence virtualHostPersistence;
1540            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1541            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1542            private String _beanIdentifier;
1543    }