Interface UserGradesActionService

All Known Implementing Classes:
UserGradesActionServiceImpl

public interface UserGradesActionService
this service returns qualification data for User entities for use in forms
  • Method Summary

    Modifier and Type
    Method
    Description
    getData(Entity inputData, Entity participant)
    gets data from a Input_data and a given User data contains its key, related Events, related Input_node, whether it has a detail page, its type and its value
    gets data for a single Input_data this uses AbstractInputType#getUserGradesDetailData(InputData) to get the data
    boolean
    checks whether the detail page of the given Input Data should be displayed
  • Method Details

    • isDetailVisible

      boolean isDetailVisible(String key)
      checks whether the detail page of the given Input Data should be displayed
      Parameters:
      key - the PrimaryKey of a Input_data Entity as a String
      Returns:
      a boolean which determines the visibility
    • getDetailData

      Map<String,Object> getDetailData(String key) throws InterruptedException
      gets data for a single Input_data this uses AbstractInputType#getUserGradesDetailData(InputData) to get the data
      Parameters:
      key - the key of a Input_data entity
      Returns:
      a map of values from the Input_data
      Throws:
      InterruptedException
    • getData

      Optional<Map<String,Object>> getData(Entity inputData, Entity participant)
      gets data from a Input_data and a given User data contains its key, related Events, related Input_node, whether it has a detail page, its type and its value
      Parameters:
      inputData - the Input_data to get data from
      participant - the User to use as the participant
      Returns:
      an Optional containing a map with values if the Input_data has valid registrations, Optional.empty() otherwise