Class DbTreeCollector

All Implemented Interfaces:
NodeCollector, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Component public class DbTreeCollector extends AbstractNodeCollector
Collects node identifiers by querying the Alfresco database directly.

This collector uses a recursive SQL query to traverse the folder hierarchy starting from a specified root node and collects all content nodes within that tree. The collected node UUIDs are enqueued for processing.

Required configuration arguments:

  • root-node-id - UUID of the root folder node
  • db-url - JDBC connection URL to the Alfresco database
  • db-user - Database username
  • db-password - Database password
  • Constructor Details

    • DbTreeCollector

      public DbTreeCollector()
  • Method Details

    • collectNodes

      public void collectNodes(CollectorConfig config)
      Description copied from interface: NodeCollector
      Implementation specific node collection logic.
      Parameters:
      config - collector configuration
    • extractUuidsByFolder

      public void extractUuidsByFolder(String rootUuid, String dbUrl, String user, String password)