Class WriteService


  • public class WriteService
    extends java.lang.Object
    Handles the write requests of the extension's widgets
    • Constructor Detail

      • WriteService

        public WriteService()
    • 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 name
        type - 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 attributes
        objectMap - 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
      • 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