org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation
Class JsfWindowContext
java.lang.Object
org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.JsfWindowContext
- All Implemented Interfaces:
- Serializable, AttributeAware, WindowContext, EditableWindowContext
@Typed
public class JsfWindowContext
- extends Object
- implements EditableWindowContext
TODO
- Author:
- Gerhard Petracek
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getId
public String getId()
- Specified by:
getId
in interface WindowContext
closeConversations
public void closeConversations()
- Specified by:
closeConversations
in interface WindowContext
close
public void close()
- Specified by:
close
in interface WindowContext
closeConversations
public void closeConversations(boolean forceEnd)
getConversation
public EditableConversation getConversation(Class conversationGroupKey,
Annotation... qualifiers)
- Specified by:
getConversation
in interface EditableWindowContext
- Parameters:
conversationGroupKey
- group of the conversation in questionqualifiers
- optional qualifiers for the conversation
- Returns:
- a new conversation for the given group
closeConversation
public Conversation closeConversation(Class conversationGroupKey,
Annotation... qualifiers)
- Specified by:
closeConversation
in interface WindowContext
closeConversationGroup
public Set<Conversation> closeConversationGroup(Class conversationGroupKey)
- Specified by:
closeConversationGroup
in interface WindowContext
createConversation
public EditableConversation createConversation(Class conversationGroupKey,
Annotation... qualifiers)
- Specified by:
createConversation
in interface EditableWindowContext
- Parameters:
conversationGroupKey
- group of the conversation in questionqualifiers
- optional qualifiers for the conversation
- Returns:
- a new conversation for the given group
getConversations
public Map<ConversationKey,EditableConversation> getConversations()
- Description copied from interface:
EditableWindowContext
- TODO
- Specified by:
getConversations
in interface EditableWindowContext
- Returns:
- all active conversations of the current context
getConfig
public WindowContextConfig getConfig()
- Specified by:
getConfig
in interface WindowContext
isActive
public boolean isActive()
- Specified by:
isActive
in interface EditableWindowContext
- Returns:
- evaluates and returns if the context is active
getLastAccess
public Date getLastAccess()
- Specified by:
getLastAccess
in interface EditableWindowContext
touch
public void touch()
- Specified by:
touch
in interface EditableWindowContext
removeInactiveConversations
public void removeInactiveConversations()
- Specified by:
removeInactiveConversations
in interface EditableWindowContext
setAttribute
public boolean setAttribute(String name,
Object value)
- Specified by:
setAttribute
in interface AttributeAware
setAttribute
public boolean setAttribute(String name,
Object value,
boolean forceOverride)
- Specified by:
setAttribute
in interface AttributeAware
containsAttribute
public boolean containsAttribute(String name)
- Specified by:
containsAttribute
in interface AttributeAware
getAttribute
public <T> T getAttribute(String name,
Class<T> targetType)
- Specified by:
getAttribute
in interface AttributeAware
logInformationAboutConversations
public void logInformationAboutConversations(String label)
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.