Class ContentSelector
- java.lang.Object
-
- com.atlassian.confluence.api.model.content.ContentSelector
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContentSelector.ContentSelectorBuilder
-
Field Summary
Fields Modifier and Type Field Description static ContentSelector
UNSET
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ContentSelector
asCurrent()
Returns a copy of this selector with status current and no version set.static ContentSelector.ContentSelectorBuilder
builder()
boolean
equals(Object o)
static ContentSelector
from(Content content)
static ContentSelector
fromId(ContentId contentId)
Deprecated.since 5.10.ContentId
getId()
ContentStatus
getStatus()
int
getVersion()
int
hashCode()
boolean
hasVersion()
boolean
isEmpty()
String
toString()
-
-
-
Field Detail
-
UNSET
public static final ContentSelector UNSET
-
-
Method Detail
-
getId
public ContentId getId()
-
getStatus
public ContentStatus getStatus()
-
getVersion
public int getVersion()
-
hasVersion
public boolean hasVersion()
-
isEmpty
public boolean isEmpty()
-
asCurrent
public ContentSelector asCurrent()
Returns a copy of this selector with status current and no version set. Use of this method should be preferred overgetId()
in cases where calling code specifically wants to ignore any status and version information that might be in the original selector.
-
from
public static ContentSelector from(Content content)
-
fromId
@Deprecated public static ContentSelector fromId(ContentId contentId)
Deprecated.since 5.10. CRA-1305: to be removed prior to 6.0 release. Usefrom(Content)
wherever possible.DANGER! Use of this method indicates that the caller doesn't require any status or version information to be used when resolving the Content instance specified by the returned selector. DO NOT USE: existing uses are only there temporarily as a means of keeping CRA-1300 scope down; CRA-1305 has been created to remove them.
-
builder
public static ContentSelector.ContentSelectorBuilder builder()
-
-