Class CustomContentCursor
java.lang.Object
com.atlassian.confluence.api.model.pagination.CustomContentCursor
- All Implemented Interfaces:
Cursor
A cursor implementation for custom content types (e.g., "calendar", "question").
Supports cursor format like "calendar:false:123".
Field customContentType matches the scanType in
CustomContentProvider.- Since:
- 9.2.11
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomContentCursorcreateCursor(String customContentType, boolean isReverse, long contentId) static CustomContentCursorcreateEmptyCursor(String customContentType) 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 CustomContentCursor
-
Method Details
-
createCursor
public static CustomContentCursor createCursor(String customContentType, boolean isReverse, long contentId) -
createEmptyCursor
-
valueOf
-
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 -
isEmpty
public boolean isEmpty()Description copied from interface:CursorIndicates that cursor is empty (first cursor in forward direction) -
getCustomContentType
-
getContentId
-
toString
-
equals
-
hashCode
public int hashCode()
-