Class DraftData


  • public class DraftData
    extends Object
    • Constructor Detail

      • DraftData

        public DraftData()
      • DraftData

        public DraftData​(String title,
                         String content,
                         String type,
                         String spaceKey,
                         int pageVersion,
                         Long pageId,
                         Long draftId,
                         Long parentPageId,
                         PagePermissionData permissions)
        A constructor taking the parameters required for saving a draft.
        Parameters:
        title -
        content -
        type -
        spaceKey -
        pageVersion -
        pageId -
        draftId -
        permissions -
      • DraftData

        public DraftData​(Long pageId,
                         String type)
        A constructor taking the parameters required for retrieving a previously saved draft.
        Parameters:
        pageId -
        type -
    • Method Detail

      • create

        public static DraftData create​(Draft draft)
        Creates a DraftData without the content filled in.
        Parameters:
        draft -
      • getTitle

        public String getTitle()
      • getContent

        public String getContent()
      • getType

        public String getType()
      • getSpaceKey

        public String getSpaceKey()
      • getPageVersion

        public int getPageVersion()
      • getPageId

        public Long getPageId()
      • getDraftId

        public Long getDraftId()
      • getParentPageId

        public Long getParentPageId()
      • getDate

        public String getDate()
      • setDate

        public void setDate​(String date)
      • getSyncRev

        public String getSyncRev()