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