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 IntegrationObjectModelclearIntegrationObject(IntegrationObjectModel integrationObject)Clears the old definition of an integration object.IntegrationObjectModelcreateDefinitions(IntegrationObjectModel integrationObject, java.util.Map<ComposedTypeModel,java.util.List<AbstractListItemDTO>> objectMap, java.lang.String rootCode)Builds an integration object's items and their associated attributes from a map.IntegrationObjectModelcreateIntegrationObject(java.lang.String name, IntegrationType type)Creates a base integration object.voiddeleteIntegrationObject(IntegrationObjectModel integrationObject)Delete an integration object from the type systemvoidpersistIntegrationObject(IntegrationObjectModel integrationObject)Saves an integration object with the model service.voidpersistIntegrationObjectItems(java.util.Collection<IntegrationObjectItemModel> integrationObjectItemModels)Saves an integration object item with the model service.IntegrationObjectVirtualAttributeDescriptorModelpersistVirtualAttributeDescriptor(java.lang.String code, java.lang.String logicLocation, java.lang.String type)Creates, persists and returns a Virtual Attribute Descriptor.voidsetModelService(ModelService modelService)voidsetReadService(ReadService readService)
-
-
-
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
-
persistVirtualAttributeDescriptor
public IntegrationObjectVirtualAttributeDescriptorModel persistVirtualAttributeDescriptor(java.lang.String code, java.lang.String logicLocation, java.lang.String type)
Creates, persists and returns a Virtual Attribute Descriptor.- Parameters:
code- the descriptor's codelogicLocation- the logicLocation of a script. eg, model://modelScripttype- the type of Virtual Attribute Descriptor. eg, java.lang.String- Returns:
- newly created Virtual Attribute Descriptor
-
clearIntegrationObject
public IntegrationObjectModel clearIntegrationObject(IntegrationObjectModel integrationObject)
Clears the old definition of an integration object. The integration object is not deleted, this method simply removes all of its items and their associated attributes.- Parameters:
integrationObject- the integration object to be cleared- Returns:
- a cleared integration object
-
createDefinitions
public IntegrationObjectModel createDefinitions(IntegrationObjectModel integrationObject, java.util.Map<ComposedTypeModel,java.util.List<AbstractListItemDTO>> objectMap, java.lang.String rootCode)
Builds an integration object's items and their associated attributes from a map.- Parameters:
integrationObject- the integration object to buildobjectMap- the map used to build the integration object's contentrootCode- code of root item- Returns:
- a built integration object
-
persistIntegrationObject
public void persistIntegrationObject(IntegrationObjectModel integrationObject)
Saves an integration object with the model service.- Parameters:
integrationObject- the integration object to be saved
-
persistIntegrationObjectItems
public void persistIntegrationObjectItems(java.util.Collection<IntegrationObjectItemModel> integrationObjectItemModels)
Saves an integration object item with the model service.- Parameters:
integrationObjectItemModels- the integration object item to be saved
-
deleteIntegrationObject
public void deleteIntegrationObject(IntegrationObjectModel integrationObject)
Delete an integration object from the type system- Parameters:
integrationObject- the integration object to be deleted
-
-