florian.johannssen Posted January 12, 2016 Share Posted January 12, 2016 Hello Jasper friends,I am using the JRS-REST Java Client to access the jasper server: https://github.com/Jaspersoft/jrs-rest-java-client I am looking for a service to get a List of all reports which are stored in my jasper server like:OperationResult operationResult = session.reportingService() ......Get-All-ReportsDoes anyone have an idea? Best Regards Florian Link to comment Share on other sites More sharing options...
florian.johannssen Posted January 12, 2016 Author Share Posted January 12, 2016 Yes, I have already solved this problem by using the resourceService()The code:@Testpublic void testGetAllReports() { OperationResult<ClientResourceListWrapper> result = session .resourcesService() .resources() .parameter(ResourceSearchParameter.FOLDER_URI, "/Velimo") .search(); ClientResourceListWrapper resourceListWrapper = result.getEntity(); assertNotNull(resourceListWrapper); assertTrue(resourceListWrapper.getResourceLookups().size() > 0); for (ClientResourceLookup resource : resourceListWrapper.getResourceLookups()) { logger.info("Report: " + resource); }} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now