Interface SpaceInclusionsRepository

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

@Repository public interface SpaceInclusionsRepository extends org.springframework.data.jpa.repository.JpaRepository<SpaceInclusionEntity,Long>
JPA-based implementation of the space filtering DAO layer (in previous versions it was called SpaceFilteringDao)
Since:
10.0.1
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Delete all the rules from the table
    Find rule entity(ies) for the given space
    New spaces should be added to the allowlist automatically flag
    store(SpaceInclusionEntity spaceExclusionEntity)
    Saves new entity to the database

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

    count, delete, 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

    • store

      default SpaceInclusionEntity store(SpaceInclusionEntity spaceExclusionEntity)
      Saves new entity to the database
      Parameters:
      spaceExclusionEntity - entity to be saved
      Returns:
      saved entity
    • findBySpaceKey

      List<SpaceInclusionEntity> findBySpaceKey(String spaceKey)
      Find rule entity(ies) for the given space
      Parameters:
      spaceKey - space key
      Returns:
      entities
    • isNewSpacesOptedIn

      @Query("select distinct see.optInNewSpaces from SpaceInclusionEntity see") List<Boolean> isNewSpacesOptedIn()
      New spaces should be added to the allowlist automatically flag
      Returns:
      flag if the new spaces should be added to the allowlist automatically
    • deleteAll

      @Modifying @Query("delete from SpaceInclusionEntity see") void deleteAll()
      Delete all the rules from the table
      Specified by:
      deleteAll in interface org.springframework.data.repository.CrudRepository<SpaceInclusionEntity,Long>