Package com.atlassian.confluence.it
Class Draft
- java.lang.Object
-
- com.atlassian.confluence.it.AbstractContentEntity
-
- com.atlassian.confluence.it.Draft
-
- All Implemented Interfaces:
ContentEntity
,VersionedContent
,ContentConvertible
public class Draft extends AbstractContentEntity
Representation of aDraft
for use in testsThis will eventually be replaced by something from the content API.
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.it.AbstractContentEntity
id, lastModificationDate, lastModifier, version
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContent()
ContentId
getContentId()
String
getEditUrl()
User
getOwner()
Page
getPage()
Space
getSpace()
String
getTitle()
String
getTypeAsString()
boolean
shouldConvertToContent()
-
Methods inherited from class com.atlassian.confluence.it.AbstractContentEntity
getContentType, getContentTypeObject, getId, getIdAsString, getLastModificationDate, getLastModifier, getSelector, getVersion, isMinorEdit, setContent, setId, setId, setLastModificationDate, setLastModifier, setVersion
-
-
-
-
Constructor Detail
-
Draft
public Draft(User owner, ContentType type, String title, Space space)
-
Draft
public Draft(User owner, ContentType type, String title, String content, Space space)
-
-
Method Detail
-
getPage
public Page getPage()
-
getOwner
public User getOwner()
-
getTypeAsString
public String getTypeAsString()
-
getTitle
public String getTitle()
- Returns:
- the title of this entity
-
getContent
public String getContent()
- Specified by:
getContent
in interfaceContentEntity
- Overrides:
getContent
in classAbstractContentEntity
- Returns:
- the content of this entity.
-
getSpace
public Space getSpace()
- Returns:
- the space this content belongs to.
-
getEditUrl
public String getEditUrl()
- Returns:
- the url where this entity can be edited.
-
getContentId
public ContentId getContentId()
- Specified by:
getContentId
in interfaceContentConvertible
- Overrides:
getContentId
in classAbstractContentEntity
- Returns:
- the ContentId identifying this Content-convertible entity.
-
shouldConvertToContent
public boolean shouldConvertToContent()
- Returns:
- true if the implementer wants to be part of the core API (default value), false otherwise
-
-