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
020 import javax.portlet.PortletRequest;
021
022
026 public class FileEntryDisplayTerms extends DisplayTerms {
027
028 public static final String DOCUMENT = "document";
029
030 public static final String DOWNLOADS = "downloads";
031
032 public static final String LIVE_GROUP_ID = "liveGroupId";
033
034 public static final String LOCKED = "locked";
035
036 public static final String SELECTED_GROUP_ID = "selectedGroupId";
037
038 public static final String SIZE = "size";
039
040 public FileEntryDisplayTerms(PortletRequest portletRequest) {
041 super(portletRequest);
042
043 document = ParamUtil.getString(portletRequest, DOCUMENT);
044 downloads = ParamUtil.getInteger(portletRequest, DOWNLOADS);
045 keywords = ParamUtil.getString(portletRequest, DisplayTerms.KEYWORDS);
046 liveGroupId = ParamUtil.getLong(portletRequest, LIVE_GROUP_ID);
047 locked = ParamUtil.getBoolean(portletRequest, LOCKED);
048 selectedGroupId = ParamUtil.getLong(portletRequest, SELECTED_GROUP_ID);
049 size = ParamUtil.getString(portletRequest, SIZE);
050 }
051
052 public String getDocument() {
053 return document;
054 }
055
056 public int getDownloads() {
057 return downloads;
058 }
059
060 public long getLiveGroupId() {
061 return liveGroupId;
062 }
063
064 public long getSelectedGroupId() {
065 return selectedGroupId;
066 }
067
068 public String getSize() {
069 return size;
070 }
071
072 public boolean isLocked() {
073 return locked;
074 }
075
076 public void setLiveGroupId(long liveGroupId) {
077 this.liveGroupId = liveGroupId;
078 }
079
080 public void setSelectedGroupId(long selectedGroupId) {
081 this.selectedGroupId = selectedGroupId;
082 }
083
084 protected String document;
085 protected int downloads;
086 protected long liveGroupId;
087 protected boolean locked;
088 protected long selectedGroupId;
089 protected String size;
090
091 }