[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Conditional rendering of function tree items?  XML
Forum Index -> Development
Author Message
dperezlopez

Active

Joined: 23/01/2015 14:55:04
Messages: 18
Offline

Hi all,

I wonder if there is a way to render conditionally the items of a function tree in a workplace like we do in other components. In our case this rendering would rely on the roles of the logged-in user.

David
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5534
Offline

Hi,

yes this is possible, by explicitly feeding the workpace function tree with a dynamically assembled tree of items.

I believe, currently you use the XML assembly of items. The same inforamtion that you pass in XML can be transferred via Java API (actually the XML is a JAXB representation of this UI).

The important APIs are:

WorkpageDispatchedPageBean.getWorkpageContainer()
IWorkpageContainer.getFunctiomsManager()
WorkplaceFunctionsManager.importWorkplaceFunctionTreeInfoNode()

The imported WorkplaceFunctionTreeInfoNiode is the bean structure that represents the user's function tree.

Typical scenario would be:
1. Logon screen
2. as part of logon processing: assemble function tree for user / user role, import in workplace and then navigate to workplace.

Regards, Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team