src/main/java/org/jboss/loom/migrators/security/SecurityMigrator.java
public SecurityDomainBean migrateAppPolicy(ApplicationPolicyBean appPolicy, MigrationContext ctx,
                                               SecurityMigResource resource) throws MigrationException{
        Set<LoginModuleAS7Bean> loginModules = new HashSet();
        SecurityDomainBean securityDomain = new SecurityDomainBean();

        securityDomain.setSecurityDomainName(appPolicy.getApplicationPolicyName());
        securityDomain.setCacheType("default");
        if (appPolicy.getLoginModules() != null) {
            for (LoginModuleAS5Bean lmAS5 : appPolicy.getLoginModules()) {
                loginModules.add( createLoginModule( lmAS5, resource, ctx ) );
            }
        }

        securityDomain.setLoginModules(loginModules);

        return securityDomain;
    }
/**
     * Migrates application-policy from AS5 to AS7
     *
     * @param appPolicy object representing application-policy
     * @param ctx       migration context
     * @return created security-domain
     */
Migrates application-policy from AS5 to AS7
@param appPolicy object representing application-policy
@param ctx       migration context
@return created security-domain
Migrates application - policy from AS5 to AS7 @param appPolicy object representing application - policy @param ctx migration context @return created security - domain
public SecurityDomainBean migrateAppPolicy(ApplicationPolicyBean appPolicy, MigrationContext ctx,
                                               SecurityMigResource resource) throws MigrationException{
        Set<LoginModuleAS7Bean> loginModules = new HashSet();
        SecurityDomainBean securityDomain = new SecurityDomainBean();
        securityDomain.setSecurityDomainName(appPolicy.getApplicationPolicyName());
        securityDomain.setCacheType("default");
        if (appPolicy.getLoginModules() != null) {
            for (LoginModuleAS5Bean lmAS5 : appPolicy.getLoginModules()) {
                loginModules.add( createLoginModule( lmAS5, resource, ctx ) );
            }
        }
        securityDomain.setLoginModules(loginModules);
        return securityDomain;
    }
public SecurityDomainBean migrateAppPolicy ( ApplicationPolicyBean appPolicy , MigrationContext ctx , SecurityMigResource resource ) throws MigrationException { Set < LoginModuleAS7Bean > loginModules = new HashSet ( ) ; SecurityDomainBean securityDomain = new SecurityDomainBean ( ) ; securityDomain . setSecurityDomainName ( appPolicy . getApplicationPolicyName ( ) ) ; securityDomain . setCacheType ( "default" ) ; if ( appPolicy . getLoginModules ( ) != null ) { for ( LoginModuleAS5Bean lmAS5 : appPolicy . getLoginModules ( ) ) { loginModules . add ( createLoginModule ( lmAS5 , resource , ctx ) ) ; } } securityDomain . setLoginModules ( loginModules ) ; return securityDomain ; }
Migrates application-policy from AS5 to AS7
 @param appPolicy object representing application-policy
 @param ctx       migration context
 @return created security-domain
Migrates application - policy from AS5 to AS7 @param appPolicy object representing application - policy @param ctx migration context @return created security - domain