com.atlassian.confluence.it
Class AbstractContentEntity

java.lang.Object
  extended by com.atlassian.confluence.it.AbstractContentEntity
All Implemented Interfaces:
ContentEntity, VersionedContent, ContentConvertible
Direct Known Subclasses:
AbstractPageEntity, Comment, Draft, UserInformation, UserStatus

public abstract class AbstractContentEntity
extends java.lang.Object
implements ContentEntity, VersionedContent, ContentConvertible


Field Summary
protected  java.lang.String content
           
protected  long id
           
protected  java.util.Date lastModificationDate
           
protected  User lastModifier
           
protected  int version
           
 
Constructor Summary
protected AbstractContentEntity()
           
protected AbstractContentEntity(AbstractContentEntity that)
           
 
Method Summary
 java.lang.String getContent()
           
 ContentId getContentId()
           
 ContentType getContentType()
           
 long getId()
           
 java.lang.String getIdAsString()
           
 java.util.Date getLastModificationDate()
           
 User getLastModifier()
           
 int getVersion()
           
 boolean isMinorEdit()
           
 void setContent(java.lang.String content)
           
 void setId(ContentId id)
           
 void setId(long id)
          Set the id used for persistence of this entity.
 void setLastModificationDate(java.util.Date lastModificationDate)
           
 void setLastModifier(User lastModifier)
           
 void setVersion(int version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.confluence.it.ContentEntity
getEditUrl, getSpace, getTitle
 

Field Detail

lastModificationDate

protected java.util.Date lastModificationDate

lastModifier

protected User lastModifier

content

protected java.lang.String content

id

protected long id

version

protected int version
Constructor Detail

AbstractContentEntity

protected AbstractContentEntity()

AbstractContentEntity

protected AbstractContentEntity(AbstractContentEntity that)
Method Detail

getLastModificationDate

public java.util.Date getLastModificationDate()
Specified by:
getLastModificationDate in interface ContentEntity

setLastModificationDate

public void setLastModificationDate(java.util.Date lastModificationDate)

getLastModifier

public User getLastModifier()
Specified by:
getLastModifier in interface ContentEntity
Returns:
the last modifier

setLastModifier

public void setLastModifier(User lastModifier)

getContent

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

setContent

public void setContent(java.lang.String content)

setId

public void setId(long id)
Description copied from interface: ContentEntity
Set the id used for persistence of this entity.

Specified by:
setId in interface ContentEntity

getId

public long getId()
Specified by:
getId in interface ContentEntity
Returns:
the id used for persistence of this entity.

getIdAsString

public java.lang.String getIdAsString()

getContentId

public ContentId getContentId()
Specified by:
getContentId in interface ContentConvertible
Returns:
the ContentId identifying this Content-convertible entity.

getContentType

public ContentType getContentType()
Specified by:
getContentType in interface ContentEntity
Returns:
the ContentType of this entity

setId

public void setId(ContentId id)

getVersion

public int getVersion()
Specified by:
getVersion in interface VersionedContent

setVersion

public void setVersion(int version)
Specified by:
setVersion in interface VersionedContent

isMinorEdit

public boolean isMinorEdit()
Specified by:
isMinorEdit in interface VersionedContent
Returns:
true if this entity at this current version is a minor edit. Currently, only attachments persist this property, and so will return false for all entities other than attachments.


Copyright © 2003-2014 Atlassian. All Rights Reserved.