Class SpacePath

    • Method Detail

      • getPath

        public static SpacePath getPath​(String spaceId)
        Gets the path of the specified collaborative space.
        Parameters:
        spaceId - the unique identifier of a collaborative space.
        Returns:
        a SpacePath instance.
      • format

        public String format​(String language,
                             boolean absolutePath,
                             String pathSep)
        Formats this path as a textual value in which each segments are separated by the specified separator token. Each path segment is the name of the spaces in this path expressed in the given language. If only a relative path is asked, then it is the deeper space name in the path that is returned (the name of the last space in the list). If this path is empty, then an empty String is returned.
        Specified by:
        format in interface ResourcePath<SpaceInstLight>
        Parameters:
        language - the language in which the name should be expressed in the path.
        absolutePath - if false, only a relative path is returned. If true, an absolute path is returned.
        pathSep - the path separator to use instead of the default one.
        Returns:
        the String representation of this path by using the given path separator and in which each path segment is the element's name in the specified language.