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