Class NamePathMapper.Default

    • Constructor Detail

      • Default

        public Default()
    • Method Detail

      • getOakNameOrNull

        public String getOakNameOrNull​(@NotNull
                                       @NotNull String jcrName)
        Description copied from interface: NameMapper
        Returns the Oak name for the given JCR name, or null if no such mapping exists because the given JCR name contains an unknown namespace URI or prefix, or is otherwise invalid.
        Specified by:
        getOakNameOrNull in interface NameMapper
        Parameters:
        jcrName - JCR name
        Returns:
        Oak name, or null
      • getSessionLocalMappings

        @NotNull
        public @NotNull Map<String,​String> getSessionLocalMappings()
        Description copied from interface: NameMapper
        Returns the local namespace prefix mappings, or an empty map if there aren't any local mappings.
        Specified by:
        getSessionLocalMappings in interface NameMapper
        Returns:
        local namespace prefix to URI mappings
      • getJcrName

        @NotNull
        public @NotNull String getJcrName​(@NotNull
                                          @NotNull String oakName)
        Description copied from interface: NameMapper
        Returns the JCR name for the given Oak name. The given name is expected to have come from a valid Oak repository that contains only valid names with proper namespace mappings. If that's not the case, either a programming error or a repository corruption has occurred and an appropriate unchecked exception gets thrown.
        Specified by:
        getJcrName in interface NameMapper
        Parameters:
        oakName - Oak name
        Returns:
        JCR name
      • getOakPath

        public String getOakPath​(String jcrPath)
        Description copied from interface: PathMapper
        Returns the Oak path for the given JCR path, or null if no such mapping exists because the given JCR path contains a name element with an unknown namespace URI or prefix, or is otherwise invalid.
        Specified by:
        getOakPath in interface PathMapper
        Parameters:
        jcrPath - JCR path
        Returns:
        Oak path, or null
      • getJcrPath

        @NotNull
        public @NotNull String getJcrPath​(String oakPath)
        Description copied from interface: PathMapper
        Returns the JCR path for the given Oak path. The given path is expected to have come from a valid Oak repository that contains only valid paths whose name elements only use proper namespace mappings. If that's not the case, either a programming error or a repository corruption has occurred and an appropriate unchecked exception gets thrown.
        Specified by:
        getJcrPath in interface PathMapper
        Parameters:
        oakPath - Oak path
        Returns:
        JCR path