public PortalQuery( HashMap hashmap, PortalQueryVisitor portalqueryvisitor, HTTPRequest httprequest) { itemFilter = null; addAlerts = false; findObjects = 7; request = null; config = null; visitor = null; debug = false; visitor = portalqueryvisitor; if (httprequest == null) { request = new HTTPRequest(); request.setUser("administrator"); } else { request = httprequest; } config = MasterConfig.getMasterConfig(); itemFilter = new PortalFilter(hashmap); User user = request.getUser(); PortalFilter portalfilter = new PortalFilter(user.getProperty("_query")); itemFilter.addFilter(portalfilter); if (TextUtils.getValue(hashmap, "serverDepth").length() > 0) { findObjects = 4; } else if (TextUtils.getValue(hashmap, "groupDepth").length() > 0) { findObjects = 6; } if (TextUtils.getValue(hashmap, "trace").length() > 0) { debug = true; } portalqueryvisitor.initialize(hashmap, this); }
public void addFilter(PortalFilter portalfilter) { itemFilter.addFilter(portalfilter); }