Interface ContextItemModelService
-
- All Known Implementing Classes:
DefaultContextItemModelService,DefaultModelEntityService
public interface ContextItemModelServiceA service for deriving anItemModelto be used for persistence.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ItemModelfindOrCreateItem(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 Detail
-
findOrCreateItem
ItemModel findOrCreateItem(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. 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.
-
-