mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Add new method on ZeppelinConfiguration to get is zeppelin is running on anonimous mode or not
This commit is contained in:
parent
29f840ae7c
commit
4a43b07c05
1 changed files with 5 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ public class ZeppelinConfiguration extends XMLConfiguration {
|
|||
public String getNotebookDir() {
|
||||
return getString(ConfVars.ZEPPELIN_NOTEBOOK_DIR);
|
||||
}
|
||||
|
||||
|
||||
public String getUser() {
|
||||
return getString(ConfVars.ZEPPELIN_NOTEBOOK_S3_USER);
|
||||
}
|
||||
|
|
@ -430,6 +430,10 @@ public class ZeppelinConfiguration extends XMLConfiguration {
|
|||
public boolean isWindowsPath(String path){
|
||||
return path.matches("^[A-Za-z]:\\\\.*");
|
||||
}
|
||||
|
||||
public boolean isAnonymousAllowed() {
|
||||
return getBoolean(ConfVars.ZEPPELIN_ANONYMOUS_ALLOWED);
|
||||
}
|
||||
|
||||
public String getConfDir() {
|
||||
return getString(ConfVars.ZEPPELIN_CONF_DIR);
|
||||
|
|
|
|||
Loading…
Reference in a new issue