Interface ConfigurationRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Configuration,String>, org.springframework.data.jpa.repository.JpaRepository<Configuration,String>, org.springframework.data.repository.ListCrudRepository<Configuration,String>, org.springframework.data.repository.ListPagingAndSortingRepository<Configuration,String>, org.springframework.data.repository.PagingAndSortingRepository<Configuration,String>, org.springframework.data.repository.query.QueryByExampleExecutor<Configuration>, org.springframework.data.repository.Repository<Configuration,String>

public interface ConfigurationRepository extends org.springframework.data.jpa.repository.JpaRepository<Configuration,String>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    default String
    get(String key)
     
    default String
    get(String key, String defaultValue)
     
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByKey

      @PreAuthorize("permitAll()") Optional<Configuration> findByKey(String key)
    • get

      @PreAuthorize("permitAll()") default String get(String key)
    • get

      @PreAuthorize("permitAll()") default String get(String key, String defaultValue)
    • getAvailableForViewer

      @PreAuthorize("permitAll()") @Query("from Configuration c where c.key = :key and c.availableForViewer = true") Optional<Configuration> getAvailableForViewer(@Param("key") String key)
    • deleteConfigurationByKey

      void deleteConfigurationByKey(String configKey)