Class DraftData
- java.lang.Object
-
- com.atlassian.confluence.tinymceplugin.rest.entities.DraftData
-
public class DraftData extends Object
-
-
Constructor Summary
Constructors Constructor Description DraftData()
DraftData(Long pageId, String type)
A constructor taking the parameters required for retrieving a previously saved draft.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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DraftData
create(Draft draft)
Creates a DraftData without the content filled in.String
getContent()
String
getDate()
Long
getDraftId()
Long
getPageId()
int
getPageVersion()
Long
getParentPageId()
PagePermissionData
getPermissions()
String
getSpaceKey()
String
getSyncRev()
String
getTitle()
String
getType()
void
setDate(String date)
void
setPermissions(PagePermissionData permissions)
-
-
-
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
-
-
-
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()
-
getPermissions
public PagePermissionData getPermissions()
-
setPermissions
public void setPermissions(PagePermissionData permissions)
-
getDate
public String getDate()
-
setDate
public void setDate(String date)
-
getSyncRev
public String getSyncRev()
-
-