1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.taglib.ui;
16  
17  import com.liferay.taglib.util.IncludeTag;
18  
19  import javax.portlet.PortletURL;
20  
21  import javax.servlet.http.HttpServletRequest;
22  
23  /**
24   * <a href="AssetTagsSummaryTag.java.html"><b><i>View Source</i></b></a>
25   *
26   * @author Brian Wing Shun Chan
27   */
28  public class AssetTagsSummaryTag extends IncludeTag {
29  
30      public String getAssetTagNames() {
31          return _assetTagNames;
32      }
33  
34      public PortletURL getPortletURL() {
35          return _portletURL;
36      }
37  
38      public void setClassName(String className) {
39          _className = className;
40      }
41  
42      public void setClassPK(long classPK) {
43          _classPK = classPK;
44      }
45  
46      public void setMessage(String message) {
47          _message = message;
48      }
49  
50      public void setAssetTagNames(String assetTagNames) {
51          _assetTagNames = assetTagNames;
52      }
53  
54      public void setPortletURL(PortletURL portletURL) {
55          _portletURL = portletURL;
56      }
57  
58      protected void cleanUp() {
59          _assetTagNames = null;
60          _className = null;
61          _classPK = 0;
62          _message = null;
63          _portletURL = null;
64      }
65  
66      protected String getPage() {
67          return _PAGE;
68      }
69  
70      protected void setAttributes(HttpServletRequest request) {
71          request.setAttribute(
72              "liferay-ui:asset-tags-summary:assetTagNames", _assetTagNames);
73          request.setAttribute(
74              "liferay-ui:asset-tags-summary:className", _className);
75          request.setAttribute(
76              "liferay-ui:asset-tags-summary:classPK", String.valueOf(_classPK));
77          request.setAttribute("liferay-ui:asset-tags-summary:message", _message);
78          request.setAttribute(
79              "liferay-ui:asset-tags-summary:portletURL", _portletURL);
80      }
81  
82      private static final String _PAGE =
83          "/html/taglib/ui/asset_tags_summary/page.jsp";
84  
85      private String _assetTagNames;
86      private String _className;
87      private long _classPK;
88      private String _message;
89      private PortletURL _portletURL;
90  
91  }