Class ContentCursor
java.lang.Object
com.atlassian.confluence.api.model.pagination.ContentCursor
- All Implemented Interfaces:
Cursor
A class which could be used to generate cursor for the next/previous content pagination request or get cursor from string
- Since:
- 7.18
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContentCursor
static final ContentCursor
static final ContentCursor
static final ContentCursor
static final ContentCursor
static final ContentCursor
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContentCursor
createCursor
(boolean isReverse, long contentId) Create a cursor for CONTENT type Notes: please using another override method to create different cursor typestatic ContentCursor
createCursor
(boolean isReverse, long contentId, CursorType cursorType) boolean
int
hashCode()
boolean
isEmpty()
Indicates that cursor is empty (first cursor in forward direction)boolean
Indicates that records should be sorted in backward direction when this cursor is usedtoString()
static ContentCursor
-
Field Details
-
EMPTY_CURSOR
-
EMPTY_CURSOR_PREV
-
EMPTY_BLOGPOST_CURSOR
-
EMPTY_BLOGPOST_CURSOR_PREV
-
EMPTY_COMMENT_CURSOR
-
EMPTY_ATTACHMENT_CURSOR
-
-
Method Details
-
createCursor
Create a cursor for CONTENT type Notes: please using another override method to create different cursor type- Parameters:
isReverse
-contentId
-- Returns:
- new cursor instance
-
createCursor
-
getCursorType
- Specified by:
getCursorType
in interfaceCursor
- Returns:
- Type of the cursor
-
isReverse
public boolean isReverse()Description copied from interface:Cursor
Indicates that records should be sorted in backward direction when this cursor is used -
getContentId
-
isEmpty
public boolean isEmpty()Description copied from interface:Cursor
Indicates that cursor is empty (first cursor in forward direction) -
toString
-
valueOf
-
equals
-
hashCode
public int hashCode()
-