@ExperimentalApi public class ContentId extends Object implements Comparable<ContentId>
Content instance.
Within the Confluence API, an instance of this id class should only refer to the latest version of a piece of
content, regardless of that content's status or version. The id should not point directly to a database object with a
particular status or version - when a reference with a status or version is required a ContentSelector should
be used instead.
ContentSelector| Modifier and Type | Method and Description |
|---|---|
long |
asLong() |
int |
compareTo(ContentId other) |
static ContentId |
deserialise(String id) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isSet() |
static ContentId |
of(ContentType type,
long id)
Deprecated.
since 6.10.0 use
of(long) |
static ContentId |
of(long id) |
String |
serialise() |
String |
toString() |
static ContentId |
valueOf(String id)
Don't use this method - it's just for Jersey QueryParam automatic conversion.
|
public static final ContentId UNSET
public static ContentId deserialise(String id) throws BadRequestException
BadRequestException@Deprecated public static ContentId of(ContentType type, long id)
of(long)public static ContentId of(long id)
public String serialise()
public long asLong()
public boolean isSet()
public static ContentId valueOf(String id) throws BadRequestException
Use deserialise(String) instead.
BadRequestExceptionpublic int compareTo(ContentId other)
compareTo in interface Comparable<ContentId>Copyright © 2003–2022 Atlassian. All rights reserved.