Package 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
@Deprecated public abstract class AbstractContentEntity extends Object implements ContentEntity, VersionedContent, ContentConvertible
Deprecated.Please use confluence-java-api module instead. See {com.atlassian.confluence.api.model.content.Content} alternative
-
-
Field Summary
Fields Modifier and Type Field Description protected String
content
Deprecated.protected long
id
Deprecated.protected Date
lastModificationDate
Deprecated.protected User
lastModifier
Deprecated.protected int
version
Deprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractContentEntity()
Deprecated.protected
AbstractContentEntity(AbstractContentEntity that)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getContent()
Deprecated.ContentId
getContentId()
Deprecated.ContentType
getContentType()
Deprecated.ContentType
getContentTypeObject()
Deprecated.long
getId()
Deprecated.String
getIdAsString()
Deprecated.Date
getLastModificationDate()
Deprecated.User
getLastModifier()
Deprecated.ContentSelector
getSelector()
Deprecated.int
getVersion()
Deprecated.boolean
isMinorEdit()
Deprecated.void
setContent(String content)
Deprecated.void
setId(long id)
Deprecated.Set the id used for persistence of this entity.void
setId(ContentId id)
Deprecated.void
setLastModificationDate(Date lastModificationDate)
Deprecated.void
setLastModifier(User lastModifier)
Deprecated.void
setVersion(int version)
Deprecated.-
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.pages.ContentConvertible
shouldConvertToContent
-
Methods inherited from interface com.atlassian.confluence.it.ContentEntity
getEditUrl, getSpace, getTitle
-
-
-
-
Constructor Detail
-
AbstractContentEntity
protected AbstractContentEntity()
Deprecated.
-
AbstractContentEntity
protected AbstractContentEntity(AbstractContentEntity that)
Deprecated.
-
-
Method Detail
-
getLastModificationDate
public Date getLastModificationDate()
Deprecated.- Specified by:
getLastModificationDate
in interfaceContentEntity
-
setLastModificationDate
public void setLastModificationDate(Date lastModificationDate)
Deprecated.
-
getLastModifier
public User getLastModifier()
Deprecated.- Specified by:
getLastModifier
in interfaceContentEntity
- Returns:
- the last modifier
-
setLastModifier
public void setLastModifier(User lastModifier)
Deprecated.
-
getContent
public String getContent()
Deprecated.- Specified by:
getContent
in interfaceContentEntity
- Returns:
- the content of this entity.
-
setContent
public void setContent(String content)
Deprecated.
-
setId
public void setId(long id)
Deprecated.Description copied from interface:ContentEntity
Set the id used for persistence of this entity.- Specified by:
setId
in interfaceContentEntity
-
getId
public long getId()
Deprecated.- Specified by:
getId
in interfaceContentEntity
- Returns:
- the id used for persistence of this entity.
-
getIdAsString
public String getIdAsString()
Deprecated.
-
getContentId
public ContentId getContentId()
Deprecated.- Specified by:
getContentId
in interfaceContentConvertible
- Returns:
- the ContentId identifying this Content-convertible entity.
-
getSelector
public ContentSelector getSelector()
Deprecated.- Specified by:
getSelector
in interfaceContentConvertible
- Returns:
- the ContentSelector identifying this Content-convertible entity.
-
getContentType
public ContentType getContentType()
Deprecated.- Specified by:
getContentType
in interfaceContentEntity
- Returns:
- the ContentType of this entity
-
getContentTypeObject
public ContentType getContentTypeObject()
Deprecated.- Specified by:
getContentTypeObject
in interfaceContentConvertible
- Returns:
- the api ContentType that this ContentConvertible converts to
-
setId
public void setId(ContentId id)
Deprecated.
-
getVersion
public int getVersion()
Deprecated.- Specified by:
getVersion
in interfaceVersionedContent
-
setVersion
public void setVersion(int version)
Deprecated.- Specified by:
setVersion
in interfaceVersionedContent
-
isMinorEdit
public boolean isMinorEdit()
Deprecated.- Specified by:
isMinorEdit
in interfaceVersionedContent
- 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.
-
-