org.ow2.dragon.service
Class TransfertObjectAssemblerImpl

java.lang.Object
  extended by org.ow2.dragon.service.TransfertObjectAssemblerImpl
All Implemented Interfaces:
TransfertObjectAssembler

public class TransfertObjectAssemblerImpl
extends java.lang.Object
implements TransfertObjectAssembler

Author:
ofabre - eBM WebSourcing

Field Summary
static java.lang.String CITY_KEY
           
static java.lang.String COMPLEMENT_KEY
           
static java.lang.String COUNTRY_KEY
           
static java.lang.String STATE_KEY
           
static java.lang.String STREET_KEY
           
static java.lang.String STREET_NUMBER_KEY
           
static java.lang.String ZIPCODE_KEY
           
 
Constructor Summary
TransfertObjectAssemblerImpl()
           
 
Method Summary
 void setOrganizationUnitDAO(OrganizationUnitDAO organizationUnitDAO)
           
 void setPostDAO(PostDAO postDAO)
           
 RequestOptions toAgreementRequestOptions(RequestOptionsTO requestOptionsTO)
           
 BindingOperationTO toBindingOpTO(BindingOperation bindingOperation)
           
 BindingTO toBindingTO(Binding binding)
           
 java.util.List<KeyedRefTO> toCategoriesTO(CategoryBag categoryBag)
           
 CategoryTO toCategoryTO(Category categoryBO)
           
 java.util.List<CategoryValueTO> toCategoryValuesTO(java.util.List<CategoryValue> valuesBO)
           
 void toCommentsBO(java.util.List<CommentTO> commentsTO, java.util.List<Comment> commentsBO)
           
 java.util.List<CommentTO> toCommentsTO(java.util.List<Comment> comments)
           
 void toEndpointBO(EndpointTO endpointTO, Endpoint endpointBO)
           
 RequestOptions toEndpointRequestOptions(RequestOptionsTO requestOptionsTO)
           
 EndpointTO toEndpointTO(Endpoint endpoint, java.lang.String user)
           
 RequestOptions toExecEnvManRequestOptions(RequestOptionsTO requestOptionsTO)
           
 RequestOptions toExecEnvRequestOptions(RequestOptionsTO requestOptionsTO)
           
 RequestOptions toFederationRequestOptions(RequestOptionsTO requestOptionsTO)
           
 java.util.List<KeyedRefTO> toIdentifiersTO(java.util.List<KeyedReference> identifierBag)
           
 IdentifierTO toIdentifierTO(Identifier identifierBO)
           
 RequestOptions toLinkRequestOptions(RequestOptionsTO requestOptionsTO)
           
 void toOrganizationUnitBO(OrganizationUnitTO organizationUnitTO, OrganizationUnit organizationUnitBO)
          Create a BO copy of the given TO.
 OrganizationUnitTO toOrganizationUnitTO(OrganizationUnit organizationUnitBO)
           
 RequestOptions toPartyRequestOptions(RequestOptionsTO requestOptionsTO)
           
 void toPersonBO(PersonTO personTO, Person personBO)
          Create a BO copy of the given TO.
 RequestOptions toPersonRequestOptions(RequestOptionsTO requestOptionsTO)
           
 PersonTO toPersonTO(Person person)
           
 void toPostBO(PostTO postTO, Post postBO)
          Create a BO copy of the given TO.
 RequestOptions toPostRequestOptions(RequestOptionsTO requestOptionsTO)
           
 PostTO toPostTO(Post post)
           
 RequestOptions toProcessorRequestOptions(RequestOptionsTO requestOptionsTO)
           
 ProtocolTO toProtocolTO(Protocol protocol)
           
 ProtocolTO toProtocolTO(java.util.Set<Standard> standards)
           
 void toRatingBO(RatingTO ratingTO, Rating ratingBO)
           
 RatingTO toRatingTO(Rating rating)
           
 ServiceInterfaceTO toServiceInterfaceTO(ServiceInterface serviceInterface)
           
 RequestOptions toServiceRequestOptions(RequestOptionsTO requestOptionsTO)
           
 ServiceSpecificationTO toServiceSpecTO(ServiceSpecification serviceSpecification)
           
 SimpleFileTO toSimpleFileTO(SimpleFile simpleFile)
           
 SpecifiedOperationTO toSpecifiedOperationTO(SpecifiedOperation specifiedOperation)
           
 void toTechServiceBO(TechnicalServiceTO technicalServiceTO, TechnicalService technicalServiceBO)
          Create a BO copy of the given TO.
 TechnicalServiceTO toTechServiceTO(TechnicalService technicalService, java.lang.String user)
           
 TransportTO toTransportTO(Transport transport)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STREET_NUMBER_KEY

public static final java.lang.String STREET_NUMBER_KEY
See Also:
Constant Field Values

COMPLEMENT_KEY

public static final java.lang.String COMPLEMENT_KEY
See Also:
Constant Field Values

STREET_KEY

public static final java.lang.String STREET_KEY
See Also:
Constant Field Values

COUNTRY_KEY

public static final java.lang.String COUNTRY_KEY
See Also:
Constant Field Values

STATE_KEY

public static final java.lang.String STATE_KEY
See Also:
Constant Field Values

ZIPCODE_KEY

public static final java.lang.String ZIPCODE_KEY
See Also:
Constant Field Values

CITY_KEY

public static final java.lang.String CITY_KEY
See Also:
Constant Field Values
Constructor Detail

TransfertObjectAssemblerImpl

public TransfertObjectAssemblerImpl()
Method Detail

setOrganizationUnitDAO

public void setOrganizationUnitDAO(OrganizationUnitDAO organizationUnitDAO)

setPostDAO

public void setPostDAO(PostDAO postDAO)

toServiceSpecTO

public ServiceSpecificationTO toServiceSpecTO(ServiceSpecification serviceSpecification)
Specified by:
toServiceSpecTO in interface TransfertObjectAssembler

toBindingOpTO

public BindingOperationTO toBindingOpTO(BindingOperation bindingOperation)

toBindingTO

public BindingTO toBindingTO(Binding binding)
Specified by:
toBindingTO in interface TransfertObjectAssembler

toEndpointTO

public EndpointTO toEndpointTO(Endpoint endpoint,
                               java.lang.String user)
Specified by:
toEndpointTO in interface TransfertObjectAssembler

toOrganizationUnitBO

public void toOrganizationUnitBO(OrganizationUnitTO organizationUnitTO,
                                 OrganizationUnit organizationUnitBO)
                          throws OrganizationException
Create a BO copy of the given TO. Can be used for create or update purposes

Specified by:
toOrganizationUnitBO in interface TransfertObjectAssembler
Parameters:
organizationUnitTO - must not be null
organizationUnitBO - must not be null
Throws:
OrganizationException
java.lang.NullPointerException - if bo or to is null

toOrganizationUnitTO

public OrganizationUnitTO toOrganizationUnitTO(OrganizationUnit organizationUnitBO)
Specified by:
toOrganizationUnitTO in interface TransfertObjectAssembler

toPersonBO

public void toPersonBO(PersonTO personTO,
                       Person personBO)
                throws OrganizationException
Create a BO copy of the given TO. Can be used for create or update purposes

Specified by:
toPersonBO in interface TransfertObjectAssembler
Parameters:
personTO - must not be null
personBO - must not be null
Throws:
OrganizationException
java.lang.NullPointerException - if bo or to is null

toPersonTO

public PersonTO toPersonTO(Person person)
Specified by:
toPersonTO in interface TransfertObjectAssembler

toPostBO

public void toPostBO(PostTO postTO,
                     Post postBO)
              throws OrganizationException
Create a BO copy of the given TO. Can be used for create or update purposes

Specified by:
toPostBO in interface TransfertObjectAssembler
Parameters:
postTO - must not be null
postBO - must not be null
Throws:
java.lang.NullPointerException - if bo or to is null
OrganizationException

toPostTO

public PostTO toPostTO(Post post)
Specified by:
toPostTO in interface TransfertObjectAssembler

toProtocolTO

public ProtocolTO toProtocolTO(java.util.Set<Standard> standards)

toPartyRequestOptions

public RequestOptions toPartyRequestOptions(RequestOptionsTO requestOptionsTO)
Specified by:
toPartyRequestOptions in interface TransfertObjectAssembler

toPersonRequestOptions

public RequestOptions toPersonRequestOptions(RequestOptionsTO requestOptionsTO)
Specified by:
toPersonRequestOptions in interface TransfertObjectAssembler

toPostRequestOptions

public RequestOptions toPostRequestOptions(RequestOptionsTO requestOptionsTO)
Specified by:
toPostRequestOptions in interface TransfertObjectAssembler

toEndpointRequestOptions

public RequestOptions toEndpointRequestOptions(RequestOptionsTO requestOptionsTO)
Specified by:
toEndpointRequestOptions in interface TransfertObjectAssembler

toServiceRequestOptions

public RequestOptions toServiceRequestOptions(RequestOptionsTO requestOptionsTO)
Specified by:
toServiceRequestOptions in interface TransfertObjectAssembler

toAgreementRequestOptions

public RequestOptions toAgreementRequestOptions(RequestOptionsTO requestOptionsTO)
Specified by:
toAgreementRequestOptions in interface TransfertObjectAssembler

toExecEnvManRequestOptions

public RequestOptions toExecEnvManRequestOptions(RequestOptionsTO requestOptionsTO)
Specified by:
toExecEnvManRequestOptions in interface TransfertObjectAssembler

toExecEnvRequestOptions

public RequestOptions toExecEnvRequestOptions(RequestOptionsTO requestOptionsTO)
Specified by:
toExecEnvRequestOptions in interface TransfertObjectAssembler

toFederationRequestOptions

public RequestOptions toFederationRequestOptions(RequestOptionsTO requestOptionsTO)
Specified by:
toFederationRequestOptions in interface TransfertObjectAssembler

toProcessorRequestOptions

public RequestOptions toProcessorRequestOptions(RequestOptionsTO requestOptionsTO)
Specified by:
toProcessorRequestOptions in interface TransfertObjectAssembler

toLinkRequestOptions

public RequestOptions toLinkRequestOptions(RequestOptionsTO requestOptionsTO)
Specified by:
toLinkRequestOptions in interface TransfertObjectAssembler

toServiceInterfaceTO

public ServiceInterfaceTO toServiceInterfaceTO(ServiceInterface serviceInterface)
Specified by:
toServiceInterfaceTO in interface TransfertObjectAssembler

toSpecifiedOperationTO

public SpecifiedOperationTO toSpecifiedOperationTO(SpecifiedOperation specifiedOperation)

toTechServiceBO

public void toTechServiceBO(TechnicalServiceTO technicalServiceTO,
                            TechnicalService technicalServiceBO)
Create a BO copy of the given TO. Can be used for create or update purposes

Specified by:
toTechServiceBO in interface TransfertObjectAssembler
Parameters:
technicalServiceTO - must not be null
technicalServiceBO - must not be null
Throws:
java.lang.NullPointerException - if bo or to is null

toTechServiceTO

public TechnicalServiceTO toTechServiceTO(TechnicalService technicalService,
                                          java.lang.String user)
Specified by:
toTechServiceTO in interface TransfertObjectAssembler

toCategoriesTO

public java.util.List<KeyedRefTO> toCategoriesTO(CategoryBag categoryBag)
Specified by:
toCategoriesTO in interface TransfertObjectAssembler

toIdentifiersTO

public java.util.List<KeyedRefTO> toIdentifiersTO(java.util.List<KeyedReference> identifierBag)
Specified by:
toIdentifiersTO in interface TransfertObjectAssembler

toSimpleFileTO

public SimpleFileTO toSimpleFileTO(SimpleFile simpleFile)
Specified by:
toSimpleFileTO in interface TransfertObjectAssembler

toRatingTO

public RatingTO toRatingTO(Rating rating)
Specified by:
toRatingTO in interface TransfertObjectAssembler

toRatingBO

public void toRatingBO(RatingTO ratingTO,
                       Rating ratingBO)
Specified by:
toRatingBO in interface TransfertObjectAssembler

toCommentsTO

public java.util.List<CommentTO> toCommentsTO(java.util.List<Comment> comments)
Specified by:
toCommentsTO in interface TransfertObjectAssembler

toCommentsBO

public void toCommentsBO(java.util.List<CommentTO> commentsTO,
                         java.util.List<Comment> commentsBO)
Specified by:
toCommentsBO in interface TransfertObjectAssembler

toEndpointBO

public void toEndpointBO(EndpointTO endpointTO,
                         Endpoint endpointBO)
Specified by:
toEndpointBO in interface TransfertObjectAssembler

toIdentifierTO

public IdentifierTO toIdentifierTO(Identifier identifierBO)
Specified by:
toIdentifierTO in interface TransfertObjectAssembler

toCategoryTO

public CategoryTO toCategoryTO(Category categoryBO)
Specified by:
toCategoryTO in interface TransfertObjectAssembler

toCategoryValuesTO

public java.util.List<CategoryValueTO> toCategoryValuesTO(java.util.List<CategoryValue> valuesBO)
Specified by:
toCategoryValuesTO in interface TransfertObjectAssembler

toProtocolTO

public ProtocolTO toProtocolTO(Protocol protocol)
Specified by:
toProtocolTO in interface TransfertObjectAssembler

toTransportTO

public TransportTO toTransportTO(Transport transport)
Specified by:
toTransportTO in interface TransfertObjectAssembler


Copyright © 2008-2009 eBMWebsourcing. All Rights Reserved.