com.atlassian.confluence.it
Class Draft

java.lang.Object
  extended by com.atlassian.confluence.it.AbstractContentEntity
      extended by com.atlassian.confluence.it.Draft
All Implemented Interfaces:
ContentEntity, VersionedContent, ContentConvertible

public class Draft
extends AbstractContentEntity

Representation of a Draft for use in tests


Field Summary
 
Fields inherited from class com.atlassian.confluence.it.AbstractContentEntity
id, lastModificationDate, lastModifier, version
 
Constructor Summary
Draft(User owner, ContentType type, java.lang.String title, Space space)
           
Draft(User owner, ContentType type, java.lang.String title, java.lang.String content, Space space)
           
Draft(User owner, Page page, java.lang.String title, java.lang.String content)
           
Draft(User owner, java.lang.String type, java.lang.String title, java.lang.String content, Page page, Space space)
           
Draft(User owner, java.lang.String type, java.lang.String title, java.lang.String content, Space space)
           
 
Method Summary
 java.lang.String getContent()
           
 java.lang.String getEditUrl()
           
 User getOwner()
           
 Page getPage()
           
 Space getSpace()
           
 java.lang.String getTitle()
           
 java.lang.String getTypeAsString()
           
 
Methods inherited from class com.atlassian.confluence.it.AbstractContentEntity
getContentId, getContentType, getId, getIdAsString, getLastModificationDate, getLastModifier, getVersion, isMinorEdit, setContent, setId, setId, setLastModificationDate, setLastModifier, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Draft

public Draft(User owner,
             java.lang.String type,
             java.lang.String title,
             java.lang.String content,
             Space space)

Draft

public Draft(User owner,
             ContentType type,
             java.lang.String title,
             Space space)

Draft

public Draft(User owner,
             ContentType type,
             java.lang.String title,
             java.lang.String content,
             Space space)

Draft

public Draft(User owner,
             java.lang.String type,
             java.lang.String title,
             java.lang.String content,
             Page page,
             Space space)

Draft

public Draft(User owner,
             Page page,
             java.lang.String title,
             java.lang.String content)
Method Detail

getPage

public Page getPage()

getOwner

public User getOwner()

getTypeAsString

public java.lang.String getTypeAsString()

getTitle

public java.lang.String getTitle()
Returns:
the title of this entity

getContent

public java.lang.String getContent()
Specified by:
getContent in interface ContentEntity
Overrides:
getContent in class AbstractContentEntity
Returns:
the content of this entity.

getSpace

public Space getSpace()
Returns:
the space this content belongs to.

getEditUrl

public java.lang.String getEditUrl()
Returns:
the url where this entity can be edited.


Copyright © 2003-2014 Atlassian. All Rights Reserved.