Skip to content

Commit

Permalink
Merge pull request pentaho#9282 from nawaz34-hitachivantara/BACKLOG-3…
Browse files Browse the repository at this point in the history
…9677-rootPathVars

[BACKLOG-39677] Added root path supporting variables in VFSConnectionDetails class.
  • Loading branch information
dcleao authored Apr 22, 2024
2 parents 3880e41 + f7013bc commit 37fde4d
Showing 1 changed file with 37 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Pentaho Data Integration
*
* Copyright (C) 2019 by Hitachi Vantara : http://www.pentaho.com
* Copyright (C) 2024 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
Expand Down Expand Up @@ -34,4 +34,40 @@ public interface VFSConnectionDetails extends ConnectionDetails {
default String getDomain() {
return "";
}

/**
* Returns true if vfs connection supports root path
* Defaults to {@code false}.
*
*/
default boolean isSupportsRootPath() {
return false;
}

/**
* Returns true if vfs connection requires root path
* Defaults to {@code false}.
*
*/
default boolean isRootPathRequired() {
return false;
}

/**
*
* Gets the root path of a vfs connection.
*
* Defaults to {@code null}
* return the root path.
*/
default String getRootPath() {
return null;
}

/**
* Sets the root path, given as a string
*
* @param rootPath The root path
*/
default void setRootPath(String rootPath ) {}
}

0 comments on commit 37fde4d

Please sign in to comment.