Class MapScopeAdapter
java.lang.Object
org.keycloak.authorization.model.AbstractAuthorizationModel
org.keycloak.models.map.authorization.adapter.AbstractScopeModel<MapScopeEntity>
org.keycloak.models.map.authorization.adapter.MapScopeAdapter
- All Implemented Interfaces:
Scope
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.authorization.model.Scope
Scope.FilterOption, Scope.SearchableFields -
Field Summary
Fields inherited from class org.keycloak.models.map.authorization.adapter.AbstractScopeModel
entityFields inherited from class org.keycloak.authorization.model.AbstractAuthorizationModel
storeFactory -
Constructor Summary
ConstructorsConstructorDescriptionMapScopeAdapter(RealmModel realm, ResourceServer resourceServer, MapScopeEntity entity, StoreFactory storeFactory) -
Method Summary
Modifier and TypeMethodDescriptionReturns the end user friendly name for this scope.Returns an iconURIfor this scope.getId()Returns the unique identifier for this instance.getName()Returns the name of this scope.Returns theResourceServerinstance to where this scope belongs to.voidsetDisplayName(String name) Sets an end user friendly name for this scope.voidsetIconUri(String iconUri) Sets an iconURIfor this scope.voidSets a name for this scope.toString()Methods inherited from class org.keycloak.models.map.authorization.adapter.AbstractScopeModel
equals, hashCodeMethods inherited from class org.keycloak.authorization.model.AbstractAuthorizationModel
throwExceptionIfReadonly
-
Constructor Details
-
MapScopeAdapter
public MapScopeAdapter(RealmModel realm, ResourceServer resourceServer, MapScopeEntity entity, StoreFactory storeFactory)
-
-
Method Details
-
getId
Description copied from interface:ScopeReturns the unique identifier for this instance.- Returns:
- the unique identifier for this instance
-
getName
Description copied from interface:ScopeReturns the name of this scope.- Returns:
- the name of this scope
-
setName
Description copied from interface:ScopeSets a name for this scope. The name must be unique.- Parameters:
name- the name of this scope
-
getDisplayName
Description copied from interface:ScopeReturns the end user friendly name for this scope. If not defined, value forScope.getName()is returned.- Returns:
- the friendly name for this scope
-
setDisplayName
Description copied from interface:ScopeSets an end user friendly name for this scope.- Parameters:
name- the name of this scope
-
getIconUri
Description copied from interface:ScopeReturns an iconURIfor this scope.- Returns:
- a uri for an icon
-
setIconUri
Description copied from interface:ScopeSets an iconURIfor this scope. -
getResourceServer
Description copied from interface:ScopeReturns theResourceServerinstance to where this scope belongs to.- Returns:
-
toString
-