🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • function delete_user

    Safely deactivates a user account by setting an 'active' flag to false rather than permanently deleting the user record from the database.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 782-813

    user-management database neo4j deactivation soft-delete
  • function delete_user_v1

    Deletes a user from the database by removing their user node using the provided user_id.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 356-365

    user-management database deletion CRUD error-handling
  • function update_user_v1

    Updates user information in a Neo4j graph database, including username, full name, email, department, and active status, with automatic audit logging.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 728-780

    user-management database-update neo4j graph-database audit-logging
  • function get_user_by_id

    Retrieves user data from a Neo4j graph database by user ID, including associated roles and formatted name fields.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 690-726

    database neo4j user-management graph-database query
  • function get_audit_trail

    Retrieves audit trail events from a Neo4j database with optional filtering by date range, action type, and user, returning a list of audit event dictionaries.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 629-688

    audit logging admin database neo4j
  • function get_system_configuration

    Retrieves system configuration settings from environment variables for display in an admin panel, including database connections, authentication settings, and operational parameters.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 607-627

    configuration environment-variables admin system-settings neo4j
  • function get_all_documents

    Retrieves all controlled documents from a Neo4j graph database with their associated owner information, formatted for administrative management interfaces.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 574-605

    database neo4j document-management admin query
  • function get_user_activity

    Retrieves user activity logs from a Neo4j graph database by querying AuditEvent nodes with flexible filtering options for date ranges, users, and action types.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 477-569

    audit-trail activity-logs neo4j graph-database cypher-query
  • function get_system_settings

    Retrieves system-wide configuration settings from a Neo4j database, returning default values if settings are not found or an error occurs.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 432-475

    configuration settings neo4j database system-config
  • function get_document_types

    Retrieves document type configurations from application settings, optionally filtering by a specific type code, and returns them as a list of dictionaries with detailed metadata.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 393-429

    document-management configuration metadata settings document-types
  • function get_departments

    Retrieves all departments from application settings and formats them as a list of dictionaries with standardized department information including id, code, name, description, and active status.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 368-390

    departments settings configuration data-retrieval error-handling
  • function update_user

    Updates an existing user's information in a Neo4j database, including profile fields, password, and role assignments.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 275-354

    user-management database-update neo4j authentication role-management
  • function create_user

    Creates a new user in the system with validation, password hashing, and role assignment, including CDocs user extension setup.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 209-273

    user-management authentication database validation password-hashing
  • function get_users

    Retrieves user information from a Neo4j graph database for display in an admin panel, with optional filtering by user ID.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 168-207

    database neo4j user-management admin query
  • function get_document_stats

    Retrieves aggregated statistics about controlled documents from a Neo4j database, including status and type distributions for visualization in charts.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 130-165

    statistics analytics neo4j graph-database document-management
  • function get_system_stats

    Retrieves comprehensive system statistics from a Neo4j graph database for display on an admin dashboard, including user counts, document counts, review cycles, and approval metrics.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 46-128

    admin dashboard statistics metrics neo4j
  • class BusinessRuleError

    Custom exception class that signals when a business rule has been violated in the CDocs document management system.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 38-40

    exception error-handling business-logic validation domain-exception
  • class PermissionError

    Custom exception class that signals when a user attempts an action they lack permission to perform.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 34-36

    exception error-handling authorization permissions access-control
  • class ValidationError

    A custom exception class that is raised when input validation fails in the CDocs document management system.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py | Lines: 30-32

    exception validation error-handling custom-exception input-validation
  • class SessionManager

    A session management class for Panel applications that provides user authentication and arbitrary key-value storage using Panel's built-in state management system.

    File: /tf/active/vicechatdev/CDocs/auth/session_manager.py | Lines: 13-108

    session-management authentication state-management panel web-application