Package org.keycloak.userprofile
Class UserProfileMetadata
- java.lang.Object
-
- org.keycloak.userprofile.UserProfileMetadata
-
- All Implemented Interfaces:
Cloneable
public final class UserProfileMetadata extends Object implements Cloneable
- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description UserProfileMetadata(UserProfileContext context)
-
Method Summary
-
-
-
Constructor Detail
-
UserProfileMetadata
public UserProfileMetadata(UserProfileContext context)
-
-
Method Detail
-
getAttributes
public List<AttributeMetadata> getAttributes()
-
addAttributes
public void addAttributes(List<AttributeMetadata> metadata)
-
addAttribute
public AttributeMetadata addAttribute(AttributeMetadata metadata)
-
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
public List<AttributeMetadata> getAttribute(String name)
Get existing AttributeMetadata for attribute of given name.- Parameters:
name
- of the attribute- Returns:
- list of existing metadata for given attribute, never null
-
getContext
public UserProfileContext getContext()
-
clone
public UserProfileMetadata clone()
-
-