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.template.Template;
018    import com.liferay.portal.kernel.util.StringPool;
019    import com.liferay.portal.model.Layout;
020    import com.liferay.portal.model.Portlet;
021    import com.liferay.taglib.aui.ColumnTag;
022    import com.liferay.taglib.aui.LayoutTag;
023    import com.liferay.taglib.ui.AssetCategoriesSummaryTag;
024    import com.liferay.taglib.ui.AssetLinksTag;
025    import com.liferay.taglib.ui.AssetTagsSummaryTag;
026    import com.liferay.taglib.ui.BreadcrumbTag;
027    import com.liferay.taglib.ui.DiscussionTag;
028    import com.liferay.taglib.ui.FlagsTag;
029    import com.liferay.taglib.ui.IconTag;
030    import com.liferay.taglib.ui.JournalArticleTag;
031    import com.liferay.taglib.ui.MySitesTag;
032    import com.liferay.taglib.ui.PngImageTag;
033    import com.liferay.taglib.ui.RatingsTag;
034    
035    import javax.portlet.PortletURL;
036    import javax.portlet.WindowState;
037    
038    import javax.servlet.ServletContext;
039    
040    /**
041     * @author Daniel Reuther
042     */
043    public class DummyVelocityTaglib implements VelocityTaglib {
044    
045            @Override
046            public void actionURL(long plid, String portletName, String queryString)
047                    throws Exception {
048            }
049    
050            @Override
051            public void actionURL(String portletName, String queryString)
052                    throws Exception {
053            }
054    
055            /**
056             * @deprecated As of 6.2.0, replaced by {@link #actionURL(String, String,
057             *             Boolean, Boolean, Boolean, String, long, long, String,
058             *             Boolean, Boolean, long, long, Boolean, String)}
059             */
060            @Override
061            public void actionURL(
062                            String windowState, String portletMode, Boolean secure,
063                            Boolean copyCurrentRenderParameters, Boolean escapeXml, String name,
064                            long plid, long refererPlid, String portletName, Boolean anchor,
065                            Boolean encrypt, long doAsUserId, Boolean portletConfiguration,
066                            String queryString)
067                    throws Exception {
068            }
069    
070            @Override
071            public void actionURL(
072                            String windowState, String portletMode, Boolean secure,
073                            Boolean copyCurrentRenderParameters, Boolean escapeXml, String name,
074                            long plid, long refererPlid, String portletName, Boolean anchor,
075                            Boolean encrypt, long doAsGroupId, long doAsUserId,
076                            Boolean portletConfiguration, String queryString)
077                    throws Exception {
078            }
079    
080            @Override
081            public void actionURL(
082                            String windowState, String portletMode, long plid,
083                            String portletName, String queryString)
084                    throws Exception {
085            }
086    
087            @Override
088            public void actionURL(
089                            String windowState, String portletMode, String portletName,
090                            String queryString)
091                    throws Exception {
092            }
093    
094            @Override
095            public void assetCategoriesSummary(
096                            String className, long classPK, String message,
097                            PortletURL portletURL)
098                    throws Exception {
099            }
100    
101            @Override
102            public void assetLinks(long assetEntryId, String className, long classPK)
103                    throws Exception {
104            }
105    
106            @Override
107            public void assetTagsSummary(
108                            String className, long classPK, String message,
109                            String assetTagNames, PortletURL portletURL)
110                    throws Exception {
111            }
112    
113            @Override
114            public void breadcrumb() throws Exception {
115            }
116    
117            @Override
118            public void breadcrumb(
119                            String displayStyle, boolean showGuestGroup,
120                            boolean showParentGroups, boolean showLayout,
121                            boolean showPortletBreadcrumb)
122                    throws Exception {
123            }
124    
125            @Override
126            public void discussion(
127                            String className, long classPK, String formAction, String formName,
128                            boolean hideControls, boolean ratingsEnabled, String redirect,
129                            long userId)
130                    throws Exception {
131            }
132    
133            /**
134             * @deprecated As of 6.2.0, replaced by {@link #discussion(String, long,
135             *             String, String, boolean, boolean, String, long)})}
136             */
137            @Override
138            public void discussion(
139                            String className, long classPK, String formAction, String formName,
140                            boolean hideControls, boolean ratingsEnabled, String redirect,
141                            String subject, long userId)
142                    throws Exception {
143            }
144    
145            @Override
146            public void doAsURL(long doAsUserId) throws Exception {
147            }
148    
149            @Override
150            public void flags(
151                            String className, long classPK, String contentTitle, boolean label,
152                            String message, long reportedUserId)
153                    throws Exception {
154            }
155    
156            @Override
157            public AssetCategoriesSummaryTag getAssetCategoriesSummaryTag()
158                    throws Exception {
159    
160                    return null;
161            }
162    
163            @Override
164            public AssetLinksTag getAssetLinksTag() throws Exception {
165                    return null;
166            }
167    
168            @Override
169            public AssetTagsSummaryTag getAssetTagsSummaryTag() throws Exception {
170                    return null;
171            }
172    
173            @Override
174            public BreadcrumbTag getBreadcrumbTag() throws Exception {
175                    return null;
176            }
177    
178            @Override
179            public ColumnTag getColumnTag() throws Exception {
180                    return null;
181            }
182    
183            @Override
184            public DiscussionTag getDiscussionTag() throws Exception {
185                    return null;
186            }
187    
188            @Override
189            public FlagsTag getFlagsTag() throws Exception {
190                    return null;
191            }
192    
193            @Override
194            public IconTag getIconTag() throws Exception {
195                    return null;
196            }
197    
198            @Override
199            public JournalArticleTag getJournalArticleTag() throws Exception {
200                    return null;
201            }
202    
203            @Override
204            public LayoutTag getLayoutTag() throws Exception {
205                    return null;
206            }
207    
208            @Override
209            public MySitesTag getMySitesTag() throws Exception {
210                    return null;
211            }
212    
213            @Override
214            public PngImageTag getPngImageTag() throws Exception {
215                    return null;
216            }
217    
218            @Override
219            public RatingsTag getRatingsTag() throws Exception {
220                    return null;
221            }
222    
223            @Override
224            public String getSetting(String name) {
225                    return null;
226            }
227    
228            @Override
229            public WindowState getWindowState(String windowState) {
230                    return null;
231            }
232    
233            @Override
234            public void icon(String image, boolean label, String message, String url)
235                    throws Exception {
236            }
237    
238            /**
239             * @deprecated As of 6.2.0, replaced by {@link #iconBack}
240             */
241            @Override
242            public void iconBack() throws Exception {
243                    portletIconBack();
244            }
245    
246            /**
247             * @deprecated As of 6.2.0, replaced by {@link #portletIconClose}
248             */
249            @Override
250            public void iconClose() throws Exception {
251                    portletIconClose();
252            }
253    
254            /**
255             * @deprecated As of 6.2.0, replaced by {@link #portletIconConfiguration}
256             */
257            @Override
258            public void iconConfiguration() throws Exception {
259                    portletIconConfiguration();
260            }
261    
262            /**
263             * @deprecated As of 6.2.0, replaced by {@link #portletIconEdit}
264             */
265            @Override
266            public void iconEdit() throws Exception {
267                    portletIconEdit();
268            }
269    
270            /**
271             * @deprecated As of 6.2.0, replaced by {@link #portletIconEditDefaults}
272             */
273            @Override
274            public void iconEditDefaults() throws Exception {
275                    portletIconEditDefaults();
276            }
277    
278            /**
279             * @deprecated As of 6.2.0, replaced by {@link #portletIconEditGuest}
280             */
281            @Override
282            public void iconEditGuest() throws Exception {
283                    portletIconEditGuest();
284            }
285    
286            /**
287             * @deprecated As of 6.2.0, replaced by {@link #portletIconHelp}
288             */
289            @Override
290            public void iconHelp() throws Exception {
291                    portletIconHelp();
292            }
293    
294            @Override
295            public void iconHelp(String message) throws Exception {
296            }
297    
298            /**
299             * @deprecated As of 6.2.0, replaced by {@link #portletIconMaximize}
300             */
301            @Override
302            public void iconMaximize() throws Exception {
303                    portletIconMaximize();
304            }
305    
306            /**
307             * @deprecated As of 6.2.0, replaced by {@link #portletIconMinimize}
308             */
309            @Override
310            public void iconMinimize() throws Exception {
311                    portletIconMinimize();
312            }
313    
314            /**
315             * @deprecated As of 6.2.0, replaced by {@link #portletIconOptions}
316             */
317            @Override
318            public void iconOptions() throws Exception {
319                    portletIconOptions();
320            }
321    
322            /**
323             * @deprecated As of 6.2.0, replaced by {@link #portletIconPortlet}
324             */
325            @Override
326            public void iconPortlet() throws Exception {
327                    portletIconPortlet();
328            }
329    
330            /**
331             * @deprecated As of 6.2.0, replaced by {@link #portletIconPortlet(Portlet)}
332             */
333            @Override
334            public void iconPortlet(Portlet portlet) throws Exception {
335                    portletIconPortlet();
336            }
337    
338            /**
339             * @deprecated As of 6.2.0, replaced by {@link #portletIconPortletCss}
340             */
341            @Override
342            public void iconPortletCss() throws Exception {
343                    portletIconPortletCss();
344            }
345    
346            /**
347             * @deprecated As of 6.2.0, replaced by {@link #portletIconPrint}
348             */
349            @Override
350            public void iconPrint() throws Exception {
351                    portletIconPrint();
352            }
353    
354            /**
355             * @deprecated As of 6.2.0, replaced by {@link #portletIconRefresh}
356             */
357            @Override
358            public void iconRefresh() throws Exception {
359                    portletIconRefresh();
360            }
361    
362            @Override
363            public void include(ServletContext servletContext, String page)
364                    throws Exception {
365            }
366    
367            @Override
368            public void include(String page) throws Exception {
369            }
370    
371            @Override
372            public void journalArticle(
373                            String articleId, long groupId, String templateId)
374                    throws Exception {
375            }
376    
377            @Override
378            public void journalContentSearch() throws Exception {
379            }
380    
381            @Override
382            public void journalContentSearch(
383                            boolean showListed, String targetPortletId, String type)
384                    throws Exception {
385            }
386    
387            @Override
388            public void language() throws Exception {
389            }
390    
391            @Override
392            public void language(
393                            String formName, String formAction, String name, int displayStyle)
394                    throws Exception {
395            }
396    
397            @Override
398            public void language(
399                            String formName, String formAction, String name,
400                            String[] languageIds, int displayStyle)
401                    throws Exception {
402            }
403    
404            @Override
405            public void layoutIcon(Layout layout) throws Exception {
406            }
407    
408            @Override
409            public void metaTags() throws Exception {
410            }
411    
412            /**
413             * @deprecated As of 6.2.0, replaced by {@link #mySites}
414             */
415            @Override
416            public void myPlaces() throws Exception {
417            }
418    
419            /**
420             * @deprecated As of 6.2.0, replaced by {@link #mySites(int)}
421             */
422            @Override
423            public void myPlaces(int max) throws Exception {
424            }
425    
426            @Override
427            public void mySites() throws Exception {
428            }
429    
430            @Override
431            public void mySites(int max) throws Exception {
432            }
433    
434            @Override
435            public void permissionsURL(
436                            String redirect, String modelResource,
437                            String modelResourceDescription, Object resourceGroupId,
438                            String resourcePrimKey, String windowState, int[] roleTypes)
439                    throws Exception {
440            }
441    
442            /**
443             * @deprecated As of 6.2.0, replaced by {@link #permissionsURL(String,
444             *             String, String, Object, String, String, int[])}
445             */
446            @Override
447            public void permissionsURL(
448                            String redirect, String modelResource,
449                            String modelResourceDescription, String resourcePrimKey,
450                            String windowState, int[] roleTypes)
451                    throws Exception {
452            }
453    
454            @Override
455            public void portletIconBack() throws Exception {
456            }
457    
458            @Override
459            public void portletIconClose() throws Exception {
460            }
461    
462            @Override
463            public void portletIconConfiguration() throws Exception {
464            }
465    
466            @Override
467            public void portletIconEdit() throws Exception {
468            }
469    
470            @Override
471            public void portletIconEditDefaults() throws Exception {
472            }
473    
474            @Override
475            public void portletIconEditGuest() throws Exception {
476            }
477    
478            @Override
479            public void portletIconHelp() throws Exception {
480            }
481    
482            @Override
483            public void portletIconMaximize() throws Exception {
484            }
485    
486            @Override
487            public void portletIconMinimize() throws Exception {
488            }
489    
490            @Override
491            public void portletIconOptions() throws Exception {
492            }
493    
494            @Override
495            public void portletIconPortlet() throws Exception {
496            }
497    
498            @Override
499            public void portletIconPortlet(Portlet portlet) throws Exception {
500            }
501    
502            @Override
503            public void portletIconPortletCss() throws Exception {
504            }
505    
506            @Override
507            public void portletIconPrint() throws Exception {
508            }
509    
510            @Override
511            public void portletIconRefresh() throws Exception {
512            }
513    
514            @Override
515            public void ratings(
516                            String className, long classPK, int numberOfStars, String type,
517                            String url)
518                    throws Exception {
519            }
520    
521            @Override
522            public void renderURL(long plid, String portletName, String queryString)
523                    throws Exception {
524            }
525    
526            @Override
527            public void renderURL(String portletName, String queryString)
528                    throws Exception {
529            }
530    
531            @Override
532            public void renderURL(
533                            String windowState, String portletMode, Boolean secure,
534                            Boolean copyCurrentRenderParameters, Boolean escapeXml, long plid,
535                            long refererPlid, String portletName, Boolean anchor,
536                            Boolean encrypt, long doAsGroupId, long doAsUserId,
537                            Boolean portletConfiguration, String queryString)
538                    throws Exception {
539            }
540    
541            /**
542             * @deprecated As of 6.2.0, replaced by {@link #renderURL(String, String,
543             *             Boolean, Boolean, Boolean, long, long, String, Boolean,
544             *             Boolean, long, long, Boolean, String)}
545             */
546            @Override
547            public void renderURL(
548                            String windowState, String portletMode, Boolean secure,
549                            Boolean copyCurrentRenderParameters, Boolean escapeXml, long plid,
550                            String portletName, Boolean anchor, Boolean encrypt,
551                            long doAsUserId, Boolean portletConfiguration, String queryString)
552                    throws Exception {
553            }
554    
555            @Override
556            public void renderURL(
557                            String windowState, String portletMode, long plid,
558                            String portletName, String queryString)
559                    throws Exception {
560            }
561    
562            @Override
563            public void renderURL(
564                            String windowState, String portletMode, String portletName,
565                            String queryString)
566                    throws Exception {
567            }
568    
569            @Override
570            public void runtime(String portletName) throws Exception {
571            }
572    
573            @Override
574            public void runtime(String portletName, String queryString)
575                    throws Exception {
576            }
577    
578            @Override
579            public void runtime(
580                            String portletName, String queryString, String defaultPreferences)
581                    throws Exception {
582            }
583    
584            @Override
585            public void search() throws Exception {
586            }
587    
588            @Override
589            public void setTemplate(Template template) {
590            }
591    
592            @Override
593            public void sitesDirectory() throws Exception {
594            }
595    
596            @Override
597            public void sitesDirectory(String displayStyle, String sites)
598                    throws Exception {
599            }
600    
601            @Override
602            public void socialBookmarks(
603                            String displayStyle, String target, String types, String title,
604                            String url)
605                    throws Exception {
606            }
607    
608            @Override
609            public void staging() throws Exception {
610            }
611    
612            @Override
613            public void toggle(
614                            String id, String showImage, String hideImage, String showMessage,
615                            String hideMessage, boolean defaultShowContent)
616                    throws Exception {
617            }
618    
619            @Override
620            public String wrapPortlet(String wrapPage, String portletPage)
621                    throws Exception {
622    
623                    return StringPool.BLANK;
624            }
625    
626    }