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.taglib.util;
016    
017    import com.liferay.portal.kernel.util.StringPool;
018    import com.liferay.portal.model.Layout;
019    import com.liferay.portal.model.Portlet;
020    import com.liferay.taglib.ui.BreadcrumbTag;
021    import com.liferay.taglib.ui.MySitesTag;
022    import com.liferay.taglib.ui.PngImageTag;
023    
024    import javax.servlet.ServletContext;
025    
026    /**
027     * @author Daniel Reuther
028     */
029    public class DummyVelocityTaglib implements VelocityTaglib {
030    
031            @Override
032            public void actionURL(long plid, String portletName, String queryString)
033                    throws Exception {
034            }
035    
036            @Override
037            public void actionURL(String portletName, String queryString)
038                    throws Exception {
039            }
040    
041            /**
042             * @deprecated {@link #actionURL(String, String, Boolean, Boolean, Boolean,
043             *             String, long, long, String, Boolean, Boolean, long, long,
044             *             Boolean, String)}
045             */
046            @Override
047            public void actionURL(
048                            String windowState, String portletMode, Boolean secure,
049                            Boolean copyCurrentRenderParameters, Boolean escapeXml, String name,
050                            long plid, long refererPlid, String portletName, Boolean anchor,
051                            Boolean encrypt, long doAsUserId, Boolean portletConfiguration,
052                            String queryString)
053                    throws Exception {
054            }
055    
056            @Override
057            public void actionURL(
058                            String windowState, String portletMode, Boolean secure,
059                            Boolean copyCurrentRenderParameters, Boolean escapeXml, String name,
060                            long plid, long refererPlid, String portletName, Boolean anchor,
061                            Boolean encrypt, long doAsGroupId, long doAsUserId,
062                            Boolean portletConfiguration, String queryString)
063                    throws Exception {
064            }
065    
066            @Override
067            public void actionURL(
068                            String windowState, String portletMode, long plid,
069                            String portletName, String queryString)
070                    throws Exception {
071            }
072    
073            @Override
074            public void actionURL(
075                            String windowState, String portletMode, String portletName,
076                            String queryString)
077                    throws Exception {
078            }
079    
080            @Override
081            public void breadcrumb() throws Exception {
082            }
083    
084            @Override
085            public void breadcrumb(
086                            String displayStyle, boolean showGuestGroup,
087                            boolean showParentGroups, boolean showLayout,
088                            boolean showPortletBreadcrumb)
089                    throws Exception {
090            }
091    
092            @Override
093            public void doAsURL(long doAsUserId) throws Exception {
094            }
095    
096            @Override
097            public BreadcrumbTag getBreadcrumbTag() throws Exception {
098                    return null;
099            }
100    
101            @Override
102            public MySitesTag getMySitesTag() throws Exception {
103                    return null;
104            }
105    
106            @Override
107            public PngImageTag getPngImageTag() throws Exception {
108                    return null;
109            }
110    
111            @Override
112            public String getSetting(String name) {
113                    return null;
114            }
115    
116            @Override
117            public void iconBack() throws Exception {
118            }
119    
120            @Override
121            public void iconClose() throws Exception {
122            }
123    
124            @Override
125            public void iconConfiguration() throws Exception {
126            }
127    
128            @Override
129            public void iconEdit() throws Exception {
130            }
131    
132            @Override
133            public void iconEditDefaults() throws Exception {
134            }
135    
136            @Override
137            public void iconEditGuest() throws Exception {
138            }
139    
140            @Override
141            public void iconHelp() throws Exception {
142            }
143    
144            @Override
145            public void iconMaximize() throws Exception {
146            }
147    
148            @Override
149            public void iconMinimize() throws Exception {
150            }
151    
152            @Override
153            public void iconOptions() throws Exception {
154            }
155    
156            @Override
157            public void iconPortlet() throws Exception {
158            }
159    
160            @Override
161            public void iconPortlet(Portlet portlet) throws Exception {
162            }
163    
164            @Override
165            public void iconPortletCss() throws Exception {
166            }
167    
168            @Override
169            public void iconPrint() throws Exception {
170            }
171    
172            @Override
173            public void iconRefresh() throws Exception {
174            }
175    
176            @Override
177            public void include(ServletContext servletContext, String page)
178                    throws Exception {
179            }
180    
181            @Override
182            public void include(String page) throws Exception {
183            }
184    
185            @Override
186            public void journalContentSearch() throws Exception {
187            }
188    
189            @Override
190            public void journalContentSearch(
191                            boolean showListed, String targetPortletId, String type)
192                    throws Exception {
193            }
194    
195            @Override
196            public void language() throws Exception {
197            }
198    
199            @Override
200            public void language(
201                            String formName, String formAction, String name, int displayStyle)
202                    throws Exception {
203            }
204    
205            @Override
206            public void language(
207                            String formName, String formAction, String name,
208                            String[] languageIds, int displayStyle)
209                    throws Exception {
210            }
211    
212            @Override
213            public void layoutIcon(Layout layout) throws Exception {
214            }
215    
216            @Override
217            public void metaTags() throws Exception {
218            }
219    
220            /**
221             * @deprecated {@link #mySites}
222             */
223            @Override
224            public void myPlaces() throws Exception {
225            }
226    
227            /**
228             * @deprecated {@link #mySites(int)}
229             */
230            @Override
231            public void myPlaces(int max) throws Exception {
232            }
233    
234            @Override
235            public void mySites() throws Exception {
236            }
237    
238            @Override
239            public void mySites(int max) throws Exception {
240            }
241    
242            @Override
243            public void permissionsURL(
244                            String redirect, String modelResource,
245                            String modelResourceDescription, Object resourceGroupId,
246                            String resourcePrimKey, String windowState, int[] roleTypes)
247                    throws Exception {
248            }
249    
250            /**
251             * @deprecated {@link #permissionsURL(String, String, String, long, String,
252             *             String, int[])}
253             */
254            @Override
255            public void permissionsURL(
256                            String redirect, String modelResource,
257                            String modelResourceDescription, String resourcePrimKey,
258                            String windowState, int[] roleTypes)
259                    throws Exception {
260            }
261    
262            @Override
263            public void renderURL(long plid, String portletName, String queryString)
264                    throws Exception {
265            }
266    
267            @Override
268            public void renderURL(String portletName, String queryString)
269                    throws Exception {
270            }
271    
272            @Override
273            public void renderURL(
274                            String windowState, String portletMode, Boolean secure,
275                            Boolean copyCurrentRenderParameters, Boolean escapeXml, long plid,
276                            long refererPlid, String portletName, Boolean anchor,
277                            Boolean encrypt, long doAsGroupId, long doAsUserId,
278                            Boolean portletConfiguration, String queryString)
279                    throws Exception {
280            }
281    
282            /**
283             * @deprecated {@link #renderURL(String, String, Boolean, Boolean, Boolean,
284             *             long, long, String, Boolean, Boolean, long, long, Boolean,
285             *             String)}
286             */
287            @Override
288            public void renderURL(
289                            String windowState, String portletMode, Boolean secure,
290                            Boolean copyCurrentRenderParameters, Boolean escapeXml, long plid,
291                            String portletName, Boolean anchor, Boolean encrypt,
292                            long doAsUserId, Boolean portletConfiguration, String queryString)
293                    throws Exception {
294            }
295    
296            @Override
297            public void renderURL(
298                            String windowState, String portletMode, long plid,
299                            String portletName, String queryString)
300                    throws Exception {
301            }
302    
303            @Override
304            public void renderURL(
305                            String windowState, String portletMode, String portletName,
306                            String queryString)
307                    throws Exception {
308            }
309    
310            @Override
311            public void runtime(String portletName) throws Exception {
312            }
313    
314            @Override
315            public void runtime(String portletName, String queryString)
316                    throws Exception {
317            }
318    
319            @Override
320            public void runtime(
321                            String portletName, String queryString, String defaultPreferences)
322                    throws Exception {
323            }
324    
325            @Override
326            public void search() throws Exception {
327            }
328    
329            @Override
330            public void staging() throws Exception {
331            }
332    
333            @Override
334            public void toggle(
335                            String id, String showImage, String hideImage, String showMessage,
336                            String hideMessage, boolean defaultShowContent)
337                    throws Exception {
338            }
339    
340            @Override
341            public String wrapPortlet(String wrapPage, String portletPage)
342                    throws Exception {
343    
344                    return StringPool.BLANK;
345            }
346    
347    }