public class DraftData extends Object
Constructor and 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,
PagePermissionData permissions)
A constructor taking the parameters required for saving a draft.
|
Modifier and Type | Method and Description |
---|---|
static DraftData |
create(Draft draft)
Creates a DraftData without the content filled in.
|
String |
getContent() |
String |
getDate() |
Long |
getDraftId() |
Long |
getPageId() |
int |
getPageVersion() |
PagePermissionData |
getPermissions() |
String |
getSpaceKey() |
String |
getSyncRev() |
String |
getTitle() |
String |
getType() |
void |
setDate(String date) |
void |
setPermissions(PagePermissionData permissions) |
public DraftData()
public DraftData(String title, String content, String type, String spaceKey, int pageVersion, Long pageId, Long draftId, PagePermissionData permissions)
title
- content
- type
- spaceKey
- pageVersion
- pageId
- draftId
- permissions
- public static DraftData create(Draft draft)
draft
- public String getTitle()
public String getContent()
public String getType()
public String getSpaceKey()
public int getPageVersion()
public Long getPageId()
public Long getDraftId()
public PagePermissionData getPermissions()
public void setPermissions(PagePermissionData permissions)
public String getDate()
public void setDate(String date)
public String getSyncRev()
Copyright © 2003–2017 Atlassian. All rights reserved.