Interface LanguageNavigation

  • All Superinterfaces:
    Component, ComponentExporter

    public interface LanguageNavigation
    extends Component
    Defines the LanguageNavigation Sling Model used for the /apps/core/wcm/components/languagenavigation component.
    Since:
    com.adobe.cq.wcm.core.components.models 12.2.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PN_NAVIGATION_ROOT
      Name of the resource / configuration policy property that defines the navigation root from which to build the global language structure navigation.
      static java.lang.String PN_STRUCTURE_DEPTH
      Name of the resource / configuration policy property that defines the depth of the global language structure in the content tree relative to the site root.
      • Fields inherited from interface com.adobe.cq.wcm.core.components.models.Component

        PN_ID
    • Field Detail

      • PN_NAVIGATION_ROOT

        static final java.lang.String PN_NAVIGATION_ROOT
        Name of the resource / configuration policy property that defines the navigation root from which to build the global language structure navigation. The property should provide a String value.
        Since:
        com.adobe.cq.wcm.core.components.models 12.2.0
        See Also:
        Constant Field Values
      • PN_STRUCTURE_DEPTH

        static final java.lang.String PN_STRUCTURE_DEPTH
        Name of the resource / configuration policy property that defines the depth of the global language structure in the content tree relative to the site root. The property should provide a Long value.
        Since:
        com.adobe.cq.wcm.core.components.models 12.2.0
        See Also:
        Constant Field Values
    • Method Detail

      • getItems

        default java.util.List<NavigationItem> getItems()
        Returns the list of language navigation items related to the current page.
        Returns:
        a list of language navigation items related to the current page
        Since:
        com.adobe.cq.wcm.core.components.models 12.2.0
      • getExportedType

        @NotNull
        default @NotNull java.lang.String getExportedType()
        Description copied from interface: ComponentExporter

        Returns the type of the resource for which the export is performed.

        NOTE: methods whose JSON serialization would lead to the same JSON property name (":type") will not be serialized.

        Specified by:
        getExportedType in interface Component
        Specified by:
        getExportedType in interface ComponentExporter
        Returns:
        the type of the component
        Since:
        com.adobe.cq.wcm.core.components.models 12.2.0
        See Also:
        ComponentExporter.getExportedType()