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, Scope.SearchableFields
-
-
Constructor Summary
Constructors Constructor Description ScopeAdapter(ScopeEntity entity, javax.persistence.EntityManager em, StoreFactory storeFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDisplayName()ScopeEntitygetEntity()StringgetIconUri()StringgetId()StringgetName()ResourceServergetResourceServer()inthashCode()voidsetDisplayName(String name)voidsetIconUri(String iconUri)voidsetName(String name)static ScopeEntitytoEntity(javax.persistence.EntityManager em, Scope scope)-
Methods inherited from class org.keycloak.authorization.model.AbstractAuthorizationModel
throwExceptionIfReadonly
-
-
-
-
Constructor Detail
-
ScopeAdapter
public ScopeAdapter(ScopeEntity entity, javax.persistence.EntityManager em, StoreFactory storeFactory)
-
-
Method Detail
-
getEntity
public ScopeEntity getEntity()
- Specified by:
getEntityin interfaceJpaModel<ScopeEntity>
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceScope
-
setDisplayName
public void setDisplayName(String name)
- Specified by:
setDisplayNamein interfaceScope
-
getIconUri
public String getIconUri()
- Specified by:
getIconUriin interfaceScope
-
setIconUri
public void setIconUri(String iconUri)
- Specified by:
setIconUriin interfaceScope
-
getResourceServer
public ResourceServer getResourceServer()
- Specified by:
getResourceServerin interfaceScope
-
toEntity
public static ScopeEntity toEntity(javax.persistence.EntityManager em, Scope scope)
-
-