Interface ValidationService


  • public interface ValidationService
    ValidationService performs a composition validation based on the constraints defined in a 1.4 operational template The service is a wrapper of Validator and use a cache to optimize validation since the construction of the constraints is somewhat resource intensive. The validation constraints are maintained into a standard java cache. The service uses KnowledgeCache to retrieve operational templates.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void check​(com.nedap.archie.rm.composition.Composition composition)
      initially check if the composition is valid for further processing
      void check​(String templateID, com.nedap.archie.rm.composition.Composition composition)
      check a composition based on the operation template constraints
      void check​(UUID templateUUID, com.nedap.archie.rm.composition.Composition composition)
      check a composition based on the operation template constraints
      void invalidate()
      Remove all mappings in the cache
    • Method Detail

      • check

        void check​(UUID templateUUID,
                   com.nedap.archie.rm.composition.Composition composition)
            throws Throwable
        check a composition based on the operation template constraints
        Parameters:
        templateUUID - the template UUID
        composition - the RM composition
        Throws:
        Exception - if the validation fails or the template cannot be resolved
        Throwable
      • check

        void check​(String templateID,
                   com.nedap.archie.rm.composition.Composition composition)
            throws Exception
        check a composition based on the operation template constraints
        Parameters:
        templateID - the template Id (String)
        composition - the RM composition
        Throws:
        Exception - if the validation fails or the template cannot be resolved
      • check

        void check​(com.nedap.archie.rm.composition.Composition composition)
            throws Exception
        initially check if the composition is valid for further processing
        Parameters:
        composition -
        Throws:
        IllegalArgumentException
        Exception
      • invalidate

        void invalidate()
        Remove all mappings in the cache