1
22
23 package com.liferay.portlet.enterpriseadmin.search;
24
25 import com.liferay.portal.kernel.dao.search.DisplayTerms;
26 import com.liferay.portal.kernel.util.ParamUtil;
27 import com.liferay.portal.kernel.util.StringPool;
28
29 import javax.portlet.PortletRequest;
30
31
36 public class RoleDisplayTerms extends DisplayTerms {
37
38 public static final String NAME = "name";
39
40 public static final String DESCRIPTION = "description";
41
42 public static final String TYPE = "type";
43
44 public RoleDisplayTerms(PortletRequest portletRequest) {
45 super(portletRequest);
46
47 name = ParamUtil.getString(portletRequest, NAME);
48 description = ParamUtil.getString(portletRequest, DESCRIPTION);
49 type = ParamUtil.getInteger(portletRequest, TYPE);
50 }
51
52 public String getName() {
53 return name;
54 }
55
56 public String getDescription() {
57 return description;
58 }
59
60 public int getType() {
61 return type;
62 }
63
64 public String getTypeString() {
65 if (type != 0) {
66 return String.valueOf(type);
67 }
68 else {
69 return StringPool.BLANK;
70 }
71 }
72
73 protected String name;
74 protected String description;
75 protected int type;
76
77 }