Package com.floragunn.searchguard.sgconf
Class ConfigModelV7
- java.lang.Object
-
- com.floragunn.searchguard.sgconf.ConfigModel
-
- com.floragunn.searchguard.sgconf.ConfigModelV7
-
public class ConfigModelV7 extends ConfigModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfigModelV7.ExcludedIndexPermissionsstatic classConfigModelV7.IndexPatternstatic classConfigModelV7.SgRolestatic classConfigModelV7.SgRolesstatic classConfigModelV7.Tenant-
Nested classes/interfaces inherited from class com.floragunn.searchguard.sgconf.ConfigModel
ConfigModel.ActionGroupResolver
-
-
Constructor Summary
Constructors Constructor Description ConfigModelV7(SgDynamicConfiguration<RoleV7> roles, SgDynamicConfiguration<RoleMappingsV7> rolemappings, SgDynamicConfiguration<ActionGroupsV7> actiongroups, SgDynamicConfiguration<TenantV7> tenants, SgDynamicConfiguration<BlocksV7> blocks, DynamicConfigModel dcm, org.elasticsearch.common.settings.Settings esSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigModel.ActionGroupResolvergetActionGroupResolver()Set<String>getAllConfiguredTenantNames()List<ClientBlockRegistry<inet.ipaddr.IPAddress>>getBlockedNetmasks()List<ClientBlockRegistry<String>>getBlockedUsers()List<ClientBlockRegistry<InetAddress>>getBlockIpAddresses()ConfigModelV7.SgRolesgetSgRoles()Set<String>mapSgRoles(User user, org.elasticsearch.common.transport.TransportAddress caller)Map<String,Set<String>>mapTenantPermissions(User user, Set<String> roles)Map<String,Boolean>mapTenants(User user, Set<String> roles)
-
-
-
Constructor Detail
-
ConfigModelV7
public ConfigModelV7(SgDynamicConfiguration<RoleV7> roles, SgDynamicConfiguration<RoleMappingsV7> rolemappings, SgDynamicConfiguration<ActionGroupsV7> actiongroups, SgDynamicConfiguration<TenantV7> tenants, SgDynamicConfiguration<BlocksV7> blocks, DynamicConfigModel dcm, org.elasticsearch.common.settings.Settings esSettings)
-
-
Method Detail
-
getAllConfiguredTenantNames
public Set<String> getAllConfiguredTenantNames()
- Specified by:
getAllConfiguredTenantNamesin classConfigModel
-
getSgRoles
public ConfigModelV7.SgRoles getSgRoles()
- Specified by:
getSgRolesin classConfigModel
-
getActionGroupResolver
public ConfigModel.ActionGroupResolver getActionGroupResolver()
- Specified by:
getActionGroupResolverin classConfigModel
-
getBlockIpAddresses
public List<ClientBlockRegistry<InetAddress>> getBlockIpAddresses()
- Specified by:
getBlockIpAddressesin classConfigModel
-
getBlockedUsers
public List<ClientBlockRegistry<String>> getBlockedUsers()
- Specified by:
getBlockedUsersin classConfigModel
-
getBlockedNetmasks
public List<ClientBlockRegistry<inet.ipaddr.IPAddress>> getBlockedNetmasks()
- Specified by:
getBlockedNetmasksin classConfigModel
-
mapTenantPermissions
public Map<String,Set<String>> mapTenantPermissions(User user, Set<String> roles)
- Overrides:
mapTenantPermissionsin classConfigModel
-
mapTenants
public Map<String,Boolean> mapTenants(User user, Set<String> roles)
- Specified by:
mapTenantsin classConfigModel
-
mapSgRoles
public Set<String> mapSgRoles(User user, org.elasticsearch.common.transport.TransportAddress caller)
- Specified by:
mapSgRolesin classConfigModel
-
-