Class CursorFactory
java.lang.Object
com.atlassian.confluence.api.service.pagination.CursorFactory
Factory to create cursor entities
- Since:
- 7.18
-
Method Summary
Modifier and TypeMethodDescriptionstatic Cursor
Create cursor from stringstatic Cursor
getEmptyCursorBy
(ContentType contentType) static void
registerCursorInstanceCreator
(String cursorType, Function<String, Cursor> function) Additional cursor types could be registered through this method.
-
Method Details
-
registerCursorInstanceCreator
public static void registerCursorInstanceCreator(String cursorType, Function<String, Cursor> function) Additional cursor types could be registered through this method.- Parameters:
cursorType
- Cursor type (name)function
- Function that could create instance of the cursor from string- Since:
- 9.2.5
-
buildFrom
Create cursor from string- Parameters:
cursorString
- Cursor in string format- Returns:
- Cursor entity or null if string is null or empty
-
getEmptyCursorBy
- Parameters:
contentType
- theContentType
to get the empty cursor for- Returns:
- the empty
ContentCursor
for that content type - Since:
- 9.2.5
-