Class RoleConfig

java.lang.Object
dev.dsf.common.auth.conf.RoleConfig

public class RoleConfig extends Object
  • Constructor Details

    • RoleConfig

      public RoleConfig(Object config, Function<String,DsfRole> dsfRoleFactory, Function<String,org.hl7.fhir.r4.model.Coding> practitionerRoleFactory)
      Parameters:
      config - parsed yaml
      dsfRoleFactory - factory should return null if the given string does not represent a valid role, the role needs to exists
      practitionerRoleFactory - factory should return null if the given string does not represent a valid code, the code or CodeSystem does not need to exist
  • Method Details

    • getEntries

      public List<RoleConfig.Mapping> getEntries()
    • getDsfRolesForThumbprint

      public List<DsfRole> getDsfRolesForThumbprint(String thumbprint)
    • getDsfRolesForEmail

      public List<DsfRole> getDsfRolesForEmail(String email)
    • getDsfRolesForTokenRole

      public List<DsfRole> getDsfRolesForTokenRole(String tokenRole)
    • getDsfRolesForTokenGroup

      public List<DsfRole> getDsfRolesForTokenGroup(String tokenGroup)
    • getPractitionerRolesForThumbprint

      public List<org.hl7.fhir.r4.model.Coding> getPractitionerRolesForThumbprint(String thumbprint)
    • getPractitionerRolesForEmail

      public List<org.hl7.fhir.r4.model.Coding> getPractitionerRolesForEmail(String email)
    • getPractitionerRolesForTokenRole

      public List<org.hl7.fhir.r4.model.Coding> getPractitionerRolesForTokenRole(String tokenRole)
    • getPractitionerRolesForTokenGroup

      public List<org.hl7.fhir.r4.model.Coding> getPractitionerRolesForTokenGroup(String tokenGroup)
    • toString

      public String toString()
      Overrides:
      toString in class Object