Class MetadataVocabInputState

java.lang.Object
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:
  • Constructor Details

    • MetadataVocabInputState

      public MetadataVocabInputState()
      Constructor for the MetadataVocabInputState object.
  • Method Details

    • 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