com.redhat.rhn.frontend.nav
Class AclGuard

java.lang.Object
  extended by com.redhat.rhn.frontend.nav.AclGuard
All Implemented Interfaces:
RenderGuard

public class AclGuard
extends java.lang.Object
implements RenderGuard

AclGuard


Constructor Summary
AclGuard(java.util.Map ctx)
          Constructor
AclGuard(java.util.Map ctx, java.lang.String mixinsIn)
          Constructor
 
Method Summary
 boolean canRender(NavNode node, int depth)
          Returns true if the acl of the NavNode evaluates to true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AclGuard

public AclGuard(java.util.Map ctx,
                java.lang.String mixinsIn)
Constructor

Parameters:
ctx - Acl Context
mixinsIn - The string of classnames used to add extra Acl Handlers

AclGuard

public AclGuard(java.util.Map ctx)
Constructor

Parameters:
ctx - Acl Context
Method Detail

canRender

public boolean canRender(NavNode node,
                         int depth)
Returns true if the acl of the NavNode evaluates to true. Returns false otherwise.

Specified by:
canRender in interface RenderGuard
Parameters:
node - NavNode whose Acl is checked.
depth - ignored.
Returns:
true if the acl of the NavNode evalutes to true.