# netcentric/accesscontroltool architecture

> Architecture diagram of the GitHub repository netcentric/accesscontroltool, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/netcentric/accesscontroltool
- Repository: https://github.com/netcentric/accesscontroltool

## Overview

##### Main Components Identification

a) Core Components:
- Configuration Management (YAML processing)
- ACL Installation Engine
- User/Group Management
- History/Audit System
- Web Console/UI Interface
- JMX Interface

b) Integration Points:
- AEM/Sling Repository
- OSGi Runtime Environment
- Maven Build System

##### Connection Types

- Double lines: Data flow

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Styles
    classDef ui fill:#3498db,stroke:#2980b9,color:white
    classDef core fill:#2ecc71,stroke:#27ae60,color:white
    classDef config fill:#f1c40f,stroke:#f39c12,color:black
    classDef install fill:#e67e22,stroke:#d35400,color:white
    classDef external fill:#95a5a6,stroke:#7f8c8d,color:white
    classDef history fill:#9b59b6,stroke:#8e44ad,color:white

    %% User Interface Layer
    subgraph UI
        TouchUI["Touch UI Console"]:::ui
        WebConsole["Felix Web Console Plugin"]:::ui
        JMXInterface["JMX Interface"]:::ui
    end

    %% Core Services Layer
    subgraph CoreServices
        %% Configuration Processing
        YAMLReader["YAML Config Reader"]:::config
        ConfigMerger["Configuration Merger"]:::config
        MacroProcessor["Macro Processor"]:::config
        
        %% Installation Services
        AceBeanInstaller["ACE Bean Installer"]:::install
        AuthInstaller["Authorizable Installer"]:::install
        StartupHook["Startup Hook Service"]:::install
        
        %% History Services
        InstallLogger["Installation Logger"]:::history
        HistoryService["History Service"]:::history
        
        %% Configuration Model
        ConfigModel["Configuration Model"]:::core
    end

    %% Integration Layer
    subgraph Integration
        JCRRepo["JCR Repository"]:::external
        OSGi["OSGi Runtime"]:::external
        AEMServices["AEM Services"]:::external
    end

    %% Relationships
    TouchUI --> ConfigModel
    WebConsole --> ConfigModel
    JMXInterface --> ConfigModel
    
    YAMLReader --> ConfigMerger
    ConfigMerger --> MacroProcessor
    MacroProcessor --> ConfigModel
    
    ConfigModel --> AceBeanInstaller
    ConfigModel --> AuthInstaller
    
    StartupHook --> AceBeanInstaller
    StartupHook --> AuthInstaller
    
    AceBeanInstaller --> InstallLogger
    AuthInstaller --> InstallLogger
    InstallLogger --> HistoryService
    
    AceBeanInstaller --> JCRRepo
    AuthInstaller --> JCRRepo
    HistoryService --> JCRRepo
    
    OSGi --> AEMServices
    AEMServices --> JCRRepo

    %% Click Events
    click YAMLReader "https://github.com/Netcentric/accesscontroltool/blob/develop/accesscontroltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/configreader/YamlConfigReader.java"
    click ConfigMerger "https://github.com/Netcentric/accesscontroltool/blob/develop/accesscontroltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/configreader/ConfigurationMerger.java"
    click AceBeanInstaller "https://github.com/Netcentric/accesscontroltool/blob/develop/accesscontroltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/aceinstaller/AceBeanInstaller.java"
    click AuthInstaller "https://github.com/Netcentric/accesscontroltool/blob/develop/accesscontroltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/authorizableinstaller/AuthorizableInstallerService.java"
    click HistoryService "https://github.com/Netcentric/accesscontroltool/blob/develop/accesscontroltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/history/AcHistoryService.java"
    click WebConsole "https://github.com/Netcentric/accesscontroltool/blob/develop/accesscontroltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/ui/AcToolWebconsolePlugin.java"
    click TouchUI "https://github.com/Netcentric/accesscontroltool/blob/develop/accesscontroltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/ui/AcToolTouchUiServlet.java"
    click JMXInterface "https://github.com/Netcentric/accesscontroltool/blob/develop/accesscontroltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/jmx/AceServiceMBean.java"
    click StartupHook "https://github.com/Netcentric/accesscontroltool/blob/develop/accesscontroltool-startuphook-bundle/src/main/java/biz/netcentric/cq/tools/actool/startuphook/impl/AcToolStartupHookServiceImpl.java"
    click ConfigModel "https://github.com/Netcentric/accesscontroltool/blob/develop/accesscontroltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/configmodel/AcConfiguration.java"

    %% Legend
    subgraph Legend
        UI_L["User Interface"]:::ui
        Config_L["Configuration"]:::config
        Core_L["Core Services"]:::core
        Install_L["Installation"]:::install
        History_L["History"]:::history
        External_L["External Systems"]:::external
    end
```
