Package io.jmix.uirecoveryflowui.facet
Class DraftRestoreContext
java.lang.Object
io.jmix.uirecoveryflowui.facet.DraftRestoreContext
Context passed to a
DraftsFacet restore delegate when a draft is found for the owning view.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDraft()Returns the found draft.View<?> getView()Returns the view the draft was found for.booleanReturns true ifpreventRestore()was called.voidPrevents the facet from applying the draft, so that the view can implement custom restore logic itself.
-
Field Details
-
draft
-
view
-
restorePrevented
protected boolean restorePrevented
-
-
Constructor Details
-
DraftRestoreContext
-
-
Method Details
-
getDraft
Returns the found draft. -
getView
Returns the view the draft was found for. -
preventRestore
public void preventRestore()Prevents the facet from applying the draft, so that the view can implement custom restore logic itself. -
isRestorePrevented
public boolean isRestorePrevented()Returns true ifpreventRestore()was called.
-