Class ReadAccessDaoJdbc

java.lang.Object
dev.dsf.fhir.dao.jdbc.ReadAccessDaoJdbc
All Implemented Interfaces:
ReadAccessDao, org.springframework.beans.factory.InitializingBean

public class ReadAccessDaoJdbc extends Object implements ReadAccessDao, org.springframework.beans.factory.InitializingBean
  • Constructor Details

    • ReadAccessDaoJdbc

      public ReadAccessDaoJdbc(DataSource dataSource)
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getAccessTypes

      public List<String> getAccessTypes(Connection connection, UUID resourceId, long version, boolean localIdentity, UUID organizationId) throws SQLException
      Specified by:
      getAccessTypes in interface ReadAccessDao
      Parameters:
      connection - not null
      resourceId - not null
      version - > 0
      localIdentity - true if query for local identity
      organizationId - not null
      Returns:
      Distinct list of access types found for the given parameters, empty list means no read access
      Throws:
      SQLException - if database access errors occur