public interface IFeatureUpdaterCallback
IFeatureModelUpdater
to give feedback on whether the feature update was successful or not.Modifier and Type | Method and Description |
---|---|
void |
onFailure(FeatureChange change,
ErrorInfo errorInfo)
Called by
IFeatureModelUpdater#update when a feature change could not be applied successfully. |
void |
onFeatureAdded(FeatureChange change,
Feature addedFeature)
Called by
IFeatureModelUpdater#update whenever a feature was added the model. |
void |
onFeatureRemoved(FeatureChange change)
Called by
IFeatureModelUpdater#update whenever a feature was removed. |
void |
onFeatureUpdated(FeatureChange change)
Called by
IFeatureModelUpdater#update whenever a feature was updated. |
void onFeatureAdded(@NotNull FeatureChange change, @NotNull Feature addedFeature)
IFeatureModelUpdater#update
whenever a feature was added the model.change
- the change that was used in the IFeatureModelUpdater#update
.addedFeature
- the newly added Feature
. This Feature
must have an Feature.Builder#id
.void onFeatureUpdated(@NotNull FeatureChange change)
IFeatureModelUpdater#update
whenever a feature was updated.change
- the change that was used in the IFeatureModelUpdater#update
.void onFeatureRemoved(@NotNull FeatureChange change)
IFeatureModelUpdater#update
whenever a feature was removed.change
- the change that was used in the IFeatureModelUpdater#update
.void onFailure(@NotNull FeatureChange change, @NotNull ErrorInfo errorInfo)
IFeatureModelUpdater#update
when a feature change could not be applied successfully.change
- the change that was used in the IFeatureModelUpdater#update
.errorInfo
- additional information about the failure