RESOURCE - type of resource value which the response is generated forpublic abstract class AbstractYResponseBuilder<RESOURCE,REQUEST,RESPONSE> extends AbstractResponseBuilder<RESOURCE,REQUEST,RESPONSE>
YResponseBuilderoperation| Modifier | Constructor and Description |
|---|---|
protected |
AbstractYResponseBuilder(de.hybris.platform.webservices.AbstractResponseBuilder.Operation operation) |
protected |
AbstractYResponseBuilder(AbstractYResource resource,
de.hybris.platform.webservices.AbstractResponseBuilder.Operation operation) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract RESPONSE |
createResponseEntity(RESOURCE resourceEntity,
REQUEST requestEntity) |
protected <MODEL> MODEL |
dtoToModel(java.lang.Object dto,
MODEL model)
Transforms a DTO into a model.
|
YObjectGraphContext |
getDtoToModelContext() |
DefaultNodeMapping |
getLocalNodeConfig(java.lang.Class nodeType)
Returns a
DefaultNodeMapping instance which can be freely customized and is only valid for transformations
within this resource. |
DefaultNodeMapping |
getLocalNodeConfig(java.lang.Class nodeType,
int distance)
Returns a
DefaultNodeMapping instance which can be freely customized and is only valid for transformations
within this resource. |
YObjectGraphContext |
getModelToDtoContext() |
AbstractYResource |
getResource() |
<T2> T2 |
modelToDto(java.lang.Object source) |
<T2> T2 |
modelToDto(java.lang.Object source,
int depth) |
<T2> T2 |
modelToDto(java.lang.Object source,
java.lang.Object target) |
<T2> T2 |
modelToDto(java.lang.Object source,
java.lang.Object target,
int depth)
Transforms a model into a DTO.
|
void |
setObjectGraph(YObjectGraphTransformer objectGraph) |
void |
setResource(AbstractResource resource) |
build, build, getRequestValue, getResourceValue, getRespEntity, getResponse, getServiceLocator, processException, processRequest, processRequest, setRequestValueprotected AbstractYResponseBuilder(de.hybris.platform.webservices.AbstractResponseBuilder.Operation operation)
protected AbstractYResponseBuilder(AbstractYResource resource, de.hybris.platform.webservices.AbstractResponseBuilder.Operation operation)
public void setResource(AbstractResource resource)
setResource in class AbstractResponseBuilder<RESOURCE,REQUEST,RESPONSE>public AbstractYResource getResource()
getResource in class AbstractResponseBuilder<RESOURCE,REQUEST,RESPONSE>public void setObjectGraph(YObjectGraphTransformer objectGraph)
protected abstract RESPONSE createResponseEntity(RESOURCE resourceEntity, REQUEST requestEntity) throws java.lang.Exception
createResponseEntity in class AbstractResponseBuilder<RESOURCE,REQUEST,RESPONSE>java.lang.Exceptionpublic <T2> T2 modelToDto(java.lang.Object source)
public <T2> T2 modelToDto(java.lang.Object source,
java.lang.Object target)
public <T2> T2 modelToDto(java.lang.Object source,
int depth)
public <T2> T2 modelToDto(java.lang.Object source,
java.lang.Object target,
int depth)
T2 - source - target - depth - protected <MODEL> MODEL dtoToModel(java.lang.Object dto,
MODEL model)
MODEL - type of result modeldto - the DTO which has to be transformed into a modelmodel - the target model or 'null'public YObjectGraphContext getDtoToModelContext()
public YObjectGraphContext getModelToDtoContext()
public DefaultNodeMapping getLocalNodeConfig(java.lang.Class nodeType)
DefaultNodeMapping instance which can be freely customized and is only valid for transformations
within this resource.nodeType - type of nodepublic DefaultNodeMapping getLocalNodeConfig(java.lang.Class nodeType, int distance)
DefaultNodeMapping instance which can be freely customized and is only valid for transformations
within this resource.nodeType - type of nodedistance - distance which this node is positioned (same node types can be used in different distances and with
different configurations)Copyright © 2018 SAP SE. All Rights Reserved.