2010-01-26 1.2.0

org.eclipse.soda.dk.epcglobal.llrp.config.servlet.store
Class LLRPConfigStore

java.lang.Object
  extended by org.eclipse.soda.dk.epcglobal.llrp.config.servlet.store.LLRPConfigStore

public class LLRPConfigStore
extends java.lang.Object

Since:
1.2
Version:
1.2.0

Constructor Summary
LLRPConfigStore(LLRPConfigConsole console)
          Constructs an instance of this class from the specified console parameter.
 
Method Summary
 void addReader(java.lang.String readerPrefix, java.lang.String readerId)
          Add reader with the specified reader prefix and reader id parameters.
 java.util.Map addReaderProfile(java.lang.String readerPrefix, java.lang.String profileName)
          Add reader profile with the specified reader prefix and profile name parameters and return the Map result.
protected  void deleteElementFromCurrent(java.lang.String elementPath)
          Delete element from current with the specified element path parameter.
 java.util.Map getConfigStore()
          Gets the config store (Map) value.
protected  LLRPConfigConsole getConsole()
          Gets the console (LLRPConfigConsole) value.
 IDisplayElement getCurrentDisplayElement()
          Gets the current display element (IDisplayElement) value.
protected  java.util.Stack getCurrentparametersStack()
          Gets the current parameters stack (Stack) value.
 java.lang.String getCurrentProfile()
          Gets the current profile (String) value.
 java.lang.String getCurrentReader()
          Gets the current reader (String) value.
protected  java.lang.String getDefaultProfile(java.lang.String readerPrefix)
          Get default profile with the specified reader prefix parameter and return the String result.
protected  java.lang.String getDefaultReader()
          Gets the default reader (String) value.
protected  java.util.List getHistoryChain()
          Gets the history chain (List) value.
 java.lang.String getHtml(java.lang.String servletPath)
          Get html with the specified servlet path parameter and return the String result.
static java.util.Map getNewParamObj(java.lang.String paramId)
          Get new param obj with the specified param id parameter and return the Map result.
 IReaderCapabilities getReaderCapabilities(java.lang.String readerPrefix)
          Get reader capabilities with the specified reader prefix parameter and return the IReaderCapabilities result.
protected  ReaderDisplay getReaderDisplay()
          Gets the reader display value.
 java.lang.String getReaderId(java.lang.String readerPrefix)
          Get reader id with the specified reader prefix parameter and return the String result.
 java.util.Map getReaderMap(java.lang.String readerPrefix)
          Get reader map with the specified reader prefix parameter and return the Map result.
 java.util.List getReaderPrefixs()
          Gets the reader prefixs (List) value.
 java.lang.String getReaderProfileConfigStr(java.lang.String readerPrefix, java.lang.String profileName)
          Get reader profile config str with the specified reader prefix and profile name parameters and return the String result.
 java.util.Map getReaderProfileMap(java.lang.String readerPrefix, java.lang.String profileName)
          Get reader profile map with the specified reader prefix and profile name parameters and return the Map result.
 java.util.List getReaderProfileNamesList(java.lang.String readerPrefix)
          Get reader profile names list with the specified reader prefix parameter and return the List result.
 java.util.List getReaderProfilesList(java.lang.String readerPrefix)
          Get reader profiles list with the specified reader prefix parameter and return the List result.
 void processParameterRequest(javax.servlet.http.HttpServletRequest request)
          Process parameter request with the specified request parameter.
 void processRequest(javax.servlet.http.HttpServletRequest request)
          Process request with the specified request parameter.
 void selectParamFromCurrent(java.lang.String parameterPath)
          Select param from current with the specified parameter path parameter.
 void selectParamFromCurrentChoice(java.lang.String parameterPath)
          Select param from current choice with the specified parameter path parameter.
 void selectParamFromHistoryChain(int backNum)
          Select param from history chain with the specified back num parameter.
 void selectProfile(java.lang.String profileName)
          Select profile with the specified profile name parameter.
 void selectReader(java.lang.String readerPrefix)
          Select reader with the specified reader prefix parameter.
 void setReaderCapabilities(java.lang.String readerPrefix, IReaderCapabilities readerCapabilities)
          Set reader capabilities with the specified reader prefix and reader capabilities parameters.
 void setReaderProfileConfigStr(java.lang.String readerPrefix, java.lang.String profileName, java.lang.String configStr)
          Set reader profile config str with the specified reader prefix, profile name and config str parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LLRPConfigStore

public LLRPConfigStore(LLRPConfigConsole console)
Constructs an instance of this class from the specified console parameter.

Parameters:
console - The console (LLRPConfigConsole) parameter.
Method Detail

getNewParamObj

public static java.util.Map getNewParamObj(java.lang.String paramId)
Get new param obj with the specified param id parameter and return the Map result.

Parameters:
paramId - The param ID (String) parameter.
Returns:
Results of the get new param obj (Map) value.

addReader

public void addReader(java.lang.String readerPrefix,
                      java.lang.String readerId)
Add reader with the specified reader prefix and reader id parameters.

Parameters:
readerPrefix - The reader prefix (String) parameter.
readerId - The reader ID (String) parameter.
See Also:
getCurrentReader(), getDefaultReader(), selectReader(String)

addReaderProfile

public java.util.Map addReaderProfile(java.lang.String readerPrefix,
                                      java.lang.String profileName)
Add reader profile with the specified reader prefix and profile name parameters and return the Map result.

Parameters:
readerPrefix - The reader prefix (String) parameter.
profileName - The profile name (String) parameter.
Returns:
Results of the add reader profile (Map) value.

deleteElementFromCurrent

protected void deleteElementFromCurrent(java.lang.String elementPath)
Delete element from current with the specified element path parameter.

Parameters:
elementPath - The element path (String) parameter.

getConfigStore

public java.util.Map getConfigStore()
Gets the config store (Map) value.

Returns:
The config store (Map) value.
See Also:
LLRPConfigStore(LLRPConfigConsole)

getConsole

protected LLRPConfigConsole getConsole()
Gets the console (LLRPConfigConsole) value.

Returns:
The console (LLRPConfigConsole) value.

getCurrentDisplayElement

public IDisplayElement getCurrentDisplayElement()
Gets the current display element (IDisplayElement) value.

Returns:
The current display element (IDisplayElement) value.

getCurrentProfile

public java.lang.String getCurrentProfile()
Gets the current profile (String) value.

Returns:
The current profile (String) value.

getCurrentReader

public java.lang.String getCurrentReader()
Gets the current reader (String) value.

Returns:
The current reader (String) value.

getCurrentparametersStack

protected java.util.Stack getCurrentparametersStack()
Gets the current parameters stack (Stack) value.

Returns:
The current parameters stack (Stack) value.

getDefaultProfile

protected java.lang.String getDefaultProfile(java.lang.String readerPrefix)
Get default profile with the specified reader prefix parameter and return the String result.

Parameters:
readerPrefix - The reader prefix (String) parameter.
Returns:
Results of the get default profile (String) value.

getDefaultReader

protected java.lang.String getDefaultReader()
Gets the default reader (String) value.

Returns:
The default reader (String) value.

getHistoryChain

protected java.util.List getHistoryChain()
Gets the history chain (List) value.

Returns:
The history chain (List) value.
See Also:
selectParamFromHistoryChain(int)

getHtml

public java.lang.String getHtml(java.lang.String servletPath)
Get html with the specified servlet path parameter and return the String result.

Parameters:
servletPath - The servlet path (String) parameter.
Returns:
Results of the get html (String) value.

getReaderCapabilities

public IReaderCapabilities getReaderCapabilities(java.lang.String readerPrefix)
Get reader capabilities with the specified reader prefix parameter and return the IReaderCapabilities result.

Parameters:
readerPrefix - The reader prefix (String) parameter.
Returns:
Results of the get reader capabilities (IReaderCapabilities) value.
See Also:
setReaderCapabilities(String,IReaderCapabilities)

getReaderDisplay

protected ReaderDisplay getReaderDisplay()
Gets the reader display value.

Returns:
The reader display (ReaderDisplay) value.

getReaderId

public java.lang.String getReaderId(java.lang.String readerPrefix)
Get reader id with the specified reader prefix parameter and return the String result.

Parameters:
readerPrefix - The reader prefix (String) parameter.
Returns:
Results of the get reader id (String) value.

getReaderMap

public java.util.Map getReaderMap(java.lang.String readerPrefix)
Get reader map with the specified reader prefix parameter and return the Map result.

Parameters:
readerPrefix - The reader prefix (String) parameter.
Returns:
Results of the get reader map (Map) value.

getReaderPrefixs

public java.util.List getReaderPrefixs()
Gets the reader prefixs (List) value.

Returns:
The reader prefixs (List) value.

getReaderProfileConfigStr

public java.lang.String getReaderProfileConfigStr(java.lang.String readerPrefix,
                                                  java.lang.String profileName)
Get reader profile config str with the specified reader prefix and profile name parameters and return the String result.

Parameters:
readerPrefix - The reader prefix (String) parameter.
profileName - The profile name (String) parameter.
Returns:
Results of the get reader profile config str (String) value.
See Also:
setReaderProfileConfigStr(String,String,String)

getReaderProfileMap

public java.util.Map getReaderProfileMap(java.lang.String readerPrefix,
                                         java.lang.String profileName)
Get reader profile map with the specified reader prefix and profile name parameters and return the Map result.

Parameters:
readerPrefix - The reader prefix (String) parameter.
profileName - The profile name (String) parameter.
Returns:
Results of the get reader profile map (Map) value.

getReaderProfileNamesList

public java.util.List getReaderProfileNamesList(java.lang.String readerPrefix)
Get reader profile names list with the specified reader prefix parameter and return the List result.

Parameters:
readerPrefix - The reader prefix (String) parameter.
Returns:
Results of the get reader profile names list (List) value.

getReaderProfilesList

public java.util.List getReaderProfilesList(java.lang.String readerPrefix)
Get reader profiles list with the specified reader prefix parameter and return the List result.

Parameters:
readerPrefix - The reader prefix (String) parameter.
Returns:
Results of the get reader profiles list (List) value.

processParameterRequest

public void processParameterRequest(javax.servlet.http.HttpServletRequest request)
Process parameter request with the specified request parameter.

Parameters:
request - The request (HttpServletRequest) parameter.

processRequest

public void processRequest(javax.servlet.http.HttpServletRequest request)
Process request with the specified request parameter.

Parameters:
request - The request (HttpServletRequest) parameter.
See Also:
processParameterRequest(HttpServletRequest)

selectParamFromCurrent

public void selectParamFromCurrent(java.lang.String parameterPath)
Select param from current with the specified parameter path parameter.

Parameters:
parameterPath - The parameter path (String) parameter.

selectParamFromCurrentChoice

public void selectParamFromCurrentChoice(java.lang.String parameterPath)
Select param from current choice with the specified parameter path parameter.

Parameters:
parameterPath - The parameter path (String) parameter.

selectParamFromHistoryChain

public void selectParamFromHistoryChain(int backNum)
Select param from history chain with the specified back num parameter.

Parameters:
backNum - The back num (int) parameter.

selectProfile

public void selectProfile(java.lang.String profileName)
Select profile with the specified profile name parameter.

Parameters:
profileName - The profile name (String) parameter.
See Also:
addReaderProfile(String,String), getCurrentProfile(), getDefaultProfile(String)

selectReader

public void selectReader(java.lang.String readerPrefix)
Select reader with the specified reader prefix parameter.

Parameters:
readerPrefix - The reader prefix (String) parameter.
See Also:
addReader(String,String), getCurrentReader(), getDefaultReader()

setReaderCapabilities

public void setReaderCapabilities(java.lang.String readerPrefix,
                                  IReaderCapabilities readerCapabilities)
Set reader capabilities with the specified reader prefix and reader capabilities parameters.

Parameters:
readerPrefix - The reader prefix (String) parameter.
readerCapabilities - The reader capabilities (IReaderCapabilities) parameter.
See Also:
getReaderCapabilities(String)

setReaderProfileConfigStr

public void setReaderProfileConfigStr(java.lang.String readerPrefix,
                                      java.lang.String profileName,
                                      java.lang.String configStr)
Set reader profile config str with the specified reader prefix, profile name and config str parameters.

Parameters:
readerPrefix - The reader prefix (String) parameter.
profileName - The profile name (String) parameter.
configStr - The configuration str (String) parameter.
See Also:
getReaderProfileConfigStr(String,String)

2010-01-26 1.2.0

Copyright (c) 2010 IBM. See license in Legal section.