Package org.kuali.rice.kns.rules
Class PromptBeforeValidationBase.ContextSession
java.lang.Object
org.kuali.rice.kns.rules.PromptBeforeValidationBase.ContextSession
- Enclosing class:
PromptBeforeValidationBase
This class acts similarly to HTTP session, but working inside a REQUEST parameter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaskQuestion(String id, String text) Invoked to indicate that the user should be prompted a questiongetAttribute(String name) booleanWhether a question with a given ID has already been askedvoidsetAttribute(String name, String value)
-
Constructor Details
-
ContextSession
-
-
Method Details
-
hasAsked
Whether a question with a given ID has already been asked- Parameters:
id- the ID of the question, an arbitrary value, but must be consistent- Returns:
-
askQuestion
Invoked to indicate that the user should be prompted a question- Parameters:
id- the ID of the question, an arbitrary value, but must be consistenttext- the question text, to be displayed to the user
-
setAttribute
-
getAttribute
-