org.jboss.portal.security
Class PolicyAssociation

java.lang.Object
  extended byorg.jboss.portal.security.PolicyAssociation

public final class PolicyAssociation
extends java.lang.Object

ThreadLocal holder of the PortalPolicy that is active for a given thread.


Constructor Summary
PolicyAssociation()
           
 
Method Summary
static PortalPolicy getPolicy()
           
static void setPolicy(PortalPolicy policy)
          Store the PortalPolicy into thread local storage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyAssociation

public PolicyAssociation()
Method Detail

setPolicy

public static void setPolicy(PortalPolicy policy)
Store the PortalPolicy into thread local storage

Parameters:
policy - the portal policy to store in the thread

getPolicy

public static PortalPolicy getPolicy()
Returns:
the PortalPolicy from the thread local storage