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