Package org.keycloak.component
Class ComponentModel
- java.lang.Object
-
- org.keycloak.component.ComponentModel
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DeclarativeUserProfileModel
,JsonConfigComponentModel
,PrioritizedComponentModel
public class ComponentModel extends Object implements Serializable
Stored configuration of a User Storage provider instance.- Author:
- Marek Posolda, Bill Burke
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComponentModel()
ComponentModel(ComponentModel copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(String key)
String
get(String key)
boolean
get(String key, boolean defaultValue)
int
get(String key, int defaultValue)
long
get(String key, long defaultValue)
String
get(String key, String defaultValue)
MultivaluedHashMap<String,String>
getConfig()
String
getId()
String
getName()
<T> T
getNote(String key)
String
getParentId()
String
getProviderId()
String
getProviderType()
String
getSubType()
boolean
hasNote(String key)
void
put(String key, boolean value)
void
put(String key, int value)
void
put(String key, long value)
void
put(String key, String value)
void
removeNote(String key)
void
setConfig(MultivaluedHashMap<String,String> config)
void
setId(String id)
void
setName(String name)
void
setNote(String key, Object object)
void
setParentId(String parentId)
void
setProviderId(String providerId)
void
setProviderType(String providerType)
void
setSubType(String subType)
-
-
-
Constructor Detail
-
ComponentModel
public ComponentModel()
-
ComponentModel
public ComponentModel(ComponentModel copy)
-
-
Method Detail
-
getId
public String getId()
-
setId
public void setId(String id)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getConfig
public MultivaluedHashMap<String,String> getConfig()
-
setConfig
public void setConfig(MultivaluedHashMap<String,String> config)
-
contains
public boolean contains(String key)
-
get
public int get(String key, int defaultValue)
-
get
public long get(String key, long defaultValue)
-
get
public boolean get(String key, boolean defaultValue)
-
put
public void put(String key, int value)
-
put
public void put(String key, long value)
-
put
public void put(String key, boolean value)
-
hasNote
public boolean hasNote(String key)
-
getNote
public <T> T getNote(String key)
-
removeNote
public void removeNote(String key)
-
getProviderId
public String getProviderId()
-
setProviderId
public void setProviderId(String providerId)
-
getProviderType
public String getProviderType()
-
setProviderType
public void setProviderType(String providerType)
-
getParentId
public String getParentId()
-
setParentId
public void setParentId(String parentId)
-
getSubType
public String getSubType()
-
setSubType
public void setSubType(String subType)
-
-