|
@@ -25,6 +25,9 @@ public interface FessConfig extends FessEnv {
|
|
|
/** The key of the configuration. e.g. Fess */
|
|
|
String DOMAIN_TITLE = "domain.title";
|
|
|
|
|
|
+ /** The key of the configuration. e.g. admin */
|
|
|
+ String AUTHENTICATION_ADMIN_ROLES = "authentication.admin.roles";
|
|
|
+
|
|
|
/** The key of the configuration. e.g. / */
|
|
|
String COOKIE_DEFAULT_PATH = "cookie.default.path";
|
|
|
|
|
@@ -76,6 +79,14 @@ public interface FessConfig extends FessEnv {
|
|
|
*/
|
|
|
String getDomainTitle();
|
|
|
|
|
|
+ /**
|
|
|
+ * Get the value for the key 'authentication.admin.roles'. <br>
|
|
|
+ * The value is, e.g. admin <br>
|
|
|
+ * comment: ------
|
|
|
+ * @return The value of found property. (NotNull: if not found, exception but basically no way)
|
|
|
+ */
|
|
|
+ String getAuthenticationAdminRoles();
|
|
|
+
|
|
|
/**
|
|
|
* Get the value for the key 'cookie.default.path'. <br>
|
|
|
* The value is, e.g. / <br>
|
|
@@ -204,6 +215,10 @@ public interface FessConfig extends FessEnv {
|
|
|
return get(FessConfig.DOMAIN_TITLE);
|
|
|
}
|
|
|
|
|
|
+ public String getAuthenticationAdminRoles() {
|
|
|
+ return get(FessConfig.AUTHENTICATION_ADMIN_ROLES);
|
|
|
+ }
|
|
|
+
|
|
|
public String getCookieDefaultPath() {
|
|
|
return get(FessConfig.COOKIE_DEFAULT_PATH);
|
|
|
}
|