Skip to Content
avatar image
Former Member

Using the xMII Admin Service or Predefined Templates to Retreive Navigation

I am interested in retrieving the navigation tree assigned to a role in order to integrate the navigation tree into other applications. Is it possible to retrieve the navigation tree by using an Admin Service call or a predefined template call like below?

http://localhost/Lighthammer/Illuminator?Service=Admin&Mode=RoleAttribList&Group=USERNAME&Content-Type=text/xml

or

http://localhost/Lighthammer/Illuminator?QueryTemplate=Predefined/FolderListQuery&Content-Type=text/xml

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Mar 08, 2007 at 06:27 PM

    Brett,

    To the best of my knowledge it is not possible via a built in servlet call, however it is possible to do. Since the navigation information is stored on the xMII server under C:\Lighthammer\Illuminator\conf in the Roles & Users directories in xml files. It is possible to Load these files via Business Logic and the query against the transaction via the URL to retrieve the XML. Hope this helps.

    Regards,

    Salvatore Castro

    Sr. Solution Architect

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 08, 2007 at 08:15 PM

    Brett,

    It's never a good idea to load these files directly. Going forward with 12.0 these files will not exist, but these URL's will work with minimal changes.

    Try using

    http://localhost/Lighthammer/Illuminator?Service=Admin&Mode=RoleProfile&Content-Type=text/xml&Group=Administrators

    and

    http://localhost/Lighthammer/Illuminator?Service=Admin&Mode=UserProfile&Content-Type=text/xml&Group=admin

    Group is either the user or role.

    Regards,

    Jamie

    Add comment
    10|10000 characters needed characters exceeded

    • Brett,

      If you have the User name AND password you can get the full profile, but the overlay process of merging all of a given user's roles and navigation content by order of Role priority followed by user settings only happens as a part of the login process.

      Here is a sample:

      http://servername:port/Lighthammer/Login.jsp?IllumLoginName=Admin&IllumLoginPassword=Admin&Session=true&target=%2FLighthammer%2FIlluminator%3FService%3DSystemInfo%26Mode%3DCurrentProfile%26Content-Type%3Dtext%2Fxml

      Notice that the service is SystemInfo and the Mode is CurrentProfile, so by URL logging in a given user and targeting the associated request you can get the full navigation xml set for a given user - it just requires you to have the password, which is a bit of a stretch in most cases.

      If a user is already logged in then just redirect to '/Lighthammer/Illuminator?Service=SystemInfo&Mode=CurrentProfile&Content-Type=text/xml and you will see the xml results that are used by the Personalization service to construct the home page layout.

      Regards,

      Jeremy

  • avatar image
    Former Member
    Mar 14, 2007 at 02:48 PM

    These admin service calls are exactly what I was after. Thanks.

    Add comment
    10|10000 characters needed characters exceeded