001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.base;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.dao.db.DB;
021    import com.liferay.portal.kernel.dao.db.DBManagerUtil;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
024    import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
025    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
026    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
027    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
028    import com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery;
029    import com.liferay.portal.kernel.dao.orm.Projection;
030    import com.liferay.portal.kernel.exception.PortalException;
031    import com.liferay.portal.kernel.exception.SystemException;
032    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
033    import com.liferay.portal.kernel.search.Indexable;
034    import com.liferay.portal.kernel.search.IndexableType;
035    import com.liferay.portal.kernel.util.OrderByComparator;
036    import com.liferay.portal.model.Contact;
037    import com.liferay.portal.model.PersistedModel;
038    import com.liferay.portal.service.BaseLocalServiceImpl;
039    import com.liferay.portal.service.ContactLocalService;
040    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
041    import com.liferay.portal.service.persistence.AddressPersistence;
042    import com.liferay.portal.service.persistence.ContactPersistence;
043    import com.liferay.portal.service.persistence.EmailAddressPersistence;
044    import com.liferay.portal.service.persistence.OrganizationFinder;
045    import com.liferay.portal.service.persistence.OrganizationPersistence;
046    import com.liferay.portal.service.persistence.PhonePersistence;
047    import com.liferay.portal.service.persistence.UserFinder;
048    import com.liferay.portal.service.persistence.UserPersistence;
049    import com.liferay.portal.service.persistence.WebsitePersistence;
050    import com.liferay.portal.util.PortalUtil;
051    
052    import java.io.Serializable;
053    
054    import java.util.List;
055    
056    import javax.sql.DataSource;
057    
058    /**
059     * Provides the base implementation for the contact local service.
060     *
061     * <p>
062     * 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.ContactLocalServiceImpl}.
063     * </p>
064     *
065     * @author Brian Wing Shun Chan
066     * @see com.liferay.portal.service.impl.ContactLocalServiceImpl
067     * @see com.liferay.portal.service.ContactLocalServiceUtil
068     * @generated
069     */
070    @ProviderType
071    public abstract class ContactLocalServiceBaseImpl extends BaseLocalServiceImpl
072            implements ContactLocalService, IdentifiableOSGiService {
073            /*
074             * NOTE FOR DEVELOPERS:
075             *
076             * Never modify or reference this class directly. Always use {@link com.liferay.portal.service.ContactLocalServiceUtil} to access the contact local service.
077             */
078    
079            /**
080             * Adds the contact to the database. Also notifies the appropriate model listeners.
081             *
082             * @param contact the contact
083             * @return the contact that was added
084             */
085            @Indexable(type = IndexableType.REINDEX)
086            @Override
087            public Contact addContact(Contact contact) {
088                    contact.setNew(true);
089    
090                    return contactPersistence.update(contact);
091            }
092    
093            /**
094             * Creates a new contact with the primary key. Does not add the contact to the database.
095             *
096             * @param contactId the primary key for the new contact
097             * @return the new contact
098             */
099            @Override
100            public Contact createContact(long contactId) {
101                    return contactPersistence.create(contactId);
102            }
103    
104            /**
105             * Deletes the contact with the primary key from the database. Also notifies the appropriate model listeners.
106             *
107             * @param contactId the primary key of the contact
108             * @return the contact that was removed
109             * @throws PortalException if a contact with the primary key could not be found
110             */
111            @Indexable(type = IndexableType.DELETE)
112            @Override
113            public Contact deleteContact(long contactId) throws PortalException {
114                    return contactPersistence.remove(contactId);
115            }
116    
117            /**
118             * Deletes the contact from the database. Also notifies the appropriate model listeners.
119             *
120             * @param contact the contact
121             * @return the contact that was removed
122             */
123            @Indexable(type = IndexableType.DELETE)
124            @Override
125            public Contact deleteContact(Contact contact) {
126                    return contactPersistence.remove(contact);
127            }
128    
129            @Override
130            public DynamicQuery dynamicQuery() {
131                    Class<?> clazz = getClass();
132    
133                    return DynamicQueryFactoryUtil.forClass(Contact.class,
134                            clazz.getClassLoader());
135            }
136    
137            /**
138             * Performs a dynamic query on the database and returns the matching rows.
139             *
140             * @param dynamicQuery the dynamic query
141             * @return the matching rows
142             */
143            @Override
144            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
145                    return contactPersistence.findWithDynamicQuery(dynamicQuery);
146            }
147    
148            /**
149             * Performs a dynamic query on the database and returns a range of the matching rows.
150             *
151             * <p>
152             * 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.ContactModelImpl}. 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.
153             * </p>
154             *
155             * @param dynamicQuery the dynamic query
156             * @param start the lower bound of the range of model instances
157             * @param end the upper bound of the range of model instances (not inclusive)
158             * @return the range of matching rows
159             */
160            @Override
161            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
162                    int end) {
163                    return contactPersistence.findWithDynamicQuery(dynamicQuery, start, end);
164            }
165    
166            /**
167             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
168             *
169             * <p>
170             * 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.ContactModelImpl}. 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.
171             * </p>
172             *
173             * @param dynamicQuery the dynamic query
174             * @param start the lower bound of the range of model instances
175             * @param end the upper bound of the range of model instances (not inclusive)
176             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
177             * @return the ordered range of matching rows
178             */
179            @Override
180            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
181                    int end, OrderByComparator<T> orderByComparator) {
182                    return contactPersistence.findWithDynamicQuery(dynamicQuery, start,
183                            end, orderByComparator);
184            }
185    
186            /**
187             * Returns the number of rows matching the dynamic query.
188             *
189             * @param dynamicQuery the dynamic query
190             * @return the number of rows matching the dynamic query
191             */
192            @Override
193            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
194                    return contactPersistence.countWithDynamicQuery(dynamicQuery);
195            }
196    
197            /**
198             * Returns the number of rows matching the dynamic query.
199             *
200             * @param dynamicQuery the dynamic query
201             * @param projection the projection to apply to the query
202             * @return the number of rows matching the dynamic query
203             */
204            @Override
205            public long dynamicQueryCount(DynamicQuery dynamicQuery,
206                    Projection projection) {
207                    return contactPersistence.countWithDynamicQuery(dynamicQuery, projection);
208            }
209    
210            @Override
211            public Contact fetchContact(long contactId) {
212                    return contactPersistence.fetchByPrimaryKey(contactId);
213            }
214    
215            /**
216             * Returns the contact with the primary key.
217             *
218             * @param contactId the primary key of the contact
219             * @return the contact
220             * @throws PortalException if a contact with the primary key could not be found
221             */
222            @Override
223            public Contact getContact(long contactId) throws PortalException {
224                    return contactPersistence.findByPrimaryKey(contactId);
225            }
226    
227            @Override
228            public ActionableDynamicQuery getActionableDynamicQuery() {
229                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
230    
231                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.ContactLocalServiceUtil.getService());
232                    actionableDynamicQuery.setClassLoader(getClassLoader());
233                    actionableDynamicQuery.setModelClass(Contact.class);
234    
235                    actionableDynamicQuery.setPrimaryKeyPropertyName("contactId");
236    
237                    return actionableDynamicQuery;
238            }
239    
240            @Override
241            public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
242                    IndexableActionableDynamicQuery indexableActionableDynamicQuery = new IndexableActionableDynamicQuery();
243    
244                    indexableActionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.ContactLocalServiceUtil.getService());
245                    indexableActionableDynamicQuery.setClassLoader(getClassLoader());
246                    indexableActionableDynamicQuery.setModelClass(Contact.class);
247    
248                    indexableActionableDynamicQuery.setPrimaryKeyPropertyName("contactId");
249    
250                    return indexableActionableDynamicQuery;
251            }
252    
253            protected void initActionableDynamicQuery(
254                    ActionableDynamicQuery actionableDynamicQuery) {
255                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.ContactLocalServiceUtil.getService());
256                    actionableDynamicQuery.setClassLoader(getClassLoader());
257                    actionableDynamicQuery.setModelClass(Contact.class);
258    
259                    actionableDynamicQuery.setPrimaryKeyPropertyName("contactId");
260            }
261    
262            /**
263             * @throws PortalException
264             */
265            @Override
266            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
267                    throws PortalException {
268                    return contactLocalService.deleteContact((Contact)persistedModel);
269            }
270    
271            @Override
272            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
273                    throws PortalException {
274                    return contactPersistence.findByPrimaryKey(primaryKeyObj);
275            }
276    
277            /**
278             * Returns a range of all the contacts.
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.ContactModelImpl}. 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 contacts
285             * @param end the upper bound of the range of contacts (not inclusive)
286             * @return the range of contacts
287             */
288            @Override
289            public List<Contact> getContacts(int start, int end) {
290                    return contactPersistence.findAll(start, end);
291            }
292    
293            /**
294             * Returns the number of contacts.
295             *
296             * @return the number of contacts
297             */
298            @Override
299            public int getContactsCount() {
300                    return contactPersistence.countAll();
301            }
302    
303            /**
304             * Updates the contact in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
305             *
306             * @param contact the contact
307             * @return the contact that was updated
308             */
309            @Indexable(type = IndexableType.REINDEX)
310            @Override
311            public Contact updateContact(Contact contact) {
312                    return contactPersistence.update(contact);
313            }
314    
315            /**
316             * Returns the contact local service.
317             *
318             * @return the contact local service
319             */
320            public ContactLocalService getContactLocalService() {
321                    return contactLocalService;
322            }
323    
324            /**
325             * Sets the contact local service.
326             *
327             * @param contactLocalService the contact local service
328             */
329            public void setContactLocalService(ContactLocalService contactLocalService) {
330                    this.contactLocalService = contactLocalService;
331            }
332    
333            /**
334             * Returns the contact persistence.
335             *
336             * @return the contact persistence
337             */
338            public ContactPersistence getContactPersistence() {
339                    return contactPersistence;
340            }
341    
342            /**
343             * Sets the contact persistence.
344             *
345             * @param contactPersistence the contact persistence
346             */
347            public void setContactPersistence(ContactPersistence contactPersistence) {
348                    this.contactPersistence = contactPersistence;
349            }
350    
351            /**
352             * Returns the counter local service.
353             *
354             * @return the counter local service
355             */
356            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
357                    return counterLocalService;
358            }
359    
360            /**
361             * Sets the counter local service.
362             *
363             * @param counterLocalService the counter local service
364             */
365            public void setCounterLocalService(
366                    com.liferay.counter.service.CounterLocalService counterLocalService) {
367                    this.counterLocalService = counterLocalService;
368            }
369    
370            /**
371             * Returns the address local service.
372             *
373             * @return the address local service
374             */
375            public com.liferay.portal.service.AddressLocalService getAddressLocalService() {
376                    return addressLocalService;
377            }
378    
379            /**
380             * Sets the address local service.
381             *
382             * @param addressLocalService the address local service
383             */
384            public void setAddressLocalService(
385                    com.liferay.portal.service.AddressLocalService addressLocalService) {
386                    this.addressLocalService = addressLocalService;
387            }
388    
389            /**
390             * Returns the address persistence.
391             *
392             * @return the address persistence
393             */
394            public AddressPersistence getAddressPersistence() {
395                    return addressPersistence;
396            }
397    
398            /**
399             * Sets the address persistence.
400             *
401             * @param addressPersistence the address persistence
402             */
403            public void setAddressPersistence(AddressPersistence addressPersistence) {
404                    this.addressPersistence = addressPersistence;
405            }
406    
407            /**
408             * Returns the email address local service.
409             *
410             * @return the email address local service
411             */
412            public com.liferay.portal.service.EmailAddressLocalService getEmailAddressLocalService() {
413                    return emailAddressLocalService;
414            }
415    
416            /**
417             * Sets the email address local service.
418             *
419             * @param emailAddressLocalService the email address local service
420             */
421            public void setEmailAddressLocalService(
422                    com.liferay.portal.service.EmailAddressLocalService emailAddressLocalService) {
423                    this.emailAddressLocalService = emailAddressLocalService;
424            }
425    
426            /**
427             * Returns the email address persistence.
428             *
429             * @return the email address persistence
430             */
431            public EmailAddressPersistence getEmailAddressPersistence() {
432                    return emailAddressPersistence;
433            }
434    
435            /**
436             * Sets the email address persistence.
437             *
438             * @param emailAddressPersistence the email address persistence
439             */
440            public void setEmailAddressPersistence(
441                    EmailAddressPersistence emailAddressPersistence) {
442                    this.emailAddressPersistence = emailAddressPersistence;
443            }
444    
445            /**
446             * Returns the organization local service.
447             *
448             * @return the organization local service
449             */
450            public com.liferay.portal.service.OrganizationLocalService getOrganizationLocalService() {
451                    return organizationLocalService;
452            }
453    
454            /**
455             * Sets the organization local service.
456             *
457             * @param organizationLocalService the organization local service
458             */
459            public void setOrganizationLocalService(
460                    com.liferay.portal.service.OrganizationLocalService organizationLocalService) {
461                    this.organizationLocalService = organizationLocalService;
462            }
463    
464            /**
465             * Returns the organization persistence.
466             *
467             * @return the organization persistence
468             */
469            public OrganizationPersistence getOrganizationPersistence() {
470                    return organizationPersistence;
471            }
472    
473            /**
474             * Sets the organization persistence.
475             *
476             * @param organizationPersistence the organization persistence
477             */
478            public void setOrganizationPersistence(
479                    OrganizationPersistence organizationPersistence) {
480                    this.organizationPersistence = organizationPersistence;
481            }
482    
483            /**
484             * Returns the organization finder.
485             *
486             * @return the organization finder
487             */
488            public OrganizationFinder getOrganizationFinder() {
489                    return organizationFinder;
490            }
491    
492            /**
493             * Sets the organization finder.
494             *
495             * @param organizationFinder the organization finder
496             */
497            public void setOrganizationFinder(OrganizationFinder organizationFinder) {
498                    this.organizationFinder = organizationFinder;
499            }
500    
501            /**
502             * Returns the phone local service.
503             *
504             * @return the phone local service
505             */
506            public com.liferay.portal.service.PhoneLocalService getPhoneLocalService() {
507                    return phoneLocalService;
508            }
509    
510            /**
511             * Sets the phone local service.
512             *
513             * @param phoneLocalService the phone local service
514             */
515            public void setPhoneLocalService(
516                    com.liferay.portal.service.PhoneLocalService phoneLocalService) {
517                    this.phoneLocalService = phoneLocalService;
518            }
519    
520            /**
521             * Returns the phone persistence.
522             *
523             * @return the phone persistence
524             */
525            public PhonePersistence getPhonePersistence() {
526                    return phonePersistence;
527            }
528    
529            /**
530             * Sets the phone persistence.
531             *
532             * @param phonePersistence the phone persistence
533             */
534            public void setPhonePersistence(PhonePersistence phonePersistence) {
535                    this.phonePersistence = phonePersistence;
536            }
537    
538            /**
539             * Returns the user local service.
540             *
541             * @return the user local service
542             */
543            public com.liferay.portal.service.UserLocalService getUserLocalService() {
544                    return userLocalService;
545            }
546    
547            /**
548             * Sets the user local service.
549             *
550             * @param userLocalService the user local service
551             */
552            public void setUserLocalService(
553                    com.liferay.portal.service.UserLocalService userLocalService) {
554                    this.userLocalService = userLocalService;
555            }
556    
557            /**
558             * Returns the user persistence.
559             *
560             * @return the user persistence
561             */
562            public UserPersistence getUserPersistence() {
563                    return userPersistence;
564            }
565    
566            /**
567             * Sets the user persistence.
568             *
569             * @param userPersistence the user persistence
570             */
571            public void setUserPersistence(UserPersistence userPersistence) {
572                    this.userPersistence = userPersistence;
573            }
574    
575            /**
576             * Returns the user finder.
577             *
578             * @return the user finder
579             */
580            public UserFinder getUserFinder() {
581                    return userFinder;
582            }
583    
584            /**
585             * Sets the user finder.
586             *
587             * @param userFinder the user finder
588             */
589            public void setUserFinder(UserFinder userFinder) {
590                    this.userFinder = userFinder;
591            }
592    
593            /**
594             * Returns the website local service.
595             *
596             * @return the website local service
597             */
598            public com.liferay.portal.service.WebsiteLocalService getWebsiteLocalService() {
599                    return websiteLocalService;
600            }
601    
602            /**
603             * Sets the website local service.
604             *
605             * @param websiteLocalService the website local service
606             */
607            public void setWebsiteLocalService(
608                    com.liferay.portal.service.WebsiteLocalService websiteLocalService) {
609                    this.websiteLocalService = websiteLocalService;
610            }
611    
612            /**
613             * Returns the website persistence.
614             *
615             * @return the website persistence
616             */
617            public WebsitePersistence getWebsitePersistence() {
618                    return websitePersistence;
619            }
620    
621            /**
622             * Sets the website persistence.
623             *
624             * @param websitePersistence the website persistence
625             */
626            public void setWebsitePersistence(WebsitePersistence websitePersistence) {
627                    this.websitePersistence = websitePersistence;
628            }
629    
630            public void afterPropertiesSet() {
631                    persistedModelLocalServiceRegistry.register("com.liferay.portal.model.Contact",
632                            contactLocalService);
633            }
634    
635            public void destroy() {
636                    persistedModelLocalServiceRegistry.unregister(
637                            "com.liferay.portal.model.Contact");
638            }
639    
640            /**
641             * Returns the OSGi service identifier.
642             *
643             * @return the OSGi service identifier
644             */
645            @Override
646            public String getOSGiServiceIdentifier() {
647                    return ContactLocalService.class.getName();
648            }
649    
650            protected Class<?> getModelClass() {
651                    return Contact.class;
652            }
653    
654            protected String getModelClassName() {
655                    return Contact.class.getName();
656            }
657    
658            /**
659             * Performs a SQL query.
660             *
661             * @param sql the sql query
662             */
663            protected void runSQL(String sql) {
664                    try {
665                            DataSource dataSource = contactPersistence.getDataSource();
666    
667                            DB db = DBManagerUtil.getDB();
668    
669                            sql = db.buildSQL(sql);
670                            sql = PortalUtil.transformSQL(sql);
671    
672                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
673                                            sql, new int[0]);
674    
675                            sqlUpdate.update();
676                    }
677                    catch (Exception e) {
678                            throw new SystemException(e);
679                    }
680            }
681    
682            @BeanReference(type = com.liferay.portal.service.ContactLocalService.class)
683            protected ContactLocalService contactLocalService;
684            @BeanReference(type = ContactPersistence.class)
685            protected ContactPersistence contactPersistence;
686            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
687            protected com.liferay.counter.service.CounterLocalService counterLocalService;
688            @BeanReference(type = com.liferay.portal.service.AddressLocalService.class)
689            protected com.liferay.portal.service.AddressLocalService addressLocalService;
690            @BeanReference(type = AddressPersistence.class)
691            protected AddressPersistence addressPersistence;
692            @BeanReference(type = com.liferay.portal.service.EmailAddressLocalService.class)
693            protected com.liferay.portal.service.EmailAddressLocalService emailAddressLocalService;
694            @BeanReference(type = EmailAddressPersistence.class)
695            protected EmailAddressPersistence emailAddressPersistence;
696            @BeanReference(type = com.liferay.portal.service.OrganizationLocalService.class)
697            protected com.liferay.portal.service.OrganizationLocalService organizationLocalService;
698            @BeanReference(type = OrganizationPersistence.class)
699            protected OrganizationPersistence organizationPersistence;
700            @BeanReference(type = OrganizationFinder.class)
701            protected OrganizationFinder organizationFinder;
702            @BeanReference(type = com.liferay.portal.service.PhoneLocalService.class)
703            protected com.liferay.portal.service.PhoneLocalService phoneLocalService;
704            @BeanReference(type = PhonePersistence.class)
705            protected PhonePersistence phonePersistence;
706            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
707            protected com.liferay.portal.service.UserLocalService userLocalService;
708            @BeanReference(type = UserPersistence.class)
709            protected UserPersistence userPersistence;
710            @BeanReference(type = UserFinder.class)
711            protected UserFinder userFinder;
712            @BeanReference(type = com.liferay.portal.service.WebsiteLocalService.class)
713            protected com.liferay.portal.service.WebsiteLocalService websiteLocalService;
714            @BeanReference(type = WebsitePersistence.class)
715            protected WebsitePersistence websitePersistence;
716            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
717            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
718    }