com.atlassian.confluence.it
Class AbstractContentEntity
java.lang.Object
com.atlassian.confluence.it.AbstractContentEntity
- All Implemented Interfaces:
- ContentEntity, VersionedContent, ContentConvertible
- Direct Known Subclasses:
- AbstractPageEntity, Comment, Draft, UserInformation, UserStatus
public abstract class AbstractContentEntity
- extends Object
- implements ContentEntity, VersionedContent, ContentConvertible
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lastModificationDate
protected Date lastModificationDate
lastModifier
protected User lastModifier
content
protected String content
id
protected long id
version
protected int version
AbstractContentEntity
protected AbstractContentEntity()
AbstractContentEntity
protected AbstractContentEntity(AbstractContentEntity that)
getLastModificationDate
public Date getLastModificationDate()
- Specified by:
getLastModificationDate
in interface ContentEntity
setLastModificationDate
public void setLastModificationDate(Date lastModificationDate)
getLastModifier
public User getLastModifier()
- Specified by:
getLastModifier
in interface ContentEntity
- Returns:
- the last modifier
setLastModifier
public void setLastModifier(User lastModifier)
getContent
public String getContent()
- Specified by:
getContent
in interface ContentEntity
- Returns:
- the content of this entity.
setContent
public void setContent(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 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
getContentTypeObject
public ContentType getContentTypeObject()
- Specified by:
getContentTypeObject
in interface ContentConvertible
- Returns:
- the api ContentType that this ContentConvertible converts to
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–2015 Atlassian. All rights reserved.