Class DraftUtils
- java.lang.Object
-
- com.atlassian.confluence.internal.content.DraftUtils
-
@Internal public class DraftUtils extends Object
- Since:
- 7.5.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isBlogPost(ContentEntityObject content)
Returnstrue
if givenContentEntityObject
represents Blog poststatic boolean
isDraft(ContentEntityObject content)
Returnstrue
ifcontent
is shared or personal draft.static boolean
isPageOrBlogPost(ContentEntityObject content)
Returnstrue
if givenContentEntityObject
represents Page or Blog poststatic boolean
isPersonalDraft(ContentEntityObject content)
Returnstrue
ifcontent
is personal draft.static boolean
isSharedDraft(ContentEntityObject content)
Returnstrue
ifcontent
is shared draft.
-
-
-
Method Detail
-
isDraft
public static boolean isDraft(ContentEntityObject content)
Returnstrue
ifcontent
is shared or personal draft.- Parameters:
content
- entity to check- Returns:
true
ifcontent
is shared or personal draft,false
otherwise.
-
isPersonalDraft
public static boolean isPersonalDraft(ContentEntityObject content)
Returnstrue
ifcontent
is personal draft.- Parameters:
content
- entity to check- Returns:
true
ifcontent
is personal draft,false
otherwise.
-
isSharedDraft
public static boolean isSharedDraft(ContentEntityObject content)
Returnstrue
ifcontent
is shared draft.- Parameters:
content
- entity to check- Returns:
true
ifcontent
is shared draft,false
otherwise.
-
isPageOrBlogPost
public static boolean isPageOrBlogPost(ContentEntityObject content)
Returnstrue
if givenContentEntityObject
represents Page or Blog post- Parameters:
content
- to check- Returns:
true
if givenContentEntityObject
represents Page or Blog post
-
isBlogPost
public static boolean isBlogPost(ContentEntityObject content)
Returnstrue
if givenContentEntityObject
represents Blog post- Parameters:
content
- to check- Returns:
true
if givenContentEntityObject
represents Blog post
-
-