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() |
ContentId |
getContentId() |
String |
getEditUrl() |
User |
getOwner() |
Page |
getPage() |
Space |
getSpace() |
String |
getTitle() |
String |
getTypeAsString() |
boolean |
shouldConvertToContent() |
getContentType, getContentTypeObject, getId, getIdAsString, getLastModificationDate, getLastModifier, getSelector, getVersion, isMinorEdit, setContent, setId, setId, setLastModificationDate, setLastModifier, setVersionpublic 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 ContentEntitygetContent in class AbstractContentEntitypublic Space getSpace()
public String getEditUrl()
public ContentId getContentId()
getContentId in interface ContentConvertiblegetContentId in class AbstractContentEntitypublic boolean shouldConvertToContent()
Copyright © 2003–2020 Atlassian. All rights reserved.