Package org.nuxeo.ecm.core.model
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 Summary
Fields Modifier and Type Field Description static String
CAPABILITY_QUERY_BLOB_KEYS
Whether this repository has aecm:blobKeys
field which can be queried.static String
CAPABILITY_REPOSITORY
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default int
getActiveSessionsCount()
Deprecated.since 11.1, useRepositoryService.getActiveSessionsCount(String)
insteadObject
getCapability(String name)
Gets the value of the given capability for this repository.FulltextConfiguration
getFulltextConfiguration()
Gets the fulltext configuration for this repository.String
getName()
Session
getSession()
default boolean
hasCapability(String name)
Checks whether this repository has the given capability.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).void
shutdown()
-
-
-
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:blobKeys
field 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
-
-