Package io.jmix.restds.extension
Class RestDataStoreExtension.AfterSaveContext
java.lang.Object
io.jmix.restds.extension.RestDataStoreExtension.AfterSaveContext
- Enclosing interface:
RestDataStoreExtension
Data passed to
RestDataStoreExtension.afterSave(AfterSaveContext).-
Constructor Summary
ConstructorsConstructorDescriptionAfterSaveContext(String dataStoreName, SaveContext saveContext, Object entity, Object savedEntity, boolean newEntity, tools.jackson.databind.JsonNode savedEntityJson) -
Method Summary
Modifier and TypeMethodDescriptionReturns the root entity passed to the store for saving.Returns the entity read from the response of the remote service.tools.jackson.databind.JsonNodeReturns the JSON object returned by the remote service.booleanisNew()Returns true if the entity was created, false if it was updated.
-
Constructor Details
-
AfterSaveContext
public AfterSaveContext(String dataStoreName, SaveContext saveContext, Object entity, Object savedEntity, boolean newEntity, tools.jackson.databind.JsonNode savedEntityJson)
-
-
Method Details
-
getDataStoreName
-
getSaveContext
-
getEntity
Returns the root entity passed to the store for saving. -
getSavedEntity
Returns the entity read from the response of the remote service. The store's save operation returns this instance. SeeRestDataStoreExtension.afterSave(AfterSaveContext)for the instance that the caller ofDataManagerreceives. -
isNew
public boolean isNew()Returns true if the entity was created, false if it was updated. -
getSavedEntityJson
public tools.jackson.databind.JsonNode getSavedEntityJson()Returns the JSON object returned by the remote service. Changing it has no effect.
-