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.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link PortletLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see PortletLocalService
024     * @generated
025     */
026    @ProviderType
027    public class PortletLocalServiceWrapper implements PortletLocalService,
028            ServiceWrapper<PortletLocalService> {
029            public PortletLocalServiceWrapper(PortletLocalService portletLocalService) {
030                    _portletLocalService = portletLocalService;
031            }
032    
033            @Override
034            public boolean hasPortlet(long companyId, java.lang.String portletId) {
035                    return _portletLocalService.hasPortlet(companyId, portletId);
036            }
037    
038            @Override
039            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
040                    return _portletLocalService.getActionableDynamicQuery();
041            }
042    
043            @Override
044            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
045                    return _portletLocalService.dynamicQuery();
046            }
047    
048            @Override
049            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
050                    return _portletLocalService.getIndexableActionableDynamicQuery();
051            }
052    
053            /**
054            * @throws PortalException
055            */
056            @Override
057            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
058                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
059                    throws com.liferay.portal.kernel.exception.PortalException {
060                    return _portletLocalService.deletePersistedModel(persistedModel);
061            }
062    
063            @Override
064            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
065                    java.io.Serializable primaryKeyObj)
066                    throws com.liferay.portal.kernel.exception.PortalException {
067                    return _portletLocalService.getPersistedModel(primaryKeyObj);
068            }
069    
070            /**
071            * Adds the portlet to the database. Also notifies the appropriate model listeners.
072            *
073            * @param portlet the portlet
074            * @return the portlet that was added
075            */
076            @Override
077            public com.liferay.portal.kernel.model.Portlet addPortlet(
078                    com.liferay.portal.kernel.model.Portlet portlet) {
079                    return _portletLocalService.addPortlet(portlet);
080            }
081    
082            @Override
083            public com.liferay.portal.kernel.model.Portlet clonePortlet(
084                    java.lang.String portletId) {
085                    return _portletLocalService.clonePortlet(portletId);
086            }
087    
088            /**
089            * Creates a new portlet with the primary key. Does not add the portlet to the database.
090            *
091            * @param id the primary key for the new portlet
092            * @return the new portlet
093            */
094            @Override
095            public com.liferay.portal.kernel.model.Portlet createPortlet(long id) {
096                    return _portletLocalService.createPortlet(id);
097            }
098    
099            /**
100            * Deletes the portlet from the database. Also notifies the appropriate model listeners.
101            *
102            * @param portlet the portlet
103            * @return the portlet that was removed
104            */
105            @Override
106            public com.liferay.portal.kernel.model.Portlet deletePortlet(
107                    com.liferay.portal.kernel.model.Portlet portlet) {
108                    return _portletLocalService.deletePortlet(portlet);
109            }
110    
111            /**
112            * Deletes the portlet with the primary key from the database. Also notifies the appropriate model listeners.
113            *
114            * @param id the primary key of the portlet
115            * @return the portlet that was removed
116            * @throws PortalException if a portlet with the primary key could not be found
117            */
118            @Override
119            public com.liferay.portal.kernel.model.Portlet deletePortlet(long id)
120                    throws com.liferay.portal.kernel.exception.PortalException {
121                    return _portletLocalService.deletePortlet(id);
122            }
123    
124            @Override
125            public com.liferay.portal.kernel.model.Portlet deployRemotePortlet(
126                    com.liferay.portal.kernel.model.Portlet portlet,
127                    java.lang.String categoryName)
128                    throws com.liferay.portal.kernel.exception.PortalException {
129                    return _portletLocalService.deployRemotePortlet(portlet, categoryName);
130            }
131    
132            @Override
133            public com.liferay.portal.kernel.model.Portlet deployRemotePortlet(
134                    com.liferay.portal.kernel.model.Portlet portlet,
135                    java.lang.String[] categoryNames)
136                    throws com.liferay.portal.kernel.exception.PortalException {
137                    return _portletLocalService.deployRemotePortlet(portlet, categoryNames);
138            }
139    
140            @Override
141            public com.liferay.portal.kernel.model.Portlet deployRemotePortlet(
142                    com.liferay.portal.kernel.model.Portlet portlet,
143                    java.lang.String[] categoryNames, boolean eagerDestroy)
144                    throws com.liferay.portal.kernel.exception.PortalException {
145                    return _portletLocalService.deployRemotePortlet(portlet, categoryNames,
146                            eagerDestroy);
147            }
148    
149            @Override
150            public com.liferay.portal.kernel.model.Portlet fetchPortlet(long id) {
151                    return _portletLocalService.fetchPortlet(id);
152            }
153    
154            /**
155            * Returns the portlet with the primary key.
156            *
157            * @param id the primary key of the portlet
158            * @return the portlet
159            * @throws PortalException if a portlet with the primary key could not be found
160            */
161            @Override
162            public com.liferay.portal.kernel.model.Portlet getPortlet(long id)
163                    throws com.liferay.portal.kernel.exception.PortalException {
164                    return _portletLocalService.getPortlet(id);
165            }
166    
167            @Override
168            public com.liferay.portal.kernel.model.Portlet getPortletById(
169                    java.lang.String portletId) {
170                    return _portletLocalService.getPortletById(portletId);
171            }
172    
173            @Override
174            public com.liferay.portal.kernel.model.Portlet getPortletById(
175                    long companyId, java.lang.String portletId) {
176                    return _portletLocalService.getPortletById(companyId, portletId);
177            }
178    
179            @Override
180            public com.liferay.portal.kernel.model.Portlet getPortletByStrutsPath(
181                    long companyId, java.lang.String strutsPath) {
182                    return _portletLocalService.getPortletByStrutsPath(companyId, strutsPath);
183            }
184    
185            /**
186            * Updates the portlet in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
187            *
188            * @param portlet the portlet
189            * @return the portlet that was updated
190            */
191            @Override
192            public com.liferay.portal.kernel.model.Portlet updatePortlet(
193                    com.liferay.portal.kernel.model.Portlet portlet) {
194                    return _portletLocalService.updatePortlet(portlet);
195            }
196    
197            @Override
198            public com.liferay.portal.kernel.model.Portlet updatePortlet(
199                    long companyId, java.lang.String portletId, java.lang.String roles,
200                    boolean active) {
201                    return _portletLocalService.updatePortlet(companyId, portletId, roles,
202                            active);
203            }
204    
205            @Override
206            public com.liferay.portal.kernel.model.PortletApp getPortletApp(
207                    java.lang.String servletContextName) {
208                    return _portletLocalService.getPortletApp(servletContextName);
209            }
210    
211            @Override
212            public com.liferay.portal.kernel.model.PortletCategory getEARDisplay(
213                    java.lang.String xml) {
214                    return _portletLocalService.getEARDisplay(xml);
215            }
216    
217            @Override
218            public com.liferay.portal.kernel.model.PortletCategory getWARDisplay(
219                    java.lang.String servletContextName, java.lang.String xml) {
220                    return _portletLocalService.getWARDisplay(servletContextName, xml);
221            }
222    
223            /**
224            * Returns the number of portlets.
225            *
226            * @return the number of portlets
227            */
228            @Override
229            public int getPortletsCount() {
230                    return _portletLocalService.getPortletsCount();
231            }
232    
233            /**
234            * Returns the OSGi service identifier.
235            *
236            * @return the OSGi service identifier
237            */
238            @Override
239            public java.lang.String getOSGiServiceIdentifier() {
240                    return _portletLocalService.getOSGiServiceIdentifier();
241            }
242    
243            /**
244            * Performs a dynamic query on the database and returns the matching rows.
245            *
246            * @param dynamicQuery the dynamic query
247            * @return the matching rows
248            */
249            @Override
250            public <T> java.util.List<T> dynamicQuery(
251                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
252                    return _portletLocalService.dynamicQuery(dynamicQuery);
253            }
254    
255            /**
256            * Performs a dynamic query on the database and returns a range of the matching rows.
257            *
258            * <p>
259            * 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.PortletModelImpl}. 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.
260            * </p>
261            *
262            * @param dynamicQuery the dynamic query
263            * @param start the lower bound of the range of model instances
264            * @param end the upper bound of the range of model instances (not inclusive)
265            * @return the range of matching rows
266            */
267            @Override
268            public <T> java.util.List<T> dynamicQuery(
269                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
270                    int end) {
271                    return _portletLocalService.dynamicQuery(dynamicQuery, start, end);
272            }
273    
274            /**
275            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
276            *
277            * <p>
278            * 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.PortletModelImpl}. 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.
279            * </p>
280            *
281            * @param dynamicQuery the dynamic query
282            * @param start the lower bound of the range of model instances
283            * @param end the upper bound of the range of model instances (not inclusive)
284            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
285            * @return the ordered range of matching rows
286            */
287            @Override
288            public <T> java.util.List<T> dynamicQuery(
289                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
290                    int end,
291                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
292                    return _portletLocalService.dynamicQuery(dynamicQuery, start, end,
293                            orderByComparator);
294            }
295    
296            @Override
297            public java.util.List<com.liferay.expando.kernel.model.CustomAttributesDisplay> getCustomAttributesDisplays() {
298                    return _portletLocalService.getCustomAttributesDisplays();
299            }
300    
301            @Override
302            public java.util.List<com.liferay.portal.kernel.model.Portlet> getFriendlyURLMapperPortlets() {
303                    return _portletLocalService.getFriendlyURLMapperPortlets();
304            }
305    
306            @Override
307            public java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers() {
308                    return _portletLocalService.getFriendlyURLMappers();
309            }
310    
311            @Override
312            public java.util.List<com.liferay.portal.kernel.model.Portlet> getPortlets() {
313                    return _portletLocalService.getPortlets();
314            }
315    
316            /**
317            * Returns a range of all the portlets.
318            *
319            * <p>
320            * 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.PortletModelImpl}. 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.
321            * </p>
322            *
323            * @param start the lower bound of the range of portlets
324            * @param end the upper bound of the range of portlets (not inclusive)
325            * @return the range of portlets
326            */
327            @Override
328            public java.util.List<com.liferay.portal.kernel.model.Portlet> getPortlets(
329                    int start, int end) {
330                    return _portletLocalService.getPortlets(start, end);
331            }
332    
333            @Override
334            public java.util.List<com.liferay.portal.kernel.model.Portlet> getPortlets(
335                    long companyId) {
336                    return _portletLocalService.getPortlets(companyId);
337            }
338    
339            @Override
340            public java.util.List<com.liferay.portal.kernel.model.Portlet> getPortlets(
341                    long companyId, boolean showSystem, boolean showPortal) {
342                    return _portletLocalService.getPortlets(companyId, showSystem,
343                            showPortal);
344            }
345    
346            @Override
347            public java.util.List<com.liferay.portal.kernel.model.Portlet> getScopablePortlets() {
348                    return _portletLocalService.getScopablePortlets();
349            }
350    
351            @Override
352            public java.util.List<com.liferay.portal.kernel.model.Portlet> initWAR(
353                    java.lang.String servletContextName,
354                    javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
355                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
356                    return _portletLocalService.initWAR(servletContextName, servletContext,
357                            xmls, pluginPackage);
358            }
359    
360            @Override
361            public java.util.Map<java.lang.String, com.liferay.portal.kernel.model.Portlet> loadGetPortletsMap(
362                    long companyId) {
363                    return _portletLocalService.loadGetPortletsMap(companyId);
364            }
365    
366            /**
367            * @deprecated As of 7.0.0, replaced by {@link #loadGetPortletsMap(long))}
368            */
369            @Deprecated
370            @Override
371            public java.util.Map<java.lang.String, com.liferay.portal.kernel.model.Portlet> loadGetPortletsPool(
372                    long companyId) {
373                    return _portletLocalService.loadGetPortletsPool(companyId);
374            }
375    
376            /**
377            * Returns the number of rows matching the dynamic query.
378            *
379            * @param dynamicQuery the dynamic query
380            * @return the number of rows matching the dynamic query
381            */
382            @Override
383            public long dynamicQueryCount(
384                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
385                    return _portletLocalService.dynamicQueryCount(dynamicQuery);
386            }
387    
388            /**
389            * Returns the number of rows matching the dynamic query.
390            *
391            * @param dynamicQuery the dynamic query
392            * @param projection the projection to apply to the query
393            * @return the number of rows matching the dynamic query
394            */
395            @Override
396            public long dynamicQueryCount(
397                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
398                    com.liferay.portal.kernel.dao.orm.Projection projection) {
399                    return _portletLocalService.dynamicQueryCount(dynamicQuery, projection);
400            }
401    
402            @Override
403            public void addPortletCategory(long companyId, java.lang.String categoryName) {
404                    _portletLocalService.addPortletCategory(companyId, categoryName);
405            }
406    
407            @Override
408            public void checkPortlet(com.liferay.portal.kernel.model.Portlet portlet)
409                    throws com.liferay.portal.kernel.exception.PortalException {
410                    _portletLocalService.checkPortlet(portlet);
411            }
412    
413            @Override
414            public void checkPortlets(long companyId)
415                    throws com.liferay.portal.kernel.exception.PortalException {
416                    _portletLocalService.checkPortlets(companyId);
417            }
418    
419            @Override
420            public void clearCache() {
421                    _portletLocalService.clearCache();
422            }
423    
424            /**
425            * @deprecated As of 7.0.0, replaced by {@link #clearPortletsMap)}
426            */
427            @Deprecated
428            @Override
429            public void clearCompanyPortletsPool() {
430                    _portletLocalService.clearCompanyPortletsPool();
431            }
432    
433            @Override
434            public void clearPortletsMap() {
435                    _portletLocalService.clearPortletsMap();
436            }
437    
438            @Override
439            public void deletePortlet(long companyId, java.lang.String portletId,
440                    long plid) throws com.liferay.portal.kernel.exception.PortalException {
441                    _portletLocalService.deletePortlet(companyId, portletId, plid);
442            }
443    
444            @Override
445            public void deletePortlets(long companyId, java.lang.String[] portletIds,
446                    long plid) throws com.liferay.portal.kernel.exception.PortalException {
447                    _portletLocalService.deletePortlets(companyId, portletIds, plid);
448            }
449    
450            @Override
451            public void destroyPortlet(com.liferay.portal.kernel.model.Portlet portlet) {
452                    _portletLocalService.destroyPortlet(portlet);
453            }
454    
455            @Override
456            public void destroyRemotePortlet(
457                    com.liferay.portal.kernel.model.Portlet portlet) {
458                    _portletLocalService.destroyRemotePortlet(portlet);
459            }
460    
461            @Override
462            public void initEAR(javax.servlet.ServletContext servletContext,
463                    java.lang.String[] xmls,
464                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
465                    _portletLocalService.initEAR(servletContext, xmls, pluginPackage);
466            }
467    
468            @Override
469            public void removeCompanyPortletsPool(long companyId) {
470                    _portletLocalService.removeCompanyPortletsPool(companyId);
471            }
472    
473            @Override
474            public PortletLocalService getWrappedService() {
475                    return _portletLocalService;
476            }
477    
478            @Override
479            public void setWrappedService(PortletLocalService portletLocalService) {
480                    _portletLocalService = portletLocalService;
481            }
482    
483            private PortletLocalService _portletLocalService;
484    }