public static String getAbsoluteParent(@NotNull String path, int parentLevel, @NotNull ResourceResolver resourceResolver) {
    if (parentLevel < 0) {
      return "";
    }
    int level = parentLevel + getAbsoluteLevelOffset(path, resourceResolver);
    return Text.getAbsoluteParent(path, level);
  }
public static String getAbsoluteParent ( @ NotNull String path , int parentLevel , @ NotNull ResourceResolver resourceResolver ) { if ( parentLevel < 0 ) { return "" ; } int level = parentLevel + getAbsoluteLevelOffset ( path , resourceResolver ) ; return Text . getAbsoluteParent ( path , level ) ; }
Get absolute parent of given path.
If the path is a version history or launch path the path level is adjusted accordingly.
This is a replacement for {@link com.day.text.Text#getAbsoluteParent(String, int)}.
@param path Path
@param parentLevel Parent level
@param resourceResolver Resource resolver
@return Absolute parent path or empty string if path is invalid