站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

PolicyAssociation - JBOSS Portal 2.2 API 英文版文档


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