org.dasein.cloud.aws.network
Class SecurityGroup

java.lang.Object
  extended by org.dasein.cloud.network.AbstractFirewallSupport
      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


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)
           
 org.dasein.cloud.Requirement identifyPrecedenceRequirement(boolean inVlan)
           
 boolean isSubscribed()
           
 boolean isZeroPrecedenceHighest()
           
 Collection<org.dasein.cloud.network.Firewall> list()
           
 Iterable<org.dasein.cloud.ResourceStatus> listFirewallStatus()
           
 Iterable<org.dasein.cloud.network.RuleTargetType> listSupportedDestinationTypes(boolean inVlan)
          Deprecated. 
 Iterable<org.dasein.cloud.network.Direction> listSupportedDirections(boolean inVlan)
          Deprecated. 
 Iterable<org.dasein.cloud.network.Permission> listSupportedPermissions(boolean inVlan)
          Deprecated. 
 Iterable<org.dasein.cloud.network.RuleTargetType> listSupportedSourceTypes(boolean inVlan)
          Deprecated. 
 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 supportsFirewallCreation(boolean inVlan)
           
 boolean supportsFirewallSources()
           
 boolean supportsRules(org.dasein.cloud.network.Direction direction, org.dasein.cloud.network.Permission permission, boolean inVlan)
           
 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, requiresRulesOnCreation, revoke, revoke, revoke, supportsFirewallDeletion
 
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
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
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
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
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
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
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
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

identifyPrecedenceRequirement

@Nonnull
public org.dasein.cloud.Requirement identifyPrecedenceRequirement(boolean inVlan)
                                                           throws org.dasein.cloud.InternalException,
                                                                  org.dasein.cloud.CloudException
Specified by:
identifyPrecedenceRequirement in interface org.dasein.cloud.network.FirewallSupport
Overrides:
identifyPrecedenceRequirement in class org.dasein.cloud.network.AbstractFirewallSupport
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

isZeroPrecedenceHighest

public boolean isZeroPrecedenceHighest()
                                throws org.dasein.cloud.InternalException,
                                       org.dasein.cloud.CloudException
Specified by:
isZeroPrecedenceHighest in interface org.dasein.cloud.network.FirewallSupport
Overrides:
isZeroPrecedenceHighest in class org.dasein.cloud.network.AbstractFirewallSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

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
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listSupportedDestinationTypes

@Deprecated
@Nonnull
public Iterable<org.dasein.cloud.network.RuleTargetType> listSupportedDestinationTypes(boolean inVlan)
                                                                                throws org.dasein.cloud.InternalException,
                                                                                       org.dasein.cloud.CloudException
Deprecated. 

Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listSupportedDirections

@Deprecated
@Nonnull
public Iterable<org.dasein.cloud.network.Direction> listSupportedDirections(boolean inVlan)
                                                                     throws org.dasein.cloud.InternalException,
                                                                            org.dasein.cloud.CloudException
Deprecated. 

Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listSupportedPermissions

@Deprecated
@Nonnull
public Iterable<org.dasein.cloud.network.Permission> listSupportedPermissions(boolean inVlan)
                                                                       throws org.dasein.cloud.InternalException,
                                                                              org.dasein.cloud.CloudException
Deprecated. 

Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listSupportedSourceTypes

@Deprecated
@Nonnull
public Iterable<org.dasein.cloud.network.RuleTargetType> listSupportedSourceTypes(boolean inVlan)
                                                                           throws org.dasein.cloud.InternalException,
                                                                                  org.dasein.cloud.CloudException
Deprecated. 

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

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
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
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
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
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
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
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

supportsFirewallCreation

public boolean supportsFirewallCreation(boolean inVlan)
                                 throws org.dasein.cloud.CloudException,
                                        org.dasein.cloud.InternalException
Specified by:
supportsFirewallCreation in interface org.dasein.cloud.network.FirewallSupport
Overrides:
supportsFirewallCreation in class org.dasein.cloud.network.AbstractFirewallSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

supportsFirewallSources

public boolean supportsFirewallSources()
                                throws org.dasein.cloud.CloudException,
                                       org.dasein.cloud.InternalException
Specified by:
supportsFirewallSources in interface org.dasein.cloud.network.FirewallSupport
Overrides:
supportsFirewallSources in class org.dasein.cloud.network.AbstractFirewallSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

supportsRules

public boolean supportsRules(@Nonnull
                             org.dasein.cloud.network.Direction direction,
                             @Nonnull
                             org.dasein.cloud.network.Permission permission,
                             boolean inVlan)
                      throws org.dasein.cloud.CloudException,
                             org.dasein.cloud.InternalException
Specified by:
supportsRules in interface org.dasein.cloud.network.FirewallSupport
Overrides:
supportsRules in class org.dasein.cloud.network.AbstractFirewallSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException


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