Package org.nuxeo.ecm.core.model
Interface Repository
- 
- All Known Subinterfaces:
 DBSRepository
- All Known Implementing Classes:
 DBSCachingRepository,DBSRepositoryBase,MemRepository,MongoDBRepository,RepositoryImpl
public interface RepositoryInterface to manage a low-level repository. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringCAPABILITY_QUERY_BLOB_KEYSWhether this repository has aecm:blobKeysfield which can be queried.static StringCAPABILITY_REPOSITORY 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default intgetActiveSessionsCount()Deprecated.since 11.1, useRepositoryService.getActiveSessionsCount(String)insteadObjectgetCapability(String name)Gets the value of the given capability for this repository.FulltextConfigurationgetFulltextConfiguration()Gets the fulltext configuration for this repository.StringgetName()SessiongetSession()default booleanhasCapability(String name)Checks whether this repository has the given capability.voidmarkReferencedBlobs(BiConsumer<String,String> markerCallback)Marks the blobs in use by passing them to the provided callback (taking the blob key and the repository name).voidshutdown() 
 - 
 
- 
- 
Field Detail
- 
CAPABILITY_REPOSITORY
static final String CAPABILITY_REPOSITORY
- Since:
 - 2023
 - See Also:
 - Constant Field Values
 
 
- 
CAPABILITY_QUERY_BLOB_KEYS
static final String CAPABILITY_QUERY_BLOB_KEYS
Whether this repository has aecm:blobKeysfield which can be queried.- Since:
 - 11.5
 - See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getName
String getName()
 
- 
getSession
Session getSession()
 
- 
shutdown
void shutdown()
 
- 
getActiveSessionsCount
@Deprecated default int getActiveSessionsCount()
Deprecated.since 11.1, useRepositoryService.getActiveSessionsCount(String)instead 
- 
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
 
 
 - 
 
 -