Interface IStringAttributesMixin
- All Known Subinterfaces:
IAuthenticatorConfig,IAuthenticatorConfigWrapper
- All Known Implementing Classes:
AAuthenticatorConfig,AConfigViewModel,AnonymousConfigViewModel,AnonymousConfigWrapper,AnyoneConfigWrapper,BaseConfigViewModel,DistinctUserConfigWrapper,EntityConfigWrapper,FormConfigWrapper,KerberosConfigWrapper,NtlmConfigWrapper,PasswordConfigViewModel,PasswordConfigWrapper,ProjectAuthenticatorConfig,VirtualAuthenticatorConfig,WorkflowStateAuthenticatorConfig
public interface IStringAttributesMixin
Mixin providing utility methods for storing values in a string map
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetAttributeValue(String key) Get theStringvalue of the attribute with the given keyGet theListvalue of the attribute with the given keyGet theMapvalue of the attribute with the given keydefault voidputAttribute(String key, String value) Puts the givenStringvalue for the given key in the attribute map.default voidputAttributes(String key, List<String> values) Puts the givenListvalue for the given key in the attribute map.default voidputAttributes(String key, Map<String, String> valueMap) Puts the givenMapvalue for the given key in the attribute map.default StringremoveAttribute(String key) Removes the attributes for the given key
-
Method Details
-
getAttributes
- Returns:
- the string attributes
-
getAttributeValue
Get theStringvalue of the attribute with the given key -
getAttributeValueList
Get theListvalue of the attribute with the given key -
getAttributeValueMap
Get theMapvalue of the attribute with the given key -
putAttribute
Puts the givenStringvalue for the given key in the attribute map. If the value is empty then the key will be removed from the map -
putAttributes
Puts the givenListvalue for the given key in the attribute map. If the value is empty then the key will be removed from the map -
putAttributes
Puts the givenMapvalue for the given key in the attribute map. If the value is empty then the key will be removed from the map -
removeAttribute
Removes the attributes for the given key- Parameters:
key-Stringkey in the attribute map- Returns:
trueif the attribute was removed
-