Class PromptBeforeValidationBase.ContextSession

java.lang.Object
org.kuali.rice.kns.rules.PromptBeforeValidationBase.ContextSession
Enclosing class:
PromptBeforeValidationBase

public static class PromptBeforeValidationBase.ContextSession extends Object
This class acts similarly to HTTP session, but working inside a REQUEST parameter.
  • Constructor Details

  • Method Details

    • hasAsked

      public boolean hasAsked(String id)
      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

      public void askQuestion(String id, String text)
      Invoked to indicate that the user should be prompted a question
      Parameters:
      id - the ID of the question, an arbitrary value, but must be consistent
      text - the question text, to be displayed to the user
    • setAttribute

      public void setAttribute(String name, String value)
    • getAttribute

      public String getAttribute(String name)