Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: how to retrieve the list of directories under a solution

  1. #1
    Join Date
    Oct 2010
    Posts
    13

    Default how to retrieve the list of directories under a solution

    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.

  2. #2

    Default

    Hi Zuanni
    let me know if somebody post something 'cause paramString is not easy to understand

    Regards

    Rb

  3. #3
    Join Date
    Jul 2007
    Posts
    2,497

    Default

    If you look at CDF samples, there's a navigateComponent that does that
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  4. #4
    Join Date
    Oct 2010
    Posts
    13

    Thumbs up

    Thanks pmalves I will download the code of CDF. I find a way for retrieve information about solution and directories with the following:

    Code:
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.