🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • function convert_document_to_pdf_v1

    Converts a document version from an editable format (e.g., Word) to PDF without changing the document's status, uploading the result to FileCloud and updating the version record.

    File: /tf/active/vicechatdev/document_controller_backup.py | Lines: 1280-1436

    document-conversion pdf-generation filecloud controlled-documents document-management
  • function _get_filecloud_integration

    Factory function that creates and returns a configured FileCloudIntegration instance using credentials from application settings.

    File: /tf/active/vicechatdev/CDocs/controllers/document_controller.py | Lines: 1372-1378

    factory-pattern integration filecloud configuration dependency-injection
  • function _get_filecloud_integration_v1

    Factory function that creates and returns a configured FileCloudIntegration instance using credentials from application settings.

    File: /tf/active/vicechatdev/document_controller_backup.py | Lines: 1106-1112

    factory-pattern integration filecloud configuration dependency-injection
  • function download_document_version_v1

    Downloads a specific version of a controlled document, with optional audit trail and watermark inclusion, returning file content and metadata.

    File: /tf/active/vicechatdev/CDocs/controllers/document_controller.py | Lines: 942-1041

    document-management file-download version-control audit-trail watermark
  • function download_document_version

    Downloads a specific version of a controlled document from FileCloud storage, with optional audit trail and watermark inclusion, and logs the download event.

    File: /tf/active/vicechatdev/document_controller_backup.py | Lines: 696-792

    document-management file-download version-control audit-trail watermark
  • function search_documents_v1

    Searches for controlled documents in a Neo4j graph database based on multiple optional filter criteria including text query, document type, department, status, and owner.

    File: /tf/active/vicechatdev/CDocs/controllers/document_controller.py | Lines: 489-583

    search documents neo4j cypher database-query
  • function update_status_after_approval

    Updates a controlled document's status after an approval workflow completes, determining the next status based on the approval decision and logging the change to the audit trail.

    File: /tf/active/vicechatdev/CDocs/controllers/document_controller.py | Lines: 432-484

    document-management workflow approval status-update lifecycle
  • function get_status_after_approval

    Determines the next status for a controlled document based on an approval decision (APPROVED or REJECTED), transitioning documents through their lifecycle workflow.

    File: /tf/active/vicechatdev/CDocs/controllers/document_controller.py | Lines: 393-428

    document-management workflow approval status-transition state-machine
  • function validate_document_number

    Validates a custom document number by checking its format, length constraints, and uniqueness in the database, returning a dictionary with validation results.

    File: /tf/active/vicechatdev/CDocs/controllers/document_controller.py | Lines: 271-321

    validation document-management database-query uniqueness-check format-validation
  • function create_document_legacy

    Creates a new controlled document in a document management system with versioning, audit trails, and notifications. Generates document nodes in a graph database with relationships to users and versions.

    File: /tf/active/vicechatdev/CDocs/controllers/document_controller.py | Lines: 74-268

    document-management controlled-documents graph-database neo4j versioning
  • function get_user_pending_approvals_v1

    Retrieves a filtered list of approval cycles pending action from a specific user, ensuring the user has current approval authority for each returned item.

    File: /tf/active/vicechatdev/CDocs/controllers/approval_controller_bis.py | Lines: 1512-1553

    approval-workflow user-tasks document-management filtering authorization
  • function get_approval_v1

    A convenience wrapper function that retrieves approval cycle details by delegating to get_approval_cycle with the same parameters.

    File: /tf/active/vicechatdev/CDocs/controllers/approval_controller_bis.py | Lines: 1495-1509

    approval approval-cycle document-management workflow convenience-function
  • function get_approval_statistics

    Retrieves and calculates approval cycle statistics for a specified date range, including counts by status, average completion time, and overdue approvals.

    File: /tf/active/vicechatdev/CDocs/controllers/approval_controller_bis.py | Lines: 1403-1493

    reporting statistics approval-workflow analytics neo4j
  • function get_approval_statistics_v1

    Retrieves comprehensive approval statistics from a Neo4j graph database, including counts of total, pending, completed, approved, and rejected approval cycles and decisions, along with calculated approval rates.

    File: /tf/active/vicechatdev/CDocs/controllers/approval_controller.py | Lines: 1683-1791

    statistics analytics approval-workflow neo4j graph-database
  • function remove_approver_from_active_approval_v1

    Removes an approver from an active approval cycle with permission checks, audit logging, and notifications.

    File: /tf/active/vicechatdev/CDocs/controllers/approval_controller_bis.py | Lines: 1294-1400

    approval-workflow document-management permission-control audit-logging notification
  • function add_approver_to_active_approval_v1

    Adds a new approver to an active approval cycle with permission checks, validation, audit logging, and email notifications.

    File: /tf/active/vicechatdev/CDocs/controllers/approval_controller_bis.py | Lines: 1183-1291

    approval-workflow document-management access-control permission-check audit-logging
  • function extend_approval_deadline_v1

    Extends the deadline of an active approval cycle, validates permissions, logs the change, and notifies pending approvers of the new due date.

    File: /tf/active/vicechatdev/CDocs/controllers/approval_controller_bis.py | Lines: 1073-1180

    approval-management deadline-extension workflow permissions audit-trail
  • function cancel_approval_cycle_v1

    Cancels an active approval cycle, reverting the associated document to draft status, logging the cancellation, and notifying all pending approvers.

    File: /tf/active/vicechatdev/CDocs/controllers/approval_controller_bis.py | Lines: 946-1070

    approval-workflow document-management transaction permissions audit-trail
  • function close_approval_cycle_v1

    Administratively closes an approval cycle by setting a final decision (APPROVED or REJECTED), updating the associated document status, and notifying relevant stakeholders.

    File: /tf/active/vicechatdev/CDocs/controllers/approval_controller_bis.py | Lines: 796-943

    approval-management administrative-action document-workflow transaction-management permission-control
  • function complete_approval_v1

    Records a user's approval decision (APPROVED or REJECTED) for a document in an approval cycle, updating the approval status and document state accordingly.

    File: /tf/active/vicechatdev/CDocs/controllers/approval_controller_bis.py | Lines: 628-793

    approval-workflow document-management business-rules transaction-management audit-trail