Interface SelectedValueController<V extends DataItemValue<?>>

All Superinterfaces:
ProcessingStep

public interface SelectedValueController<V extends DataItemValue<?>> extends ProcessingStep
  • Method Details

    • getAvailable

      List<V> getAvailable()
      Get all no yet selected items - either even with those whose requirements are not met, or without them-
      Parameters:
      ignoreRequirements - Also return items whose requirements are not met
      Returns:
    • getSelected

      List<V> getSelected()
      Get a list of all currently selected items
    • getRecommendationState

      RecommendationState getRecommendationState(V value)
    • canBeSelected

      Possible canBeSelected(V value)
      Check if the user is allowed to select the item
      Parameters:
      value - Item to select
      Returns:
      Selection allowed or not
      Throws:
      IllegalArgumentException - Thrown if a decision is missing or invalid
    • select

      OperationResult<V> select(V value)
      Add/Select the item using the given decisions
      Parameters:
      value - Item to select
      Returns:
      value instance of selected item
      Throws:
      IllegalArgumentException - Thrown if a decision is missing or invalid
    • canBeDeselected

      Possible canBeDeselected(V value)
      Check if the user is allowed to deselect the item
      Parameters:
      value - ItemValue to deselect
      Returns:
      Deselection allowed or not
    • deselect

      boolean deselect(V value)
      Remove/Deselect the item
      Parameters:
      value - Item to select
      Returns:
      TRUE if item has been deselected
      Throws:
      IllegalArgumentException - Thrown if a decision is missing or invalid
    • getToDos

      List<ToDoElement> getToDos()
      Returns a list of steps to do in this controller