org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation
Class JsfWindowContext

java.lang.Object
  extended by 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

Method Summary
 void close()
           
 Conversation closeConversation(Class conversationGroupKey, Annotation... qualifiers)
           
 Set<Conversation> closeConversationGroup(Class conversationGroupKey)
           
 void closeConversations()
           
 void closeConversations(boolean forceEnd)
           
 boolean containsAttribute(String name)
           
 EditableConversation createConversation(Class conversationGroupKey, Annotation... qualifiers)
           
<T> T
getAttribute(String name, Class<T> targetType)
           
 WindowContextConfig getConfig()
           
 EditableConversation getConversation(Class conversationGroupKey, Annotation... qualifiers)
           
 Map<ConversationKey,EditableConversation> getConversations()
          TODO
 String getId()
           
 Date getLastAccess()
           
 boolean isActive()
           
 void logInformationAboutConversations(String label)
           
 void removeInactiveConversations()
           
 boolean setAttribute(String name, Object value)
           
 boolean setAttribute(String name, Object value, boolean forceOverride)
           
 void touch()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 question
qualifiers - 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 question
qualifiers - 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.