org.pm4j.core.pm.impl.connector
Class PmToNoViewTechnologyConnector

java.lang.Object
  extended by org.pm4j.core.pm.impl.connector.PmToNoViewTechnologyConnector
All Implemented Interfaces:
PmToViewTechnologyConnector

public class PmToNoViewTechnologyConnector
extends java.lang.Object
implements PmToViewTechnologyConnector

Default navigation handler that does not know about the UI platform specific operations (http redirect etc.).

Author:
olaf boede

Constructor Summary
PmToNoViewTechnologyConnector()
           
 
Method Summary
 PmTabSetConnector createTabSetConnector(PmTabSet pmTabSet)
          Provides a view technology specific connector for tab views.
 java.lang.Object findNamedObject(java.lang.String attrName)
          Finds a named object within the technology specific environment.
 org.pm4j.navi.NaviHistory getNaviHistory()
           
 boolean hasRequestParams()
           
 java.lang.Object readRequestAttribute(java.lang.String attrName)
          Reads a (view technology specific) value from the current request context.
 java.lang.String readRequestValue(java.lang.String attrName)
          Provides a PM-system specific value.
 void redirect(org.pm4j.navi.impl.NaviLinkImpl naviLink)
          Just reports a warning.
 void redirectWithRequestParams(java.lang.String toPageId)
          Navigates the UI to the specified location.
 void setRequestAttribute(java.lang.String attrName, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmToNoViewTechnologyConnector

public PmToNoViewTechnologyConnector()
Method Detail

redirect

public void redirect(org.pm4j.navi.impl.NaviLinkImpl naviLink)
Just reports a warning.

Specified by:
redirect in interface PmToViewTechnologyConnector
Parameters:
naviLink - The navigation target. The application stays on the current page when this parameter is null.

hasRequestParams

public boolean hasRequestParams()
Specified by:
hasRequestParams in interface PmToViewTechnologyConnector
Returns:
true when the current location was started with pm4j request parametets.

redirectWithRequestParams

public void redirectWithRequestParams(java.lang.String toPageId)
Description copied from interface: PmToViewTechnologyConnector
Navigates the UI to the specified location.

The parameter set of the current request will be added to the new request to be generated.

Specified by:
redirectWithRequestParams in interface PmToViewTechnologyConnector
Parameters:
toPageId - UI platform id of the page to navigate to.

readRequestValue

public java.lang.String readRequestValue(java.lang.String attrName)
Description copied from interface: PmToViewTechnologyConnector
Provides a PM-system specific value.

In case of web applications it provides a parameter that is encoded within the 'pm4j' request attribute.

Specified by:
readRequestValue in interface PmToViewTechnologyConnector
Parameters:
attrName - Name of the attribute.
Returns:
The attribute value. Is null when there is no attribute for the given name.

getNaviHistory

public org.pm4j.navi.NaviHistory getNaviHistory()
Specified by:
getNaviHistory in interface PmToViewTechnologyConnector
Returns:
The history of visited pages.

readRequestAttribute

public java.lang.Object readRequestAttribute(java.lang.String attrName)
Description copied from interface: PmToViewTechnologyConnector
Reads a (view technology specific) value from the current request context.

In case of a web application it provides the value of an http request attribute.

Specified by:
readRequestAttribute in interface PmToViewTechnologyConnector
Parameters:
attrName - Name (key) of the attribute.
Returns:
The found value. May be null.

setRequestAttribute

public void setRequestAttribute(java.lang.String attrName,
                                java.lang.Object value)
Specified by:
setRequestAttribute in interface PmToViewTechnologyConnector

findNamedObject

public java.lang.Object findNamedObject(java.lang.String attrName)
Description copied from interface: PmToViewTechnologyConnector
Finds a named object within the technology specific environment.

Concrete implementations may provide here HTTP attributes as well as EJB and Spring attributes.

Specified by:
findNamedObject in interface PmToViewTechnologyConnector
Parameters:
attrName - Name of the attribute to find.
Returns:
The found attribute value or null.

createTabSetConnector

public PmTabSetConnector createTabSetConnector(PmTabSet pmTabSet)
Description copied from interface: PmToViewTechnologyConnector
Provides a view technology specific connector for tab views.

Specified by:
createTabSetConnector in interface PmToViewTechnologyConnector
Parameters:
pmTabSet - The tab set model to get a connector for.
Returns:
The view technology specific tab set connector.