DLESE Tools
v1.6.0

org.dlese.dpc.vocab
Class MetadataVocabInputState

java.lang.Object
  extended by org.dlese.dpc.vocab.MetadataVocabInputState
All Implemented Interfaces:
Serializable

public final class MetadataVocabInputState
extends Object
implements Serializable

Stores user state for selected controlled vocabularies.

Author:
Ryan Deardorff
See Also:
Serialized Form

Constructor Summary
MetadataVocabInputState()
          Constructor for the MetadataVocabInputState object.
 
Method Summary
 boolean getIsSelected(String field, String value)
          Is the given field/value pair selected currently? (for Struts .isSelected access)
 String getState()
          Gets the part of the query string associated with the user's vocab selections.
 String getStateFeedback()
          Gets a string (placed after "Your selections" in V3.x of the DDS) representing the user's selected vocab criteria.
 boolean isSelected(String field, String value)
          Is the given field/value pair selected currently?
 void setState(HttpServletRequest req)
          Sets the state attribute of the MetadataVocabInputState object
 void setState(HttpServletRequest req, String system)
          Deprecated. As of MetadataUI v1.0, replaced by setState()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataVocabInputState

public MetadataVocabInputState()
Constructor for the MetadataVocabInputState object.

Method Detail

setState

public void setState(HttpServletRequest req)
Sets the state attribute of the MetadataVocabInputState object

Parameters:
req - The new state value

setState

public void setState(HttpServletRequest req,
                     String system)
Deprecated. As of MetadataUI v1.0, replaced by setState()

Sets the state attribute of the MetadataVocabInputState object

Parameters:
req - The new state value
system - The new state value

getState

public String getState()
Gets the part of the query string associated with the user's vocab selections.

Returns:
The state value

getStateFeedback

public String getStateFeedback()
Gets a string (placed after "Your selections" in V3.x of the DDS) representing the user's selected vocab criteria.

Returns:
The stateFeedback value

isSelected

public boolean isSelected(String field,
                          String value)
Is the given field/value pair selected currently?

Parameters:
field - Vocab field encoded ID
value - Vocab value encoded ID
Returns:
boolean indicating whether the specified vocab node is selected

getIsSelected

public boolean getIsSelected(String field,
                             String value)
Is the given field/value pair selected currently? (for Struts .isSelected access)

Parameters:
field - Vocab field encoded ID
value - Vocab value encoded ID
Returns:
boolean indicating whether the specified vocab node is selected

DLESE Tools
v1.6.0