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