Package org.opencms.db.storage
Interface I_CmsEnumerableStorage
- All Superinterfaces:
AutoCloseable,I_CmsStorage
- All Known Implementing Classes:
CmsFsStorage,CmsS3Storage
Optional storage capability for enumerating stored content blobs.
This is intended for maintenance tooling such as orphan scans. Implementations should report only content hashes, not temporary files or backend-specific housekeeping objects.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceVisitor for content hashes. -
Method Summary
Modifier and TypeMethodDescriptionvoidVisits all content hashes stored by this backend.Methods inherited from interface org.opencms.db.storage.I_CmsStorage
close, deleteContent, getStorageIdentifier, loadContent, loadContentFrom, loadContentTo, storeContent, validateAvailable
-
Method Details
-
visitContentHashes
void visitContentHashes(CmsDbContext dbc, I_CmsEnumerableStorage.I_CmsContentHashVisitor visitor) throws Exception Visits all content hashes stored by this backend.- Parameters:
dbc- the database contextvisitor- the content hash visitor- Throws:
Exception- if enumeration fails
-