Class SessionValidator


  • public class SessionValidator
    extends Object
    Author:
    Liesje Demuynck.
    • Constructor Detail

      • SessionValidator

        public SessionValidator()
    • Method Detail

      • assertValidSession

        public static void assertValidSession​(be.ehealth.technicalconnector.session.SessionItem sessionItem)
                                       throws IntegrationModuleException
        Checks if the provided sessionItem is valid and if not: throws a error
        Parameters:
        sessionItem - the sessionItem to check
        Throws:
        IntegrationModuleException
      • assertValidPharmacySession

        public static void assertValidPharmacySession​(be.ehealth.technicalconnector.session.SessionItem sessionItem)
                                               throws IntegrationModuleException
        Checks if the provided sessionItem is valid and if not: throws a error
        Parameters:
        sessionItem - the sessionItem to check
        Throws:
        IntegrationModuleException
      • assertValidHospitalPharmacySession

        public static void assertValidHospitalPharmacySession​(be.ehealth.technicalconnector.session.SessionItem sessionItem)
                                                       throws IntegrationModuleException
        Checks if the provided sessionItem is valid and if not: throws a error
        Parameters:
        sessionItem - the sessionItem to check
        Throws:
        IntegrationModuleException
      • isValidSession

        public static boolean isValidSession​(be.ehealth.technicalconnector.session.SessionItem sessionItem)
        Checks if the provided sessionItem is valid
        Parameters:
        sessionItem - the sessionItem to check
        Returns:
        true if the sessionItem is valid, false otherwise
      • isValidPharmacySession

        public static boolean isValidPharmacySession​(be.ehealth.technicalconnector.session.SessionItem sessionItem)
        Checks if the provided sessionItem is valid
        Parameters:
        sessionItem - the sessionItem to check
        Returns:
        true if the sessionItem is valid, false otherwise
      • isValidHospitalPharmacySession

        public static boolean isValidHospitalPharmacySession​(be.ehealth.technicalconnector.session.SessionItem sessionItem)
        Checks if the provided sessionItem is valid
        Parameters:
        sessionItem - the sessionItem to check
        Returns:
        true if the sessionItem is valid, false otherwise