Class DraftUtils

java.lang.Object
com.atlassian.confluence.internal.content.DraftUtils

@Internal public class DraftUtils extends Object
Since:
7.5.0
  • Method Details

    • isDraft

      public static boolean isDraft(ContentEntityObject content)
      Returns true if content is shared or personal draft.
      Parameters:
      content - entity to check
      Returns:
      true if content is shared or personal draft, false otherwise.
    • isPersonalDraft

      public static boolean isPersonalDraft(ContentEntityObject content)
      Returns true if content is personal draft.
      Parameters:
      content - entity to check
      Returns:
      true if content is personal draft, false otherwise.
    • isSharedDraft

      public static boolean isSharedDraft(ContentEntityObject content)
      Returns true if content is shared draft.
      Parameters:
      content - entity to check
      Returns:
      true if content is shared draft, false otherwise.
    • isPageOrBlogPost

      public static boolean isPageOrBlogPost(ContentEntityObject content)
      Returns true if given ContentEntityObject represents Page or Blog post
      Parameters:
      content - to check
      Returns:
      true if given ContentEntityObject represents Page or Blog post
    • isBlogPost

      public static boolean isBlogPost(ContentEntityObject content)
      Returns true if given ContentEntityObject represents Blog post
      Parameters:
      content - to check
      Returns:
      true if given ContentEntityObject represents Blog post