Interface ContextItemModelService
- All Known Implementing Classes:
DefaultContextItemModelService,DefaultModelEntityService
public interface ContextItemModelService
A service for deriving an
ItemModel to be used for persistence.-
Method Summary
Modifier and TypeMethodDescriptionfindOrCreateItem(PersistenceContext context) Using the context searches for anItemModelexisting in context or in the platform; if not found creates a new item model from the information available in the context.
-
Method Details
-
findOrCreateItem
Using the context searches for anItemModelexisting 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 thecontext.
-