org.dasein.cloud.aws.network
Class SecurityGroup

java.lang.Object
  extended by org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>
      extended by org.dasein.cloud.aws.network.SecurityGroup
All Implemented Interfaces:
org.dasein.cloud.AccessControlledService, org.dasein.cloud.network.FirewallSupport

public class SecurityGroup
extends org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>


Field Summary
 
Fields inherited from interface org.dasein.cloud.network.FirewallSupport
ANY, AUTHORIZE, CREATE_FIREWALL, GET_FIREWALL, LIST_FIREWALL, REMOVE_FIREWALL, REVOKE
 
Method Summary
 String authorize(String firewallId, org.dasein.cloud.network.Direction direction, org.dasein.cloud.network.Permission permission, org.dasein.cloud.network.RuleTarget sourceEndpoint, org.dasein.cloud.network.Protocol protocol, org.dasein.cloud.network.RuleTarget destinationEndpoint, int beginPort, int endPort, int precedence)
           
 String authorize(String firewallId, org.dasein.cloud.network.FirewallRuleCreateOptions options)
           
 String create(org.dasein.cloud.network.FirewallCreateOptions options)
           
 void delete(String securityGroupId)
           
 Map<org.dasein.cloud.network.FirewallConstraints.Constraint,Object> getActiveConstraintsForFirewall(String firewallId)
           
 org.dasein.cloud.network.FirewallCapabilities getCapabilities()
           
 org.dasein.cloud.network.Firewall getFirewall(String securityGroupId)
           
 org.dasein.cloud.network.FirewallConstraints getFirewallConstraintsForCloud()
           
 String getProviderTermForFirewall(Locale locale)
           
 Collection<org.dasein.cloud.network.FirewallRule> getRules(String securityGroupId)
           
 boolean isSubscribed()
           
 Collection<org.dasein.cloud.network.Firewall> list()
           
 Iterable<org.dasein.cloud.ResourceStatus> listFirewallStatus()
           
 String[] mapServiceAction(org.dasein.cloud.identity.ServiceAction action)
           
 void removeTags(String[] firewallIds, org.dasein.cloud.Tag... tags)
           
 void removeTags(String firewallId, org.dasein.cloud.Tag... tags)
           
 void revoke(String providerFirewallRuleId)
           
 void revoke(String firewallId, org.dasein.cloud.network.Direction direction, org.dasein.cloud.network.Permission permission, String cidr, org.dasein.cloud.network.Protocol protocol, org.dasein.cloud.network.RuleTarget destination, int beginPort, int endPort)
           
 boolean supportsFirewallSources()
          Deprecated. 
 void updateTags(String[] firewallIds, org.dasein.cloud.Tag... tags)
           
 void updateTags(String firewallId, org.dasein.cloud.Tag... tags)
           
 
Methods inherited from class org.dasein.cloud.network.AbstractFirewallSupport
authorize, authorize, authorize, authorize, create, createInVLAN, getContext, getProvider, identifyPrecedenceRequirement, isZeroPrecedenceHighest, listSupportedDestinationTypes, listSupportedDirections, listSupportedPermissions, listSupportedSourceTypes, requiresRulesOnCreation, revoke, revoke, revoke, setTags, setTags, supportsFirewallCreation, supportsFirewallDeletion, supportsRules
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

authorize

@Nonnull
public String authorize(@Nonnull
                                String firewallId,
                                @Nonnull
                                org.dasein.cloud.network.Direction direction,
                                @Nonnull
                                org.dasein.cloud.network.Permission permission,
                                @Nonnull
                                org.dasein.cloud.network.RuleTarget sourceEndpoint,
                                @Nonnull
                                org.dasein.cloud.network.Protocol protocol,
                                @Nonnull
                                org.dasein.cloud.network.RuleTarget destinationEndpoint,
                                int beginPort,
                                int endPort,
                                @Nonnegative
                                int precedence)
                 throws org.dasein.cloud.CloudException,
                        org.dasein.cloud.InternalException
Specified by:
authorize in interface org.dasein.cloud.network.FirewallSupport
Overrides:
authorize in class org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

authorize

@Nonnull
public String authorize(@Nonnull
                                String firewallId,
                                @Nonnull
                                org.dasein.cloud.network.FirewallRuleCreateOptions options)
                 throws org.dasein.cloud.CloudException,
                        org.dasein.cloud.InternalException
Specified by:
authorize in interface org.dasein.cloud.network.FirewallSupport
Overrides:
authorize in class org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

create

@Nonnull
public String create(@Nonnull
                             org.dasein.cloud.network.FirewallCreateOptions options)
              throws org.dasein.cloud.InternalException,
                     org.dasein.cloud.CloudException
Specified by:
create in interface org.dasein.cloud.network.FirewallSupport
Overrides:
create in class org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

delete

public void delete(@Nonnull
                   String securityGroupId)
            throws org.dasein.cloud.InternalException,
                   org.dasein.cloud.CloudException
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getActiveConstraintsForFirewall

@Nonnull
public Map<org.dasein.cloud.network.FirewallConstraints.Constraint,Object> getActiveConstraintsForFirewall(@Nonnull
                                                                                                                   String firewallId)
                                                                                                    throws org.dasein.cloud.CloudException,
                                                                                                           org.dasein.cloud.InternalException
Specified by:
getActiveConstraintsForFirewall in interface org.dasein.cloud.network.FirewallSupport
Overrides:
getActiveConstraintsForFirewall in class org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getCapabilities

@Nonnull
public org.dasein.cloud.network.FirewallCapabilities getCapabilities()
                                                              throws org.dasein.cloud.CloudException,
                                                                     org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getFirewall

@Nullable
public org.dasein.cloud.network.Firewall getFirewall(@Nonnull
                                                              String securityGroupId)
                                              throws org.dasein.cloud.InternalException,
                                                     org.dasein.cloud.CloudException
Specified by:
getFirewall in interface org.dasein.cloud.network.FirewallSupport
Overrides:
getFirewall in class org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getFirewallConstraintsForCloud

@Nonnull
public org.dasein.cloud.network.FirewallConstraints getFirewallConstraintsForCloud()
                                                                            throws org.dasein.cloud.CloudException,
                                                                                   org.dasein.cloud.InternalException
Specified by:
getFirewallConstraintsForCloud in interface org.dasein.cloud.network.FirewallSupport
Overrides:
getFirewallConstraintsForCloud in class org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getProviderTermForFirewall

@Nonnull
public String getProviderTermForFirewall(@Nonnull
                                                 Locale locale)

getRules

@Nonnull
public Collection<org.dasein.cloud.network.FirewallRule> getRules(@Nonnull
                                                                          String securityGroupId)
                                                           throws org.dasein.cloud.InternalException,
                                                                  org.dasein.cloud.CloudException
Specified by:
getRules in interface org.dasein.cloud.network.FirewallSupport
Overrides:
getRules in class org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

isSubscribed

public boolean isSubscribed()
                     throws org.dasein.cloud.CloudException,
                            org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

list

@Nonnull
public Collection<org.dasein.cloud.network.Firewall> list()
                                                   throws org.dasein.cloud.InternalException,
                                                          org.dasein.cloud.CloudException
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listFirewallStatus

@Nonnull
public Iterable<org.dasein.cloud.ResourceStatus> listFirewallStatus()
                                                             throws org.dasein.cloud.InternalException,
                                                                    org.dasein.cloud.CloudException
Specified by:
listFirewallStatus in interface org.dasein.cloud.network.FirewallSupport
Overrides:
listFirewallStatus in class org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

mapServiceAction

@Nonnull
public String[] mapServiceAction(@Nonnull
                                         org.dasein.cloud.identity.ServiceAction action)
Specified by:
mapServiceAction in interface org.dasein.cloud.AccessControlledService
Overrides:
mapServiceAction in class org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>

removeTags

public void removeTags(@Nonnull
                       String firewallId,
                       @Nonnull
                       org.dasein.cloud.Tag... tags)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
removeTags in interface org.dasein.cloud.network.FirewallSupport
Overrides:
removeTags in class org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeTags

public void removeTags(@Nonnull
                       String[] firewallIds,
                       @Nonnull
                       org.dasein.cloud.Tag... tags)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
removeTags in interface org.dasein.cloud.network.FirewallSupport
Overrides:
removeTags in class org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

updateTags

public void updateTags(@Nonnull
                       String firewallId,
                       @Nonnull
                       org.dasein.cloud.Tag... tags)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
updateTags in interface org.dasein.cloud.network.FirewallSupport
Overrides:
updateTags in class org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

updateTags

public void updateTags(@Nonnull
                       String[] firewallIds,
                       @Nonnull
                       org.dasein.cloud.Tag... tags)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
updateTags in interface org.dasein.cloud.network.FirewallSupport
Overrides:
updateTags in class org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

revoke

public void revoke(@Nonnull
                   String providerFirewallRuleId)
            throws org.dasein.cloud.InternalException,
                   org.dasein.cloud.CloudException
Specified by:
revoke in interface org.dasein.cloud.network.FirewallSupport
Overrides:
revoke in class org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

revoke

public void revoke(@Nonnull
                   String firewallId,
                   @Nonnull
                   org.dasein.cloud.network.Direction direction,
                   @Nonnull
                   org.dasein.cloud.network.Permission permission,
                   @Nonnull
                   String cidr,
                   @Nonnull
                   org.dasein.cloud.network.Protocol protocol,
                   @Nonnull
                   org.dasein.cloud.network.RuleTarget destination,
                   int beginPort,
                   int endPort)
            throws org.dasein.cloud.CloudException,
                   org.dasein.cloud.InternalException
Specified by:
revoke in interface org.dasein.cloud.network.FirewallSupport
Overrides:
revoke in class org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

supportsFirewallSources

@Deprecated
public boolean supportsFirewallSources()
                                throws org.dasein.cloud.CloudException,
                                       org.dasein.cloud.InternalException
Deprecated. 

This method exists in AbstractFirewallSupport, which returns false, so we can't really replace for compatibility's sake.

Specified by:
supportsFirewallSources in interface org.dasein.cloud.network.FirewallSupport
Overrides:
supportsFirewallSources in class org.dasein.cloud.network.AbstractFirewallSupport<AWSCloud>
Returns:
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException


Copyright © 2009-2014 Dell, Inc.. All Rights Reserved.