Package org.nuxeo.ecm.core.scroll
Class ScrollServiceImpl
- java.lang.Object
-
- org.nuxeo.ecm.core.scroll.ScrollServiceImpl
-
- All Implemented Interfaces:
ScrollService
public class ScrollServiceImpl extends Object implements ScrollService
- Since:
- 11.1
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDEFAULT_NAMEprotected Map<String,ScrollDescriptor>descriptorsprotected static StringSEP_KEY
-
Constructor Summary
Constructors Constructor Description ScrollServiceImpl(List<ScrollDescriptor> scrollDescriptors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists(ScrollRequest request)Returnstrueif the requested Scroll implementation exists.protected StringgetDefaultKey(ScrollDescriptor descriptor)protected StringgetKey(String type, String name)protected StringgetKey(ScrollRequest request)protected StringgetKey(ScrollDescriptor descriptor)Scrollscroll(ScrollRequest request)Returns aScrollinstance to execute the request.
-
-
-
Field Detail
-
SEP_KEY
protected static final String SEP_KEY
- See Also:
- Constant Field Values
-
DEFAULT_NAME
protected static final String DEFAULT_NAME
- See Also:
- Constant Field Values
-
descriptors
protected final Map<String,ScrollDescriptor> descriptors
-
-
Constructor Detail
-
ScrollServiceImpl
public ScrollServiceImpl(List<ScrollDescriptor> scrollDescriptors)
-
-
Method Detail
-
getKey
protected String getKey(ScrollDescriptor descriptor)
-
getDefaultKey
protected String getDefaultKey(ScrollDescriptor descriptor)
-
getKey
protected String getKey(ScrollRequest request)
-
scroll
public Scroll scroll(ScrollRequest request)
Description copied from interface:ScrollServiceReturns aScrollinstance to execute the request.- Specified by:
scrollin interfaceScrollService
-
exists
public boolean exists(ScrollRequest request)
Description copied from interface:ScrollServiceReturnstrueif the requested Scroll implementation exists.- Specified by:
existsin interfaceScrollService
-
-