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