Class DraftInfo

java.lang.Object
io.jmix.uirecoveryflowui.view.draft.DraftInfo

@NullMarked public class DraftInfo extends Object
A single draft as the drafts list view shows it: the texts of one card and the address it links to. Built from a ViewDraft by DraftInfoSupport.
  • Field Details

    • viewId

      protected final String viewId
    • viewTitle

      protected final String viewTitle
    • savedDate

      protected final String savedDate
    • entityId

      protected final @Nullable String entityId
    • recordName

      protected final @Nullable String recordName
    • url

      protected final @Nullable String url
  • Constructor Details

  • Method Details

    • getViewId

      public String getViewId()
      Returns:
      identifier of the view the draft belongs to
    • getEntityId

      public @Nullable String getEntityId()
      Returns:
      identifier of the drafted instance, or null if the draft is not tied to one
    • getViewTitle

      public String getViewTitle()
      Returns:
      localized title of the view, or its identifier if the view is not registered any more
    • getRecordName

      public @Nullable String getRecordName()
      Returns:
      instance name of the drafted record, or null if the draft is not tied to an instance that can be named
    • getSavedDate

      public String getSavedDate()
      Returns:
      the moment the draft was saved, formatted for the current user
    • getUrl

      public @Nullable String getUrl()
      Returns:
      address of the view the draft belongs to, or null if it cannot be built because the view is not registered any more