Interface DefaultPerspectiveResolver
-
- All Superinterfaces:
ActionsResolver
- All Known Implementing Classes:
AuthorityGroupDefaultPerspectiveResolver,SequenceDefaultPerspectiveResolver,TreePerspectiveResolver
public interface DefaultPerspectiveResolver extends ActionsResolver
Interface to be implemented by objects that can resolve default perspective fromNavigationTree.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default NavigationTreeformTree(java.util.Collection<? extends ActionDefinition> actions)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 - useformTree(Collection, WidgetInstanceManager)default NavigationTreeformTree(java.util.Collection<? extends ActionDefinition> actions, WidgetInstanceManager widgetInstanceManager)Goes through all provided actions and forms then in the shape of navigation action tree.default java.util.List<NavigationNode>getPermittedPerspectives(NavigationTree navigationTree)Deprecated, for removal: This API element is subject to removal in a future version.since 6.5, allowed perspectives configuration has been moved to View Switcher widgetNavigationNoderesolveDefaultPerspective(NavigationTree navigationTree)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 - useresolveDefaultPerspective(NavigationTree, WidgetInstanceManager)default NavigationNoderesolveDefaultPerspective(NavigationTree navigationTree, WidgetInstanceManager widgetInstanceManager)Resolve default perspective.
-
-
-
Method Detail
-
resolveDefaultPerspective
@Deprecated(since="6.7", forRemoval=true) NavigationNode resolveDefaultPerspective(NavigationTree navigationTree)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 - useresolveDefaultPerspective(NavigationTree, WidgetInstanceManager)Resolve default perspective.To allow chaining, a DefaultPerspectiveResolver implementation should return
nullwhen a default perspective cannot be found.- Parameters:
navigationTree- navigation tree containing perspective, from which a default one should be picked- Returns:
- the NavigationNode, or
nullif not found - See Also:
AuthorityGroupDefaultPerspectiveResolver,SequenceDefaultPerspectiveResolver
-
resolveDefaultPerspective
default NavigationNode resolveDefaultPerspective(NavigationTree navigationTree, WidgetInstanceManager widgetInstanceManager)
Resolve default perspective.To allow chaining, a DefaultPerspectiveResolver implementation should return
nullwhen a default perspective cannot be found.- Parameters:
navigationTree- navigation tree containing perspective, from which a default one should be pickedwidgetInstanceManager- widget instance manager- Returns:
- the NavigationNode, or
nullif not found - See Also:
AuthorityGroupDefaultPerspectiveResolver,SequenceDefaultPerspectiveResolver
-
getPermittedPerspectives
@Deprecated(since="6.5", forRemoval=true) default java.util.List<NavigationNode> getPermittedPerspectives(NavigationTree navigationTree)Deprecated, for removal: This API element is subject to removal in a future version.since 6.5, allowed perspectives configuration has been moved to View Switcher widgetReturns all permitted perspectives.To allow chaining, a DefaultPerspectiveResolver implementation should return
nullor empty list when a permitted perspectives cannot be found.- Parameters:
navigationTree- full navigation tree containing perspective, from which a permitted one should be picked- Returns:
- the list of permitted NavigationNode, or empty list if not found
- See Also:
AuthorityGroupDefaultPerspectiveResolver,ViewSwitcherWidgetController.filterPossibleWidgets(List)
-
formTree
@Deprecated(since="6.7", forRemoval=true) default NavigationTree formTree(java.util.Collection<? extends ActionDefinition> actions)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 - useformTree(Collection, WidgetInstanceManager)Goes through all provided actions and forms then in the shape of navigation action tree.- Specified by:
formTreein interfaceActionsResolver- Parameters:
actions- actions to be formed- Returns:
- navigation tree
-
formTree
default NavigationTree formTree(java.util.Collection<? extends ActionDefinition> actions, WidgetInstanceManager widgetInstanceManager)
Goes through all provided actions and forms then in the shape of navigation action tree.- Specified by:
formTreein interfaceActionsResolver- Parameters:
actions- actions to be formedwidgetInstanceManager- widget instance manager- Returns:
- navigation tree
-
-