public ListItemsResults getItems(
     XOAIContext context, int offset, int length, String metadataPrefix, String setSpec, Date from)
     throws CannotDisseminateFormatException, OAIException {
   List<ScopedFilter> filters = getScopedFilters(context, metadataPrefix);
   if (context.isStaticSet(setSpec)) {
     if (context.getSetFilter(setSpec) != null)
       filters.add(new ScopedFilter(context.getSetFilter(setSpec), Scope.Set));
     return itemRepository.getItems(filters, offset, length, from);
   } else return itemRepository.getItems(filters, offset, length, setSpec, from);
 }
 /**
  * Method used by XOAI internals.
  *
  * @param context Requested ContextConfiguration <a
  *     href="https://github.com/lyncode/xoai/wiki/XOAI-Data-Provider-Architecture">More
  *     details</a>
  * @param offset Start offset
  * @param length Max returned length
  * @param metadataPrefix Metadata Prefix parameter
  * @param until Date parameter
  * @return List of Identifiers
  */
 public ListItemIdentifiersResult getItemIdentifiersUntil(
     XOAIContext context, int offset, int length, String metadataPrefix, Date until)
     throws CannotDisseminateFormatException, OAIException {
   List<ScopedFilter> filters = getScopedFilters(context, metadataPrefix);
   return itemRepository.getItemIdentifiersUntil(filters, offset, length, until);
 }
 /**
  * Method used by XOAI internals.
  *
  * @param context Requested ContextConfiguration <a
  *     href="https://github.com/lyncode/xoai/wiki/XOAI-Data-Provider-Architecture">More
  *     details</a>
  * @param offset Start offset
  * @param length Max returned length
  * @param metadataPrefix Metadata Prefix parameter
  * @return List of Identifiers
  * @throws CannotDisseminateFormatException, OAIException
  * @throws OAIException
  */
 public ListItemIdentifiersResult getItemIdentifiers(
     XOAIContext context, int offset, int length, String metadataPrefix)
     throws CannotDisseminateFormatException, OAIException {
   return itemRepository.getItemIdentifiers(
       getScopedFilters(context, metadataPrefix), offset, length);
 }
 public Item getItem(String identifier) throws IdDoesNotExistException, OAIException {
   return itemRepository.getItem(identifier);
 }
 public ListItemsResults getItems(
     XOAIContext context, int offset, int length, String metadataPrefix, Date from)
     throws CannotDisseminateFormatException, OAIException {
   List<ScopedFilter> filters = getScopedFilters(context, metadataPrefix);
   return itemRepository.getItems(filters, offset, length, from);
 }