src/main/java/org/jboss/loom/migrators/security/SecurityMigrator.java
private static String createSecurityDomainScript(SecurityDomainBean securityDomain)
            throws CliScriptException {
        String errMsg = " in security-domain must be set.";
        Utils.throwIfBlank(securityDomain.getSecurityDomainName(), errMsg, "Security name");

        CliAddScriptBuilder builder = new CliAddScriptBuilder();
        StringBuilder resultScript = new StringBuilder("/subsystem=security/security-domain=");

        resultScript.append(securityDomain.getSecurityDomainName()).append(":add(");
        builder.addProperty("cache-type", securityDomain.getCacheType());

        resultScript.append(builder.formatAndClearProps()).append(")");

        return resultScript.toString();
    }
/**
     * Creates a CLI script for adding Security-Domain to AS7
     *
     * @param securityDomain object representing migrated security-domain
     * @return created string containing the CLI script for adding the Security-Domain
     * @throws CliScriptException if required attributes are missing
     */
Creates a CLI script for adding Security-Domain to AS7
@param securityDomain object representing migrated security-domain
@return created string containing the CLI script for adding the Security-Domain
@throws CliScriptException if required attributes are missing
Creates a CLI script for adding Security - Domain to AS7 @param securityDomain object representing migrated security - domain @return created string containing the CLI script for adding the Security - Domain @throws CliScriptException if required attributes are missing
private static String createSecurityDomainScript(SecurityDomainBean securityDomain)
            throws CliScriptException {
        String errMsg = " in security-domain must be set.";
        Utils.throwIfBlank(securityDomain.getSecurityDomainName(), errMsg, "Security name");
        CliAddScriptBuilder builder = new CliAddScriptBuilder();
        StringBuilder resultScript = new StringBuilder("/subsystem=security/security-domain=");
        resultScript.append(securityDomain.getSecurityDomainName()).append(":add(");
        builder.addProperty("cache-type", securityDomain.getCacheType());
        resultScript.append(builder.formatAndClearProps()).append(")");
        return resultScript.toString();
    }
private static String createSecurityDomainScript ( SecurityDomainBean securityDomain ) throws CliScriptException { String errMsg = " in security-domain must be set." ; Utils . throwIfBlank ( securityDomain . getSecurityDomainName ( ) , errMsg , "Security name" ) ; CliAddScriptBuilder builder = new CliAddScriptBuilder ( ) ; StringBuilder resultScript = new StringBuilder ( "/subsystem=security/security-domain=" ) ; resultScript . append ( securityDomain . getSecurityDomainName ( ) ) . append ( ":add(" ) ; builder . addProperty ( "cache-type" , securityDomain . getCacheType ( ) ) ; resultScript . append ( builder . formatAndClearProps ( ) ) . append ( ")" ) ; return resultScript . toString ( ) ; }
Creates a CLI script for adding Security-Domain to AS7
 @param securityDomain object representing migrated security-domain
 @return created string containing the CLI script for adding the Security-Domain
 @throws CliScriptException if required attributes are missing
Creates a CLI script for adding Security - Domain to AS7 @param securityDomain object representing migrated security - domain @return created string containing the CLI script for adding the Security - Domain @throws CliScriptException if required attributes are missing