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 boolean
equals(Object o)
String
getDisplayName()
ScopeEntity
getEntity()
String
getIconUri()
String
getId()
String
getName()
ResourceServer
getResourceServer()
int
hashCode()
void
setDisplayName(String name)
void
setIconUri(String iconUri)
void
setName(String name)
static ScopeEntity
toEntity(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:
getEntity
in interfaceJpaModel<ScopeEntity>
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceScope
-
setDisplayName
public void setDisplayName(String name)
- Specified by:
setDisplayName
in interfaceScope
-
getIconUri
public String getIconUri()
- Specified by:
getIconUri
in interfaceScope
-
setIconUri
public void setIconUri(String iconUri)
- Specified by:
setIconUri
in interfaceScope
-
getResourceServer
public ResourceServer getResourceServer()
- Specified by:
getResourceServer
in interfaceScope
-
toEntity
public static ScopeEntity toEntity(javax.persistence.EntityManager em, Scope scope)
-
-