@SessionScoped
@Named
public class Pazpar2Commands
extends java.lang.Object
implements java.io.Serializable
The Pazpar2Commands object itself is exposed to the UI as pzreq
.
When the UI request a command it will be retrieved from the current state through the state manager, so that the command can trigger a mutation of the state if the user/UI modifies its parameters.
Examples:
pzreq.show
- will retrieve the show command for editing or execution
pzreq.sp.auth
- will retrieve the Service Proxy extension command 'auth'
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BYTARGET |
static java.lang.String |
INIT |
static java.lang.String |
PING |
static java.lang.String |
RECORD |
static java.lang.String |
SEARCH |
static java.lang.String |
SETTINGS |
static java.lang.String |
SHOW |
static java.lang.String |
STAT |
static java.lang.String |
TERMLIST |
Constructor and Description |
---|
Pazpar2Commands() |
Modifier and Type | Method and Description |
---|---|
BytargetCommand |
getBytarget() |
Pazpar2Command |
getCommand(java.lang.String name)
Generically retrieves any command
|
InitCommand |
getInit()
init command - referenced from UI as
pzreq.init |
PingCommand |
getPing()
ping command - referenced from UI as
pzreq.ping |
RecordCommand |
getRecord() |
SearchCommand |
getSearch() |
SettingsCommand |
getSettings()
settings command - referenced from UI as
pzreq.settings |
ShowCommand |
getShow() |
ServiceProxyCommands |
getSp()
Gets the object holding references to Service Proxy-only commands.
|
StatCommand |
getStat() |
TermlistCommand |
getTermlist() |
public static final java.lang.String INIT
public static final java.lang.String PING
public static final java.lang.String SETTINGS
public static final java.lang.String SEARCH
public static final java.lang.String STAT
public static final java.lang.String SHOW
public static final java.lang.String RECORD
public static final java.lang.String TERMLIST
public static final java.lang.String BYTARGET
public InitCommand getInit()
pzreq.init
public PingCommand getPing()
pzreq.ping
public SettingsCommand getSettings()
pzreq.settings
public SearchCommand getSearch()
public StatCommand getStat()
public ShowCommand getShow()
public RecordCommand getRecord()
public TermlistCommand getTermlist()
public BytargetCommand getBytarget()
public Pazpar2Command getCommand(java.lang.String name)
name
- name of command to retrievepublic ServiceProxyCommands getSp()