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