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