Package org.keycloak.models.map.role
Class MapRoleEntityImpl.Empty
- java.lang.Object
-
- org.keycloak.models.map.common.UpdatableEntity.Impl
-
- org.keycloak.models.map.role.MapRoleEntity.AbstractRoleEntity
-
- org.keycloak.models.map.role.MapRoleEntityImpl.Empty
-
- All Implemented Interfaces:
AbstractEntity
,EntityWithAttributes
,UpdatableEntity
,MapRoleEntity
- Enclosing class:
- MapRoleEntityImpl
public static class MapRoleEntityImpl.Empty extends MapRoleEntity.AbstractRoleEntity implements MapRoleEntity
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.role.MapRoleEntity
MapRoleEntity.AbstractRoleEntity
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.UpdatableEntity
UpdatableEntity.Impl
-
-
Field Summary
Fields Modifier and Type Field Description static MapRoleEntityImpl.Empty
INSTANCE
-
Fields inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
updated
-
-
Constructor Summary
Constructors Constructor Description Empty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCompositeRole(String roleId)
List<String>
getAttribute(String name)
Map<String,List<String>>
getAttributes()
String
getClientId()
Set<String>
getCompositeRoles()
String
getDescription()
String
getId()
String
getName()
String
getRealmId()
Boolean
isClientRole()
boolean
isUpdated()
Flag signalizing that any of the setters has been meaningfully used.void
removeAttribute(String name)
void
removeCompositeRole(String roleId)
void
setAttribute(String name, List<String> value)
void
setAttributes(Map<String,List<String>> attributes)
void
setClientId(String clientId)
void
setClientRole(Boolean clientRole)
void
setCompositeRoles(Set<String> compositeRoles)
void
setDescription(String description)
void
setId(String id)
void
setName(String name)
void
setRealmId(String realmId)
-
Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
clearUpdatedFlag
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.map.common.UpdatableEntity
clearUpdatedFlag
-
-
-
-
Field Detail
-
INSTANCE
public static final MapRoleEntityImpl.Empty INSTANCE
-
-
Method Detail
-
setId
public void setId(String id)
- Specified by:
setId
in interfaceAbstractEntity
- Overrides:
setId
in classMapRoleEntity.AbstractRoleEntity
-
getId
public String getId()
- Specified by:
getId
in interfaceAbstractEntity
- Overrides:
getId
in classMapRoleEntity.AbstractRoleEntity
-
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttribute
in interfaceEntityWithAttributes
-
getAttributes
public Map<String,List<String>> getAttributes()
- Specified by:
getAttributes
in interfaceEntityWithAttributes
-
setAttributes
public void setAttributes(Map<String,List<String>> attributes)
- Specified by:
setAttributes
in interfaceEntityWithAttributes
-
setAttribute
public void setAttribute(String name, List<String> value)
- Specified by:
setAttribute
in interfaceEntityWithAttributes
-
getAttribute
public List<String> getAttribute(String name)
- Specified by:
getAttribute
in interfaceEntityWithAttributes
-
getClientId
public String getClientId()
- Specified by:
getClientId
in interfaceMapRoleEntity
-
setClientId
public void setClientId(String clientId)
- Specified by:
setClientId
in interfaceMapRoleEntity
-
isClientRole
public Boolean isClientRole()
- Specified by:
isClientRole
in interfaceMapRoleEntity
- Overrides:
isClientRole
in classMapRoleEntity.AbstractRoleEntity
-
setClientRole
public void setClientRole(Boolean clientRole)
- Specified by:
setClientRole
in interfaceMapRoleEntity
-
removeCompositeRole
public void removeCompositeRole(String roleId)
- Specified by:
removeCompositeRole
in interfaceMapRoleEntity
-
setCompositeRoles
public void setCompositeRoles(Set<String> compositeRoles)
- Specified by:
setCompositeRoles
in interfaceMapRoleEntity
-
getCompositeRoles
public Set<String> getCompositeRoles()
- Specified by:
getCompositeRoles
in interfaceMapRoleEntity
-
addCompositeRole
public void addCompositeRole(String roleId)
- Specified by:
addCompositeRole
in interfaceMapRoleEntity
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceMapRoleEntity
-
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interfaceMapRoleEntity
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceMapRoleEntity
-
getName
public String getName()
- Specified by:
getName
in interfaceMapRoleEntity
-
setRealmId
public void setRealmId(String realmId)
- Specified by:
setRealmId
in interfaceMapRoleEntity
-
getRealmId
public String getRealmId()
- Specified by:
getRealmId
in interfaceMapRoleEntity
-
isUpdated
public boolean isUpdated()
Description copied from interface:UpdatableEntity
Flag signalizing that any of the setters has been meaningfully used.- Specified by:
isUpdated
in interfaceUpdatableEntity
- Overrides:
isUpdated
in classUpdatableEntity.Impl
- Returns:
-
-