PDA

View Full Version : how to retrieve the list of directories under a solution



zuanni
12-01-2010, 10:51 AM
Which is the correct way to retrieve the list of directories under a solution? I'm trying with org.pentaho.platform.api.repository.ISolutionRepositoryService.getSolutionRepositoryFileDetails(IPentahoSession paramIPentahoSession, String paramString)
but I don't understand the paramString parameter.
Any help will be appreciated.

r.bonazzo
12-02-2010, 07:45 AM
Hi Zuanni
let me know if somebody post something 'cause paramString is not easy to understand

Regards

Rb

pmalves
12-02-2010, 08:24 AM
If you look at CDF samples, there's a navigateComponent that does that

zuanni
12-02-2010, 09:53 AM
Thanks pmalves I will download the code of CDF. I find a way for retrieve information about solution and directories with the following:




ISolutionRepository solutionRepository = PentahoSystem.get(ISolutionRepository.class, userSession);

ISolutionFile solut = solutionRepository.getRootFolder(ISolutionRepository.ACTION_EXECUTE);

solut.listFiles()



Let me know if there is a better way to get such information.

Regards.