More work on commands, statemgmt, EL references
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Sat, 13 Apr 2013 05:30:35 +0000 (01:30 -0400)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Sat, 13 Apr 2013 05:30:35 +0000 (01:30 -0400)
commit977e4983e28683dd8a7d9fd19b0daee3ac349a3a
tree3af5c16a0c8d6d891f78531eaddc15f6a6e762a0
parent2e0ba76130e69557799700f32d437a72a34e7501
More work on commands, statemgmt, EL references

Attempts to make state management still more transparent to
the logic of setting command parameters - basically in order
to allow command parameter settings to get arbitrarily complex
without having to worry more than necessary about state handling

Extracts commands to a separate class for EL access (from pages) -
Can thus be referenced like, say, req.search.query for setting the query
parameter of the search command. Attempts to reduce the number of
methods on the pz2 object, which was gradually becoming less
manageable.

Creates a dedicated class for each pazpar2 command for type-safe
setting of parameters and to manage complexity.

Fixes missing faces-config.xml (might have caused the CDI
framework to NOT scan the pz2utils4jsf jar for all annotations).

Uses listener pattern to alert the session object about state
changes.
29 files changed:
pom.xml
src/META-INF/faces-config.xml [new file with mode: 0644]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/CommandParameter.java [deleted file]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/CommandThread.java
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/ForServiceProxy.java [new file with mode: 0644]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/ForStraightPz2.java [new file with mode: 0644]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pazpar2Command.java [deleted file]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2Bean.java
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2Client.java
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2ProxyBean.java
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2Session.java
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/SearchClient.java
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/commands/BytargetCommand.java [new file with mode: 0644]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/commands/CommandParameter.java [new file with mode: 0644]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/commands/InitCommand.java [new file with mode: 0644]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/commands/Pazpar2Command.java [new file with mode: 0644]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/commands/Pazpar2Commands.java [new file with mode: 0644]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/commands/PingCommand.java [new file with mode: 0644]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/commands/RecordCommand.java [new file with mode: 0644]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/commands/SearchCommand.java [new file with mode: 0644]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/commands/SettingsCommand.java [new file with mode: 0644]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/commands/ShowCommand.java [new file with mode: 0644]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/commands/StatCommand.java [new file with mode: 0644]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/commands/TermlistCommand.java [new file with mode: 0644]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/sp/ServiceProxyClient.java
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/sp/ServiceProxySession.java
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/state/Pazpar2State.java
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/state/StateListener.java [new file with mode: 0644]
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/state/StateManager.java