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