com.atlassian.confluence.it
Class AbstractContentEntity

java.lang.Object
  extended by com.atlassian.confluence.it.AbstractContentEntity
All Implemented Interfaces:
ContentEntity
Direct Known Subclasses:
BlogPost, Comment, Draft, Page, UserStatus

public abstract class AbstractContentEntity
extends java.lang.Object
implements ContentEntity


Field Summary
protected  java.lang.String content
           
protected  long id
           
protected  User lastModifier
           
protected  int version
           
 
Constructor Summary
protected AbstractContentEntity()
           
protected AbstractContentEntity(long id, java.lang.String content, User lastModifier, int version)
           
 
Method Summary
 java.lang.String getContent()
          Return the content of this entity.
 long getId()
          Return the id used for persistence of this entity.
 User getLastModifier()
           
 int getVersion()
           
 void setContent(java.lang.String content)
           
 void setId(long id)
          Set the id used for persistence of this entity.
 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

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(long id,
                                java.lang.String content,
                                User lastModifier,
                                int version)
Method Detail

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()
Description copied from interface: ContentEntity
Return the content of this entity.

Specified by:
getContent in interface ContentEntity

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()
Description copied from interface: ContentEntity
Return the id used for persistence of this entity.

Specified by:
getId in interface ContentEntity

getVersion

public int getVersion()

setVersion

public void setVersion(int version)


Copyright © 2003-2010 Atlassian. All Rights Reserved.