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;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link ContactLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see ContactLocalService
024     * @generated
025     */
026    @ProviderType
027    public class ContactLocalServiceWrapper implements ContactLocalService,
028            ServiceWrapper<ContactLocalService> {
029            public ContactLocalServiceWrapper(ContactLocalService contactLocalService) {
030                    _contactLocalService = contactLocalService;
031            }
032    
033            /**
034            * Adds the contact to the database. Also notifies the appropriate model listeners.
035            *
036            * @param contact the contact
037            * @return the contact that was added
038            */
039            @Override
040            public com.liferay.portal.model.Contact addContact(
041                    com.liferay.portal.model.Contact contact) {
042                    return _contactLocalService.addContact(contact);
043            }
044    
045            @Override
046            public com.liferay.portal.model.Contact addContact(long userId,
047                    java.lang.String className, long classPK,
048                    java.lang.String emailAddress, java.lang.String firstName,
049                    java.lang.String middleName, java.lang.String lastName, long prefixId,
050                    long suffixId, boolean male, int birthdayMonth, int birthdayDay,
051                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
052                    java.lang.String facebookSn, java.lang.String icqSn,
053                    java.lang.String jabberSn, java.lang.String mySpaceSn,
054                    java.lang.String skypeSn, java.lang.String twitterSn,
055                    java.lang.String ymSn, java.lang.String jobTitle)
056                    throws com.liferay.portal.kernel.exception.PortalException {
057                    return _contactLocalService.addContact(userId, className, classPK,
058                            emailAddress, firstName, middleName, lastName, prefixId, suffixId,
059                            male, birthdayMonth, birthdayDay, birthdayYear, smsSn, aimSn,
060                            facebookSn, icqSn, jabberSn, mySpaceSn, skypeSn, twitterSn, ymSn,
061                            jobTitle);
062            }
063    
064            /**
065            * Creates a new contact with the primary key. Does not add the contact to the database.
066            *
067            * @param contactId the primary key for the new contact
068            * @return the new contact
069            */
070            @Override
071            public com.liferay.portal.model.Contact createContact(long contactId) {
072                    return _contactLocalService.createContact(contactId);
073            }
074    
075            /**
076            * Deletes the contact from the database. Also notifies the appropriate model listeners.
077            *
078            * @param contact the contact
079            * @return the contact that was removed
080            */
081            @Override
082            public com.liferay.portal.model.Contact deleteContact(
083                    com.liferay.portal.model.Contact contact) {
084                    return _contactLocalService.deleteContact(contact);
085            }
086    
087            /**
088            * Deletes the contact with the primary key from the database. Also notifies the appropriate model listeners.
089            *
090            * @param contactId the primary key of the contact
091            * @return the contact that was removed
092            * @throws PortalException if a contact with the primary key could not be found
093            */
094            @Override
095            public com.liferay.portal.model.Contact deleteContact(long contactId)
096                    throws com.liferay.portal.kernel.exception.PortalException {
097                    return _contactLocalService.deleteContact(contactId);
098            }
099    
100            /**
101            * @throws PortalException
102            */
103            @Override
104            public com.liferay.portal.model.PersistedModel deletePersistedModel(
105                    com.liferay.portal.model.PersistedModel persistedModel)
106                    throws com.liferay.portal.kernel.exception.PortalException {
107                    return _contactLocalService.deletePersistedModel(persistedModel);
108            }
109    
110            @Override
111            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
112                    return _contactLocalService.dynamicQuery();
113            }
114    
115            /**
116            * Performs a dynamic query on the database and returns the matching rows.
117            *
118            * @param dynamicQuery the dynamic query
119            * @return the matching rows
120            */
121            @Override
122            public <T> java.util.List<T> dynamicQuery(
123                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
124                    return _contactLocalService.dynamicQuery(dynamicQuery);
125            }
126    
127            /**
128            * Performs a dynamic query on the database and returns a range of the matching rows.
129            *
130            * <p>
131            * 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.
132            * </p>
133            *
134            * @param dynamicQuery the dynamic query
135            * @param start the lower bound of the range of model instances
136            * @param end the upper bound of the range of model instances (not inclusive)
137            * @return the range of matching rows
138            */
139            @Override
140            public <T> java.util.List<T> dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142                    int end) {
143                    return _contactLocalService.dynamicQuery(dynamicQuery, start, end);
144            }
145    
146            /**
147            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
148            *
149            * <p>
150            * 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.
151            * </p>
152            *
153            * @param dynamicQuery the dynamic query
154            * @param start the lower bound of the range of model instances
155            * @param end the upper bound of the range of model instances (not inclusive)
156            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
157            * @return the ordered range of matching rows
158            */
159            @Override
160            public <T> java.util.List<T> dynamicQuery(
161                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
162                    int end,
163                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
164                    return _contactLocalService.dynamicQuery(dynamicQuery, start, end,
165                            orderByComparator);
166            }
167    
168            /**
169            * Returns the number of rows matching the dynamic query.
170            *
171            * @param dynamicQuery the dynamic query
172            * @return the number of rows matching the dynamic query
173            */
174            @Override
175            public long dynamicQueryCount(
176                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
177                    return _contactLocalService.dynamicQueryCount(dynamicQuery);
178            }
179    
180            /**
181            * Returns the number of rows matching the dynamic query.
182            *
183            * @param dynamicQuery the dynamic query
184            * @param projection the projection to apply to the query
185            * @return the number of rows matching the dynamic query
186            */
187            @Override
188            public long dynamicQueryCount(
189                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
190                    com.liferay.portal.kernel.dao.orm.Projection projection) {
191                    return _contactLocalService.dynamicQueryCount(dynamicQuery, projection);
192            }
193    
194            @Override
195            public com.liferay.portal.model.Contact fetchContact(long contactId) {
196                    return _contactLocalService.fetchContact(contactId);
197            }
198    
199            @Override
200            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
201                    return _contactLocalService.getActionableDynamicQuery();
202            }
203    
204            /**
205            * Returns the Spring bean ID for this bean.
206            *
207            * @return the Spring bean ID for this bean
208            */
209            @Override
210            public java.lang.String getBeanIdentifier() {
211                    return _contactLocalService.getBeanIdentifier();
212            }
213    
214            /**
215            * Returns the contact with the primary key.
216            *
217            * @param contactId the primary key of the contact
218            * @return the contact
219            * @throws PortalException if a contact with the primary key could not be found
220            */
221            @Override
222            public com.liferay.portal.model.Contact getContact(long contactId)
223                    throws com.liferay.portal.kernel.exception.PortalException {
224                    return _contactLocalService.getContact(contactId);
225            }
226    
227            @Override
228            public java.util.List<com.liferay.portal.model.Contact> getContacts(
229                    long classNameId, long classPK, int start, int end,
230                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Contact> orderByComparator) {
231                    return _contactLocalService.getContacts(classNameId, classPK, start,
232                            end, orderByComparator);
233            }
234    
235            /**
236            * Returns a range of all the contacts.
237            *
238            * <p>
239            * 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.
240            * </p>
241            *
242            * @param start the lower bound of the range of contacts
243            * @param end the upper bound of the range of contacts (not inclusive)
244            * @return the range of contacts
245            */
246            @Override
247            public java.util.List<com.liferay.portal.model.Contact> getContacts(
248                    int start, int end) {
249                    return _contactLocalService.getContacts(start, end);
250            }
251    
252            /**
253            * Returns the number of contacts.
254            *
255            * @return the number of contacts
256            */
257            @Override
258            public int getContactsCount() {
259                    return _contactLocalService.getContactsCount();
260            }
261    
262            @Override
263            public int getContactsCount(long classNameId, long classPK) {
264                    return _contactLocalService.getContactsCount(classNameId, classPK);
265            }
266    
267            @Override
268            public com.liferay.portal.model.PersistedModel getPersistedModel(
269                    java.io.Serializable primaryKeyObj)
270                    throws com.liferay.portal.kernel.exception.PortalException {
271                    return _contactLocalService.getPersistedModel(primaryKeyObj);
272            }
273    
274            /**
275            * Sets the Spring bean ID for this bean.
276            *
277            * @param beanIdentifier the Spring bean ID for this bean
278            */
279            @Override
280            public void setBeanIdentifier(java.lang.String beanIdentifier) {
281                    _contactLocalService.setBeanIdentifier(beanIdentifier);
282            }
283    
284            /**
285            * Updates the contact in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
286            *
287            * @param contact the contact
288            * @return the contact that was updated
289            */
290            @Override
291            public com.liferay.portal.model.Contact updateContact(
292                    com.liferay.portal.model.Contact contact) {
293                    return _contactLocalService.updateContact(contact);
294            }
295    
296            @Override
297            public com.liferay.portal.model.Contact updateContact(long contactId,
298                    java.lang.String emailAddress, java.lang.String firstName,
299                    java.lang.String middleName, java.lang.String lastName, long prefixId,
300                    long suffixId, boolean male, int birthdayMonth, int birthdayDay,
301                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
302                    java.lang.String facebookSn, java.lang.String icqSn,
303                    java.lang.String jabberSn, java.lang.String mySpaceSn,
304                    java.lang.String skypeSn, java.lang.String twitterSn,
305                    java.lang.String ymSn, java.lang.String jobTitle)
306                    throws com.liferay.portal.kernel.exception.PortalException {
307                    return _contactLocalService.updateContact(contactId, emailAddress,
308                            firstName, middleName, lastName, prefixId, suffixId, male,
309                            birthdayMonth, birthdayDay, birthdayYear, smsSn, aimSn, facebookSn,
310                            icqSn, jabberSn, mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle);
311            }
312    
313            /**
314             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
315             */
316            @Deprecated
317            public ContactLocalService getWrappedContactLocalService() {
318                    return _contactLocalService;
319            }
320    
321            /**
322             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
323             */
324            @Deprecated
325            public void setWrappedContactLocalService(
326                    ContactLocalService contactLocalService) {
327                    _contactLocalService = contactLocalService;
328            }
329    
330            @Override
331            public ContactLocalService getWrappedService() {
332                    return _contactLocalService;
333            }
334    
335            @Override
336            public void setWrappedService(ContactLocalService contactLocalService) {
337                    _contactLocalService = contactLocalService;
338            }
339    
340            private ContactLocalService _contactLocalService;
341    }