Class ScopeAdapter
java.lang.Object
org.keycloak.authorization.model.AbstractAuthorizationModel
org.keycloak.authorization.jpa.store.ScopeAdapter
- All Implemented Interfaces:
Scope,JpaModel<ScopeEntity>
public class ScopeAdapter
extends AbstractAuthorizationModel
implements Scope, JpaModel<ScopeEntity>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.authorization.model.Scope
Scope.FilterOption -
Constructor Summary
ConstructorsConstructorDescriptionScopeAdapter(ScopeEntity entity, jakarta.persistence.EntityManager em, StoreFactory storeFactory) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns 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.inthashCode()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.static ScopeEntityMethods inherited from class org.keycloak.authorization.model.AbstractAuthorizationModel
throwExceptionIfReadonly
-
Constructor Details
-
ScopeAdapter
public ScopeAdapter(ScopeEntity entity, jakarta.persistence.EntityManager em, StoreFactory storeFactory)
-
-
Method Details
-
getEntity
- Specified by:
getEntityin interfaceJpaModel<ScopeEntity>
-
getId
Description copied from interface:ScopeReturns the unique identifier for this instance. -
getName
Description copied from interface:ScopeReturns the name of this scope. -
setName
Description copied from interface:ScopeSets a name for this scope. The name must be unique. -
getDisplayName
Description copied from interface:ScopeReturns the end user friendly name for this scope. If not defined, value forScope.getName()is returned.- Specified by:
getDisplayNamein interfaceScope- Returns:
- the friendly name for this scope
-
setDisplayName
Description copied from interface:ScopeSets an end user friendly name for this scope.- Specified by:
setDisplayNamein interfaceScope- Parameters:
name- the name of this scope
-
getIconUri
Description copied from interface:ScopeReturns an iconURIfor this scope.- Specified by:
getIconUriin interfaceScope- Returns:
- a uri for an icon
-
setIconUri
Description copied from interface:ScopeSets an iconURIfor this scope.- Specified by:
setIconUriin interfaceScope
-
getResourceServer
Description copied from interface:ScopeReturns theResourceServerinstance to where this scope belongs to.- Specified by:
getResourceServerin interfaceScope- Returns:
-
toEntity
-
equals
-
hashCode
public int hashCode()
-