@Override public Iterable<DocumentObject> findAll(Integer pageNumber, Integer pageSize) { Page<DocumentObject> page = documentObjectRepository.findAll(new PageRequest(pageNumber, pageSize)); Iterable<DocumentObject> pagedDocumentObject = page.getContent(); return pagedDocumentObject; }
@Override public Iterable<DocumentObject> findAll() { return documentObjectRepository.findAll(); }