001
014
015 package com.liferay.taglib.ui;
016
017 import com.liferay.portal.kernel.dao.search.RowChecker;
018 import com.liferay.taglib.util.IncludeTag;
019
020 import java.util.LinkedHashMap;
021
022 import javax.portlet.PortletURL;
023
024 import javax.servlet.http.HttpServletRequest;
025
026
029 public class UserSearchTag extends IncludeTag {
030
031 public void setPortletURL(PortletURL portletURL) {
032 _portletURL = portletURL;
033 }
034
035 public void setRowChecker(RowChecker rowChecker) {
036 _rowChecker = rowChecker;
037 }
038
039 public void setUserParams(LinkedHashMap<String, Object> userParams) {
040 _userParams = userParams;
041 }
042
043 protected void cleanUp() {
044 _portletURL = null;
045 _rowChecker = null;
046 _userParams = null;
047 }
048
049 protected String getEndPage() {
050 return _END_PAGE;
051 }
052
053 protected String getStartPage() {
054 return _START_PAGE;
055 }
056
057 protected void setAttributes(HttpServletRequest request) {
058 request.setAttribute(
059 "liferay-ui:user-search:portletURL", _portletURL);
060 request.setAttribute(
061 "liferay-ui:user-search:rowChecker", _rowChecker);
062 request.setAttribute(
063 "liferay-ui:user-search:userParams", _userParams);
064 }
065
066 private static final String _END_PAGE =
067 "/html/taglib/ui/user_search/end.jsp";
068
069 private static final String _START_PAGE =
070 "/html/taglib/ui/user_search/start.jsp";
071
072 private PortletURL _portletURL;
073 private RowChecker _rowChecker;
074 private LinkedHashMap<String, Object> _userParams;
075
076 }