001
014
015 package com.liferay.portlet.journal.search;
016
017 import com.liferay.portal.kernel.dao.search.DisplayTerms;
018 import com.liferay.portal.kernel.util.ParamUtil;
019 import com.liferay.portal.theme.ThemeDisplay;
020 import com.liferay.portal.util.WebKeys;
021
022 import javax.portlet.PortletRequest;
023
024
027 public class StructureDisplayTerms extends DisplayTerms {
028
029 public static final String DESCRIPTION = "description";
030
031 public static final String GROUP_ID = "groupId";
032
033 public static final String NAME = "name";
034
035 public static final String STRUCTURE_ID = "searchStructureId";
036
037 public StructureDisplayTerms(PortletRequest portletRequest) {
038 super(portletRequest);
039
040 ThemeDisplay themeDisplay = (ThemeDisplay)portletRequest.getAttribute(
041 WebKeys.THEME_DISPLAY);
042
043 description = ParamUtil.getString(portletRequest, DESCRIPTION);
044 groupId = ParamUtil.getLong(
045 portletRequest, GROUP_ID, themeDisplay.getScopeGroupId());
046 name = ParamUtil.getString(portletRequest, NAME);
047 structureId = ParamUtil.getString(portletRequest, STRUCTURE_ID);
048 }
049
050 public String getDescription() {
051 return description;
052 }
053
054 public long getGroupId() {
055 return groupId;
056 }
057
058 public String getName() {
059 return name;
060 }
061
062 public String getStructureId() {
063 return structureId;
064 }
065
066 protected String description;
067 protected long groupId;
068 protected String name;
069 protected String structureId;
070
071 }