Uses of Class
org.keycloak.userprofile.AttributeContext
-
Uses of AttributeContext in org.keycloak.userprofile
Modifier and TypeFieldDescriptionstatic final Predicate<AttributeContext>
AttributeMetadata.ALWAYS_FALSE
static final Predicate<AttributeContext>
AttributeMetadata.ALWAYS_TRUE
static final Predicate<AttributeContext>
UserProfileUtil.ONLY_ADMIN_CONDITION
Modifier and TypeMethodDescriptionprotected AttributeContext
DefaultAttributes.createAttributeContext
(AttributeMetadata metadata) UserProfileAttributeValidationContext.getAttributeContext()
Modifier and TypeMethodDescriptionboolean
AttributeMetadata.canEdit
(AttributeContext context) boolean
AttributeMetadata.canView
(AttributeContext context) boolean
AttributeMetadata.isReadOnly
(AttributeContext context) boolean
AttributeMetadata.isRequired
(AttributeContext context) Check if attribute is required based on it's predicate, it is handled as required if predicate is nullboolean
AttributeMetadata.isSelected
(AttributeContext context) AttributeValidatorMetadata.validate
(AttributeContext context) Run validation for given AttributeContext.Modifier and TypeMethodDescriptionUserProfileMetadata.addAttribute
(String name, int guiOrder, Predicate<AttributeContext> writeAllowed, Predicate<AttributeContext> required, List<AttributeValidatorMetadata> validators) UserProfileMetadata.addAttribute
(String name, int guiOrder, Predicate<AttributeContext> writeAllowed, Predicate<AttributeContext> readAllowed, AttributeValidatorMetadata... validator) UserProfileMetadata.addAttribute
(String name, int guiOrder, Predicate<AttributeContext> writeAllowed, List<AttributeValidatorMetadata> validators) UserProfileMetadata.addAttribute
(String name, int guiOrder, List<AttributeValidatorMetadata> validator, Predicate<AttributeContext> selector, Predicate<AttributeContext> writeAllowed, Predicate<AttributeContext> required, Predicate<AttributeContext> readAllowed) AttributeMetadata.addReadCondition
(Predicate<AttributeContext> readAllowed) AttributeMetadata.addWriteCondition
(Predicate<AttributeContext> writeAllowed) AttributeMetadata.setRequired
(Predicate<AttributeContext> required) void
AttributeMetadata.setSelector
(Predicate<AttributeContext> selector) ModifierConstructorDescriptionUserProfileAttributeValidationContext
(AttributeContext attributeContext)