Interface ClientPolicyConditionProvider<CONFIG extends ClientPolicyConditionConfigurationRepresentation>
- 
- All Superinterfaces:
- Provider
 - All Known Implementing Classes:
- AbstractClientPolicyConditionProvider,- AnyClientCondition,- ClientAccessTypeCondition,- ClientRolesCondition,- ClientScopesCondition,- ClientUpdaterContextCondition,- ClientUpdaterSourceGroupsCondition,- ClientUpdaterSourceHostsCondition,- ClientUpdaterSourceRolesCondition
 
 public interface ClientPolicyConditionProvider<CONFIG extends ClientPolicyConditionConfigurationRepresentation> extends Provider This condition determines to which client a client policy is adopted. The condition can be evaluated on the events defined inClientPolicyEvent. It is sufficient for the implementer of this condition to implement methods in which they are interested andisEvaluatedOnEventmethod.- Author:
- Takashi Norimatsu
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ClientPolicyVoteapplyPolicy(ClientPolicyContext context)returns ABSTAIN if this condition is not evaluated due to its nature.default voidclose()default Class<CONFIG>getConditionConfigurationClass()default StringgetName()StringgetProviderId()booleanisNegativeLogic()tells whether the result of applyPolicy method is inverted or not as follows.voidsetupConfiguration(CONFIG config)setup this condition's configuration.
 
- 
- 
- 
Method Detail- 
setupConfigurationvoid setupConfiguration(CONFIG config) setup this condition's configuration.- Parameters:
- config-
 
 - 
getConditionConfigurationClassdefault Class<CONFIG> getConditionConfigurationClass() - Returns:
- Class, which should match the "config" argument of the setupConfiguration(ClientPolicyConditionConfigurationRepresentation)
 
 - 
applyPolicydefault ClientPolicyVote applyPolicy(ClientPolicyContext context) throws ClientPolicyException returns ABSTAIN if this condition is not evaluated due to its nature. returns YES if the client satisfies this condition on the event defined inClientPolicyEvent. If not, returns NO.- Parameters:
- context- - the context of the event.
- Returns:
- returns ABSTAIN if this condition is not evaluated due to its nature.
- Throws:
- ClientPolicyException
 
 - 
isNegativeLogicboolean isNegativeLogic() throws ClientPolicyExceptiontells whether the result of applyPolicy method is inverted or not as follows. ClientPolicyVote.YES is inverted to ClientPolicyVote.NO ClientPolicyVote.NO is inverted to ClientPolicyVote.YES ClientPolicyVote.ABSTAIN remains unchanged- Returns:
- true if the result of applyPolicy method is inverted.
- Throws:
- ClientPolicyException
 
 - 
getNamedefault String getName() 
 - 
getProviderIdString getProviderId() 
 
- 
 
-