🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • function create_review_cycle

    Creates a new review cycle for a controlled document, assigning reviewers with optional sequential workflow, custom instructions, and approval requirements.

    File: /tf/active/vicechatdev/CDocs/controllers/review_controller.py | Lines: 37-213

    document-management review-workflow approval-process permission-control audit-trail
  • function cache_result

    A decorator factory that creates a caching decorator for function results with a configurable time-to-live (TTL). Currently a placeholder implementation that passes through function calls without actual caching.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py | Lines: 215-231

    decorator caching performance memoization ttl
  • function validate_input

    A decorator factory that creates a decorator to validate function input arguments against a provided schema. Currently a placeholder implementation that passes through without validation.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py | Lines: 199-213

    decorator validation input-validation schema placeholder
  • function transaction

    A decorator function that wraps another function to provide database transaction management capabilities, currently implemented as a placeholder for future transaction handling.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py | Lines: 181-197

    decorator transaction database error-handling logging
  • function async_action

    A decorator function that marks another function as asynchronous by adding an 'is_async' attribute, while preserving the original function's metadata.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py | Lines: 170-179

    decorator async metadata marker action
  • function log_controller_action

    A decorator factory that logs controller actions with different log levels based on whether the action is routine or non-routine, and handles exceptions during execution.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py | Lines: 139-168

    decorator logging controller error-handling monitoring
  • function require_permission

    A decorator function that enforces permission-based access control by checking if a user has required permissions before executing the decorated function.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py | Lines: 84-137

    decorator authorization access-control permissions security
  • class IntegrationError

    Custom exception class that signals failures in external integrations within the CDocs controller system.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py | Lines: 80-82

    exception error-handling integration external-services controller
  • class BusinessRuleError_v1

    Custom exception class that signals a violation of business rules in the application, inheriting from ControllerError.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py | Lines: 76-78

    exception error-handling business-logic validation controller
  • class ValidationError_v1

    Custom exception class that signals input validation failures in the controller layer of the CDocs application.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py | Lines: 72-74

    exception validation error-handling controller input-validation
  • class ResourceNotFoundError

    Custom exception class that signals when a requested resource cannot be found in the system.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py | Lines: 68-70

    exception error-handling resource-management not-found 404
  • class ResourceNotFoundError_v1

    A custom exception class that is raised when a requested resource cannot be found in the system.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 26-28

    exception error-handling resource-management not-found custom-exception
  • class ControllerError

    A custom exception class that serves as the base exception for all controller-related errors in the CDocs system.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py | Lines: 64-66

    exception error-handling controller base-class custom-exception
  • class PermissionError_v1

    Custom exception class raised when a user lacks the necessary permissions to perform a specific action in the CDocs system.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py | Lines: 60-62

    exception error-handling authorization permissions access-control
  • function get_documents

    Retrieves controlled documents from a Neo4j database with comprehensive filtering, permission-based access control, pagination, and full-text search capabilities.

    File: /tf/active/vicechatdev/CDocs/controllers/document_controller.py | Lines: 2875-3176

    document-management neo4j graph-database filtering pagination
  • function get_documents_v1

    Retrieves filtered and paginated documents from a Neo4j graph database with permission-based access control, supporting multiple filter criteria and search functionality.

    File: /tf/active/vicechatdev/document_controller_backup.py | Lines: 1955-2157

    document-management neo4j graph-database filtering pagination
  • function clone_document

    Clones an existing controlled document, creating a new document with optional content copying, custom properties, and FileCloud integration.

    File: /tf/active/vicechatdev/CDocs/controllers/document_controller.py | Lines: 2670-2873

    document-management cloning duplication controlled-documents filecloud
  • function get_document_edit_url_v1

    Generates a FileCloud URL to view or edit a controlled document, selecting the appropriate file format (PDF or Word) based on document status and version availability.

    File: /tf/active/vicechatdev/CDocs/controllers/document_controller.py | Lines: 2362-2497

    document-management filecloud url-generation version-control audit-logging
  • function archive_document

    Archives a controlled document by changing its status and all versions to ARCHIVED, moving the published PDF to an archived location with metadata, and logging the archival event.

    File: /tf/active/vicechatdev/CDocs/controllers/document_controller.py | Lines: 2140-2359

    document-management archival lifecycle-management controlled-documents filecloud
  • function archive_document_v1

    Archives a controlled document by changing its status to ARCHIVED, ensuring a PDF version exists and logging the action with audit trail and notifications.

    File: /tf/active/vicechatdev/document_controller_backup.py | Lines: 1442-1542

    document-management lifecycle archive controlled-documents audit-trail