@Internal public class DraftUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
static boolean | 
isBlogPost(ContentEntityObject content)
Returns  
true if given ContentEntityObject represents Blog post | 
static boolean | 
isDraft(ContentEntityObject content)
Returns  
true if content is shared or personal draft. | 
static boolean | 
isPageOrBlogPost(ContentEntityObject content)
Returns  
true if given ContentEntityObject represents Page or Blog post | 
static boolean | 
isPersonalDraft(ContentEntityObject content)
Returns  
true if content is personal draft. | 
static boolean | 
isSharedDraft(ContentEntityObject content)
Returns  
true if content is shared draft. | 
public static boolean isDraft(ContentEntityObject content)
true if content is shared or personal draft.content - entity to checktrue if content is shared or personal draft, false otherwise.public static boolean isPersonalDraft(ContentEntityObject content)
true if content is personal draft.content - entity to checktrue if content is personal draft, false otherwise.public static boolean isSharedDraft(ContentEntityObject content)
true if content is shared draft.content - entity to checktrue if content is shared draft, false otherwise.public static boolean isPageOrBlogPost(ContentEntityObject content)
true if given ContentEntityObject represents Page or Blog postcontent - to checktrue if given ContentEntityObject represents Page or Blog postpublic static boolean isBlogPost(ContentEntityObject content)
true if given ContentEntityObject represents Blog postcontent - to checktrue if given ContentEntityObject represents Blog postCopyright © 2003–2022 Atlassian. All rights reserved.