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 ContentCursorstatic final ContentCursorstatic final ContentCursorstatic final ContentCursorstatic final ContentCursorstatic final ContentCursor -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentCursorcreateCursor(boolean isReverse, long contentId) Create a cursor for CONTENT type Notes: please using another override method to create different cursor typestatic ContentCursorcreateCursor(boolean isReverse, long contentId, CursorType cursorType) booleaninthashCode()booleanisEmpty()Indicates that cursor is empty (first cursor in forward direction)booleanIndicates 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:
getCursorTypein interfaceCursor- Returns:
- Type of the cursor
-
isReverse
public boolean isReverse()Description copied from interface:CursorIndicates that records should be sorted in backward direction when this cursor is used -
getContentId
-
isEmpty
public boolean isEmpty()Description copied from interface:CursorIndicates that cursor is empty (first cursor in forward direction) -
toString
-
valueOf
-
equals
-
hashCode
public int hashCode()
-