org.dasein.cloud.google.network
Class FirewallSupport

java.lang.Object
  extended by org.dasein.cloud.network.AbstractFirewallSupport
      extended by org.dasein.cloud.google.network.FirewallSupport
All Implemented Interfaces:
org.dasein.cloud.AccessControlledService, org.dasein.cloud.network.FirewallSupport

public class FirewallSupport
extends org.dasein.cloud.network.AbstractFirewallSupport

Implements the firewall services supported in the Google API.

Since:
2014.03
Version:
2014.05 refactor
Author:
Drew Lyall

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 create(org.dasein.cloud.network.FirewallCreateOptions options)
           
 void delete(String s)
           
 Map<org.dasein.cloud.network.FirewallConstraints.Constraint,Object> getActiveConstraintsForFirewall(String firewallId)
           
 GCEFirewallCapabilities getCapabilities()
           
 org.dasein.cloud.network.Firewall getFirewall(String firewallId)
           
 String getProviderTermForFirewall(Locale locale)
          Deprecated. 
 Collection<org.dasein.cloud.network.FirewallRule> getRules(String firewallId)
           
 boolean isSubscribed()
           
 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. 
 void revoke(String providerFirewallRuleId)
           
 void revoke(String firewallId, org.dasein.cloud.network.Direction direction, org.dasein.cloud.network.Permission permission, String source, org.dasein.cloud.network.Protocol protocol, int beginPort, int endPort)
           
 void revoke(String firewallId, org.dasein.cloud.network.Direction direction, org.dasein.cloud.network.Permission permission, String source, org.dasein.cloud.network.Protocol protocol, org.dasein.cloud.network.RuleTarget target, int beginPort, int endPort)
           
 void revoke(String firewallId, org.dasein.cloud.network.Direction direction, String source, org.dasein.cloud.network.Protocol protocol, int beginPort, int endPort)
           
 void revoke(String firewallId, String source, org.dasein.cloud.network.Protocol protocol, int beginPort, int endPort)
           
 
Methods inherited from class org.dasein.cloud.network.AbstractFirewallSupport
authorize, authorize, authorize, authorize, authorize, create, createInVLAN, getContext, getFirewallConstraintsForCloud, getProvider, identifyPrecedenceRequirement, isZeroPrecedenceHighest, mapServiceAction, removeTags, removeTags, requiresRulesOnCreation, supportsFirewallCreation, supportsFirewallDeletion, supportsFirewallSources, supportsRules, updateTags, updateTags
 
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,
                                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

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

getCapabilities

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

delete

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

getFirewall

public org.dasein.cloud.network.Firewall getFirewall(@Nonnull
                                                     String firewallId)
                                              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

getRules

@Nonnull
public Collection<org.dasein.cloud.network.FirewallRule> getRules(@Nonnull
                                                                          String firewallId)
                                                           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

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
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

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
                   String source,
                   @Nonnull
                   org.dasein.cloud.network.Protocol protocol,
                   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

revoke

public void revoke(@Nonnull
                   String firewallId,
                   @Nonnull
                   org.dasein.cloud.network.Direction direction,
                   @Nonnull
                   String source,
                   @Nonnull
                   org.dasein.cloud.network.Protocol protocol,
                   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

revoke

public void revoke(@Nonnull
                   String firewallId,
                   @Nonnull
                   org.dasein.cloud.network.Direction direction,
                   @Nonnull
                   org.dasein.cloud.network.Permission permission,
                   @Nonnull
                   String source,
                   @Nonnull
                   org.dasein.cloud.network.Protocol protocol,
                   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

revoke

public void revoke(@Nonnull
                   String firewallId,
                   @Nonnull
                   org.dasein.cloud.network.Direction direction,
                   @Nonnull
                   org.dasein.cloud.network.Permission permission,
                   @Nonnull
                   String source,
                   @Nonnull
                   org.dasein.cloud.network.Protocol protocol,
                   @Nonnull
                   org.dasein.cloud.network.RuleTarget target,
                   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

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

getProviderTermForFirewall

@Deprecated
@Nonnull
public String getProviderTermForFirewall(@Nonnull
                                                            Locale locale)
Deprecated. 



Copyright © 2014 Dell, Inc. All Rights Reserved.