Class DraftUtils


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

      • 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.