com.cassinidivision.oce.navigation
Class C_Feature_NavigationHelper
java.lang.Object
com.cassinidivision.oce.navigation.C_Feature_NavigationHelper
- public class C_Feature_NavigationHelper
- extends Object
Static helper class providing navigation-specific functionality for features.
C_Feature_NavigationHelper
public C_Feature_NavigationHelper()
nearestSectionInSiteToSectionForFeature
public static N_Section nearestSectionInSiteToSectionForFeature(N_WebSite currentSite,
N_Section currentSection,
C_Feature aFeature)
- Locates the closest section to the given site/section
which is deemed a legal location for the given feature.
In other words, the nearest site or section will be returned
for where a valid metasection relationship exists.
This method is used to uncover the destination URL for a C_ContentHyperlink
.
The purpose of the metasection system is to manipulate the
results of this method and hence decide which sections certain features will
appear in when linked with a C_ContentHyperlink
instance.
- Parameters:
currentSite
- The site to search for a closest sectioncurrentSection
- The section to start the search fromaFeature
- The feature for which to find a home
- Returns:
- The section to use for rendering this feature