1
14
15 package com.liferay.taglib.ui;
16
17 import com.liferay.taglib.util.IncludeTag;
18
19 import javax.servlet.http.HttpServletRequest;
20
21
29 public class AssetCategoriesNavigationTag extends IncludeTag {
30
31 public int doStartTag() {
32 HttpServletRequest request =
33 (HttpServletRequest)pageContext.getRequest();
34
35 request.setAttribute(
36 "liferay-ui:asset-tags-navigation:hidePortletWhenEmpty",
37 String.valueOf(_hidePortletWhenEmpty));
38 request.setAttribute(
39 "liferay-ui:asset-tags-navigation:vocabularyIds", _vocabularyIds);
40
41 return EVAL_BODY_BUFFERED;
42 }
43
44 public void setHidePortletWhenEmpty(boolean hidePortletWhenEmpty) {
45 _hidePortletWhenEmpty = hidePortletWhenEmpty;
46 }
47
48 public void setVocabularyIds(long[] vocabularyIds) {
49 _vocabularyIds = vocabularyIds;
50 }
51
52 protected String getDefaultPage() {
53 return _PAGE;
54 }
55
56 private static final String _PAGE =
57 "/html/taglib/ui/asset_categories_navigation/page.jsp";
58
59 private boolean _hidePortletWhenEmpty;
60 private long[] _vocabularyIds;
61
62 }