Version 2

    This is a note for the developers of JBoss AS who want to add new things into the Security Domain Model.

     

    Subsystem:  security

    Steps

    1. Ensure that you have taken care of the schema (security/src/main/resources/schema/jboss-security.xsd)

    In this file you define the model

     

    2. Parser is in SecuritySubsystemParser (security/src/main/java/org/jboss/as/security/SecuritySubsystemParser.java)

    Here you code the logic to parse the xml input and to write back to xml given the model

     

    3. Constants (security/src/main/java/org/jboss/as/security/Constants.java)

    Set of string constants that will be used in the model, like attribute names and elements that will be mapped in the model

     

    4. SecuritySubsystemAdd (security/src/main/java/org/jboss/as/security/SecuritySubsystemAdd.java)

    Update that adds the security subsystem. Used to start basic security services

     

    5. SecurityDomainAdd (security/src/main/java/org/jboss/as/security/SecurityDomainAdd.java) and compensating operation SecurityDomainRemove (security/src/main/java/org/jboss/as/security/SecurityDomainRemove.java)

    Update that adds a security domain definition. Compensating operation removes the security domain

     

    6. SecurityDomainOperations (security/src/main/java/org/jboss/as/security/SecurityDomainOperatoins.java)

    Set of additional security domain operations

     

    7. SecuritySubsystemDescriptions (security/src/main/java/org/jboss/as/security/SecuritySubsystemDescriptions.java)

    Descriptions os the model elements and attributes

     

    8. LocalDescriptions (security/src/main/resources/org/jboss/as/security/LocalDescriptions.properties)

    Bundle file for english descriptions

     

    9. SecurityExtension (security/src/main/java/org/jboss/as/security/SecurityExtension.java)

    The security subsytem extension where the parser is defined and where children and operations are defined