com.atlassian.confluence.tinymceplugin.rest.entities
Class DraftData
java.lang.Object
com.atlassian.confluence.tinymceplugin.rest.entities.DraftData
public class DraftData
- extends java.lang.Object
Constructor Summary |
DraftData()
|
DraftData(java.lang.Long pageId,
java.lang.String type)
A constructor taking the parameters required for retrieving a previously saved draft. |
DraftData(java.lang.String title,
java.lang.String content,
java.lang.String type,
java.lang.String spaceKey,
int pageVersion,
java.lang.Long pageId,
java.lang.Long draftId,
PagePermissionData permissions)
A constructor taking the parameters required for saving a draft. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DraftData
public DraftData()
DraftData
public DraftData(java.lang.String title,
java.lang.String content,
java.lang.String type,
java.lang.String spaceKey,
int pageVersion,
java.lang.Long pageId,
java.lang.Long draftId,
PagePermissionData permissions)
- A constructor taking the parameters required for saving a draft.
- Parameters:
title
- content
- type
- spaceKey
- pageVersion
- pageId
-
DraftData
public DraftData(java.lang.Long pageId,
java.lang.String type)
- A constructor taking the parameters required for retrieving a previously saved draft.
- Parameters:
pageId
- type
-
create
public static DraftData create(Draft draft)
- Creates a DraftData without the content filled in.
- Parameters:
draft
-
getTitle
public java.lang.String getTitle()
getContent
public java.lang.String getContent()
getType
public java.lang.String getType()
getSpaceKey
public java.lang.String getSpaceKey()
getPageVersion
public int getPageVersion()
getPageId
public java.lang.Long getPageId()
getDraftId
public java.lang.Long getDraftId()
getPermissions
public PagePermissionData getPermissions()
setPermissions
public void setPermissions(PagePermissionData permissions)
Copyright © 2003-2014 Atlassian. All Rights Reserved.