1
14
15 package com.liferay.portlet.enterpriseadmin.search;
16
17 import com.liferay.portal.kernel.dao.search.DAOParamUtil;
18 import com.liferay.portal.kernel.util.ParamUtil;
19
20 import javax.portlet.PortletRequest;
21
22
27 public class RoleSearchTerms extends RoleDisplayTerms {
28
29 public RoleSearchTerms(PortletRequest portletRequest) {
30 super(portletRequest);
31
32 name = DAOParamUtil.getLike(portletRequest, NAME);
33 description = DAOParamUtil.getLike(portletRequest, DESCRIPTION);
34 type = ParamUtil.getInteger(portletRequest, TYPE);
35 }
36
37 public Integer getTypeObj() {
38 if (type == 0) {
39 return null;
40 }
41 else {
42 return new Integer(type);
43 }
44 }
45
46 }