Schnittstelle SelectedValueController<V extends DataItemValue<?>>

Alle Superschnittstellen:
ProcessingStep

public interface SelectedValueController<V extends DataItemValue<?>> extends ProcessingStep
  • Methodendetails

    • getAvailable

      List<V> getAvailable()
      Get all no yet selected items - either even with those whose requirements are not met, or without them-
      Parameter:
      ignoreRequirements - Also return items whose requirements are not met
      Gibt zurück:
    • 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
      Parameter:
      value - Item to select
      Gibt zurück:
      Selection allowed or not
      Löst aus:
      IllegalArgumentException - Thrown if a decision is missing or invalid
    • select

      OperationResult<V> select(V value)
      Add/Select the item using the given decisions
      Parameter:
      value - Item to select
      Gibt zurück:
      value instance of selected item
      Löst aus:
      IllegalArgumentException - Thrown if a decision is missing or invalid
    • canBeDeselected

      Possible canBeDeselected(V value)
      Check if the user is allowed to deselect the item
      Parameter:
      value - ItemValue to deselect
      Gibt zurück:
      Deselection allowed or not
    • deselect

      boolean deselect(V value)
      Remove/Deselect the item
      Parameter:
      value - Item to select
      Gibt zurück:
      TRUE if item has been deselected
      Löst aus:
      IllegalArgumentException - Thrown if a decision is missing or invalid
    • getToDos

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