Package org.dlese.dpc.vocab
Class MetadataVocabInputState
java.lang.Object
org.dlese.dpc.vocab.MetadataVocabInputState
- All Implemented Interfaces:
Serializable
Stores user state for selected controlled vocabularies.
- Author:
- Ryan Deardorff
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the MetadataVocabInputState object. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetIsSelected(String field, String value) Is the given field/value pair selected currently? (for Struts .isSelected access)getState()Gets the part of the query string associated with the user's vocab selections.Gets a string (placed after "Your selections" in V3.x of the DDS) representing the user's selected vocab criteria.booleanisSelected(String field, String value) Is the given field/value pair selected currently?voidSets the state attribute of the MetadataVocabInputState objectvoidsetState(HttpServletRequest req, String system) Deprecated.As of MetadataUI v1.0, replaced by setState()
-
Constructor Details
-
MetadataVocabInputState
public MetadataVocabInputState()Constructor for the MetadataVocabInputState object.
-
-
Method Details
-
setState
Sets the state attribute of the MetadataVocabInputState object- Parameters:
req- The new state value
-
setState
Deprecated.As of MetadataUI v1.0, replaced by setState()Sets the state attribute of the MetadataVocabInputState object- Parameters:
req- The new state valuesystem- The new state value
-
getState
Gets the part of the query string associated with the user's vocab selections.- Returns:
- The state value
-
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
Is the given field/value pair selected currently?- Parameters:
field- Vocab field encoded IDvalue- Vocab value encoded ID- Returns:
- boolean indicating whether the specified vocab node is selected
-
getIsSelected
Is the given field/value pair selected currently? (for Struts .isSelected access)- Parameters:
field- Vocab field encoded IDvalue- Vocab value encoded ID- Returns:
- boolean indicating whether the specified vocab node is selected
-