public interface ClientPolicyConditionProvider<CONFIG extends ClientPolicyConditionConfigurationRepresentation> extends Provider
ClientPolicyEvent
.
It is sufficient for the implementer of this condition to implement methods in which they are interested
and isEvaluatedOnEvent
method.Modifier and Type | Method and Description |
---|---|
default ClientPolicyVote |
applyPolicy(ClientPolicyContext context)
returns ABSTAIN if this condition is not evaluated due to its nature.
|
default void |
close() |
default Class<CONFIG> |
getConditionConfigurationClass() |
default String |
getName() |
String |
getProviderId() |
boolean |
isNegativeLogic()
tells whether the result of applyPolicy method is inverted or not as follows.
|
void |
setupConfiguration(CONFIG config)
setup this condition's configuration.
|
void setupConfiguration(CONFIG config)
config
- default Class<CONFIG> getConditionConfigurationClass()
setupConfiguration(ClientPolicyConditionConfigurationRepresentation)
default ClientPolicyVote applyPolicy(ClientPolicyContext context) throws ClientPolicyException
ClientPolicyEvent
.
If not, returns NO.context
- - the context of the event.{@link
- ClientPolicyException} - thrown if the condition is not evaluated in its nature on the event specified by context.ClientPolicyException
boolean isNegativeLogic() throws ClientPolicyException
ClientPolicyException
default String getName()
String getProviderId()
Copyright © 2021 JBoss by Red Hat. All rights reserved.