Package org.mycore.sword.application
Class MCRSwordObjectIDSupplier
java.lang.Object
org.mycore.sword.application.MCRSwordObjectIDSupplier
- Direct Known Subclasses:
MCRSwordSolrObjectIDSupplier
Should supply the mycore sword implementation with the right MyCoReIds. It also handles pagination.
The Standard impl. is
MCRSwordSolrObjectIDSupplier
and it should handle 99% of all use cases.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract List<MCRObjectID>
get
(int from, int count) abstract long
getCount()
-
Constructor Details
-
MCRSwordObjectIDSupplier
public MCRSwordObjectIDSupplier()
-
-
Method Details
-
getCount
public abstract long getCount() throws org.swordapp.server.SwordServerException- Returns:
- how many objects a collection has
- Throws:
org.swordapp.server.SwordServerException
- if an error occurs while determining the result
-
get
public abstract List<MCRObjectID> get(int from, int count) throws org.swordapp.server.SwordServerException - Parameters:
from
- first object id which should appear in the listcount
- count how many ids should appear in the list- Returns:
- a list of MyCoReObjectIDs
- Throws:
org.swordapp.server.SwordServerException
- if an error occurs while determining the result
-