composeName
public String composeName(Hashtable environment,
String activeNodeURL,
int numOfLevelsUp,
String[] childrenArr)
throws NamingException
Creates the name of the navigation target node specified by the active
node and a relative path to it. The caller to this method only needs to
know where the target node is located relative to the current node.
This implementation assumes that '/' is the separator between elements
in the path and '..' indicates one level up (a parent).
The default implementation deals only with a simple naming scheme, and
therefore cannot handle federations, LDAP and other compound schemes.
For example, calling this implementation with the parameters below:
composeName ("pcd:role1/folder1/folder2/folder3/workset1/page1", 3, {"folder4", "workset2", "page2"});
returns the path
pcd:role1/folder1/folder2/folder4/workset2/page2.
- Specified by:
composeName in interface INavigationConnectorNamingHandler
- Parameters:
environment - the user context (ignored in this method)
activeNodeURL - the URL of the active node
numOfLevelsUp - the number of levels of parents to search
childrenArr - an array of the atomic names of the
children (including the target node)
- Returns:
- the name of the relative node
- Throws:
NamingException - not thrown because no validation checks are done