001
014
015 package com.liferay.taglib.ui;
016
017 import com.liferay.portal.kernel.util.HtmlUtil;
018 import com.liferay.portal.kernel.util.Tuple;
019 import com.liferay.portlet.messageboards.model.MBMessage;
020 import com.liferay.taglib.util.IncludeTag;
021
022 import java.util.List;
023
024 import javax.servlet.http.HttpServletRequest;
025
026
029 public class AppViewSearchEntryTag extends IncludeTag {
030
031 @Override
032 public int doStartTag() {
033 return EVAL_BODY_INCLUDE;
034 }
035
036 public void setActionJsp(String actionJsp) {
037 _actionJsp = actionJsp;
038 }
039
040 public void setContainerIcon(String containerIcon) {
041 _containerIcon = containerIcon;
042 }
043
044 public void setContainerName(String containerName) {
045 _containerName = containerName;
046 }
047
048 public void setContainerType(String containerType) {
049 _containerType = containerType;
050 }
051
052 public void setCssClass(String cssClass) {
053 _cssClass = cssClass;
054 }
055
056 public void setDescription(String description) {
057 _description = HtmlUtil.unescape(description);
058 }
059
060 public void setFileEntryTuples(List<Tuple> fileEntryTuples) {
061 _fileEntryTuples = fileEntryTuples;
062 }
063
064 public void setLocked(boolean locked) {
065 _locked = locked;
066 }
067
068 public void setMbMessages(List<MBMessage> mbMessages) {
069 _mbMessages = mbMessages;
070 }
071
072 public void setQueryTerms(String[] queryTerms) {
073 _queryTerms = queryTerms;
074 }
075
076 public void setRowCheckerId(String rowCheckerId) {
077 _rowCheckerId = rowCheckerId;
078 }
079
080 public void setRowCheckerName(String rowCheckerName) {
081 _rowCheckerName = rowCheckerName;
082 }
083
084 public void setShowCheckbox(boolean showCheckbox) {
085 _showCheckbox = showCheckbox;
086 }
087
088 public void setStatus(int status) {
089 _status = status;
090 }
091
092 public void setThumbnailSrc(String thumbnailSrc) {
093 _thumbnailSrc = thumbnailSrc;
094 }
095
096 public void setTitle(String title) {
097 _title = HtmlUtil.unescape(title);
098 }
099
100 public void setUrl(String url) {
101 _url = url;
102 }
103
104 @Override
105 protected void cleanUp() {
106 _actionJsp = null;
107 _containerIcon = null;
108 _containerName = null;
109 _containerType = null;
110 _cssClass = null;
111 _description = null;
112 _fileEntryTuples = null;
113 _locked = false;
114 _mbMessages = null;
115 _queryTerms = null;
116 _rowCheckerId = null;
117 _rowCheckerName = null;
118 _showCheckbox = false;
119 _status = 0;
120 _thumbnailSrc = null;
121 _title = null;
122 _url = null;
123 }
124
125 @Override
126 protected String getPage() {
127 return _PAGE;
128 }
129
130 @Override
131 protected boolean isCleanUpSetAttributes() {
132 return _CLEAN_UP_SET_ATTRIBUTES;
133 }
134
135 @Override
136 protected void setAttributes(HttpServletRequest request) {
137 request.setAttribute(
138 "liferay-ui:app-view-search-entry:actionJsp", _actionJsp);
139 request.setAttribute(
140 "liferay-ui:app-view-search-entry:containerIcon", _containerIcon);
141 request.setAttribute(
142 "liferay-ui:app-view-search-entry:containerName", _containerName);
143 request.setAttribute(
144 "liferay-ui:app-view-search-entry:containerType", _containerType);
145 request.setAttribute(
146 "liferay-ui:app-view-search-entry:cssClass", _cssClass);
147 request.setAttribute(
148 "liferay-ui:app-view-search-entry:description", _description);
149 request.setAttribute(
150 "liferay-ui:app-view-search-entry:fileEntryTuples",
151 _fileEntryTuples);
152 request.setAttribute(
153 "liferay-ui:app-view-search-entry:locked", _locked);
154 request.setAttribute(
155 "liferay-ui:app-view-search-entry:mbMessages", _mbMessages);
156 request.setAttribute(
157 "liferay-ui:app-view-search-entry:queryTerms", _queryTerms);
158 request.setAttribute(
159 "liferay-ui:app-view-search-entry:rowCheckerId", _rowCheckerId);
160 request.setAttribute(
161 "liferay-ui:app-view-search-entry:rowCheckerName", _rowCheckerName);
162 request.setAttribute(
163 "liferay-ui:app-view-search-entry:showCheckbox", _showCheckbox);
164 request.setAttribute(
165 "liferay-ui:app-view-search-entry:status", _status);
166 request.setAttribute(
167 "liferay-ui:app-view-search-entry:thumbnailSrc", _thumbnailSrc);
168 request.setAttribute("liferay-ui:app-view-search-entry:title", _title);
169 request.setAttribute("liferay-ui:app-view-search-entry:url", _url);
170 }
171
172 private static final boolean _CLEAN_UP_SET_ATTRIBUTES = true;
173
174 private static final String _PAGE =
175 "/html/taglib/ui/app_view_search_entry/page.jsp";
176
177 private String _actionJsp;
178 private String _containerIcon;
179 private String _containerName;
180 private String _containerType;
181 private String _cssClass;
182 private String _description;
183 private List<Tuple> _fileEntryTuples;
184 private boolean _locked;
185 private List<MBMessage> _mbMessages;
186 private String[] _queryTerms;
187 private String _rowCheckerId;
188 private String _rowCheckerName;
189 private boolean _showCheckbox = false;
190 private int _status = 0;
191 private String _thumbnailSrc;
192 private String _title;
193 private String _url;
194
195 }