Class ContentId
java.lang.Object
com.atlassian.confluence.api.model.content.id.ContentId
- All Implemented Interfaces:
Comparable<ContentId>
- Direct Known Subclasses:
AttachmentContentId
Identifies a
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.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionlong
asLong()
int
static ContentId
deserialise
(String id) boolean
int
hashCode()
boolean
isSet()
static ContentId
of
(long id) static ContentId
of
(ContentType type, long id) Deprecated.toString()
static ContentId
Don't use this method - it's just for Jersey QueryParam automatic conversion.
-
Field Details
-
UNSET
-
-
Method Details
-
deserialise
- Throws:
BadRequestException
-
of
Deprecated.since 6.10.0 useof(long)
-
of
- Since:
- 6.10.0
-
serialise
-
asLong
public long asLong() -
isSet
public boolean isSet() -
hashCode
public int hashCode() -
equals
-
toString
-
valueOf
Don't use this method - it's just for Jersey QueryParam automatic conversion. (see https://jersey.java.net/documentation/latest/jaxrs-resources.html#d0e1889)Use
deserialise(String)
instead.- Throws:
BadRequestException
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ContentId>
-
of(long)