public interface SecurityLevelManager
Modifier and Type | Interface and Description |
---|---|
static class |
SecurityLevelManager.ChangeEvent
Simple class to notify subscribers of the event bus that the security levels have changed
|
Modifier and Type | Method and Description |
---|---|
com.google.common.eventbus.EventBus |
getEventBus()
The
EventBus where ChangeEvents are posted |
com.google.common.collect.ImmutableCollection<SecurityLevelConfig> |
getSecurityLevelsConfig()
Fetch all
SecurityLevelConfigs in the system |
boolean |
isAuthorized(com.google.common.collect.ImmutableCollection<SecurityLevelPath> targets,
com.google.common.collect.ImmutableCollection<SecurityLevelPath> securityLevels,
boolean isAllOf)
Checks if the security levels are authorized against the target.
|
void |
updateSecurityLevelsConfig(com.google.common.collect.ImmutableCollection<SecurityLevelConfig> updatedSecurityLevelsConfig)
Update all
SecurityLevelConfigs in the system |
@Nonnull com.google.common.collect.ImmutableCollection<SecurityLevelConfig> getSecurityLevelsConfig()
SecurityLevelConfigs
in the system@Nonnull void updateSecurityLevelsConfig(@Nonnull com.google.common.collect.ImmutableCollection<SecurityLevelConfig> updatedSecurityLevelsConfig)
SecurityLevelConfigs
in the systemupdatedSecurityLevelsConfig
- the new security levels configboolean isAuthorized(@Nonnull com.google.common.collect.ImmutableCollection<SecurityLevelPath> targets, @Nonnull com.google.common.collect.ImmutableCollection<SecurityLevelPath> securityLevels, boolean isAllOf)
@Nonnull com.google.common.eventbus.EventBus getEventBus()
EventBus
where ChangeEvents
are posted