net.sf.wfnm
Class NavigationContextImpl

java.lang.Object
  extended bynet.sf.wfnm.NavigationContextImpl
All Implemented Interfaces:
NavigationContext, Serializable

public class NavigationContextImpl
extends Object
implements NavigationContext, Serializable

The navigation context default implementation.

Version:
1.0.6
Author:
Maurizio Albari
See Also:
Serialized Form

Nested Class Summary
protected  class NavigationContextImpl.Ownership
          Defines a ownership as a key-ownership pair.
 
Field Summary
protected  Set addedObjectSet
          The added object set.
protected  int defaultOwnership
          The webflow default ownership.
protected  boolean ignorePage
          Indicates that the page has to be ignored.
protected  List ownershipList
          A list of ownership.
protected  String previousWebflowToForce
          The previous webflow to force
protected  Set removedObjectSet
          The removed object set.
protected  boolean reset
          Indicates if the Webflow Navigation Manager has been reset.
protected  String webflowName
          The webflow name.
 
Constructor Summary
protected NavigationContextImpl()
          Creates a new DeferredSetting object.
 
Method Summary
 void addOwnership(String objectKey, int objectOwnership)
          Adds a deferred ownership.
protected  boolean frameworkJustActivated()
          Returns true if the framework has just been activated.
 boolean isFrameworkToReset()
          Returns true if the framework has to be resetted.
 boolean isIgnorePage()
          Indicates if the page has to be ignored.
 void notifyPage(AttributeContainer container, String url)
          Notify that a page has been reached.
 void removeAttribute(AttributeContainer container, String objectKey)
          Removes an attribute.
 void resetFramework()
          Reset the Webflow Navigation Manager framework.
 void setAttribute(AttributeContainer container, String objectKey)
          Sets an attribute.
 void setDefaultOwnership(int defaultOwnership)
          Sets the webflow default ownership.
 void setIgnorePage(boolean ignorePage)
          Sets whether the page has to be ignored.
 void setPreviousWebflowToForce(String previousWebflowToForce)
          Force the previous webflow.
 void setWebflowName(String webflowName)
          Sets the webflow name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ownershipList

protected List ownershipList
A list of ownership.


addedObjectSet

protected Set addedObjectSet
The added object set.


removedObjectSet

protected Set removedObjectSet
The removed object set.


previousWebflowToForce

protected String previousWebflowToForce
The previous webflow to force


webflowName

protected String webflowName
The webflow name.


ignorePage

protected boolean ignorePage
Indicates that the page has to be ignored.


reset

protected boolean reset
Indicates if the Webflow Navigation Manager has been reset.


defaultOwnership

protected int defaultOwnership
The webflow default ownership.

Constructor Detail

NavigationContextImpl

protected NavigationContextImpl()
Creates a new DeferredSetting object.

Method Detail

setAttribute

public void setAttribute(AttributeContainer container,
                         String objectKey)
Sets an attribute.

Specified by:
setAttribute in interface NavigationContext
Parameters:
container - the http session
objectKey - the object key

setDefaultOwnership

public void setDefaultOwnership(int defaultOwnership)
Sets the webflow default ownership.

Specified by:
setDefaultOwnership in interface NavigationContext
Parameters:
defaultOwnership - the webflow default ownership

isFrameworkToReset

public boolean isFrameworkToReset()
Returns true if the framework has to be resetted.

Specified by:
isFrameworkToReset in interface NavigationContext
Returns:
true if the framework has to be resetted

setIgnorePage

public void setIgnorePage(boolean ignorePage)
Sets whether the page has to be ignored.

Specified by:
setIgnorePage in interface NavigationContext
Parameters:
ignorePage - true if the page has to be ignored

isIgnorePage

public boolean isIgnorePage()
Indicates if the page has to be ignored.

Specified by:
isIgnorePage in interface NavigationContext
Returns:
true if the page has to be ignored

setPreviousWebflowToForce

public void setPreviousWebflowToForce(String previousWebflowToForce)
Force the previous webflow.

Specified by:
setPreviousWebflowToForce in interface NavigationContext
Parameters:
previousWebflowToForce - the previous webflow to force

setWebflowName

public void setWebflowName(String webflowName)
Sets the webflow name.

Specified by:
setWebflowName in interface NavigationContext
Parameters:
webflowName - the webflow name

addOwnership

public void addOwnership(String objectKey,
                         int objectOwnership)
Adds a deferred ownership.

Specified by:
addOwnership in interface NavigationContext
Parameters:
objectKey - the object key
objectOwnership - the object

notifyPage

public void notifyPage(AttributeContainer container,
                       String url)
Notify that a page has been reached.

Specified by:
notifyPage in interface NavigationContext
Parameters:
container - the attribute container
url - the http session

removeAttribute

public void removeAttribute(AttributeContainer container,
                            String objectKey)
Removes an attribute.

Specified by:
removeAttribute in interface NavigationContext
Parameters:
container - the attribute container
objectKey - the object key to remove

resetFramework

public void resetFramework()
Reset the Webflow Navigation Manager framework.

Specified by:
resetFramework in interface NavigationContext

frameworkJustActivated

protected boolean frameworkJustActivated()
Returns true if the framework has just been activated.

Returns:
true if the framework has just been activated


Copyright © 2004-2005 Maurizio Albari@SourceForge.net. All Rights Reserved.