Class ContentSelector
java.lang.Object
com.atlassian.confluence.api.model.content.ContentSelector
Identifies a
Content
instance with a specific status and version.- Since:
- 5.10
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of this selector with status current and no version set.builder()
boolean
static ContentSelector
static ContentSelector
Deprecated.since 5.10.getId()
int
int
hashCode()
boolean
boolean
isEmpty()
toString()
-
Field Details
-
UNSET
-
-
Method Details
-
getId
-
getStatus
-
getVersion
public int getVersion() -
hasVersion
public boolean hasVersion() -
isEmpty
public boolean isEmpty() -
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
-
fromId
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
-
hashCode
public int hashCode() -
equals
-
toString
-