public abstract class BaseRolesSyncStrategy extends Object implements RolesSyncStrategy
| Modifier and Type | Field and Description |
|---|---|
protected SearchGuardRoles |
roles |
ALL, KIBANA_ROLE_ALL_INDEX_ACTIONS, KIBANA_ROLE_CLUSTER_ACTIONS, KIBANA_ROLE_INDEX_ACTIONS, OPERATIONS_ROLE_ANY_ACTIONS, OPERATIONS_ROLE_CLUSTER_ACTIONS, OPERATIONS_ROLE_OPERATIONS_ACTIONS, PROJECT_ROLE_ACTIONS, USER_ROLE_CLUSTER_ACTIONS| Modifier | Constructor and Description |
|---|---|
protected |
BaseRolesSyncStrategy(SearchGuardRoles roles,
String userProfilePrefix) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
formatKibanaIndexName(UserProjectCache cache,
String username,
String token,
String kibanaIndexMode) |
protected String |
formatKibanaRoleName(UserProjectCache cache,
String username,
String token) |
static String |
formatUserRoleName(String username) |
void |
syncFrom(UserProjectCache cache)
Sync the given cache to
|
protected abstract void |
syncFromImpl(UserProjectCache cache,
RolesBuilder builder) |
protected SearchGuardRoles roles
protected BaseRolesSyncStrategy(SearchGuardRoles roles, String userProfilePrefix)
protected abstract void syncFromImpl(UserProjectCache cache, RolesBuilder builder)
public void syncFrom(UserProjectCache cache)
RolesSyncStrategysyncFrom in interface RolesSyncStrategycache - The cache from which to syncprotected String formatKibanaIndexName(UserProjectCache cache, String username, String token, String kibanaIndexMode)
protected String formatKibanaRoleName(UserProjectCache cache, String username, String token)
Copyright © 2015–2017 Red Hat. All rights reserved.