class ZMSIndex(ZMSItem.ZMSItem): (source)
Constructor: ZMSIndex()
Implements interfaces: Products.zms.IZMSConfigurationProvider.IZMSConfigurationProvider
Catalog-backed index manager for ZMS content trees.
| Method | __init__ |
Initialize the singleton index object. |
| Method | catalog |
Catalog a single object after duplicate-uid checks. |
| Method | doi |
Resolve DOI-style short URLs via the catalog and redirect to the target. |
| Method | duplicate |
Detect duplicate uids and optionally regenerate them. |
| Method | get |
Return the site catalog, creating or recreating it when needed. |
| Method | get |
Return configured catalog field names. |
| Method | get |
Filter collected log lines by the requested log level. |
| Method | initialize |
Ensure the catalog exists and build its initial index entries. |
| Method | manage |
Undocumented |
| Method | manage |
Rebuild catalog entries for the requested site roots. |
| Method | manage |
Rewrite stored inline references and URL fields to current targets. |
| Method | manage |
Undocumented |
| Method | manage |
Compare catalog contents with the live content tree. |
| Method | |
Catalog a newly added object and its descendants. |
| Method | |
Refresh the catalog after an object import operation. |
| Method | |
Re-catalog a moved object tree under its new path. |
| Method | |
Remove a deleted object tree from the catalog. |
| Method | uncatalog |
Remove a single object from the catalog by its path. |
| Class Variable | catalog |
Undocumented |
| Class Variable | manage |
Undocumented |
| Class Variable | manage |
Undocumented |
| Class Variable | meta |
Undocumented |
| Class Variable | zmi |
Undocumented |
| Instance Variable | id |
Undocumented |
Catalog a single object after duplicate-uid checks.
| Parameters | |
| catalog:Products.ZCatalog.ZCatalog.ZCatalog | Active catalog. |
| node:OFS.SimpleItem.Item | Object being cataloged. |
| regenerate | Regenerate duplicate uids when possible. |
| Returns | |
| tuple | Duplicate flag and regenerate flag. |
Resolve DOI-style short URLs via the catalog and redirect to the target.
Configure the catalog to index attr_dc_identifier_doi on document nodes to enable redirects such as /doi/faq or /doi/10.1109/5.771073.
| Returns | |
| object | Redirect response payload or a not-found message. |
Detect duplicate uids and optionally regenerate them.
| Parameters | |
| catalog:Products.ZCatalog.ZCatalog.ZCatalog | Active catalog. |
| node:OFS.SimpleItem.Item | Object being cataloged. |
| regenerate | Regenerate duplicate uids when possible. |
| Returns | |
| tuple | Duplicate flag and regenerate flag. |
Return the site catalog, creating or recreating it when needed.
| Parameters | |
| recreate:bool | Drop and rebuild the catalog first. |
| Returns | |
| Products.ZCatalog.ZCatalog.ZCatalog | Catalog used by the ZMS index. |
Return configured catalog field names.
| Parameters | |
| complete:bool | Prefix names for catalog storage fields. |
| Returns | |
| list | Catalog index names. |
Filter collected log lines by the requested log level.
| Parameters | |
| log:list | Accumulated log lines. |
| request:ZPublisher.HTTPRequest | Current request or None. |
| Returns | |
| str | Joined log output. |
Rebuild catalog entries for the requested site roots.
| Parameters | |
| regenerate | Force a full rebuild for matching roots. |
| regenerate | Regenerate duplicate uids during indexing. |
| REQUEST:ZPublisher.HTTPRequest | Optional request overriding the current one. |
| Returns | |
| str | Filtered log output. |
Catalog a newly added object and its descendants.
| Parameters | |
| context:OFS.SimpleItem.Item | Added object context. |
| Returns | |
| bool | Always True after cataloging. |
Refresh the catalog after an object import operation.
| Parameters | |
| context:OFS.SimpleItem.Item | Imported object context. |
Re-catalog a moved object tree under its new path.
| Parameters | |
| context:OFS.SimpleItem.Item | Moved object context. |
Remove a deleted object tree from the catalog.
| Parameters | |
| context:OFS.SimpleItem.Item | Removed object context. |