Class MCRSwordObjectIDSupplier

java.lang.Object
org.mycore.sword.application.MCRSwordObjectIDSupplier
Direct Known Subclasses:
MCRSwordSolrObjectIDSupplier

public abstract class MCRSwordObjectIDSupplier extends Object
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 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 list
      count - 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