public class Draft extends AbstractContentEntity
Draft
for use in tests
This will eventually be replaced by something from the content API.
id, lastModificationDate, lastModifier, version
Constructor and Description |
---|
Draft(User owner,
ContentType type,
String title,
Space space) |
Draft(User owner,
ContentType type,
String title,
String content,
Space space) |
Draft(User owner,
Page page,
String title,
String content) |
Draft(User owner,
String type,
String title,
String content,
Page page,
Space space) |
Draft(User owner,
String type,
String title,
String content,
Space space) |
Modifier and Type | Method and Description |
---|---|
String |
getContent() |
String |
getEditUrl() |
User |
getOwner() |
Page |
getPage() |
Space |
getSpace() |
String |
getTitle() |
String |
getTypeAsString() |
boolean |
shouldConvertToContent() |
getContentId, getContentType, getContentTypeObject, getId, getIdAsString, getLastModificationDate, getLastModifier, getVersion, isMinorEdit, setContent, setId, setId, setLastModificationDate, setLastModifier, setVersion
public Draft(User owner, ContentType type, String title, Space space)
public Draft(User owner, ContentType type, String title, String content, Space space)
public Page getPage()
public User getOwner()
public String getTypeAsString()
public String getTitle()
public String getContent()
getContent
in interface ContentEntity
getContent
in class AbstractContentEntity
public Space getSpace()
public String getEditUrl()
public boolean shouldConvertToContent()
Copyright © 2003–2016 Atlassian. All rights reserved.