cache adminRoles
This commit is contained in:
parent
6ae633905d
commit
bac83d7fc4
1 changed files with 8 additions and 1 deletions
|
@ -48,6 +48,8 @@ import org.lastaflute.web.util.LaRequestUtil;
|
|||
|
||||
public interface FessProp {
|
||||
|
||||
public static final String AUTHENTICATION_ADMIN_ROLES = "authenticationAdminRoles";
|
||||
|
||||
public static final String SEARCH_GUEST_PERMISSION_LIST = "searchGuestPermissionList";
|
||||
|
||||
public static final String SUGGEST_SEARCH_LOG_PERMISSIONS = "suggestSearchLogPermissions";
|
||||
|
@ -487,7 +489,12 @@ public interface FessProp {
|
|||
String getAuthenticationAdminRoles();
|
||||
|
||||
public default String[] getAuthenticationAdminRolesAsArray() {
|
||||
return getAuthenticationAdminRoles().split(",");
|
||||
String[] roles = (String[]) propMap.get(AUTHENTICATION_ADMIN_ROLES);
|
||||
if (roles == null) {
|
||||
roles = getAuthenticationAdminRoles().split(",");
|
||||
propMap.put(AUTHENTICATION_ADMIN_ROLES, roles);
|
||||
}
|
||||
return roles;
|
||||
}
|
||||
|
||||
String getJvmCrawlerOptions();
|
||||
|
|
Loading…
Add table
Reference in a new issue