com.atlassian.confluence.api.model.content.id
Class ContentId
java.lang.Object
com.atlassian.confluence.api.model.content.id.ContentId
- All Implemented Interfaces:
- Comparable
- Direct Known Subclasses:
- AttachmentContentId
@ExperimentalApi
public class ContentId
- extends Object
- implements Comparable
Identifies a Content
instance.
UNSET
public static final ContentId UNSET
deserialise
public static ContentId deserialise(String id)
throws BadRequestException
- Throws:
BadRequestException
of
public static ContentId of(ContentType type,
long id)
serialise
public String serialise()
asLong
public long asLong()
isSet
public boolean isSet()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
valueOf
public static ContentId valueOf(String id)
throws BadRequestException
- 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
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
Copyright © 2003–2015 Atlassian. All rights reserved.