001    /**
002     * Copyright (c) 2000-2010 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            public PortletLocalServiceWrapper(PortletLocalService portletLocalService) {
028                    _portletLocalService = portletLocalService;
029            }
030    
031            /**
032            * Adds the portlet to the database. Also notifies the appropriate model listeners.
033            *
034            * @param portlet the portlet to add
035            * @return the portlet that was added
036            * @throws SystemException if a system exception occurred
037            */
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            public com.liferay.portal.model.Portlet createPortlet(long id) {
051                    return _portletLocalService.createPortlet(id);
052            }
053    
054            /**
055            * Deletes the portlet with the primary key from the database. Also notifies the appropriate model listeners.
056            *
057            * @param id the primary key of the portlet to delete
058            * @throws PortalException if a portlet with the primary key could not be found
059            * @throws SystemException if a system exception occurred
060            */
061            public void deletePortlet(long id)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    _portletLocalService.deletePortlet(id);
065            }
066    
067            /**
068            * Deletes the portlet from the database. Also notifies the appropriate model listeners.
069            *
070            * @param portlet the portlet to delete
071            * @throws SystemException if a system exception occurred
072            */
073            public void deletePortlet(com.liferay.portal.model.Portlet portlet)
074                    throws com.liferay.portal.kernel.exception.SystemException {
075                    _portletLocalService.deletePortlet(portlet);
076            }
077    
078            /**
079            * Performs a dynamic query on the database and returns the matching rows.
080            *
081            * @param dynamicQuery the dynamic query to search with
082            * @return the matching rows
083            * @throws SystemException if a system exception occurred
084            */
085            @SuppressWarnings("rawtypes")
086            public java.util.List dynamicQuery(
087                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
088                    throws com.liferay.portal.kernel.exception.SystemException {
089                    return _portletLocalService.dynamicQuery(dynamicQuery);
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns a range of the matching rows.
094            *
095            * <p>
096            * 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.
097            * </p>
098            *
099            * @param dynamicQuery the dynamic query to search with
100            * @param start the lower bound of the range of model instances to return
101            * @param end the upper bound of the range of model instances to return (not inclusive)
102            * @return the range of matching rows
103            * @throws SystemException if a system exception occurred
104            */
105            @SuppressWarnings("rawtypes")
106            public java.util.List dynamicQuery(
107                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
108                    int end) throws com.liferay.portal.kernel.exception.SystemException {
109                    return _portletLocalService.dynamicQuery(dynamicQuery, start, end);
110            }
111    
112            /**
113            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
114            *
115            * <p>
116            * 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.
117            * </p>
118            *
119            * @param dynamicQuery the dynamic query to search with
120            * @param start the lower bound of the range of model instances to return
121            * @param end the upper bound of the range of model instances to return (not inclusive)
122            * @param orderByComparator the comparator to order the results by
123            * @return the ordered range of matching rows
124            * @throws SystemException if a system exception occurred
125            */
126            @SuppressWarnings("rawtypes")
127            public java.util.List dynamicQuery(
128                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129                    int end,
130                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131                    throws com.liferay.portal.kernel.exception.SystemException {
132                    return _portletLocalService.dynamicQuery(dynamicQuery, start, end,
133                            orderByComparator);
134            }
135    
136            /**
137            * Counts the number of rows that match the dynamic query.
138            *
139            * @param dynamicQuery the dynamic query to search with
140            * @return the number of rows that match the dynamic query
141            * @throws SystemException if a system exception occurred
142            */
143            public long dynamicQueryCount(
144                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return _portletLocalService.dynamicQueryCount(dynamicQuery);
147            }
148    
149            /**
150            * Gets the portlet with the primary key.
151            *
152            * @param id the primary key of the portlet to get
153            * @return the portlet
154            * @throws PortalException if a portlet with the primary key could not be found
155            * @throws SystemException if a system exception occurred
156            */
157            public com.liferay.portal.model.Portlet getPortlet(long id)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException {
160                    return _portletLocalService.getPortlet(id);
161            }
162    
163            /**
164            * Gets a range of all the portlets.
165            *
166            * <p>
167            * 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.
168            * </p>
169            *
170            * @param start the lower bound of the range of portlets to return
171            * @param end the upper bound of the range of portlets to return (not inclusive)
172            * @return the range of portlets
173            * @throws SystemException if a system exception occurred
174            */
175            public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
176                    int start, int end)
177                    throws com.liferay.portal.kernel.exception.SystemException {
178                    return _portletLocalService.getPortlets(start, end);
179            }
180    
181            /**
182            * Gets the number of portlets.
183            *
184            * @return the number of portlets
185            * @throws SystemException if a system exception occurred
186            */
187            public int getPortletsCount()
188                    throws com.liferay.portal.kernel.exception.SystemException {
189                    return _portletLocalService.getPortletsCount();
190            }
191    
192            /**
193            * Updates the portlet in the database. Also notifies the appropriate model listeners.
194            *
195            * @param portlet the portlet to update
196            * @return the portlet that was updated
197            * @throws SystemException if a system exception occurred
198            */
199            public com.liferay.portal.model.Portlet updatePortlet(
200                    com.liferay.portal.model.Portlet portlet)
201                    throws com.liferay.portal.kernel.exception.SystemException {
202                    return _portletLocalService.updatePortlet(portlet);
203            }
204    
205            /**
206            * Updates the portlet in the database. Also notifies the appropriate model listeners.
207            *
208            * @param portlet the portlet to update
209            * @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.
210            * @return the portlet that was updated
211            * @throws SystemException if a system exception occurred
212            */
213            public com.liferay.portal.model.Portlet updatePortlet(
214                    com.liferay.portal.model.Portlet portlet, boolean merge)
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _portletLocalService.updatePortlet(portlet, merge);
217            }
218    
219            public void checkPortlet(com.liferay.portal.model.Portlet portlet)
220                    throws com.liferay.portal.kernel.exception.PortalException,
221                            com.liferay.portal.kernel.exception.SystemException {
222                    _portletLocalService.checkPortlet(portlet);
223            }
224    
225            public void checkPortlets(long companyId)
226                    throws com.liferay.portal.kernel.exception.PortalException,
227                            com.liferay.portal.kernel.exception.SystemException {
228                    _portletLocalService.checkPortlets(companyId);
229            }
230    
231            public void clearCache() {
232                    _portletLocalService.clearCache();
233            }
234    
235            public com.liferay.portal.model.Portlet clonePortlet(long companyId,
236                    java.lang.String portletId)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return _portletLocalService.clonePortlet(companyId, portletId);
239            }
240    
241            public com.liferay.portal.model.Portlet deployRemotePortlet(
242                    com.liferay.portal.model.Portlet portlet, java.lang.String categoryName)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return _portletLocalService.deployRemotePortlet(portlet, categoryName);
245            }
246    
247            public void destroyPortlet(com.liferay.portal.model.Portlet portlet) {
248                    _portletLocalService.destroyPortlet(portlet);
249            }
250    
251            public void destroyRemotePortlet(com.liferay.portal.model.Portlet portlet) {
252                    _portletLocalService.destroyRemotePortlet(portlet);
253            }
254    
255            public java.util.List<com.liferay.portlet.expando.model.CustomAttributesDisplay> getCustomAttributesDisplays() {
256                    return _portletLocalService.getCustomAttributesDisplays();
257            }
258    
259            public com.liferay.portal.model.PortletCategory getEARDisplay(
260                    java.lang.String xml)
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    return _portletLocalService.getEARDisplay(xml);
263            }
264    
265            public java.util.List<com.liferay.portal.model.Portlet> getFriendlyURLMapperPortlets() {
266                    return _portletLocalService.getFriendlyURLMapperPortlets();
267            }
268    
269            public java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers() {
270                    return _portletLocalService.getFriendlyURLMappers();
271            }
272    
273            public com.liferay.portal.model.PortletApp getPortletApp(
274                    java.lang.String servletContextName) {
275                    return _portletLocalService.getPortletApp(servletContextName);
276            }
277    
278            public com.liferay.portal.model.Portlet getPortletById(long companyId,
279                    java.lang.String portletId)
280                    throws com.liferay.portal.kernel.exception.SystemException {
281                    return _portletLocalService.getPortletById(companyId, portletId);
282            }
283    
284            public com.liferay.portal.model.Portlet getPortletById(
285                    java.lang.String portletId) {
286                    return _portletLocalService.getPortletById(portletId);
287            }
288    
289            public com.liferay.portal.model.Portlet getPortletByStrutsPath(
290                    long companyId, java.lang.String strutsPath)
291                    throws com.liferay.portal.kernel.exception.SystemException {
292                    return _portletLocalService.getPortletByStrutsPath(companyId, strutsPath);
293            }
294    
295            public java.util.List<com.liferay.portal.model.Portlet> getPortlets() {
296                    return _portletLocalService.getPortlets();
297            }
298    
299            public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
300                    long companyId)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    return _portletLocalService.getPortlets(companyId);
303            }
304    
305            public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
306                    long companyId, boolean showSystem, boolean showPortal)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return _portletLocalService.getPortlets(companyId, showSystem,
309                            showPortal);
310            }
311    
312            public com.liferay.portal.model.PortletCategory getWARDisplay(
313                    java.lang.String servletContextName, java.lang.String xml)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    return _portletLocalService.getWARDisplay(servletContextName, xml);
316            }
317    
318            public boolean hasPortlet(long companyId, java.lang.String portletId)
319                    throws com.liferay.portal.kernel.exception.SystemException {
320                    return _portletLocalService.hasPortlet(companyId, portletId);
321            }
322    
323            public void initEAR(javax.servlet.ServletContext servletContext,
324                    java.lang.String[] xmls,
325                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
326                    _portletLocalService.initEAR(servletContext, xmls, pluginPackage);
327            }
328    
329            public java.util.List<com.liferay.portal.model.Portlet> initWAR(
330                    java.lang.String servletContextName,
331                    javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
332                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
333                    return _portletLocalService.initWAR(servletContextName, servletContext,
334                            xmls, pluginPackage);
335            }
336    
337            public com.liferay.portal.model.Portlet updatePortlet(long companyId,
338                    java.lang.String portletId, java.lang.String roles, boolean active)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    return _portletLocalService.updatePortlet(companyId, portletId, roles,
341                            active);
342            }
343    
344            public PortletLocalService getWrappedPortletLocalService() {
345                    return _portletLocalService;
346            }
347    
348            private PortletLocalService _portletLocalService;
349    }