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 Details

    • lastModificationDate

      protected Date lastModificationDate
      Deprecated.
    • lastModifier

      protected User lastModifier
      Deprecated.
    • content

      protected String content
      Deprecated.
    • id

      protected long id
      Deprecated.
    • version

      protected int version
      Deprecated.
  • Constructor Details

    • AbstractContentEntity

      protected AbstractContentEntity()
      Deprecated.
    • AbstractContentEntity

      protected AbstractContentEntity(AbstractContentEntity that)
      Deprecated.
  • Method Details

    • getLastModificationDate

      public Date getLastModificationDate()
      Deprecated.
      Specified by:
      getLastModificationDate in interface ContentEntity
    • setLastModificationDate

      public void setLastModificationDate(Date lastModificationDate)
      Deprecated.
    • getLastModifier

      public User getLastModifier()
      Deprecated.
      Specified by:
      getLastModifier in interface ContentEntity
      Returns:
      the last modifier
    • setLastModifier

      public void setLastModifier(User lastModifier)
      Deprecated.
    • getContent

      public String getContent()
      Deprecated.
      Specified by:
      getContent in interface ContentEntity
      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 interface ContentEntity
    • getId

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

      public String getIdAsString()
      Deprecated.
    • getContentId

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

      public ContentSelector getSelector()
      Deprecated.
      Specified by:
      getSelector in interface ContentConvertible
      Returns:
      the ContentSelector identifying this Content-convertible entity.
    • getContentType

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

      public ContentType getContentTypeObject()
      Deprecated.
      Specified by:
      getContentTypeObject in interface ContentConvertible
      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 interface VersionedContent
    • setVersion

      public void setVersion(int version)
      Deprecated.
      Specified by:
      setVersion in interface VersionedContent
    • isMinorEdit

      public boolean isMinorEdit()
      Deprecated.
      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.