Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This task will be implemented in Release x.x.x. of assertion-validator.  Here is the JIRA:

JIRA AA-11 "Use Service Loader for Policy Rules (Policy Mgr) Implement restructure off assertion validation code"
Jira Legacy
serverJIRA (openncp.atlassian.net)
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId5eab37ce-f509-3cbb-9925-c13d0f8d6d44
keyOPENNCP-730

Design

The diagram shows how the AssertionAttributeValidator uses the ServiceLoader to load the National implementation of PolicyManager.

...

Here is a first shot at the Policy Manager public interface.

Code Block
languagejava
themeEclipselanguagejava
titlePolicyManagerInterface
public interface PolicyManagerInterface {
        void XSPASubjectValidatorForHCP(Assertion assertion) throws MissingFieldException, InvalidFieldException;
        void XSPASubjectValidatorForTRC(Assertion assertion) throws MissingFieldException, InvalidFieldException;
        void XSPARoleValidator(Assertion assertion) throws MissingFieldException, InvalidFieldException;
        void OnBehalfOfValidator(Assertion assertion) throws MissingFieldException, InvalidFieldException;
        void HealthcareFacilityValidator(Assertion assertion) throws MissingFieldException, InvalidFieldException;
        void PurposeOfUseValidator(Assertion assertion) throws MissingFieldException, InsufficientRightsException;
        void XSPALocalityValidator(Assertion assertion) throws MissingFieldException, InvalidFieldException;
        void XCPDPermissionValidator(Assertion assertion) throws InsufficientRightsException;
        void XCAPermissionValidatorPS(Assertion assertion) throws InsufficientRightsException;
        void XCAPermissionValidatorEP(Assertion assertion) throws InsufficientRightsException;
        void XDRPermissionValidatorED(Assertion assertion) throws InsufficientRightsException;
        void XDRPermissionValidatorConsent(Assertion assertion) throws InsufficientRightsException;
}

...