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
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) void
setMultivalued
(boolean multivalued) setRequired
(Predicate<AttributeContext> required) void
setSelector
(Predicate<AttributeContext> selector) setValidators
(List<AttributeValidatorMetadata> validators)
-
Field Details
-
ALWAYS_TRUE
-
ALWAYS_FALSE
-
-
Method Details
-
getName
-
getGuiOrder
public int getGuiOrder() -
setGuiOrder
-
getAttributeGroupMetadata
-
isSelected
-
setSelector
-
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
-
setMultivalued
public void setMultivalued(boolean multivalued) -
isMultivalued
public boolean isMultivalued() -
clone
-
getAttributeDisplayName
-
setAttributeDisplayName
-
setAttributeGroupMetadata
-
equals
-
hashCode
public int hashCode() -
setRequired
-
setValidators
-