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 com.liferay.portal.service.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(
331                    com.liferay.portal.service.CompanyLocalService companyLocalService) {
332                    this.companyLocalService = companyLocalService;
333            }
334    
335            /**
336             * Returns the company remote service.
337             *
338             * @return the company remote service
339             */
340            public com.liferay.portal.service.CompanyService getCompanyService() {
341                    return companyService;
342            }
343    
344            /**
345             * Sets the company remote service.
346             *
347             * @param companyService the company remote service
348             */
349            public void setCompanyService(
350                    com.liferay.portal.service.CompanyService companyService) {
351                    this.companyService = companyService;
352            }
353    
354            /**
355             * Returns the company persistence.
356             *
357             * @return the company persistence
358             */
359            public CompanyPersistence getCompanyPersistence() {
360                    return companyPersistence;
361            }
362    
363            /**
364             * Sets the company persistence.
365             *
366             * @param companyPersistence the company persistence
367             */
368            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
369                    this.companyPersistence = companyPersistence;
370            }
371    
372            /**
373             * Returns the counter local service.
374             *
375             * @return the counter local service
376             */
377            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
378                    return counterLocalService;
379            }
380    
381            /**
382             * Sets the counter local service.
383             *
384             * @param counterLocalService the counter local service
385             */
386            public void setCounterLocalService(
387                    com.liferay.counter.service.CounterLocalService counterLocalService) {
388                    this.counterLocalService = counterLocalService;
389            }
390    
391            /**
392             * Returns the account local service.
393             *
394             * @return the account local service
395             */
396            public com.liferay.portal.service.AccountLocalService getAccountLocalService() {
397                    return accountLocalService;
398            }
399    
400            /**
401             * Sets the account local service.
402             *
403             * @param accountLocalService the account local service
404             */
405            public void setAccountLocalService(
406                    com.liferay.portal.service.AccountLocalService accountLocalService) {
407                    this.accountLocalService = accountLocalService;
408            }
409    
410            /**
411             * Returns the account remote service.
412             *
413             * @return the account remote service
414             */
415            public com.liferay.portal.service.AccountService getAccountService() {
416                    return accountService;
417            }
418    
419            /**
420             * Sets the account remote service.
421             *
422             * @param accountService the account remote service
423             */
424            public void setAccountService(
425                    com.liferay.portal.service.AccountService accountService) {
426                    this.accountService = accountService;
427            }
428    
429            /**
430             * Returns the account persistence.
431             *
432             * @return the account persistence
433             */
434            public AccountPersistence getAccountPersistence() {
435                    return accountPersistence;
436            }
437    
438            /**
439             * Sets the account persistence.
440             *
441             * @param accountPersistence the account persistence
442             */
443            public void setAccountPersistence(AccountPersistence accountPersistence) {
444                    this.accountPersistence = accountPersistence;
445            }
446    
447            /**
448             * Returns the contact local service.
449             *
450             * @return the contact local service
451             */
452            public com.liferay.portal.service.ContactLocalService getContactLocalService() {
453                    return contactLocalService;
454            }
455    
456            /**
457             * Sets the contact local service.
458             *
459             * @param contactLocalService the contact local service
460             */
461            public void setContactLocalService(
462                    com.liferay.portal.service.ContactLocalService contactLocalService) {
463                    this.contactLocalService = contactLocalService;
464            }
465    
466            /**
467             * Returns the contact remote service.
468             *
469             * @return the contact remote service
470             */
471            public com.liferay.portal.service.ContactService getContactService() {
472                    return contactService;
473            }
474    
475            /**
476             * Sets the contact remote service.
477             *
478             * @param contactService the contact remote service
479             */
480            public void setContactService(
481                    com.liferay.portal.service.ContactService contactService) {
482                    this.contactService = contactService;
483            }
484    
485            /**
486             * Returns the contact persistence.
487             *
488             * @return the contact persistence
489             */
490            public ContactPersistence getContactPersistence() {
491                    return contactPersistence;
492            }
493    
494            /**
495             * Sets the contact persistence.
496             *
497             * @param contactPersistence the contact persistence
498             */
499            public void setContactPersistence(ContactPersistence contactPersistence) {
500                    this.contactPersistence = contactPersistence;
501            }
502    
503            /**
504             * Returns the group local service.
505             *
506             * @return the group local service
507             */
508            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
509                    return groupLocalService;
510            }
511    
512            /**
513             * Sets the group local service.
514             *
515             * @param groupLocalService the group local service
516             */
517            public void setGroupLocalService(
518                    com.liferay.portal.service.GroupLocalService groupLocalService) {
519                    this.groupLocalService = groupLocalService;
520            }
521    
522            /**
523             * Returns the group remote service.
524             *
525             * @return the group remote service
526             */
527            public com.liferay.portal.service.GroupService getGroupService() {
528                    return groupService;
529            }
530    
531            /**
532             * Sets the group remote service.
533             *
534             * @param groupService the group remote service
535             */
536            public void setGroupService(
537                    com.liferay.portal.service.GroupService groupService) {
538                    this.groupService = groupService;
539            }
540    
541            /**
542             * Returns the group persistence.
543             *
544             * @return the group persistence
545             */
546            public GroupPersistence getGroupPersistence() {
547                    return groupPersistence;
548            }
549    
550            /**
551             * Sets the group persistence.
552             *
553             * @param groupPersistence the group persistence
554             */
555            public void setGroupPersistence(GroupPersistence groupPersistence) {
556                    this.groupPersistence = groupPersistence;
557            }
558    
559            /**
560             * Returns the group finder.
561             *
562             * @return the group finder
563             */
564            public GroupFinder getGroupFinder() {
565                    return groupFinder;
566            }
567    
568            /**
569             * Sets the group finder.
570             *
571             * @param groupFinder the group finder
572             */
573            public void setGroupFinder(GroupFinder groupFinder) {
574                    this.groupFinder = groupFinder;
575            }
576    
577            /**
578             * Returns the image local service.
579             *
580             * @return the image local service
581             */
582            public com.liferay.portal.service.ImageLocalService getImageLocalService() {
583                    return imageLocalService;
584            }
585    
586            /**
587             * Sets the image local service.
588             *
589             * @param imageLocalService the image local service
590             */
591            public void setImageLocalService(
592                    com.liferay.portal.service.ImageLocalService imageLocalService) {
593                    this.imageLocalService = imageLocalService;
594            }
595    
596            /**
597             * Returns the image remote service.
598             *
599             * @return the image remote service
600             */
601            public com.liferay.portal.service.ImageService getImageService() {
602                    return imageService;
603            }
604    
605            /**
606             * Sets the image remote service.
607             *
608             * @param imageService the image remote service
609             */
610            public void setImageService(
611                    com.liferay.portal.service.ImageService imageService) {
612                    this.imageService = imageService;
613            }
614    
615            /**
616             * Returns the image persistence.
617             *
618             * @return the image persistence
619             */
620            public ImagePersistence getImagePersistence() {
621                    return imagePersistence;
622            }
623    
624            /**
625             * Sets the image persistence.
626             *
627             * @param imagePersistence the image persistence
628             */
629            public void setImagePersistence(ImagePersistence imagePersistence) {
630                    this.imagePersistence = imagePersistence;
631            }
632    
633            /**
634             * Returns the layout prototype local service.
635             *
636             * @return the layout prototype local service
637             */
638            public com.liferay.portal.service.LayoutPrototypeLocalService getLayoutPrototypeLocalService() {
639                    return layoutPrototypeLocalService;
640            }
641    
642            /**
643             * Sets the layout prototype local service.
644             *
645             * @param layoutPrototypeLocalService the layout prototype local service
646             */
647            public void setLayoutPrototypeLocalService(
648                    com.liferay.portal.service.LayoutPrototypeLocalService layoutPrototypeLocalService) {
649                    this.layoutPrototypeLocalService = layoutPrototypeLocalService;
650            }
651    
652            /**
653             * Returns the layout prototype remote service.
654             *
655             * @return the layout prototype remote service
656             */
657            public com.liferay.portal.service.LayoutPrototypeService getLayoutPrototypeService() {
658                    return layoutPrototypeService;
659            }
660    
661            /**
662             * Sets the layout prototype remote service.
663             *
664             * @param layoutPrototypeService the layout prototype remote service
665             */
666            public void setLayoutPrototypeService(
667                    com.liferay.portal.service.LayoutPrototypeService layoutPrototypeService) {
668                    this.layoutPrototypeService = layoutPrototypeService;
669            }
670    
671            /**
672             * Returns the layout prototype persistence.
673             *
674             * @return the layout prototype persistence
675             */
676            public LayoutPrototypePersistence getLayoutPrototypePersistence() {
677                    return layoutPrototypePersistence;
678            }
679    
680            /**
681             * Sets the layout prototype persistence.
682             *
683             * @param layoutPrototypePersistence the layout prototype persistence
684             */
685            public void setLayoutPrototypePersistence(
686                    LayoutPrototypePersistence layoutPrototypePersistence) {
687                    this.layoutPrototypePersistence = layoutPrototypePersistence;
688            }
689    
690            /**
691             * Returns the layout set local service.
692             *
693             * @return the layout set local service
694             */
695            public com.liferay.portal.service.LayoutSetLocalService getLayoutSetLocalService() {
696                    return layoutSetLocalService;
697            }
698    
699            /**
700             * Sets the layout set local service.
701             *
702             * @param layoutSetLocalService the layout set local service
703             */
704            public void setLayoutSetLocalService(
705                    com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService) {
706                    this.layoutSetLocalService = layoutSetLocalService;
707            }
708    
709            /**
710             * Returns the layout set remote service.
711             *
712             * @return the layout set remote service
713             */
714            public com.liferay.portal.service.LayoutSetService getLayoutSetService() {
715                    return layoutSetService;
716            }
717    
718            /**
719             * Sets the layout set remote service.
720             *
721             * @param layoutSetService the layout set remote service
722             */
723            public void setLayoutSetService(
724                    com.liferay.portal.service.LayoutSetService layoutSetService) {
725                    this.layoutSetService = layoutSetService;
726            }
727    
728            /**
729             * Returns the layout set persistence.
730             *
731             * @return the layout set persistence
732             */
733            public LayoutSetPersistence getLayoutSetPersistence() {
734                    return layoutSetPersistence;
735            }
736    
737            /**
738             * Sets the layout set persistence.
739             *
740             * @param layoutSetPersistence the layout set persistence
741             */
742            public void setLayoutSetPersistence(
743                    LayoutSetPersistence layoutSetPersistence) {
744                    this.layoutSetPersistence = layoutSetPersistence;
745            }
746    
747            /**
748             * Returns the layout set prototype local service.
749             *
750             * @return the layout set prototype local service
751             */
752            public com.liferay.portal.service.LayoutSetPrototypeLocalService getLayoutSetPrototypeLocalService() {
753                    return layoutSetPrototypeLocalService;
754            }
755    
756            /**
757             * Sets the layout set prototype local service.
758             *
759             * @param layoutSetPrototypeLocalService the layout set prototype local service
760             */
761            public void setLayoutSetPrototypeLocalService(
762                    com.liferay.portal.service.LayoutSetPrototypeLocalService layoutSetPrototypeLocalService) {
763                    this.layoutSetPrototypeLocalService = layoutSetPrototypeLocalService;
764            }
765    
766            /**
767             * Returns the layout set prototype remote service.
768             *
769             * @return the layout set prototype remote service
770             */
771            public com.liferay.portal.service.LayoutSetPrototypeService getLayoutSetPrototypeService() {
772                    return layoutSetPrototypeService;
773            }
774    
775            /**
776             * Sets the layout set prototype remote service.
777             *
778             * @param layoutSetPrototypeService the layout set prototype remote service
779             */
780            public void setLayoutSetPrototypeService(
781                    com.liferay.portal.service.LayoutSetPrototypeService layoutSetPrototypeService) {
782                    this.layoutSetPrototypeService = layoutSetPrototypeService;
783            }
784    
785            /**
786             * Returns the layout set prototype persistence.
787             *
788             * @return the layout set prototype persistence
789             */
790            public LayoutSetPrototypePersistence getLayoutSetPrototypePersistence() {
791                    return layoutSetPrototypePersistence;
792            }
793    
794            /**
795             * Sets the layout set prototype persistence.
796             *
797             * @param layoutSetPrototypePersistence the layout set prototype persistence
798             */
799            public void setLayoutSetPrototypePersistence(
800                    LayoutSetPrototypePersistence layoutSetPrototypePersistence) {
801                    this.layoutSetPrototypePersistence = layoutSetPrototypePersistence;
802            }
803    
804            /**
805             * Returns the organization local service.
806             *
807             * @return the organization local service
808             */
809            public com.liferay.portal.service.OrganizationLocalService getOrganizationLocalService() {
810                    return organizationLocalService;
811            }
812    
813            /**
814             * Sets the organization local service.
815             *
816             * @param organizationLocalService the organization local service
817             */
818            public void setOrganizationLocalService(
819                    com.liferay.portal.service.OrganizationLocalService organizationLocalService) {
820                    this.organizationLocalService = organizationLocalService;
821            }
822    
823            /**
824             * Returns the organization remote service.
825             *
826             * @return the organization remote service
827             */
828            public com.liferay.portal.service.OrganizationService getOrganizationService() {
829                    return organizationService;
830            }
831    
832            /**
833             * Sets the organization remote service.
834             *
835             * @param organizationService the organization remote service
836             */
837            public void setOrganizationService(
838                    com.liferay.portal.service.OrganizationService organizationService) {
839                    this.organizationService = organizationService;
840            }
841    
842            /**
843             * Returns the organization persistence.
844             *
845             * @return the organization persistence
846             */
847            public OrganizationPersistence getOrganizationPersistence() {
848                    return organizationPersistence;
849            }
850    
851            /**
852             * Sets the organization persistence.
853             *
854             * @param organizationPersistence the organization persistence
855             */
856            public void setOrganizationPersistence(
857                    OrganizationPersistence organizationPersistence) {
858                    this.organizationPersistence = organizationPersistence;
859            }
860    
861            /**
862             * Returns the organization finder.
863             *
864             * @return the organization finder
865             */
866            public OrganizationFinder getOrganizationFinder() {
867                    return organizationFinder;
868            }
869    
870            /**
871             * Sets the organization finder.
872             *
873             * @param organizationFinder the organization finder
874             */
875            public void setOrganizationFinder(OrganizationFinder organizationFinder) {
876                    this.organizationFinder = organizationFinder;
877            }
878    
879            /**
880             * Returns the password policy local service.
881             *
882             * @return the password policy local service
883             */
884            public com.liferay.portal.service.PasswordPolicyLocalService getPasswordPolicyLocalService() {
885                    return passwordPolicyLocalService;
886            }
887    
888            /**
889             * Sets the password policy local service.
890             *
891             * @param passwordPolicyLocalService the password policy local service
892             */
893            public void setPasswordPolicyLocalService(
894                    com.liferay.portal.service.PasswordPolicyLocalService passwordPolicyLocalService) {
895                    this.passwordPolicyLocalService = passwordPolicyLocalService;
896            }
897    
898            /**
899             * Returns the password policy remote service.
900             *
901             * @return the password policy remote service
902             */
903            public com.liferay.portal.service.PasswordPolicyService getPasswordPolicyService() {
904                    return passwordPolicyService;
905            }
906    
907            /**
908             * Sets the password policy remote service.
909             *
910             * @param passwordPolicyService the password policy remote service
911             */
912            public void setPasswordPolicyService(
913                    com.liferay.portal.service.PasswordPolicyService passwordPolicyService) {
914                    this.passwordPolicyService = passwordPolicyService;
915            }
916    
917            /**
918             * Returns the password policy persistence.
919             *
920             * @return the password policy persistence
921             */
922            public PasswordPolicyPersistence getPasswordPolicyPersistence() {
923                    return passwordPolicyPersistence;
924            }
925    
926            /**
927             * Sets the password policy persistence.
928             *
929             * @param passwordPolicyPersistence the password policy persistence
930             */
931            public void setPasswordPolicyPersistence(
932                    PasswordPolicyPersistence passwordPolicyPersistence) {
933                    this.passwordPolicyPersistence = passwordPolicyPersistence;
934            }
935    
936            /**
937             * Returns the password policy finder.
938             *
939             * @return the password policy finder
940             */
941            public PasswordPolicyFinder getPasswordPolicyFinder() {
942                    return passwordPolicyFinder;
943            }
944    
945            /**
946             * Sets the password policy finder.
947             *
948             * @param passwordPolicyFinder the password policy finder
949             */
950            public void setPasswordPolicyFinder(
951                    PasswordPolicyFinder passwordPolicyFinder) {
952                    this.passwordPolicyFinder = passwordPolicyFinder;
953            }
954    
955            /**
956             * Returns the portal preferences local service.
957             *
958             * @return the portal preferences local service
959             */
960            public com.liferay.portal.service.PortalPreferencesLocalService getPortalPreferencesLocalService() {
961                    return portalPreferencesLocalService;
962            }
963    
964            /**
965             * Sets the portal preferences local service.
966             *
967             * @param portalPreferencesLocalService the portal preferences local service
968             */
969            public void setPortalPreferencesLocalService(
970                    com.liferay.portal.service.PortalPreferencesLocalService portalPreferencesLocalService) {
971                    this.portalPreferencesLocalService = portalPreferencesLocalService;
972            }
973    
974            /**
975             * Returns the portal preferences persistence.
976             *
977             * @return the portal preferences persistence
978             */
979            public PortalPreferencesPersistence getPortalPreferencesPersistence() {
980                    return portalPreferencesPersistence;
981            }
982    
983            /**
984             * Sets the portal preferences persistence.
985             *
986             * @param portalPreferencesPersistence the portal preferences persistence
987             */
988            public void setPortalPreferencesPersistence(
989                    PortalPreferencesPersistence portalPreferencesPersistence) {
990                    this.portalPreferencesPersistence = portalPreferencesPersistence;
991            }
992    
993            /**
994             * Returns the portlet local service.
995             *
996             * @return the portlet local service
997             */
998            public com.liferay.portal.service.PortletLocalService getPortletLocalService() {
999                    return portletLocalService;
1000            }
1001    
1002            /**
1003             * Sets the portlet local service.
1004             *
1005             * @param portletLocalService the portlet local service
1006             */
1007            public void setPortletLocalService(
1008                    com.liferay.portal.service.PortletLocalService portletLocalService) {
1009                    this.portletLocalService = portletLocalService;
1010            }
1011    
1012            /**
1013             * Returns the portlet remote service.
1014             *
1015             * @return the portlet remote service
1016             */
1017            public com.liferay.portal.service.PortletService getPortletService() {
1018                    return portletService;
1019            }
1020    
1021            /**
1022             * Sets the portlet remote service.
1023             *
1024             * @param portletService the portlet remote service
1025             */
1026            public void setPortletService(
1027                    com.liferay.portal.service.PortletService portletService) {
1028                    this.portletService = portletService;
1029            }
1030    
1031            /**
1032             * Returns the portlet persistence.
1033             *
1034             * @return the portlet persistence
1035             */
1036            public PortletPersistence getPortletPersistence() {
1037                    return portletPersistence;
1038            }
1039    
1040            /**
1041             * Sets the portlet persistence.
1042             *
1043             * @param portletPersistence the portlet persistence
1044             */
1045            public void setPortletPersistence(PortletPersistence portletPersistence) {
1046                    this.portletPersistence = portletPersistence;
1047            }
1048    
1049            /**
1050             * Returns the resource local service.
1051             *
1052             * @return the resource local service
1053             */
1054            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
1055                    return resourceLocalService;
1056            }
1057    
1058            /**
1059             * Sets the resource local service.
1060             *
1061             * @param resourceLocalService the resource local service
1062             */
1063            public void setResourceLocalService(
1064                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
1065                    this.resourceLocalService = resourceLocalService;
1066            }
1067    
1068            /**
1069             * Returns the resource permission local service.
1070             *
1071             * @return the resource permission local service
1072             */
1073            public com.liferay.portal.service.ResourcePermissionLocalService getResourcePermissionLocalService() {
1074                    return resourcePermissionLocalService;
1075            }
1076    
1077            /**
1078             * Sets the resource permission local service.
1079             *
1080             * @param resourcePermissionLocalService the resource permission local service
1081             */
1082            public void setResourcePermissionLocalService(
1083                    com.liferay.portal.service.ResourcePermissionLocalService resourcePermissionLocalService) {
1084                    this.resourcePermissionLocalService = resourcePermissionLocalService;
1085            }
1086    
1087            /**
1088             * Returns the resource permission remote service.
1089             *
1090             * @return the resource permission remote service
1091             */
1092            public com.liferay.portal.service.ResourcePermissionService getResourcePermissionService() {
1093                    return resourcePermissionService;
1094            }
1095    
1096            /**
1097             * Sets the resource permission remote service.
1098             *
1099             * @param resourcePermissionService the resource permission remote service
1100             */
1101            public void setResourcePermissionService(
1102                    com.liferay.portal.service.ResourcePermissionService resourcePermissionService) {
1103                    this.resourcePermissionService = resourcePermissionService;
1104            }
1105    
1106            /**
1107             * Returns the resource permission persistence.
1108             *
1109             * @return the resource permission persistence
1110             */
1111            public ResourcePermissionPersistence getResourcePermissionPersistence() {
1112                    return resourcePermissionPersistence;
1113            }
1114    
1115            /**
1116             * Sets the resource permission persistence.
1117             *
1118             * @param resourcePermissionPersistence the resource permission persistence
1119             */
1120            public void setResourcePermissionPersistence(
1121                    ResourcePermissionPersistence resourcePermissionPersistence) {
1122                    this.resourcePermissionPersistence = resourcePermissionPersistence;
1123            }
1124    
1125            /**
1126             * Returns the resource permission finder.
1127             *
1128             * @return the resource permission finder
1129             */
1130            public ResourcePermissionFinder getResourcePermissionFinder() {
1131                    return resourcePermissionFinder;
1132            }
1133    
1134            /**
1135             * Sets the resource permission finder.
1136             *
1137             * @param resourcePermissionFinder the resource permission finder
1138             */
1139            public void setResourcePermissionFinder(
1140                    ResourcePermissionFinder resourcePermissionFinder) {
1141                    this.resourcePermissionFinder = resourcePermissionFinder;
1142            }
1143    
1144            /**
1145             * Returns the role local service.
1146             *
1147             * @return the role local service
1148             */
1149            public com.liferay.portal.service.RoleLocalService getRoleLocalService() {
1150                    return roleLocalService;
1151            }
1152    
1153            /**
1154             * Sets the role local service.
1155             *
1156             * @param roleLocalService the role local service
1157             */
1158            public void setRoleLocalService(
1159                    com.liferay.portal.service.RoleLocalService roleLocalService) {
1160                    this.roleLocalService = roleLocalService;
1161            }
1162    
1163            /**
1164             * Returns the role remote service.
1165             *
1166             * @return the role remote service
1167             */
1168            public com.liferay.portal.service.RoleService getRoleService() {
1169                    return roleService;
1170            }
1171    
1172            /**
1173             * Sets the role remote service.
1174             *
1175             * @param roleService the role remote service
1176             */
1177            public void setRoleService(
1178                    com.liferay.portal.service.RoleService roleService) {
1179                    this.roleService = roleService;
1180            }
1181    
1182            /**
1183             * Returns the role persistence.
1184             *
1185             * @return the role persistence
1186             */
1187            public RolePersistence getRolePersistence() {
1188                    return rolePersistence;
1189            }
1190    
1191            /**
1192             * Sets the role persistence.
1193             *
1194             * @param rolePersistence the role persistence
1195             */
1196            public void setRolePersistence(RolePersistence rolePersistence) {
1197                    this.rolePersistence = rolePersistence;
1198            }
1199    
1200            /**
1201             * Returns the role finder.
1202             *
1203             * @return the role finder
1204             */
1205            public RoleFinder getRoleFinder() {
1206                    return roleFinder;
1207            }
1208    
1209            /**
1210             * Sets the role finder.
1211             *
1212             * @param roleFinder the role finder
1213             */
1214            public void setRoleFinder(RoleFinder roleFinder) {
1215                    this.roleFinder = roleFinder;
1216            }
1217    
1218            /**
1219             * Returns the shard local service.
1220             *
1221             * @return the shard local service
1222             */
1223            public com.liferay.portal.service.ShardLocalService getShardLocalService() {
1224                    return shardLocalService;
1225            }
1226    
1227            /**
1228             * Sets the shard local service.
1229             *
1230             * @param shardLocalService the shard local service
1231             */
1232            public void setShardLocalService(
1233                    com.liferay.portal.service.ShardLocalService shardLocalService) {
1234                    this.shardLocalService = shardLocalService;
1235            }
1236    
1237            /**
1238             * Returns the shard persistence.
1239             *
1240             * @return the shard persistence
1241             */
1242            public ShardPersistence getShardPersistence() {
1243                    return shardPersistence;
1244            }
1245    
1246            /**
1247             * Sets the shard persistence.
1248             *
1249             * @param shardPersistence the shard persistence
1250             */
1251            public void setShardPersistence(ShardPersistence shardPersistence) {
1252                    this.shardPersistence = shardPersistence;
1253            }
1254    
1255            /**
1256             * Returns the user local service.
1257             *
1258             * @return the user local service
1259             */
1260            public com.liferay.portal.service.UserLocalService getUserLocalService() {
1261                    return userLocalService;
1262            }
1263    
1264            /**
1265             * Sets the user local service.
1266             *
1267             * @param userLocalService the user local service
1268             */
1269            public void setUserLocalService(
1270                    com.liferay.portal.service.UserLocalService userLocalService) {
1271                    this.userLocalService = userLocalService;
1272            }
1273    
1274            /**
1275             * Returns the user remote service.
1276             *
1277             * @return the user remote service
1278             */
1279            public com.liferay.portal.service.UserService getUserService() {
1280                    return userService;
1281            }
1282    
1283            /**
1284             * Sets the user remote service.
1285             *
1286             * @param userService the user remote service
1287             */
1288            public void setUserService(
1289                    com.liferay.portal.service.UserService userService) {
1290                    this.userService = userService;
1291            }
1292    
1293            /**
1294             * Returns the user persistence.
1295             *
1296             * @return the user persistence
1297             */
1298            public UserPersistence getUserPersistence() {
1299                    return userPersistence;
1300            }
1301    
1302            /**
1303             * Sets the user persistence.
1304             *
1305             * @param userPersistence the user persistence
1306             */
1307            public void setUserPersistence(UserPersistence userPersistence) {
1308                    this.userPersistence = userPersistence;
1309            }
1310    
1311            /**
1312             * Returns the user finder.
1313             *
1314             * @return the user finder
1315             */
1316            public UserFinder getUserFinder() {
1317                    return userFinder;
1318            }
1319    
1320            /**
1321             * Sets the user finder.
1322             *
1323             * @param userFinder the user finder
1324             */
1325            public void setUserFinder(UserFinder userFinder) {
1326                    this.userFinder = userFinder;
1327            }
1328    
1329            /**
1330             * Returns the virtual host local service.
1331             *
1332             * @return the virtual host local service
1333             */
1334            public com.liferay.portal.service.VirtualHostLocalService getVirtualHostLocalService() {
1335                    return virtualHostLocalService;
1336            }
1337    
1338            /**
1339             * Sets the virtual host local service.
1340             *
1341             * @param virtualHostLocalService the virtual host local service
1342             */
1343            public void setVirtualHostLocalService(
1344                    com.liferay.portal.service.VirtualHostLocalService virtualHostLocalService) {
1345                    this.virtualHostLocalService = virtualHostLocalService;
1346            }
1347    
1348            /**
1349             * Returns the virtual host persistence.
1350             *
1351             * @return the virtual host persistence
1352             */
1353            public VirtualHostPersistence getVirtualHostPersistence() {
1354                    return virtualHostPersistence;
1355            }
1356    
1357            /**
1358             * Sets the virtual host persistence.
1359             *
1360             * @param virtualHostPersistence the virtual host persistence
1361             */
1362            public void setVirtualHostPersistence(
1363                    VirtualHostPersistence virtualHostPersistence) {
1364                    this.virtualHostPersistence = virtualHostPersistence;
1365            }
1366    
1367            public void afterPropertiesSet() {
1368                    persistedModelLocalServiceRegistry.register("com.liferay.portal.model.Company",
1369                            companyLocalService);
1370            }
1371    
1372            public void destroy() {
1373                    persistedModelLocalServiceRegistry.unregister(
1374                            "com.liferay.portal.model.Company");
1375            }
1376    
1377            /**
1378             * Returns the Spring bean ID for this bean.
1379             *
1380             * @return the Spring bean ID for this bean
1381             */
1382            @Override
1383            public String getBeanIdentifier() {
1384                    return _beanIdentifier;
1385            }
1386    
1387            /**
1388             * Sets the Spring bean ID for this bean.
1389             *
1390             * @param beanIdentifier the Spring bean ID for this bean
1391             */
1392            @Override
1393            public void setBeanIdentifier(String beanIdentifier) {
1394                    _beanIdentifier = beanIdentifier;
1395            }
1396    
1397            protected Class<?> getModelClass() {
1398                    return Company.class;
1399            }
1400    
1401            protected String getModelClassName() {
1402                    return Company.class.getName();
1403            }
1404    
1405            /**
1406             * Performs a SQL query.
1407             *
1408             * @param sql the sql query
1409             */
1410            protected void runSQL(String sql) {
1411                    try {
1412                            DataSource dataSource = companyPersistence.getDataSource();
1413    
1414                            DB db = DBFactoryUtil.getDB();
1415    
1416                            sql = db.buildSQL(sql);
1417                            sql = PortalUtil.transformSQL(sql);
1418    
1419                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1420                                            sql, new int[0]);
1421    
1422                            sqlUpdate.update();
1423                    }
1424                    catch (Exception e) {
1425                            throw new SystemException(e);
1426                    }
1427            }
1428    
1429            @BeanReference(type = com.liferay.portal.service.CompanyLocalService.class)
1430            protected com.liferay.portal.service.CompanyLocalService companyLocalService;
1431            @BeanReference(type = com.liferay.portal.service.CompanyService.class)
1432            protected com.liferay.portal.service.CompanyService companyService;
1433            @BeanReference(type = CompanyPersistence.class)
1434            protected CompanyPersistence companyPersistence;
1435            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1436            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1437            @BeanReference(type = com.liferay.portal.service.AccountLocalService.class)
1438            protected com.liferay.portal.service.AccountLocalService accountLocalService;
1439            @BeanReference(type = com.liferay.portal.service.AccountService.class)
1440            protected com.liferay.portal.service.AccountService accountService;
1441            @BeanReference(type = AccountPersistence.class)
1442            protected AccountPersistence accountPersistence;
1443            @BeanReference(type = com.liferay.portal.service.ContactLocalService.class)
1444            protected com.liferay.portal.service.ContactLocalService contactLocalService;
1445            @BeanReference(type = com.liferay.portal.service.ContactService.class)
1446            protected com.liferay.portal.service.ContactService contactService;
1447            @BeanReference(type = ContactPersistence.class)
1448            protected ContactPersistence contactPersistence;
1449            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1450            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1451            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1452            protected com.liferay.portal.service.GroupService groupService;
1453            @BeanReference(type = GroupPersistence.class)
1454            protected GroupPersistence groupPersistence;
1455            @BeanReference(type = GroupFinder.class)
1456            protected GroupFinder groupFinder;
1457            @BeanReference(type = com.liferay.portal.service.ImageLocalService.class)
1458            protected com.liferay.portal.service.ImageLocalService imageLocalService;
1459            @BeanReference(type = com.liferay.portal.service.ImageService.class)
1460            protected com.liferay.portal.service.ImageService imageService;
1461            @BeanReference(type = ImagePersistence.class)
1462            protected ImagePersistence imagePersistence;
1463            @BeanReference(type = com.liferay.portal.service.LayoutPrototypeLocalService.class)
1464            protected com.liferay.portal.service.LayoutPrototypeLocalService layoutPrototypeLocalService;
1465            @BeanReference(type = com.liferay.portal.service.LayoutPrototypeService.class)
1466            protected com.liferay.portal.service.LayoutPrototypeService layoutPrototypeService;
1467            @BeanReference(type = LayoutPrototypePersistence.class)
1468            protected LayoutPrototypePersistence layoutPrototypePersistence;
1469            @BeanReference(type = com.liferay.portal.service.LayoutSetLocalService.class)
1470            protected com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService;
1471            @BeanReference(type = com.liferay.portal.service.LayoutSetService.class)
1472            protected com.liferay.portal.service.LayoutSetService layoutSetService;
1473            @BeanReference(type = LayoutSetPersistence.class)
1474            protected LayoutSetPersistence layoutSetPersistence;
1475            @BeanReference(type = com.liferay.portal.service.LayoutSetPrototypeLocalService.class)
1476            protected com.liferay.portal.service.LayoutSetPrototypeLocalService layoutSetPrototypeLocalService;
1477            @BeanReference(type = com.liferay.portal.service.LayoutSetPrototypeService.class)
1478            protected com.liferay.portal.service.LayoutSetPrototypeService layoutSetPrototypeService;
1479            @BeanReference(type = LayoutSetPrototypePersistence.class)
1480            protected LayoutSetPrototypePersistence layoutSetPrototypePersistence;
1481            @BeanReference(type = com.liferay.portal.service.OrganizationLocalService.class)
1482            protected com.liferay.portal.service.OrganizationLocalService organizationLocalService;
1483            @BeanReference(type = com.liferay.portal.service.OrganizationService.class)
1484            protected com.liferay.portal.service.OrganizationService organizationService;
1485            @BeanReference(type = OrganizationPersistence.class)
1486            protected OrganizationPersistence organizationPersistence;
1487            @BeanReference(type = OrganizationFinder.class)
1488            protected OrganizationFinder organizationFinder;
1489            @BeanReference(type = com.liferay.portal.service.PasswordPolicyLocalService.class)
1490            protected com.liferay.portal.service.PasswordPolicyLocalService passwordPolicyLocalService;
1491            @BeanReference(type = com.liferay.portal.service.PasswordPolicyService.class)
1492            protected com.liferay.portal.service.PasswordPolicyService passwordPolicyService;
1493            @BeanReference(type = PasswordPolicyPersistence.class)
1494            protected PasswordPolicyPersistence passwordPolicyPersistence;
1495            @BeanReference(type = PasswordPolicyFinder.class)
1496            protected PasswordPolicyFinder passwordPolicyFinder;
1497            @BeanReference(type = com.liferay.portal.service.PortalPreferencesLocalService.class)
1498            protected com.liferay.portal.service.PortalPreferencesLocalService portalPreferencesLocalService;
1499            @BeanReference(type = PortalPreferencesPersistence.class)
1500            protected PortalPreferencesPersistence portalPreferencesPersistence;
1501            @BeanReference(type = com.liferay.portal.service.PortletLocalService.class)
1502            protected com.liferay.portal.service.PortletLocalService portletLocalService;
1503            @BeanReference(type = com.liferay.portal.service.PortletService.class)
1504            protected com.liferay.portal.service.PortletService portletService;
1505            @BeanReference(type = PortletPersistence.class)
1506            protected PortletPersistence portletPersistence;
1507            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1508            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1509            @BeanReference(type = com.liferay.portal.service.ResourcePermissionLocalService.class)
1510            protected com.liferay.portal.service.ResourcePermissionLocalService resourcePermissionLocalService;
1511            @BeanReference(type = com.liferay.portal.service.ResourcePermissionService.class)
1512            protected com.liferay.portal.service.ResourcePermissionService resourcePermissionService;
1513            @BeanReference(type = ResourcePermissionPersistence.class)
1514            protected ResourcePermissionPersistence resourcePermissionPersistence;
1515            @BeanReference(type = ResourcePermissionFinder.class)
1516            protected ResourcePermissionFinder resourcePermissionFinder;
1517            @BeanReference(type = com.liferay.portal.service.RoleLocalService.class)
1518            protected com.liferay.portal.service.RoleLocalService roleLocalService;
1519            @BeanReference(type = com.liferay.portal.service.RoleService.class)
1520            protected com.liferay.portal.service.RoleService roleService;
1521            @BeanReference(type = RolePersistence.class)
1522            protected RolePersistence rolePersistence;
1523            @BeanReference(type = RoleFinder.class)
1524            protected RoleFinder roleFinder;
1525            @BeanReference(type = com.liferay.portal.service.ShardLocalService.class)
1526            protected com.liferay.portal.service.ShardLocalService shardLocalService;
1527            @BeanReference(type = ShardPersistence.class)
1528            protected ShardPersistence shardPersistence;
1529            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1530            protected com.liferay.portal.service.UserLocalService userLocalService;
1531            @BeanReference(type = com.liferay.portal.service.UserService.class)
1532            protected com.liferay.portal.service.UserService userService;
1533            @BeanReference(type = UserPersistence.class)
1534            protected UserPersistence userPersistence;
1535            @BeanReference(type = UserFinder.class)
1536            protected UserFinder userFinder;
1537            @BeanReference(type = com.liferay.portal.service.VirtualHostLocalService.class)
1538            protected com.liferay.portal.service.VirtualHostLocalService virtualHostLocalService;
1539            @BeanReference(type = VirtualHostPersistence.class)
1540            protected VirtualHostPersistence virtualHostPersistence;
1541            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1542            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1543            private String _beanIdentifier;
1544    }