+++ /dev/null
-package com.indexdata.pz2utils4jsf.pazpar2;\r
-\r
-import com.indexdata.pz2utils4jsf.pazpar2.Expression;\r
-\r
-public class Expression {\r
- \r
- String leftEntity;\r
- String operator;\r
- String rightEntity;\r
- public Expression (String leftEntity, String operator, String rightEntity) {\r
- this.leftEntity = leftEntity;\r
- this.operator = operator;\r
- this.rightEntity = rightEntity; \r
- }\r
- \r
- public Expression copy() {\r
- return new Expression(leftEntity,operator,rightEntity);\r
- }\r
- \r
- public String toString() {\r
- return leftEntity + operator + rightEntity;\r
- }\r
- \r
-\r
-}\r
public void doSearch() { \r
stateMgr.hasPendingStateChange("search",false);\r
data.reset();\r
+ // TODO: avoid state proliferation here:\r
req.getRecord().removeParameters();\r
req.getShow().setParameter(new CommandParameter("start","=",0)); \r
logger.debug(Utils.objectId(this) + " is searching using "+req.getCommandReadOnly("search").getUrlEncodedParameterValue("query"));\r
stateMgr.hasPendingStateChange("record",false);\r
if (req.getCommandReadOnly("record").hasParameters()) {\r
update("record");\r
- } else {\r
- req.getRecord().removeParameters(); \r
+ } else { \r
data.put("record", new RecordResponse());\r
}\r
}\r
+ Utils.objectId(configurator) + "]" ); \r
configureClient(searchClient,configurator);\r
} else {\r
- logger.info("Pz2ProxyBean:postConstruct: searchClient already instantiated " +\r
+ logger.debug("Pz2ProxyBean:postConstruct: searchClient already instantiated " +\r
"during construction of parent object Pz2Bean.");\r
}\r
}\r
\r
import org.apache.log4j.Logger;\r
\r
-import com.indexdata.pz2utils4jsf.pazpar2.Expression;\r
import com.indexdata.pz2utils4jsf.pazpar2.commands.CommandParameter;\r
\r
public class CommandParameter implements Serializable {\r
--- /dev/null
+package com.indexdata.pz2utils4jsf.pazpar2.commands;\r
+\r
+import com.indexdata.pz2utils4jsf.pazpar2.commands.Expression;\r
+\r
+public class Expression {\r
+ \r
+ String leftEntity;\r
+ String operator;\r
+ String rightEntity;\r
+ public Expression (String leftEntity, String operator, String rightEntity) {\r
+ this.leftEntity = leftEntity;\r
+ this.operator = operator;\r
+ this.rightEntity = rightEntity; \r
+ }\r
+ \r
+ public Expression copy() {\r
+ return new Expression(leftEntity,operator,rightEntity);\r
+ }\r
+ \r
+ public String toString() {\r
+ return leftEntity + operator + rightEntity;\r
+ }\r
+ \r
+\r
+}\r
\r
import org.apache.log4j.Logger;\r
\r
-import com.indexdata.pz2utils4jsf.pazpar2.Expression;\r
import com.indexdata.pz2utils4jsf.pazpar2.state.StateManager;\r
\r
@SessionScoped\r