Class ContentSelector
- java.lang.Object
-
- com.atlassian.confluence.api.model.content.ContentSelector
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContentSelector.ContentSelectorBuilder
-
Field Summary
Fields Modifier and Type Field Description static ContentSelectorUNSET
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ContentSelectorasCurrent()Returns a copy of this selector with status current and no version set.static ContentSelector.ContentSelectorBuilderbuilder()booleanequals(Object o)static ContentSelectorfrom(Content content)static ContentSelectorfromId(ContentId contentId)Deprecated.since 5.10.ContentIdgetId()ContentStatusgetStatus()intgetVersion()inthashCode()booleanhasVersion()booleanisEmpty()StringtoString()
-
-
-
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()
-
-