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

SubjectAssociation - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.security
Class SubjectAssociation

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

public class SubjectAssociation
extends java.lang.Object

ThreadLocal holder of the currently athenticated subject that is active for a given thread.


Constructor Summary
SubjectAssociation()
           
 
Method Summary
static PortalSubject getSubject()
           
static void setSubject(PortalSubject subject)
          Store the PortalSubject into thread local storage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubjectAssociation

public SubjectAssociation()
Method Detail

setSubject

public static void setSubject(PortalSubject subject)
Store the PortalSubject into thread local storage

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

getSubject

public static PortalSubject getSubject()
Returns:
the PortalSubject from the thread local storage