Interface ContextItemModelService

    • Method Detail

      • findOrCreateItem

        ItemModel findOrCreateItem​(PersistenceContext context)
        Using the context searches for an ItemModel existing in context or in the platform; if not found creates a new item model from the information available in the context. This method should be used when creating a new item for the root or nested integration item is desired in cases when the item was not found.
        Parameters:
        context - a persistence context containing information about the item to be persisted.
        Returns:
        an item specified by PersistenceContext.getIntegrationItem(). It may be an item existing in the platform or a new item instance, if such item does not exist yet. In either case the item is already updated/populated with values provided in the context.