当前页面:
在线文档首页 >
JBOSS Portal 2.2 API 英文版文档
PolicyAssociation - JBOSS Portal 2.2 API 英文版文档
org.jboss.portal.security
Class PolicyAssociation
java.lang.Object
org.jboss.portal.security.PolicyAssociation
- public final class PolicyAssociation
- extends java.lang.Object
ThreadLocal holder of the PortalPolicy that is active for a given thread.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolicyAssociation
public PolicyAssociation()
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