@Test public void exists() { assertTrue( "Security group should've existed", manager.exists( ipRuleSet.getName() ) ); }
@Override public boolean exists( final String name ) { Collection<String> groups = listRuleSets(); for( String g : groups ) { if ( g.equals( name ) ) { return true; } } return false; }
AmazonIpRuleManager implements IpRuleManager { @Override public boolean exists( final String name ) { Collection<String> groups = listRuleSets(); for( String g : groups ) { if ( g.equals( name ) ) { return true; } } return false; } }
AmazonIpRuleManager implements IpRuleManager { @Override public boolean exists( final String name ) { Collection<String> groups = listRuleSets(); for( String g : groups ) { if ( g.equals( name ) ) { return true; } } return false; } @Inject  AmazonIpRuleManager( AmazonFig amazonFig ); }
AmazonIpRuleManager implements IpRuleManager { @Override public boolean exists( final String name ) { Collection<String> groups = listRuleSets(); for( String g : groups ) { if ( g.equals( name ) ) { return true; } } return false; } @Inject  AmazonIpRuleManager( AmazonFig amazonFig ); @Override void setDataCenter( final String dataCenter ); @Override void applyIpRuleSet( final IpRuleSet ruleSet ); @Override IpRuleSet getIpRuleSet( final String name ); @Override boolean createRuleSet( final String name ); @Override boolean deleteRuleSet( final String name ); @Override Collection<String> listRuleSets(); @Override boolean exists( final String name ); @Override Collection<IpRule> getRules( final String name, final boolean inbound ); @Override void deleteRules( final String name, final IpRule... ipRules ); @Override void deleteRules( final String name, final Collection<IpRule> ipRules ); @Override void deleteRules( final String name, final Collection<String> ipRanges, final String protocol,
                             final int port ); @Override void addRules( final String name, final Collection<String> ipRanges, final String protocol,
                          final int port ); @Override void addRules( final String name, final Collection<String> ipRanges, final String protocol,
                          final int fromPort, final int toPort ); }
AmazonIpRuleManager implements IpRuleManager { @Override public boolean exists( final String name ) { Collection<String> groups = listRuleSets(); for( String g : groups ) { if ( g.equals( name ) ) { return true; } } return false; } @Inject  AmazonIpRuleManager( AmazonFig amazonFig ); @Override void setDataCenter( final String dataCenter ); @Override void applyIpRuleSet( final IpRuleSet ruleSet ); @Override IpRuleSet getIpRuleSet( final String name ); @Override boolean createRuleSet( final String name ); @Override boolean deleteRuleSet( final String name ); @Override Collection<String> listRuleSets(); @Override boolean exists( final String name ); @Override Collection<IpRule> getRules( final String name, final boolean inbound ); @Override void deleteRules( final String name, final IpRule... ipRules ); @Override void deleteRules( final String name, final Collection<IpRule> ipRules ); @Override void deleteRules( final String name, final Collection<String> ipRanges, final String protocol,
                             final int port ); @Override void addRules( final String name, final Collection<String> ipRanges, final String protocol,
                          final int port ); @Override void addRules( final String name, final Collection<String> ipRanges, final String protocol,
                          final int fromPort, final int toPort );  }