Interface Repository

All Known Subinterfaces:
DBSRepository
All Known Implementing Classes:
DBSCachingRepository, DBSRepositoryBase, MemRepository, MongoDBRepository, RepositoryImpl

public interface Repository
Interface to manage a low-level repository.
  • Field Details

    • CAPABILITY_REPOSITORY

      static final String CAPABILITY_REPOSITORY
      Since:
      2023
      See Also:
    • CAPABILITY_QUERY_BLOB_KEYS

      static final String CAPABILITY_QUERY_BLOB_KEYS
      Whether this repository has a ecm:blobKeys field which can be queried.
      Since:
      11.5
      See Also:
  • Method Details

    • getName

      String getName()
    • getSession

      Session getSession()
    • shutdown

      void shutdown()
    • getActiveSessionsCount

      @Deprecated default int getActiveSessionsCount()
      Deprecated.
    • markReferencedBlobs

      void markReferencedBlobs(BiConsumer<String,String> markerCallback)
      Marks the blobs in use by passing them to the provided callback (taking the blob key and the repository name).
      Since:
      2021.8
    • getFulltextConfiguration

      FulltextConfiguration getFulltextConfiguration()
      Gets the fulltext configuration for this repository.
      Since:
      10.3 (already available since 8.1 for DBSRepository)
    • hasCapability

      default boolean hasCapability(String name)
      Checks whether this repository has the given capability.
      Since:
      11.5
    • getCapability

      Object getCapability(String name)
      Gets the value of the given capability for this repository.
      Since:
      11.5