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