Class DraftUtils
java.lang.Object
com.atlassian.confluence.internal.content.DraftUtils
- Since:
- 7.5.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisBlogPost(ContentEntityObject content) Returnstrueif givenContentEntityObjectrepresents Blog poststatic booleanisDraft(ContentEntityObject content) Returnstrueifcontentis shared or personal draft.static booleanisPageOrBlogPost(ContentEntityObject content) Returnstrueif givenContentEntityObjectrepresents Page or Blog poststatic booleanisPersonalDraft(ContentEntityObject content) Returnstrueifcontentis personal draft.static booleanisSharedDraft(ContentEntityObject content) Returnstrueifcontentis shared draft.
-
Method Details
-
isDraft
Returnstrueifcontentis shared or personal draft.- Parameters:
content- entity to check- Returns:
trueifcontentis shared or personal draft,falseotherwise.
-
isPersonalDraft
Returnstrueifcontentis personal draft.- Parameters:
content- entity to check- Returns:
trueifcontentis personal draft,falseotherwise.
-
isPageOrBlogPost
Returnstrueif givenContentEntityObjectrepresents Page or Blog post- Parameters:
content- to check- Returns:
trueif givenContentEntityObjectrepresents Page or Blog post
-
isBlogPost
Returnstrueif givenContentEntityObjectrepresents Blog post- Parameters:
content- to check- Returns:
trueif givenContentEntityObjectrepresents Blog post
-