Package org.keycloak.userprofile
Class AttributeMetadata
java.lang.Object
org.keycloak.userprofile.AttributeMetadata
- Author:
- Pedro Igor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Predicate<AttributeContext>
static final Predicate<AttributeContext>
-
Method Summary
Modifier and TypeMethodDescriptionaddAnnotations
(Map<String, Object> annotations) addReadCondition
(Predicate<AttributeContext> readAllowed) addValidators
(List<AttributeValidatorMetadata> validators) addWriteCondition
(Predicate<AttributeContext> writeAllowed) boolean
canEdit
(AttributeContext context) boolean
canView
(AttributeContext context) clone()
boolean
int
getName()
int
hashCode()
boolean
isReadOnly
(AttributeContext context) boolean
isRequired
(AttributeContext context) Check if attribute is required based on it's predicate, it is handled as required if predicate is nullboolean
isSelected
(AttributeContext context) setAttributeDisplayName
(String attributeDisplayName) setAttributeGroupMetadata
(AttributeGroupMetadata attributeGroupMetadata) setGuiOrder
(int guiOrder) setRequired
(Predicate<AttributeContext> required) setValidators
(List<AttributeValidatorMetadata> validators)
-
Field Details
-
ALWAYS_TRUE
-
ALWAYS_FALSE
-
-
Method Details
-
getName
-
getGuiOrder
public int getGuiOrder() -
setGuiOrder
-
getAttributeGroupMetadata
-
isSelected
-
addReadCondition
-
addWriteCondition
-
isReadOnly
-
canView
-
canEdit
-
isRequired
Check if attribute is required based on it's predicate, it is handled as required if predicate is null- Parameters:
context
- to evaluate requirement of the attribute from- Returns:
- true if attribute is required in provided context
-
getValidators
-
addValidators
-
getAnnotations
-
addAnnotations
-
clone
-
getAttributeDisplayName
-
setAttributeDisplayName
-
setAttributeGroupMetadata
-
equals
-
hashCode
public int hashCode() -
setRequired
-
setValidators
-