Class WriteService
- java.lang.Object
-
- de.hybris.platform.integrationbackoffice.services.WriteService
-
public class WriteService extends java.lang.ObjectHandles the write requests of the extension's widgets
-
-
Constructor Summary
Constructors Constructor Description WriteService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IntegrationObjectItemModelbuildIntegrationObjectItem(IntegrationObjectModel ioModel, ComposedTypeModel ctm, java.lang.String rootCode)protected java.util.Set<IntegrationObjectItemAttributeModel>buildIntegrationObjectItemAttribute(java.util.List<ListItemDTO> dtos, IntegrationObjectItemModel ioItem)IntegrationObjectModelclearIntegrationObject(IntegrationObjectModel integrationObjectModel)Clears the old definition of the IntehrationObjectModel.IntegrationObjectModelcreateDefinitions(IntegrationObjectModel ioModel, java.util.Map<ComposedTypeModel,java.util.List<ListItemDTO>> objectMap, java.lang.String rootCode)Iterates through the map containing the IntegrationObjectItemDefinitionModel (as the key) and the IntegrationObjectItemAttributeDefinitionModels (the list of DTOs)IntegrationObjectModelcreateIntegrationObject(java.lang.String name, IntegrationType type)Creates a base Integration Object.voiddeleteIntegrationObject(IntegrationObjectModel integrationObject)Delete an integration object from the type systemprotected java.lang.StringdetermineAttributeCode(TypeModel attributeType)voidpersistDefinitons(IntegrationObjectModel ioModel)Saves the IntegrationObjectModel to the model servicevoidsetModelService(ModelService modelService)voidsetReadService(ReadService readService)protected IntegrationObjectModelsetReturnIntegrationObjectItem(IntegrationObjectModel integrationObject)
-
-
-
Method Detail
-
setModelService
public void setModelService(ModelService modelService)
-
setReadService
public void setReadService(ReadService readService)
-
createIntegrationObject
public IntegrationObjectModel createIntegrationObject(java.lang.String name, IntegrationType type)
Creates a base Integration Object.- Parameters:
name- the integration object's nametype- the type of integration object (Inbound, Outbound)- Returns:
- an empty integration object
-
clearIntegrationObject
public IntegrationObjectModel clearIntegrationObject(IntegrationObjectModel integrationObjectModel)
Clears the old definition of the IntehrationObjectModel. The model is not deleted, this method simply removes all of its items and their associated attributes.- Parameters:
integrationObjectModel- Model to be cleared- Returns:
- The cleared model
-
createDefinitions
public IntegrationObjectModel createDefinitions(IntegrationObjectModel ioModel, java.util.Map<ComposedTypeModel,java.util.List<ListItemDTO>> objectMap, java.lang.String rootCode)
Iterates through the map containing the IntegrationObjectItemDefinitionModel (as the key) and the IntegrationObjectItemAttributeDefinitionModels (the list of DTOs)- Parameters:
ioModel- the integration object that will contain the integration object items and integration object item attributesobjectMap- a map with integration object item codes as keys and lists of integration object item attribute DTOs as values- Returns:
- Definition of IntegrationObjkectModel to be saved.
-
persistDefinitons
public void persistDefinitons(IntegrationObjectModel ioModel)
Saves the IntegrationObjectModel to the model service- Parameters:
ioModel- Model to be saved
-
buildIntegrationObjectItem
protected IntegrationObjectItemModel buildIntegrationObjectItem(IntegrationObjectModel ioModel, ComposedTypeModel ctm, java.lang.String rootCode)
-
buildIntegrationObjectItemAttribute
protected java.util.Set<IntegrationObjectItemAttributeModel> buildIntegrationObjectItemAttribute(java.util.List<ListItemDTO> dtos, IntegrationObjectItemModel ioItem)
-
setReturnIntegrationObjectItem
protected IntegrationObjectModel setReturnIntegrationObjectItem(IntegrationObjectModel integrationObject)
-
determineAttributeCode
protected java.lang.String determineAttributeCode(TypeModel attributeType)
-
deleteIntegrationObject
public void deleteIntegrationObject(IntegrationObjectModel integrationObject)
Delete an integration object from the type system- Parameters:
integrationObject- the integration object to be deleted
-
-