com.atlassian.confluence.api.model.content.id
Class ContentId

java.lang.Object
  extended by 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.


Field Summary
static ContentId UNSET
           
 
Method Summary
 long asLong()
           
 int compareTo(java.lang.Object o)
           
static ContentId deserialise(java.lang.String id)
           
 boolean equals(java.lang.Object other)
           
 int hashCode()
           
 boolean isSet()
           
static ContentId of(ContentType type, long id)
           
 java.lang.String serialise()
           
 java.lang.String toString()
           
static ContentId valueOf(java.lang.String id)
          Don't use this method - it's just for Jersey QueryParam automatic conversion.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNSET

public static final ContentId UNSET
Method Detail

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.