public class PromptBeforeValidationBase.ContextSession extends Object
Constructor and Description |
---|
ContextSession(String context,
PromptBeforeValidationEvent event) |
Modifier and Type | Method and Description |
---|---|
void |
askQuestion(String id,
String text)
Invoked to indicate that the user should be prompted a question
|
String |
getAttribute(String name) |
boolean |
hasAsked(String id)
Whether a question with a given ID has already been asked
|
void |
setAttribute(String name,
String value) |
public ContextSession(String context, PromptBeforeValidationEvent event)
public boolean hasAsked(String id)
id
- the ID of the question, an arbitrary value, but must be consistentpublic void askQuestion(String id, String text)
id
- the ID of the question, an arbitrary value, but must be consistenttext
- the question text, to be displayed to the userpublic void setAttribute(String name, String value)
public String getAttribute(String name)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.