public class ConversationState extends Object implements org.exoplatform.container.component.ThreadContextHolder
| Constructor and Description |
|---|
ConversationState(Identity identity) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name) |
Set<String> |
getAttributeNames()
Returns unmodifiable set of attribute names.
|
static ConversationState |
getCurrent() |
Identity |
getIdentity() |
org.exoplatform.container.component.ThreadContext |
getThreadContext()
Gives the value corresponding to the context of the thread
|
void |
removeAttribute(String name)
removes attribute.
|
void |
setAttribute(String name,
Object value)
sets attribute.
|
static void |
setCurrent(ConversationState state)
Preset current ConversationState.
|
public static final String SUBJECT
public ConversationState(Identity identity)
public static ConversationState getCurrent()
public static void setCurrent(ConversationState state)
state - ConversationStatepublic Identity getIdentity()
public void setAttribute(String name, Object value)
name - the name of the attribute to setvalue - the value of the attribute to setpublic Object getAttribute(String name)
name - the name of the attribute to retrievepublic Set<String> getAttributeNames()
public void removeAttribute(String name)
name - the name of the attribute to removepublic org.exoplatform.container.component.ThreadContext getThreadContext()
getThreadContext in interface org.exoplatform.container.component.ThreadContextHolderThreadContext if there are some
valuable ThreadLocal variables to share otherwise null
is expectedCopyright © 2003-2018 eXo Platform SAS. All Rights Reserved.