Package org.keycloak.userprofile
Class UserProfileMetadata
java.lang.Object
org.keycloak.userprofile.UserProfileMetadata
- All Implemented Interfaces:
Cloneable
- Author:
- Pedro Igor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAttribute
(String name, int guiOrder, Predicate<AttributeContext> writeAllowed, Predicate<AttributeContext> required, List<AttributeValidatorMetadata> validators) addAttribute
(String name, int guiOrder, Predicate<AttributeContext> writeAllowed, Predicate<AttributeContext> readAllowed, AttributeValidatorMetadata... validator) addAttribute
(String name, int guiOrder, Predicate<AttributeContext> writeAllowed, List<AttributeValidatorMetadata> validators) addAttribute
(String name, int guiOrder, List<AttributeValidatorMetadata> validators) addAttribute
(String name, int guiOrder, List<AttributeValidatorMetadata> validator, Predicate<AttributeContext> selector, Predicate<AttributeContext> writeAllowed, Predicate<AttributeContext> required, Predicate<AttributeContext> readAllowed) addAttribute
(String name, int guiOrder, AttributeValidatorMetadata... validator) addAttribute
(AttributeMetadata metadata) void
addAttributes
(List<AttributeMetadata> metadata) clone()
boolean
getAttribute
(String name) Get existing AttributeMetadata for attribute of given name.int
hashCode()
-
Constructor Details
-
UserProfileMetadata
-
-
Method Details
-
getAttributes
-
addAttributes
-
addAttribute
-
addAttribute
public AttributeMetadata addAttribute(String name, int guiOrder, AttributeValidatorMetadata... validator) -
addAttribute
public AttributeMetadata addAttribute(String name, int guiOrder, Predicate<AttributeContext> writeAllowed, Predicate<AttributeContext> readAllowed, AttributeValidatorMetadata... validator) -
addAttribute
public AttributeMetadata addAttribute(String name, int guiOrder, Predicate<AttributeContext> writeAllowed, List<AttributeValidatorMetadata> validators) -
addAttribute
public AttributeMetadata addAttribute(String name, int guiOrder, Predicate<AttributeContext> writeAllowed, Predicate<AttributeContext> required, List<AttributeValidatorMetadata> validators) -
addAttribute
public AttributeMetadata addAttribute(String name, int guiOrder, List<AttributeValidatorMetadata> validators) -
addAttribute
public AttributeMetadata addAttribute(String name, int guiOrder, List<AttributeValidatorMetadata> validator, Predicate<AttributeContext> selector, Predicate<AttributeContext> writeAllowed, Predicate<AttributeContext> required, Predicate<AttributeContext> readAllowed) -
getAttribute
Get existing AttributeMetadata for attribute of given name.- Parameters:
name
- of the attribute- Returns:
- list of existing metadata for given attribute, never null
-
getContext
-
clone
-
equals
-
hashCode
public int hashCode()
-