com.atlassian.confluence.tinymceplugin.rest.entities
Class DraftData

java.lang.Object
  extended by com.atlassian.confluence.tinymceplugin.rest.entities.DraftData

public class DraftData
extends Object


Constructor Summary
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.
 
Method Summary
static DraftData create(Draft draft)
          Creates a DraftData without the content filled in.
 String getContent()
           
 Long getDraftId()
           
 Long getPageId()
           
 int getPageVersion()
           
 PagePermissionData getPermissions()
           
 String getSpaceKey()
           
 String getTitle()
           
 String getType()
           
 void setPermissions(PagePermissionData permissions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DraftData

public DraftData()

DraftData

public 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.

Parameters:
title -
content -
type -
spaceKey -
pageVersion -
pageId -

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()

getPermissions

public PagePermissionData getPermissions()

setPermissions

public void setPermissions(PagePermissionData permissions)


Copyright © 2003–2015 Atlassian. All rights reserved.