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

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultWindowContextManager
All Implemented Interfaces:
Serializable, WindowContextManager, EditableWindowContextManager

@Typed
public class DefaultWindowContextManager
extends Object
implements EditableWindowContextManager

Author:
Gerhard Petracek
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.spi.WindowContextManager
AUTOMATED_ENTRY_POINT_PARAMETER_KEY, WINDOW_CONTEXT_ID_PARAMETER_KEY
 
Constructor Summary
protected DefaultWindowContextManager(WindowContextConfig windowContextConfig, ConversationConfig conversationConfig, ProjectStage projectStage, javax.enterprise.inject.spi.BeanManager beanManager)
           
 
Method Summary
 boolean activateWindowContext(EditableWindowContext windowContext)
           
 boolean activateWindowContext(String windowContextId)
           
 void closeAllWindowContexts()
           
 void closeCurrentWindowContext()
           
 void closeWindowContext(EditableWindowContext editableWindowContext)
           
 void closeWindowContext(String windowContextId)
           
 WindowContext getCurrentWindowContext()
           
 WindowContext getWindowContext(String windowContextId)
           
 Collection<EditableWindowContext> getWindowContexts()
           
protected  void init()
           
 void restartConversations()
           
 void restartConversations(EditableWindowContext windowContext)
           
 void restartConversations(String windowContextId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWindowContextManager

protected DefaultWindowContextManager(WindowContextConfig windowContextConfig,
                                      ConversationConfig conversationConfig,
                                      ProjectStage projectStage,
                                      javax.enterprise.inject.spi.BeanManager beanManager)
Method Detail

init

protected void init()

getCurrentWindowContext

public WindowContext getCurrentWindowContext()
Specified by:
getCurrentWindowContext in interface WindowContextManager

getWindowContext

public WindowContext getWindowContext(String windowContextId)
Specified by:
getWindowContext in interface WindowContextManager

activateWindowContext

public boolean activateWindowContext(String windowContextId)
Specified by:
activateWindowContext in interface EditableWindowContextManager

activateWindowContext

public boolean activateWindowContext(EditableWindowContext windowContext)
Specified by:
activateWindowContext in interface EditableWindowContextManager

restartConversations

public void restartConversations()
Specified by:
restartConversations in interface EditableWindowContextManager

restartConversations

public void restartConversations(String windowContextId)
Specified by:
restartConversations in interface EditableWindowContextManager

restartConversations

public void restartConversations(EditableWindowContext windowContext)
Specified by:
restartConversations in interface EditableWindowContextManager

closeCurrentWindowContext

public void closeCurrentWindowContext()
Specified by:
closeCurrentWindowContext in interface EditableWindowContextManager

closeWindowContext

public void closeWindowContext(String windowContextId)
Specified by:
closeWindowContext in interface EditableWindowContextManager

closeWindowContext

public void closeWindowContext(EditableWindowContext editableWindowContext)
Specified by:
closeWindowContext in interface EditableWindowContextManager

getWindowContexts

public Collection<EditableWindowContext> getWindowContexts()
Specified by:
getWindowContexts in interface EditableWindowContextManager

closeAllWindowContexts

public void closeAllWindowContexts()
Specified by:
closeAllWindowContexts in interface EditableWindowContextManager


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.