Class MapSingleUseObjectAdapter
- java.lang.Object
-
- org.keycloak.models.map.singleUseObject.AbstractSingleUseObjectModel<MapSingleUseObjectEntity>
-
- org.keycloak.models.map.singleUseObject.MapSingleUseObjectAdapter
-
- All Implemented Interfaces:
SingleUseObjectValueModel
public class MapSingleUseObjectAdapter extends AbstractSingleUseObjectModel<MapSingleUseObjectEntity>
- Author:
- Martin Kanis
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.SingleUseObjectValueModel
SingleUseObjectValueModel.SearchableFields
-
-
Field Summary
-
Fields inherited from class org.keycloak.models.map.singleUseObject.AbstractSingleUseObjectModel
entity, session
-
-
Constructor Summary
Constructors Constructor Description MapSingleUseObjectAdapter(KeycloakSession session, MapSingleUseObjectEntity entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNote(String name)
Returns value of the given note (ornull
when no note of this name is present)Map<String,String>
getNotes()
Returns unmodifiable map of all notes.-
Methods inherited from class org.keycloak.models.map.singleUseObject.AbstractSingleUseObjectModel
equals, hashCode
-
-
-
-
Constructor Detail
-
MapSingleUseObjectAdapter
public MapSingleUseObjectAdapter(KeycloakSession session, MapSingleUseObjectEntity entity)
-
-
Method Detail
-
getNotes
public Map<String,String> getNotes()
Description copied from interface:SingleUseObjectValueModel
Returns unmodifiable map of all notes.- Returns:
- see description. Returns empty map if no note is set, never returns
null
.
-
getNote
public String getNote(String name)
Description copied from interface:SingleUseObjectValueModel
Returns value of the given note (ornull
when no note of this name is present)- Returns:
- see description
-
-