com.webmethods.caf.faces.data.csp
Class CSPNodesProvider

java.lang.Object
  extended by com.webmethods.caf.faces.bean.BaseFacesBean
      extended by com.webmethods.caf.faces.bean.BaseFacesSessionBean
          extended by com.webmethods.caf.faces.data.csp.CSPBaseProvider
              extended by com.webmethods.caf.faces.data.csp.CSPNodesProvider
All Implemented Interfaces:
IPageFlowScopeAdapter, Serializable

public class CSPNodesProvider
extends CSPBaseProvider

This is a provider that exposes the CSP nodes tree model.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.webmethods.caf.faces.data.csp.CSPBaseProvider
fRetrievalModule, fSession
 
Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
fExpireWithPageFlow
 
Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
DATA_BINDING_CLIENTS, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
 
Constructor Summary
CSPNodesProvider()
           
 
Method Summary
 List getAllSubNodes()
          Returns list of all nodes in the CSP tree model, except the root node
 CSPNode getNode(String nodeId)
          Returns node based on the node id.
 List getNodesIds(int[] indexIds)
          Returns nodes ids for nodes that have indexes defined in the argument
 CSPNode getRootNode()
          Returns the root node for the CSP tree model
 
Methods inherited from class com.webmethods.caf.faces.data.csp.CSPBaseProvider
checkState, getSession, release, setSession
 
Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
getExpireWithPageFlow, setExpireWithPageFlow, valueBound, valueUnbound
 
Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
createMethodBinding, createValueBinding, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSPNodesProvider

public CSPNodesProvider()
Method Detail

getRootNode

public CSPNode getRootNode()
                    throws Exception
Returns the root node for the CSP tree model

Returns:
The root node. It contains all other nodes
Throws:
Exception

getAllSubNodes

public List getAllSubNodes()
                    throws Exception
Returns list of all nodes in the CSP tree model, except the root node

Returns:
List containing all nodes except the root node
Throws:
Exception

getNodesIds

public List getNodesIds(int[] indexIds)
                 throws Exception
Returns nodes ids for nodes that have indexes defined in the argument

Parameters:
indexIds - Indices ids for which nodes having them should be returned
Returns:
List with ids of the nodes having the indices defined
Throws:
Exception

getNode

public CSPNode getNode(String nodeId)
                throws Exception
Returns node based on the node id.

Parameters:
nodeId -
Returns:
The node with the specified id
Throws:
Exception