cancel
Showing results for 
Search instead for 
Did you mean: 

Using the xMII Admin Service or Predefined Templates to Retreive Navigation

Former Member
0 Kudos

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-Ty...

or

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

jamie_cawley
Advisor
Advisor
0 Kudos

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=...

and

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

Group is either the user or role.

Regards,

Jamie

Former Member
0 Kudos

Is it possible to use either one of these requests to return a users complete navigation? the first works fine when Group=<Role> but doesn't work when Group=<User>. The second url only returns the personalization navigation items that a user has added themselves. I would like to avoid having to first get the list of roles a user is in and then for each role get the navigation. I would like to get the navigation for the user in one url call. Is this possible?

jcgood25
Active Contributor
0 Kudos

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=t...

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

0 Kudos

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