@ExperimentalApi public class ContentId extends Object implements Comparable
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(Object o) |
static ContentId |
deserialise(String id) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isSet() |
static ContentId |
of(ContentType type,
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
public static ContentId of(ContentType type, long id)
public String serialise()
public long asLong()
public boolean isSet()
public static ContentId valueOf(String id) throws BadRequestException
Use deserialise(String)
instead.
BadRequestException
public int compareTo(Object o)
compareTo
in interface Comparable
Copyright © 2003–2017 Atlassian. All rights reserved.