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 setContainerSrc(String containerSrc) {
049 _containerSrc = containerSrc;
050 }
051
052 public void setContainerType(String containerType) {
053 _containerType = containerType;
054 }
055
056 public void setCssClass(String cssClass) {
057 _cssClass = cssClass;
058 }
059
060 public void setDescription(String description) {
061 _description = HtmlUtil.unescape(description);
062 }
063
064 public void setFileEntryTuples(List<Tuple> fileEntryTuples) {
065 _fileEntryTuples = fileEntryTuples;
066 }
067
068 public void setLocked(boolean locked) {
069 _locked = locked;
070 }
071
072 public void setMbMessages(List<MBMessage> mbMessages) {
073 _mbMessages = mbMessages;
074 }
075
076 public void setQueryTerms(String[] queryTerms) {
077 _queryTerms = queryTerms;
078 }
079
080 public void setRowCheckerId(String rowCheckerId) {
081 _rowCheckerId = rowCheckerId;
082 }
083
084 public void setRowCheckerName(String rowCheckerName) {
085 _rowCheckerName = rowCheckerName;
086 }
087
088 public void setShowCheckbox(boolean showCheckbox) {
089 _showCheckbox = showCheckbox;
090 }
091
092 public void setStatus(int status) {
093 _status = status;
094 }
095
096 public void setThumbnailSrc(String thumbnailSrc) {
097 _thumbnailSrc = thumbnailSrc;
098 }
099
100 public void setTitle(String title) {
101 _title = HtmlUtil.unescape(title);
102 }
103
104 public void setUrl(String url) {
105 _url = url;
106 }
107
108 public void setVersions(List<String> versions) {
109 _versions = versions;
110 }
111
112 @Override
113 protected void cleanUp() {
114 _actionJsp = null;
115 _containerIcon = null;
116 _containerName = null;
117 _containerSrc = null;
118 _containerType = null;
119 _cssClass = null;
120 _description = null;
121 _fileEntryTuples = null;
122 _locked = false;
123 _mbMessages = null;
124 _queryTerms = null;
125 _rowCheckerId = null;
126 _rowCheckerName = null;
127 _showCheckbox = false;
128 _status = 0;
129 _thumbnailSrc = null;
130 _title = null;
131 _url = null;
132 _versions = null;
133 }
134
135 @Override
136 protected String getPage() {
137 return _PAGE;
138 }
139
140 @Override
141 protected boolean isCleanUpSetAttributes() {
142 return _CLEAN_UP_SET_ATTRIBUTES;
143 }
144
145 @Override
146 protected void setAttributes(HttpServletRequest request) {
147 request.setAttribute(
148 "liferay-ui:app-view-search-entry:actionJsp", _actionJsp);
149 request.setAttribute(
150 "liferay-ui:app-view-search-entry:containerIcon", _containerIcon);
151 request.setAttribute(
152 "liferay-ui:app-view-search-entry:containerName", _containerName);
153 request.setAttribute(
154 "liferay-ui:app-view-search-entry:containerSrc", _containerSrc);
155 request.setAttribute(
156 "liferay-ui:app-view-search-entry:containerType", _containerType);
157 request.setAttribute(
158 "liferay-ui:app-view-search-entry:cssClass", _cssClass);
159 request.setAttribute(
160 "liferay-ui:app-view-search-entry:description", _description);
161 request.setAttribute(
162 "liferay-ui:app-view-search-entry:fileEntryTuples",
163 _fileEntryTuples);
164 request.setAttribute(
165 "liferay-ui:app-view-search-entry:locked", _locked);
166 request.setAttribute(
167 "liferay-ui:app-view-search-entry:mbMessages", _mbMessages);
168 request.setAttribute(
169 "liferay-ui:app-view-search-entry:queryTerms", _queryTerms);
170 request.setAttribute(
171 "liferay-ui:app-view-search-entry:rowCheckerId", _rowCheckerId);
172 request.setAttribute(
173 "liferay-ui:app-view-search-entry:rowCheckerName", _rowCheckerName);
174 request.setAttribute(
175 "liferay-ui:app-view-search-entry:showCheckbox", _showCheckbox);
176 request.setAttribute(
177 "liferay-ui:app-view-search-entry:status", _status);
178 request.setAttribute(
179 "liferay-ui:app-view-search-entry:thumbnailSrc", _thumbnailSrc);
180 request.setAttribute("liferay-ui:app-view-search-entry:title", _title);
181 request.setAttribute("liferay-ui:app-view-search-entry:url", _url);
182 request.setAttribute(
183 "liferay-ui:app-view-search-entry:versions", _versions);
184 }
185
186 private static final boolean _CLEAN_UP_SET_ATTRIBUTES = true;
187
188 private static final String _PAGE =
189 "/html/taglib/ui/app_view_search_entry/page.jsp";
190
191 private String _actionJsp;
192 private String _containerIcon;
193 private String _containerName;
194 private String _containerSrc;
195 private String _containerType;
196 private String _cssClass;
197 private String _description;
198 private List<Tuple> _fileEntryTuples;
199 private boolean _locked;
200 private List<MBMessage> _mbMessages;
201 private String[] _queryTerms;
202 private String _rowCheckerId;
203 private String _rowCheckerName;
204 private boolean _showCheckbox = false;
205 private int _status = 0;
206 private String _thumbnailSrc;
207 private String _title;
208 private String _url;
209 private List<String> _versions;
210
211 }