org.ow2.petals.ws.adapters
Class TopologyConfigurationToTopologyInformation

java.lang.Object
  extended by org.ow2.petals.ws.adapters.TopologyConfigurationToTopologyInformation

public class TopologyConfigurationToTopologyInformation
extends java.lang.Object

Simple adapter class that probides a way to convert **remote** topology information to **local** topology configuration.

Caution : this class DOES NOT takes the elements contained within the **remote** informations to convert them to **local** configuration. You have to convert them manually.

Author:
Charles Casadei - Petals Link

Constructor Summary
TopologyConfigurationToTopologyInformation()
           
 
Method Summary
static org.ow2.petals.kernel.ws.api.to.ContainerInformation containerConfigurationToContainerInformation(ContainerConfiguration containerConfiguration)
          Adapts a ContainerConfiguration instance to a ContainerInformation one.
static org.ow2.petals.kernel.ws.api.to.DomainInformation domainConfigurationToDomainInformation(DomainConfiguration domainConfiguration)
          Adapts a DomainConfiguration instance to a DomainInformation one, without taking care of the subdomains contained within the DomainConfiguration instance.
static org.ow2.petals.kernel.ws.api.to.SubdomainInformation subDomainConfigurationToSubdomainInformation(SubDomainConfiguration subdomainConfiguration)
          Adapts a SubDomainConfiguration to a SubdomainInformation one, without taking care of the containers contained within the subdomain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopologyConfigurationToTopologyInformation

public TopologyConfigurationToTopologyInformation()
Method Detail

containerConfigurationToContainerInformation

public static org.ow2.petals.kernel.ws.api.to.ContainerInformation containerConfigurationToContainerInformation(ContainerConfiguration containerConfiguration)
                                                                                                         throws org.ow2.petals.kernel.api.server.PetalsException
Adapts a ContainerConfiguration instance to a ContainerInformation one.

Parameters:
containerConfiguration - the ContainerConfiguration instance to be adapted
Returns:
the corresponding ContainerInformation instance
Throws:
org.ow2.petals.kernel.api.server.PetalsException - if the RegistryMode is invalid

subDomainConfigurationToSubdomainInformation

public static org.ow2.petals.kernel.ws.api.to.SubdomainInformation subDomainConfigurationToSubdomainInformation(SubDomainConfiguration subdomainConfiguration)
                                                                                                         throws org.ow2.petals.kernel.api.server.PetalsException
Adapts a SubDomainConfiguration to a SubdomainInformation one, without taking care of the containers contained within the subdomain.

Parameters:
subdomainConfiguration - the SubDomainConfiguration instance to be adapted
Returns:
the corresponding adapted SubdomainInformation instance
Throws:
org.ow2.petals.kernel.api.server.PetalsException - if the SubdomainMode is invalid

domainConfigurationToDomainInformation

public static org.ow2.petals.kernel.ws.api.to.DomainInformation domainConfigurationToDomainInformation(DomainConfiguration domainConfiguration)
                                                                                                throws org.ow2.petals.kernel.api.server.PetalsException
Adapts a DomainConfiguration instance to a DomainInformation one, without taking care of the subdomains contained within the DomainConfiguration instance.

Parameters:
domainConfiguration - the DomainConfiguration instance to be adapted
Returns:
the corresponding DomainInformation instance
Throws:
org.ow2.petals.kernel.api.server.PetalsException - if the domain mode is invalid


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.