com.indexdata.mkjsf.pazpar2.commands
Class Pazpar2Commands

java.lang.Object
  extended by com.indexdata.mkjsf.pazpar2.commands.Pazpar2Commands
All Implemented Interfaces:
Serializable

@SessionScoped
@Named
public class Pazpar2Commands
extends Object
implements Serializable

Pazpar2Commands holds references to all Pazpar2 commands.

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:

Author:
Niels Erik
See Also:
Serialized Form

Field Summary
static String BYTARGET
           
static String INIT
           
static String PING
           
static String RECORD
           
static String SEARCH
           
static String SETTINGS
           
static String SHOW
           
static String STAT
           
static String TERMLIST
           
 
Constructor Summary
Pazpar2Commands()
           
 
Method Summary
 BytargetCommand getBytarget()
           
 Pazpar2Command getCommand(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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INIT

public static final String INIT
See Also:
Constant Field Values

PING

public static final String PING
See Also:
Constant Field Values

SETTINGS

public static final String SETTINGS
See Also:
Constant Field Values

SEARCH

public static final String SEARCH
See Also:
Constant Field Values

STAT

public static final String STAT
See Also:
Constant Field Values

SHOW

public static final String SHOW
See Also:
Constant Field Values

RECORD

public static final String RECORD
See Also:
Constant Field Values

TERMLIST

public static final String TERMLIST
See Also:
Constant Field Values

BYTARGET

public static final String BYTARGET
See Also:
Constant Field Values
Constructor Detail

Pazpar2Commands

public Pazpar2Commands()
Method Detail

getInit

public InitCommand getInit()
init command - referenced from UI as pzreq.init

Returns:
init command from current state

getPing

public PingCommand getPing()
ping command - referenced from UI as pzreq.ping

Returns:
ping command from current state

getSettings

public SettingsCommand getSettings()
settings command - referenced from UI as pzreq.settings

Returns:
settings command from current state

getSearch

public SearchCommand getSearch()
Returns:
search command from current state

getStat

public StatCommand getStat()
Returns:
stat command from current state

getShow

public ShowCommand getShow()
Returns:
show command from current state

getRecord

public RecordCommand getRecord()
Returns:
record command from current state

getTermlist

public TermlistCommand getTermlist()
Returns:
termlist command from current state

getBytarget

public BytargetCommand getBytarget()
Returns:
bytarget command from current state

getCommand

public Pazpar2Command getCommand(String name)
Generically retrieves any command

Parameters:
name - name of command to retrieve
Returns:
command of the given type

getSp

public ServiceProxyCommands getSp()
Gets the object holding references to Service Proxy-only commands.

Returns:


Copyright © 2013. All Rights Reserved.