The role* tags in the Oracle WebCenter Ensemble tag library allow pagelets to modify content based on the role of the current user.
<pt:ensemble.roleexpr pt:expr="hasRole Default Role from Seed State" pt:key="boolvalue"/> <pt:logic.if pt:expr="$boolvalue"> <pt:logic.iftrue> <!-- This is displayed if expr evaluates to true. --> </pt:logic.iftrue> <pt:logic.iffalse> <!-- This is displayed if expr evaluates to false. --> </pt:logic.iffalse> </pt:logic.if>
<pt:ensemble.rolelist pt:key="roles"/> <pt:logic.foreach pt:data="roles" pt:var="role"> <pt:logic.value pt:value="$role"/> <pt:logic.separator></pt:logic.separator> </pt:logic.foreach>