Class FacCritService

java.lang.Object
com.amos2020.javabackend.service.FacCritService

@Service
public class FacCritService
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    (package private) FacCritRepository repository  
  • Constructor Summary

    Constructors 
    Constructor Description
    FacCritService​(FacCritRepository repository)  
  • Method Summary

    Modifier and Type Method Description
    FacCrit exists​(int facCritId)
    Checks if facCrit exists and returns the facCrit or throws an exception
    java.util.List<FacCrit> getAllById​(java.util.List<java.lang.Integer> factorCriteriaIds)
    Get a list of facCrits by a list of facCrit ids
    java.util.List<FacCrit> getAllFacCrits()
    Returns all existing facCrits
    java.util.List<FacCrit> getAllFacCritsByInterviewId​(int interviewId)
    Returns all Faccrits ordered by an Interview id ordered by their hierachy

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getAllById

      public java.util.List<FacCrit> getAllById​(java.util.List<java.lang.Integer> factorCriteriaIds) throws javassist.NotFoundException
      Get a list of facCrits by a list of facCrit ids
      Parameters:
      factorCriteriaIds - List
      Returns:
      List of FacCrits
      Throws:
      javassist.NotFoundException - If a given facCrit id is not found
    • exists

      public FacCrit exists​(int facCritId) throws javassist.NotFoundException
      Checks if facCrit exists and returns the facCrit or throws an exception
      Parameters:
      facCritId - int
      Returns:
      FacCrit
      Throws:
      javassist.NotFoundException - If the given facCrit id is invalid and can not be found
    • getAllFacCrits

      public java.util.List<FacCrit> getAllFacCrits()
      Returns all existing facCrits
      Returns:
      List
    • getAllFacCritsByInterviewId

      public java.util.List<FacCrit> getAllFacCritsByInterviewId​(int interviewId)
      Returns all Faccrits ordered by an Interview id ordered by their hierachy
      Parameters:
      interviewId -
      Returns:
      List