s3Store.setEncrypted( Boolean.TRUE );
s3Store.setName( "s3" );
List<PropertyType> s3Props = s3Store.getProperty( );
for ( Object propName : amazonProperties.keySet( ) )
{
PropertyType prop = new PropertyType( );
prop.setName( (String) propName );
prop.setValue( amazonProperties.getProperty( (String) propName ) );
s3Props.add( prop );
}
storeList.add( s3Store );
Store jS3Store = new Store( );
jS3Store.setAdapter( "jS3" );
jS3Store.setEncrypted( Boolean.TRUE );
jS3Store.setName( "s3" );
List<PropertyType> jS3Props = jS3Store.getProperty( );
for ( Object propName : amazonProperties.keySet( ) )
{
PropertyType prop = new PropertyType( );
prop.setName( (String) propName );
prop.setValue( amazonProperties.getProperty( (String) propName ) );
jS3Props.add( prop );
}
storeList.add( jS3Store );
Store nirvanixStore = new Store( );
nirvanixStore.setAdapter( "nirvanix" );
nirvanixStore.setEncrypted( Boolean.TRUE );
nirvanixStore.setName( "nirvanix" );
List<PropertyType> nirvanixProps = nirvanixStore.getProperty( );
for ( Object propName : nirvanixProperties.keySet( ) )
{
PropertyType prop = new PropertyType( );
prop.setName( (String) propName );
prop.setValue( nirvanixProperties.getProperty( (String) propName ) );
nirvanixProps.add( prop );
}
storeList.add( nirvanixStore );
Store rackspaceStore = new Store( );
rackspaceStore.setAdapter( "rackspace" );
rackspaceStore.setEncrypted( Boolean.TRUE );
rackspaceStore.setName( "rackspace" );
List<PropertyType> rackspaceProps = rackspaceStore.getProperty( );
for ( Object propName : rackspaceProperties.keySet( ) )
{
PropertyType prop = new PropertyType( );
prop.setName( (String) propName );
prop
.setValue( rackspaceProperties
.getProperty( (String) propName ) );
rackspaceProps.add( prop );
}
storeList.add( rackspaceStore );
Store localStore = new Store( );
localStore.setAdapter( "local" );
localStore.setEncrypted( Boolean.FALSE );
localStore.setName( "local" );
List<PropertyType> localProps = localStore.getProperty( );
PropertyType localRoot = new PropertyType( );
for ( Object propName : localProperties.keySet( ) )
{
PropertyType prop = new PropertyType( );
prop.setName( (String) propName );
prop.setValue( localProperties.getProperty( (String) propName ) );
localProps.add( prop );
}
localProps.add( localRoot );
storeList.add( localStore );