Interface ContentConvertible

All Known Implementing Classes:
AbstractContentEntity, AbstractPageEntity, Attachment, Attachment, BlogPost, BlogPost, Comment, Comment, CustomContentEntityObject, Draft, Page, Page, ReadOnlyAttachment, UserInformation

public interface ContentConvertible
Declares that the implementing class can be converted to an api Content.
  • Method Details

    • getContentTypeObject

      ContentType getContentTypeObject()
      Returns:
      the api ContentType that this ContentConvertible converts to
      Since:
      5.7
    • getSelector

      ContentSelector getSelector()
      Returns:
      the ContentSelector identifying this Content-convertible entity.
    • getContentId

      ContentId getContentId()
      Returns:
      the ContentId identifying this Content-convertible entity.
    • shouldConvertToContent

      boolean shouldConvertToContent()
      Returns:
      true if the implementer wants to be part of the core API (default value), false otherwise