Interface ExternalQualificationService

All Known Implementing Classes:
ExternalQualificationServiceImpl

public interface ExternalQualificationService
  • Method Details

    • getValidRegistrations

      EntityList getValidRegistrations(Entity evaluationDataEntity) throws PersistException
      Throws:
      PersistException
    • wrapEvaluationEntity

      Instance wrapEvaluationEntity(Entity evaluationEntity) throws PersistException
      wrap an Evaluation instance
      Parameters:
      evaluationEntity - an evaluation entity
      Returns:
      an object wrapping the provided entity
      Throws:
      PersistException
    • getData

      Optional<Object> getData(Instance evaluation, Entity user, String nodeId)
      Get rating data for a specific user from within a particular qualification tree
      Parameters:
      evaluation - root evaluation of the qualification tree
      user - the user entity
      nodeId - the short id of the node
      Returns:
      a rating data object (e.g. BigDecimal, String, etc.)
    • getUsers

      List<Entity> getUsers(Entity evaluation) throws PersistException
      Parameters:
      evaluation - the evaluation to get all connected users from
      Returns:
      a list of user entities
      Throws:
      PersistException
    • getGradeDecimalDigits

      int getGradeDecimalDigits()
      Returns:
      the amount of digits defined in QualificationService
    • getPointsDecimalDigits

      int getPointsDecimalDigits()
    • getMc

      MathContext getMc()
    • updateInputDatasForParticipants

      void updateInputDatasForParticipants(Entity input) throws InterruptedException
      helper method to call QualificationService#updateInputDatasForParticipants(Entity) from outside the qualification module
      Parameters:
      input - an Input entity
      Throws:
      InterruptedException
    • isDataEmpty

      boolean isDataEmpty(Entity inputNode, Entity inputData)
      checks if input data is empty according to type of input node
      Parameters:
      inputNode - the node to get the type from
      inputData - the data to check
      Returns:
      true if data is empty, false otherwise
    • hasInputTypeRatings

      boolean hasInputTypeRatings(Entity inputNode)
      checks if input node has ratings according to its type
      Parameters:
      inputNode - the node to get the type from
      Returns:
      true if type hasRatings
    • usesInputTypePoints

      boolean usesInputTypePoints(Entity inputNode)
      checks if input node uses points according to its type
      Parameters:
      inputNode - the node to get the type from
      Returns:
      true if type usesPoints
    • getEvaluationScale

      Tuple2<BigDecimal,BigDecimal> getEvaluationScale(Entity input)
      returns the scale for the given EvaluationNode.
      Parameters:
      input - input to get the scale from
      Returns:
      the Tuple containing (1) minimum and (2) maximum value of the scale
    • isInstancePublished

      boolean isInstancePublished(Entity publicationInstance)
      checks Evaluation for publication dates and Evaluation_visibility_status or Input for visible dates and Input_visibility_status
      Parameters:
      publicationInstance - the instance to check
      Returns:
      true if instance is published, false otherwise