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